Repository navigation
docs(unstable-v2): sweep the pages and descriptions for consistency - #2959
Merged
Merged
Conversation
One pass over the v2 pages, their draft copies, the migration guide and the v2 schema descriptions for wording that drifted. No wire change. Terms: - "final status", not "terminal status", which collides with terminals. - "work" or "interval", not "turn", which no page defines. - Error names as the error page has them: "Request cancelled", "Invalid request", "Authentication required". - `idle` with `stopReason: "cancelled"` in prose, not `idle(cancelled)`. - Capitalized Agent and Client where the role is meant, mostly on the transports page and in the migration guide. Keywords: - Plain statements where the subject is not an implementation, and no bold on MAJOR and UNSUPPORTED, which are not keywords. - "might not" and "can" where a lowercase "may not" or "may" could be read as a rule. - The same keyword where a rule is stated twice: logout without advertised methods, a form the Client cannot render, checking the selected version, and the URL mode list, whose lead-in said MUST over items that say SHOULD. Descriptions against pages: - The signal name convention and the `capabilities` default are now on the tool calls page. The terminal auth capability uses the page's wording. The resume response's lists are "current", not "initial". - `auth/login` links to the Authentication page. - "Empty lists are omitted when serializing" is removed. It describes an SDK, not the protocol. Prose rules: benefit sentences, "-ing" clauses, dashes that join clauses, sentence case in headings and step titles, and one draft page link that pointed at a stable page.
The sweep kept finding the same kinds of drift. Write the rules down so the next change does not reintroduce them: one term for one thing, error names as the Errors page has them, capitalized role names, keywords only on implementations, no "may not", one keyword per rule across every place that states it, and where doc comments and links are duplicated.
Merged
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
One pass over the v2 pages, their draft copies, the migration guide and the v2 schema descriptions for wording that had drifted. It also adds the rules behind the fixes to
AGENTS.md. Nothing changes on the wire.The candidates came from scripted scans: every lowercase "must", "should" and "may", bold keywords with a non-implementation subject, error names after codes, role names, a list of drifting terms, the prose rules, links between draft and stable pages, field tag types, and the doc links in the schema descriptions. Most lowercase hits are possibilities or descriptions of data, which the house rules allow, so the diff is about 60 edits, each mirrored in its draft copy.
Terms
idlewithstopReason: "cancelled". The shorthandidle(cancelled)stays in the examples table.Keywords
These edits change or add a keyword, each to match another place that states the same rule:
-32602auth/logoutwithout advertised methods{}only when…"{}means the client can reproduce…"session/prompt…", "the Client must check…"Schema descriptions against pages
auth/loginlinks to the Authentication page. It linked to Initialization.replayFrombuilder method had an older copy of the field's description. It now has the same MUST and MUST NOT.capabilitiesamong the defaults of a new tool call.currentValuealso changes through a setup response.argson a stdio MCP server is taggedstring[], notarray.Prose rules
AGENTS.md
New rules under "Writing spec prose and schema descriptions": one term for one thing, error names as the Errors page lists them, capitalized role names, keywords only on implementations, no "may not", no keyword on a list's lead-in, finding every statement of a rule before changing its keyword, and where doc comments and links are duplicated.
Not changed
Checks
cargo fmt, Prettier and the spell check pass.