Skip to content

docs(schema): remove the remaining text on malformed-value handling - #2946

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-remove-receiver-handling
Nov 20, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-remove-receiver-handling

Conversation

@benbrandt

Copy link
Copy Markdown
Member

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.

Place Before After
Eleven v2 doc comments on configOptions and availableCommands "Senders MUST use an array, not null. Receivers treat null like omission." "Senders MUST use an array, not null."
Slash commands page, availableCommands "null is not a valid outbound value for this field." "Agents MUST NOT send null for this field."
Migration guide, commands in setup responses "null is not a valid outbound value." "Agents MUST NOT send null."
Slash commands page, command entries "…are invalid and are skipped like any other invalid command item." "…are invalid."
Tool calls page, terminal output "Clients SHOULD ignore a chunk … whose data isn't valid base64, keeping the bytes they already have. The other fields of that terminal_update still apply." removed
Tool calls page, patch paths "A Client can still strip a leading a/ or b/ from a relative path to tolerate Agents that send Git's default output…" removed
Elicitation page, form defaults "Clients SHOULD ignore a default that does not match its property schema." removed
Elicitation page, content "Receivers accept any JSON value in content and validate it against the schema, so an unexpected value invalidates only that property, not the whole response." "A content value can be any JSON value, such as the value of a custom or future property type."
Unstable mcp/message response description, v1 and v2 "Senders must include exactly one outcome. Receivers prefer result if both are present." "Senders MUST include exactly one outcome."

Notes

  • The two removals on the tool calls page lose no rule. The page already says that data is RFC 4648 base64 and that patch paths are absolute with no a/ or b/ prefix.
  • No sender rule is added for default. The page has none today, and adding one would be a new requirement.
  • The session setup page already says "Agents MUST NOT send null" for configOptions and availableCommands. The slash commands page and the migration guide now use the same words.
  • This does not change how the SDKs deserialize. They can stay lenient toward peers that send these shapes.

v1

The unstable mcp/message response description is the same text in v1 and v2, so both change. Nothing in the stable v1 schema changes.

Checks

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

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.
@benbrandt
benbrandt requested a review from a team as a code owner November 20, 2026 20:02
@benbrandt
benbrandt merged commit f3bc3b3 into main Nov 20, 2026
15 checks passed
@benbrandt
benbrandt deleted the docs/v2-remove-receiver-handling branch November 20, 2026 20:54
@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