Skip to content

feat(schema): stabilize plan operations - #2898

Merged
benbrandt merged 1 commit into
mainfrom
benbrandt/stabilize-plan-operations
Nov 20, 2026
Merged

benbrandt merged 1 commit into
mainfrom
benbrandt/stabilize-plan-operations

Conversation

@benbrandt

Copy link
Copy Markdown
Member

What changes

Move Plan Operations Support from Preview to Completed without changing its wire format. A plan_update replaces the whole plan with that ID, even when it switches between items and markdown. Markdown content is a snapshot; its optional absolute path is not needed to display it. plan_removed removes one known ID and does nothing for an unknown ID.

  • V1: clientCapabilities.plan: {} still opts in. Clients that omit it or send null continue to get the legacy plan update for checklists.
  • V2: Markdown and removal join items in the baseline with no plan capability. This does not stabilize v2 as a whole. Older v2 clients may ignore removal, so an Agent can send empty items for the same ID first.
  • Rust: The schema crate no longer needs unstable_plan_operations. Downstream manifests that explicitly enable or forward that feature should drop it when updating the schema dependency. Regenerated all four schema and reference-doc variants, updated the migration guides, and added the completion announcement.

The implementation table now reflects Codex adapter v2.8.0: an explicitly emptied checklist emits empty entries in both versions, followed by plan_removed on v2 only. Finishing a plan does not remove it.

For sign-off

This PR proposes the protocol contract, not fixes in the adapters or clients. The implementation review found that Claude can replay the original proposal instead of the edited approval, and Codex's opt-in AIR delta stream does not carry a complete standard Markdown snapshot after the first update. Please also check removal after idle and a child plan whose final text arrives only as deltas. Neither listed adapter currently sends standard plan.path, so an end-to-end file-backed plan remains unverified. These are called out for the core team's decision before merge.

Validation

  • npm run generate and npm run check passed.
  • The plan schema generator test passed in all four published configurations. Rust plan tests also passed with unstable_protocol_v2 and no other unstable features.
  • Validated the RFD examples against the generated JSON schemas and checked old baseline behavior. Malformed known Markdown/removal frames still fail, while v2 still accepts an unknown content type with a planId.

@benbrandt
benbrandt marked this pull request as ready for review November 19, 2026 20:49
@benbrandt
benbrandt requested a review from a team as a code owner November 19, 2026 20:49
Move Plan Operations Support to Completed. Publish identified checklists, Markdown snapshots, and removal in the default schemas. Keep the v1 client opt-in and legacy checklist, and require no plan capability in v2.

Document how Codex 2.8.0 clears a checklist for older v2 clients before sending plan_removed.
@benbrandt
benbrandt force-pushed the benbrandt/stabilize-plan-operations branch from c8e0760 to 8ef8e06 Compare November 20, 2026 10:57
@benbrandt
benbrandt enabled auto-merge (squash) November 20, 2026 10:58
@benbrandt
benbrandt merged commit 2d1a6e3 into main Nov 20, 2026
14 checks passed
@benbrandt
benbrandt deleted the benbrandt/stabilize-plan-operations branch November 20, 2026 11:01
@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