Skip to content

docs(unstable-v2): use the pages' requirement keywords in descriptions and restatements - #2957

Merged
benbrandt merged 2 commits into
mainfrom
docs/v2-requirement-keywords
Nov 20, 2026
Merged

benbrandt merged 2 commits into
mainfrom
docs/v2-requirement-keywords

Conversation

@benbrandt

@benbrandt benbrandt commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

A lowercase "must", "should" or "may" is not a requirement (RFC 8174), and where a rule is stated in more than one place it should use the same keyword in each. These places stated a rule in lowercase, or with no keyword, where the page that owns the rule has one. No rule is new: each keyword is the one the page already uses.

Schema descriptions

Each is regenerated into the schema and the schema reference pages.

Description Before After
ResumeSessionRequest.replayFrom "the Agent should resume without replaying" and "the Agent should replay all retained" "the Agent MUST NOT replay" and "the Agent MUST replay all retained"
replay_complete "The Agent sends this once" and "The Agent does not send it when…" "The Agent MUST send this exactly once" and "The Agent MUST NOT send it when…"
notice (two places) "Agents must not rely on", "Clients may ignore" "Agents MUST NOT rely on", "Clients MAY ignore"
subagent_update state "Consumers should treat duplicate reports idempotently" "Clients MUST apply duplicate reports idempotently"
unknown state "may retain it", "does not invent a final status", "do not present them" "MAY retain it", "MUST NOT invent a final status", "MUST NOT present them"
background list "not also as its tool call" "the Agent MUST NOT also list a tool call whose only live work is a listed terminal"
session tool call content "must already be known" "MUST already be known"
session/prompt response messageId "neither may precede insertion" "MUST NOT precede insertion"
session.additionalDirectories capability "Agents may return" "Agents MAY return"

The subagent_update description also said "No separate child load, resume, or subscription is needed". There is no load method, so "load" is dropped.

One of these is wider than a keyword fix. The unknown state description applies to every session. The rule that the Agent does not invent a final status for unfinished tool calls has its MUST NOT on the Subagents page, for a child. The description now has it for any session, in line with #2945.

Pages

Stable and draft:

  • Error page: "They also reject an initialize repeated after another request" is now "They MUST also reject". The migration guide already lists it as a MUST.
  • Initialization page: "Agents reject them with -32600" is now "Agents MUST reject them".
  • Content page: "Agents reject others with -32602" is now "Agents MUST reject others".
  • Prompt lifecycle page: "Clients may expose tools through MCP servers" is now "Clients MAY expose".
  • Session setup page: "they may not store a session that was never prompted, may expire old sessions, or may remove one" is now "they can skip storing…, expire old sessions, or remove one". "May not store" also read as "is not allowed to store".
  • Overview: "The Agent may discard" is now "The Agent can discard".

Checks

  • The tests, cargo fmt, Prettier and the spell check pass.
  • Regenerating the schema a second time gives no diff.

…s and restatements

A lowercase "must", "should" or "may" is not a requirement, and a rule
that is stated in more than one place uses the same keyword in each.

Schema descriptions that stated a rule in lowercase or with no keyword,
where the page has one: full replay and resume without replay on
`replayFrom`, when `replay_complete` is sent, notices, duplicate child
state reports, the `unknown` state, the background list, the referenced
session of `session` tool call content, the user message update of a
prompt, and `additionalDirectories` in `session/list`.

Page sentences that restated a MUST without the keyword: rejecting a
late `initialize`, rejecting requests before initialization, and
rejecting unadvertised prompt content types. Three sentences used "may"
for a possibility, one of them as "may not store", which also reads as a
prohibition.
@benbrandt
benbrandt requested a review from a team as a code owner November 20, 2026 20:21
A Client cannot load a session. The method is `session/resume`.
@benbrandt
benbrandt merged commit d75511b into main Nov 20, 2026
16 checks passed
@benbrandt
benbrandt deleted the docs/v2-requirement-keywords branch November 20, 2026 21:00
@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