Repository navigation
docs(unstable): remove malformed-value handling from the spec text - #2891
Merged
Merged
Conversation
Tolerant deserialization (`DefaultOnError`, `VecSkipError`, and the `x-deserialize-*` schema markers) is SDK leniency toward non-conforming Clients and Agents. It is not protocol behavior and can change, so the spec pages and schema descriptions no longer say what a receiver does with a malformed value. - Remove "a malformed value falls back to no controls" from `ToolCallCapabilities`, `TerminalCapabilities` and `CursorCapabilities`. It was also wrong for a malformed `capabilities` value on an update. - Drop "malformed" from the stop reason, `background`, session status `state` and `_meta` statements on the pages, in the migration guide and in the schema descriptions. - Remove the Client rule to hide an empty select group, and the notes on skipped prompt suggestions, skill fields and usage in the draft pages. - Remove the same notes from the Background Work and Session Cursors RFDs. - Add both rules to AGENTS.md. Rules that reject a value, such as `-32602` for malformed params, are unchanged. No behavior changes.
benbrandt
enabled auto-merge (squash)
November 19, 2026 20:01
Merged
This was referenced Nov 19, 2026
benbrandt
added a commit
that referenced
this pull request
Nov 20, 2026
…2946) 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.
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 Rust types deserialize some fields leniently (
DefaultOnError,VecSkipError), and the schema carries matchingx-deserialize-*markers. That is SDK leniency toward non-conforming Clients and Agents. It is not protocol behavior and can change.Several spec pages and schema descriptions described it anyway: "a malformed value is treated as omitted", "is skipped", "falls back to". One of those statements was also wrong.
ToolCallCapabilitiesandTerminalCapabilitiessaid a malformed value falls back to no controls, but a malformedcapabilitiesvalue on an update is treated as omitted and the previous value stays.This removes those statements. The pages and descriptions say what a conforming sender sends.
Changes
Stable v2 pages and schema descriptions
ToolCallCapabilitiesandTerminalCapabilities.null, malformed, or unknown" on the prompt lifecycle page, in the migration guide, and in the idlestate_updatedescriptions.statedescription._meta: remove "Receivers treat any other value as omitted" from the extensibility page and theMetadescription.Draft pages and unstable features, v1 and v2
CursorCapabilitiesand "A malformedcapabilitiesvalue is treated as omitted" from the draft pages.usage: remove "discard malformed usage rather than rejecting the idle transition".mcp/messagecarrier: "Null or invalid values are treated as absent" now says omitted andnullare equivalent.RFDs
backgroundandcapabilitiesvalues, with a revision entry in each.AGENTS.md
x-deserialize-*markers are not protocol behavior, so ignore them when writing or reviewing the spec.Not changed
-32602for malformed params.schema/v1/schema.json.x-deserialize-*markers. No behavior changes.Checks
cargo fmtand the spell check pass.