Skip to content

docs(unstable-v2): clarify what replay_complete guarantees - #2927

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-replay-completeness
Nov 20, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-replay-completeness

Conversation

@benbrandt

Copy link
Copy Markdown
Member

A full session/resume replay covers all the conversation history the Agent retained for the requested session, not necessarily everything the Client saw live. When the session is already active on the same connection, a live update sent before the Agent received the request can arrive after the Client sent it. Even an empty replay can therefore look to the Client like a message followed by replay_complete.

This change removes the recommendation to treat replay as an authoritative replacement for all session entities. It keeps the Agent's ordering rules: hold live updates after receiving the replay request, send replay_complete after the requested replay (including an empty one), and then synchronize current state before the successful response. The marker identifies the end of replay, not its start. Child markers still apply per session. No new marker, request ID, capability, or wire-format change is needed.

The baseline and Draft guides, migration guide, RFDs and generated schema references now use the same interpretation. The outcome table distinguishes a completed replay from a successful resume.

Validation: npm run generate, npm run check, the targeted v2 replay and schema-generator tests, and Mintlify validation and link checks for all changed MDX pages passed. Only the ReplayComplete description changed in the two v2 JSON schemas. Full-site Mintlify validation remains blocked by an unrelated parse error at docs/get-started/registry.mdx:954, also reproduced on unchanged main.

@benbrandt
benbrandt requested a review from a team as a code owner November 20, 2026 10:59
@benbrandt
benbrandt enabled auto-merge (squash) November 20, 2026 11:00
@benbrandt
benbrandt merged commit 99678ce into main Nov 20, 2026
13 checks passed
@benbrandt
benbrandt deleted the docs/v2-replay-completeness branch November 20, 2026 11:04
@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