Skip to content

docs(unstable-v2): sweep the pages and descriptions for consistency - #2959

Merged
benbrandt merged 2 commits into
mainfrom
docs/v2-consistency-sweep
Nov 20, 2026
Merged

benbrandt merged 2 commits into
mainfrom
docs/v2-consistency-sweep

Conversation

@benbrandt

Copy link
Copy Markdown
Member

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

  • "Final status" replaces "terminal status", which reads as the status of a terminal.
  • "Work" or "interval" replaces "turn", which no v2 page defines.
  • Error names match the error page: "Request cancelled", "Invalid request", "Authentication required".
  • Prose says idle with stopReason: "cancelled". The shorthand idle(cancelled) stays in the examples table.
  • Agent and Client are capitalized where the role is meant, mostly on the transports page and in the migration guide.

Keywords

  • "The language model MAY respond" and "Cancellation MAY also be done" are now plain statements. Their subject is not an implementation.
  • MAJOR and UNSUPPORTED lose their bold. They are not keywords.
  • "May not" becomes "might not", and a lowercase "may" that grants a permission becomes "can".

These edits change or add a keyword, each to match another place that states the same rule:

Rule Before After Matches
A form the Client cannot render SHOULD respond with -32602 MUST The extensibility page's rule for an unknown variant
URL mode requirements "MUST follow these requirements:" above items that say SHOULD No keyword on the lead-in Each item's own keyword
auth/logout without advertised methods "Clients MAY call it only when…" "Clients MUST NOT call it unless…" The same page, further up
Terminal auth capability, schema description "The client SHOULD supply {} only when…" "Supplying {} means the client can reproduce…" The authentication page
Terminal exit signal name Only the schema had "Agents SHOULD use the conventional platform signal name" The tool calls page has it too The schema description
Migration guide restatements "Clients may send session/prompt…", "the Client must check…" MAY, MUST The pages

Schema descriptions against pages

  • auth/login links to the Authentication page. It linked to Initialization.
  • The resume response's lists are "current", not "initial".
  • The replayFrom builder method had an older copy of the field's description. It now has the same MUST and MUST NOT.
  • The tool calls page lists capabilities among the defaults of a new tool call.
  • A value's currentValue also changes through a setup response.
  • "Empty lists are omitted when serializing" is removed in three places. It describes an SDK, not the protocol.
  • args on a stdio MCP server is tagged string[], not array.

Prose rules

  • Benefit sentences and "-ing" clauses are reworded or removed.
  • Dashes that join clauses become periods.
  • Headings, step titles and tab titles use sentence case. The heading anchors do not change.
  • One draft page link pointed at a stable page.

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

  • Role names in the schema descriptions, which are lowercase about 1,200 times and capitalized about 440 times. That is a separate mechanical change.
  • Trait method summaries such as "The agent should respond with…", which an earlier sweep left lowercase on purpose.
  • v1, apart from the generated heading "Protocol level", which the generator shares between the versions.

Checks

  • The tests, cargo fmt, Prettier and the spell check pass.
  • Regenerating the schema a second time gives no diff.
  • Every draft copy differs from its stable page by the same number of lines as before.

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.
@benbrandt
benbrandt requested a review from a team as a code owner November 20, 2026 21:13
@benbrandt
benbrandt merged commit f82fede into main Nov 20, 2026
15 checks passed
@benbrandt
benbrandt deleted the docs/v2-consistency-sweep branch November 20, 2026 21:26
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant