Skip to content

docs(unstable-v2): fill gaps in the migration guide and the v2 change list - #2947

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-migration-guide-and-rfd-gaps
Nov 20, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-migration-guide-and-rfd-gaps

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

The migration guide and the v2 change list in the tracking RFD had fallen behind the spec pages. This brings both up to date. No spec page or schema changes.

Migration guide

Subagents are stable in v1 since #2939

  • The update table lists subagent_update, session_message and session_message_chunk as kept, with no Client capability in v2. They were listed as new.
  • The Subagents section no longer says "new in stable v2" or "draft feature".
  • The session tool call content item is described as kept, not added.

A rule that was too strict

  • The Subagents section told Clients to send no request for a child. It now allows tool_call/cancel and terminal/cancel for an item that advertises its own capabilities.cancel, as the Subagents page and the Clients checklist already do.

Steps missing from the checklists

  • Agents: version selection with -32022, rejecting a prompt with an unadvertised content type, $/cancel_request for pending requests on session/cancel and session/close, and the state_update before every resume response.
  • Agents item 14 said "Require and emit type discriminators". Clients send these configs, so it now says "Require".
  • Clients: type on every MCP server config, and a new authentication item.
  • SDKs: a new item for id: null and JSON arrays.

Rules that are new or stricter than v1 and were not in the guide

  • Agents MUST reject a prompt with a content type that is neither baseline nor advertised.
  • -32602 for an invalid session/list cursor is a MUST.
  • An Agent whose new session is not idle MUST send its state_update after the response.
  • A Client with no elicitation capability answers elicitation/create with -32601.
  • A new section, "Smaller rule changes", lists the uniqueness rules, late $/cancel_request, and joining adjacent text blocks.

Sentences that disagreed with another part of the guide

  • "The request is unchanged" for session/prompt, which gains idempotencyKey.
  • "Extensible like all v2 enums", where the guide also says a few enums are closed.
  • tool_call_update "gains the paused status", where cancelled is new too.

Schema-detail paragraph

  • Names SessionInfoUpdate.updatedAt next to SessionInfo.updatedAt, and says TerminalExitStatus.exitCode is signed.

RFDs

  • v2 change list (docs/rfds/v2/overview.mdx): adds the breaking changes it missed, with a revision entry. It now counts five error rules that became requirements. The terminal output entry no longer says there are no control methods.
  • Elicitation RFD: notes the -32601 answer in v2, with a revision entry.

Checks

  • Prettier and the spell check pass.

… list

Migration guide:

- Subagents are stable in v1 since #2939. The guide no longer calls them
  a draft feature or new in v2, and the update table lists
  `subagent_update`, `session_message` and `session_message_chunk` as
  kept.
- The Subagents section said to send no request for a child. It now
  allows `tool_call/cancel` and `terminal/cancel`, as the Subagents page
  and the Clients checklist do.
- The checklists gain steps that the guide body already requires:
  version selection with `-32022`, `$/cancel_request` for pending
  requests, the `state_update` before every resume response, `type` on
  MCP server configs sent by Clients, authentication for Clients, and
  request IDs and arrays for SDKs.
- The guide gains rules that are new or stricter than v1: rejecting a
  prompt with an unadvertised content type, `-32602` for an invalid
  `session/list` cursor, the `state_update` after a new session that is
  not idle, the `-32601` answer for a Client with no `elicitation`
  capability, and a short list of smaller rule changes.
- Three sentences that disagreed with another part of the guide are
  corrected, and the schema-detail paragraph names two more differences.

RFDs:

- The v2 change list gains the breaking changes it missed, counts five
  error rules, and no longer says terminals have no control method.
- The Elicitation RFD notes the `-32601` answer in v2.
@benbrandt
benbrandt requested a review from a team as a code owner November 20, 2026 20:06
@benbrandt
benbrandt merged commit f638a25 into main Nov 20, 2026
12 checks passed
@benbrandt
benbrandt deleted the docs/v2-migration-guide-and-rfd-gaps branch November 20, 2026 20:55
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