Skip to content

docs(adr): say what query_notes returns for a view that shows a notice - #207

Merged
bketelsen merged 1 commit into
mainfrom
docs/query-notes-view-notice
Nov 12, 2026
Merged

bketelsen merged 1 commit into
mainfrom
docs/query-notes-view-notice

Conversation

@frostyard-machines

Copy link
Copy Markdown
Contributor

Summary

ADR-0037 gives query_notes' output as files, total and notice, but it does not say what a view that shows a notice returns. It also uses notice for something that specs/mcp.md, Results already fixes: every read tool's notice is the sentence that tells the agent that note text is data, not instructions.

ADR-0037 is Proposed, so this edits it in place:

  • notice in query_notes is that fixed sentence, never a view's notice.
  • query_notes on a view with groupOrder, or on a view type outside the subset (named with view, or the base's first view when view is absent), returns a tool error result, as a refused filter does. Its text names the view and the key or view type at its location, for example views[1]: view type kanban is outside the subset.
  • It never returns empty files with a total of 0. An agent would read that as a view that matches no rows. That is a wrong answer without warning, which the ADR already forbids for a partial result.
  • M5's check 7 now tests both cases: an error that names the view, and no files.

docs/specs/mcp.md and docs/specs/bases.md change with M5's code, as the ADR says; this pins the answer they copy.

Closes #195.

Risk tier

Risk tier: 1 — docs only: a Proposed ADR. No path in .github/risk-paths.json matches.

Docs housekeeping

  • New or edited ADRs are fact-only: context, decision and consequences
  • Cross-links hold: the new link goes to docs/specs/mcp.md#results, which exists

Verification

  • Docs only; no code, schema or workflow changes.

ADR-0037 gave query_notes' output as files, total and notice, but notice is
already the fixed sentence every MCP read tool carries (specs/mcp.md,
Results). For a view with groupOrder or a view type outside the subset, the
ADR now pins a tool error that names the view and the key or type, as for a
refused filter, and M5's check 7 tests it.

Closes #195
@github-actions github-actions Bot added the level:L3 Skim label Nov 12, 2026
@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Cross-review: Ready. Blocking: none. Findings: none.

  • Reviewer: openai/gpt-6.1-sol. Coder: anthropic/claude-opus-5-5.
  • Base b9c6c9006d666183f91313f79648f8323b8a61b0, head 41492fbf453612e6ffd07357ed18a898e08fcde1. Scope: the whole diff (1 file), plus docs/specs/mcp.md, ADR-0012 and AGENTS.md as context.
  • What it checked: notice stays the fixed sentence of specs/mcp.md (Results). The rule covers an explicit view and the default first view. A query with only filters cannot meet the case. Check 7 covers both cases. The link and its anchor are valid.
  • Revert test: exempt (docs only).

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 12, 2026
@bketelsen
bketelsen merged commit c515fae into main Nov 12, 2026
11 checks passed
@bketelsen
bketelsen deleted the docs/query-notes-view-notice branch November 12, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L3 Skim ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: say what query_notes returns for a view that shows a notice

2 participants