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
bm_* tools: six issues found while verifying the manual examples #1843
Found while verifying the examples for the bm_* manual pages (#1832), against main at 9b47a7c in an isolated local home. Each item was reproduced through the real MCP server in-process.
bm_write and bm_edit report observations: 0, relations: 0 for notes that have both.
The counts come from the accepted-write response, which returns before the index pass extracts observations and relations. A freshly written note always reports 0/0. Either drop the counts from the result or report them once indexed.
One-note search with no match looks like a match. bm_search(query="zebra", identifier="plans/launch-plan.md") returns - plans/launch-plan.md | launch-plan with no lines and no message. It should say that no lines match.
bm_search(lines=N) keeps hybrid hits that have no matching lines.
With query="freeze" and no note containing "freeze", the default hybrid mode returns semantically near notes with no lines under them. A lines search should drop rows with no matching line, as grep does.
bm_context(identifier="plans/*") returns observation and relation rows as primary results.
The pattern matches observation and relation permalinks too, so the graph lists entries such as ## goal / permalink: plans/launch-plan.md next to the notes.
bm_read(max_tokens=20) returns no content.
The result is Lines 6-6 of 11 ... cut at the token budget with nothing in it. A budget smaller than the first block should still return that block, or say the budget is too small.
bm_schema(command="validate") with no schema points at the legacy tool names.
The guidance says schema_infer("plan") and schema_validate. It should name bm_schema(command="infer", ...) (this can go with the legacy-removal PR, 1.0 tools: registration cleanup, names, titles, annotations #1833).
Type: bug (labeled bug). Items 1–5 are behavior defects. Item 6 is a stale-guidance string.
Component: MCP tools (bm_write, bm_edit, bm_search, bm_context, bm_read, bm_schema). This is not a Cloud issue, so no cloud label.
Priority: Medium. These are misleading or empty outputs, with no data loss or corruption. Items 1 and 5 are the most user-visible, because they report wrong counts and return empty content.
Medium: item 4 (the glob needs to exclude observation and relation permalinks), item 5 (return the first block even if it exceeds the budget, or report that the budget is too small).
Item 1 needs a design choice: drop the counts, or report them once indexed. Per the repo's consistency model, derived state is eventually consistent, so dropping the counts or labeling them as pending is safer than waiting on the index pass.
Activity
claude commentedon Oct 23, 2026
Claude finished @phernandez's task in 16s —— View job
Triage
bug). Items 1–5 are behavior defects. Item 6 is a stale-guidance string.bm_write,bm_edit,bm_search,bm_context,bm_read,bm_schema). This is not a Cloud issue, so nocloudlabel.linesis set).The issue has clear reproduction details, so I'm not asking for more. Triage only: no code changes were made.
fix(mcp): correct manual tool results and cover deferred writes (basi…