Repository navigation
docs(adr): say what query_notes returns for a view that shows a notice - #207
Merged
Merged
Conversation
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
Contributor
Author
|
Cross-review: Ready. Blocking: none. Findings: none.
|
bketelsen
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ADR-0037 gives
query_notes' output asfiles,totalandnotice, but it does not say what a view that shows a notice returns. It also usesnoticefor something that specs/mcp.md, Results already fixes: every read tool'snoticeis the sentence that tells the agent that note text is data, not instructions.ADR-0037 is Proposed, so this edits it in place:
noticeinquery_notesis that fixed sentence, never a view's notice.query_noteson a view withgroupOrder, or on a view type outside the subset (named withview, or the base's first view whenviewis 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 exampleviews[1]: view type kanban is outside the subset.fileswith atotalof 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.files.docs/specs/mcp.mdanddocs/specs/bases.mdchange 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.jsonmatches.Docs housekeeping
docs/specs/mcp.md#results, which existsVerification