You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Schema fields should be satisfiable by frontmatter, not only observations #1973
bm_schema(command="validate", note_type="meeting") warns: Missing required field: attendees (expected [attendees] observation). infer and diff also ignore frontmatter fields: infer suggested only action (from - [action] observations), and diff reports attendees as dropped.
Why it matters
Scalar facts like counts, dates, status and owners naturally live in frontmatter, and bm_write(metadata=...) and bm_edit(command="set_metadata") put them there. Today a schema can't describe the fields our own tools write. bm-schema(3) doesn't say fields are observation-only either.
Options
Let a field be satisfied by a frontmatter key or an observation category, with frontmatter checked first. Type checks (integer, string, enums) apply naturally to frontmatter values.
Or add an explicit source per field, e.g. attendees(frontmatter).
In either case, infer/diff should count frontmatter keys, and bm-schema(3) should state the rule.
Type: Enhancement (applied the enhancement label). It could also be read as a gap or bug, because the schema feature can't describe the fields that bm_write(metadata=...) and bm_edit(set_metadata) write.
Component: MCP tools (bm_schema validate/infer/diff) and the picoschema module. This isn't Cloud-specific.
Priority: Medium. There's a workaround (put the value in an observation), but schemas can't validate frontmatter, and infer/diff give misleading output.
Complexity: Medium. It touches validation, inference and drift in the picoschema code, plus the bm-schema(3) manual page, and it needs tests at 100% coverage.
Duplicates: I found none. Related closed issues are #794 (picoschema modifiers), #375 (schema support) and #993 (frontmatter validation and permissions). None covers frontmatter-satisfied fields.
Design question before implementation: the issue offers two options.
A field is satisfied by a frontmatter key or an observation category, with frontmatter checked first.
An explicit per-field source, such as attendees(frontmatter).
Option 1 is simpler and needs no schema syntax change. It does make it ambiguous where a field's value lives. The ambiguity matters for infer: when a name appears in both places, which source should it suggest? Option 2 is explicit but adds syntax to Picoschema. Either way, infer/diff should count frontmatter keys, and bm-schema(3) should state the rule. Which option do you prefer?
Activity
claude commentedon Oct 29, 2026
Claude finished @phernandez's task in 15s —— View job
Triage
enhancementlabel). It could also be read as a gap or bug, because the schema feature can't describe the fields thatbm_write(metadata=...)andbm_edit(set_metadata)write.bm_schemavalidate/infer/diff) and thepicoschemamodule. This isn't Cloud-specific.infer/diffgive misleading output.Duplicates: I found none. Related closed issues are #794 (picoschema modifiers), #375 (schema support) and #993 (frontmatter validation and permissions). None covers frontmatter-satisfied fields.
Design question before implementation: the issue offers two options.
attendees(frontmatter).Option 1 is simpler and needs no schema syntax change. It does make it ambiguous where a field's value lives. The ambiguity matters for
infer: when a name appears in both places, which source should it suggest? Option 2 is explicit but adds syntax to Picoschema. Either way,infer/diffshould count frontmatter keys, and bm-schema(3) should state the rule. Which option do you prefer?fix(mcp): tidy tool messages found in the 1.0 live test (#1974)
fix(mcp): make bm_schema no-schema guidance work without the bm CLI (#…
phernandez commentedon Nov 3, 2026
Decision: a schema field can be satisfied by a frontmatter key or by an observation category. Frontmatter is checked first.
integer,string, enums) apply to frontmatter values the same way.attendees(frontmatter).inferanddiffcount frontmatter keys as fields.fix(core): let frontmatter keys satisfy schema fields (basicmachines-…