Repository navigation
feat(v2)!: bump ACP schema to 2.0.0-beta.4 - #208
Merged
Merged
Conversation
BREAKING CHANGE: Update the experimental v2 bindings and runtime to the beta.4 schema, which removes NES and document notifications and requires a non-null request ID for request-scoped elicitation.
PsiACE
force-pushed
the
feat/acp-v2-schema-beta.4
branch
from
November 26, 2026 09:23
bcdb7cc to
9f97bea
Compare
PsiACE
marked this pull request as ready for review
November 28, 2026 03:16
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.
Updates the experimental ACP v2 schema bindings, runtime, and docs to ACP schema
2.0.0-beta.4.Summary
schema/v2/): Regeneratedsrc/acp/experimental/v2/{schema,meta,interfaces,agent,client}.pyandsrc/acp/schema.py. Adds beta.4 session/auth/cancel methods, drops removed NES and document notifications, requires non-nullrequestIdfor request-scoped elicitation, preserves custom JSON values in accepted elicitation content, and exports reusable v2 union aliases (SessionUpdate,ContentBlock,StateUpdate,BackgroundWork,AvailableCommand).v2._schema_base.BaseModelviatrack_defaulted_fields()(leaving v1 validation semantics and performance unchanged), moves model-specific rules into scoped bases and generated field validators, composesskip_invalid_items+use_default_on_erroron optional dual-annotated lists, and returns JSON-safeValidationErrorpayloads (-32602) while mapping invalid v2 handler results to-32603.StrictIntfor v2protocolVersion(disabling legacy string coercion on v2), returns-32022with{requested, supported}for unsupported older versions, negotiates higher versions down to2, encapsulates repeatinitializeserialization and request locking insideInitializationState(preserving its existing API and prior initialization on failed repeats), translatesauth.terminal: {}toTrueon v2→v1 fallback, and configures v2 stdio batch rejection onNdjsonTransportwithout changingConnection.__init__.docs/experimental-v2.mdfor Preview.Verification
make gen-check,make check,make test(677 passed, 1 skipped),make docs-testv0.5.0: CONFORMANT on both directv2.run_agentandAgentProtocolRouter(v2=...)(300 passed, 0 failed, 15 skipped), 18 / 18 dual-stackAgentProtocolRouter(v1=..., v2=...)initialization checks (incl.ACP-INIT-208), and v1 CONFORMANTv2.12.0and Rust SDKv5.6.1: all 4 directions passed