Repository navigation
docs(schema): remove the remaining text on malformed-value handling - #2946
Merged
Merged
Conversation
The spec says what a conforming sender sends. It does not say what a receiver does with a malformed value. #2891 removed that kind of text, and these places were missed: - Eleven v2 doc comments on `configOptions` and `availableCommands` said "Receivers treat `null` like omission" after the sender rule. - The slash commands page said invalid command entries "are skipped". - The tool calls page told Clients to ignore output data that is not valid base64, and let them strip `a/` and `b/` from a relative patch path. Both are sender rules already: `data` is base64, and patch paths are absolute with no prefix. - The elicitation page told Clients to ignore a `default` that does not match its property schema, and said an unexpected `content` value invalidates only that property. - The unstable `mcp/message` response description, in v1 and v2, said which outcome a receiver prefers when both are present. The slash commands page and the migration guide also said "`null` is not a valid outbound value". They now say "Agents MUST NOT send `null`", as the session setup page does.
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
The spec says what a conforming sender sends. It does not say what a receiver does with a malformed value. #2891 removed that kind of text, and these places were missed.
Changes
Each page change is also in its
draft/copy.configOptionsandavailableCommandsnull. Receivers treatnulllike omission."null."availableCommandsnullis not a valid outbound value for this field."nullfor this field."nullis not a valid outbound value."null."dataisn't valid base64, keeping the bytes they already have. The other fields of thatterminal_updatestill apply."a/orb/from a relative path to tolerate Agents that send Git's default output…"defaultthat does not match its property schema."contentcontentand validate it against the schema, so an unexpected value invalidates only that property, not the whole response."contentvalue can be any JSON value, such as the value of a custom or future property type."mcp/messageresponse description, v1 and v2resultif both are present."Notes
datais RFC 4648 base64 and that patch paths are absolute with noa/orb/prefix.default. The page has none today, and adding one would be a new requirement.null" forconfigOptionsandavailableCommands. The slash commands page and the migration guide now use the same words.v1
The unstable
mcp/messageresponse description is the same text in v1 and v2, so both change. Nothing in the stable v1 schema changes.Checks
cargo fmt, Prettier and the spell check pass.