Repository navigation
docs(a2a): migrate integration docs + extractor to A2A 1.0 with dual-wire compat - #2968
Merged
Merged
Conversation
…wire compat
A2A 1.0 (Linux Foundation) introduces breaking wire-format changes and
response-placement additions. Updates the AdCP integration guide, canonical
response format, and normative extraction spec to use 1.0 shapes while
preserving v0.3 compatibility during the transition.
Wire-format changes covered: Part loses the kind discriminator (content type
by field presence: text/data/url/raw); Role and TaskState use ProtoJSON
canonical form (ROLE_USER, TASK_STATE_COMPLETED); Agent Card uses
supportedInterfaces[]; file Parts use url/filename/mediaType; streaming and
push-notification payloads wrap in StreamResponse oneof
({ task } / { statusUpdate } / { artifactUpdate } / { message }); two new
states added (TASK_STATE_REJECTED terminal, TASK_STATE_AUTH_REQUIRED interim).
Extraction algorithm now unwraps stream envelopes exactly once (nested
envelopes rejected as malformed), normalizes state with exact ASCII match,
detects DataParts by field presence, and handles all 8 states. Added
normative security rules for auth-challenge URL validation, cancel origin
reconciliation, seller-controlled string hygiene, and { message } envelope
handling.
69 tests pass (was 34). Added 14 A2A 1.0 wire-format vectors and a safety
hardening suite. Documentation and test-vector surface only — no server,
SDK, or protocol schema changes. Follow-ups tracked in adcp#2966 and
adcp-client-python#263.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Two async-response-data.json references had reverted to /schemas/latest/ during the 1.0 migration. Align with the main-branch pin to /schemas/v3/. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
# Conflicts: # docs/building/integration/a2a-guide.mdx
Contributor
Schema Link Check ResultsCommit:
|
CodeQL / github-code-quality flagged the overwritten property. First `status` was silently shadowed by the second; keep only the complete second object. No behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
6 tasks done
bokelley
added a commit
that referenced
this pull request
Oct 6, 2026
In the SI manifest example, the A2A transport URL pointed to /.well-known/agent.json (pre-1.0). A2A 1.x canonicalizes /.well-known/agent-card.json (spec §8.2/§14.3). Update to match. The a2a-guide.mdx was already corrected in PR #2968; this closes the remaining stale reference in the SI chat protocol doc. Claude-Session: https://claude.ai/code/session_01X5YRLGeigcCysKhXsbpEvs Co-authored-by: Claude <[email protected]>
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.
Summary
A2A 1.0 (Linux Foundation) shipped with breaking wire-format changes and new response-placement surface. This PR updates the three AdCP A2A docs and the normative extraction spec to the 1.0 wire format while preserving v0.3 compatibility during the transition.
No protocol schema, server, or SDK changes — documentation, reference extractor, and test-vector surface only. Published JS SDK (
@a2a-js/sdk) still on 0.3.x;@adcp/clientbump tracked separately.What's in scope
kinddiscriminator (content by field presence); ProtoJSON enums (ROLE_USER,TASK_STATE_COMPLETED); Agent Card usessupportedInterfaces[]; file Parts useurl/filename/mediaType; streaming and push payloads wrap inStreamResponseoneof ({ task }/{ statusUpdate }/{ artifactUpdate }/{ message }).TASK_STATE_REJECTED(terminal,adcp_errorin artifact) andTASK_STATE_AUTH_REQUIRED(interim, auth challenge instatus.message.parts).enable_v0_3_compat=Trueplaybook documented.{ message }envelope MUST-ignore, seller-controlled string hygiene, nested envelope rejection, exact-match state normalization.artifactsinstead ofstatus.message.parts; stale state arrays in code samples.Expert review coverage
Multi-round review: protocol expert × 4, product expert × 3, code reviewer, security reviewer. Protocol + product gave "ship it" on final pass. Code review (4 must-fix) and security review (2 must-fix, 3 priority should-fix) all landed.
Test plan
response: null/response: []not-a-wrapper, exact-match normalization.handleA2aResponse+ helpers froma2a-response-format.mdxand verify they work end-to-end on a 1.0 payload.Follow-ups (filed, not blocking this PR)
StreamResponse, Python emits bare), tests forrejected/auth-required, 1.0-client → 0.3-server integration test, 4.1.0 CHANGELOG subclasser-breakage call-outs.Reference
🤖 Generated with Claude Code