Repository navigation
docs(unstable-v2): use the pages' requirement keywords in descriptions and restatements - #2957
Merged
Merged
Conversation
…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.
A Client cannot load a session. The method is `session/resume`.
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
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.
ResumeSessionRequest.replayFromreplay_completenotice(two places)subagent_updatestateunknownstatebackgroundlistsessiontool call contentsession/promptresponsemessageIdsession.additionalDirectoriescapabilityThe
subagent_updatedescription 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
unknownstate 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:
initializerepeated after another request" is now "They MUST also reject". The migration guide already lists it as a MUST.-32600" is now "Agents MUST reject them".-32602" is now "Agents MUST reject others".Checks
cargo fmt, Prettier and the spell check pass.