Skip to content

docs(a2a): migrate integration docs + extractor to A2A 1.0 with dual-wire compat - #2968

Merged
bokelley merged 4 commits into
mainfrom
bokelley/a2a-1.0-update
Apr 24, 2026
Merged

bokelley merged 4 commits into
mainfrom
bokelley/a2a-1.0-update

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

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/client bump tracked separately.

What's in scope

  • Wire format migration. Part loses kind discriminator (content by field presence); ProtoJSON enums (ROLE_USER, TASK_STATE_COMPLETED); Agent Card uses supportedInterfaces[]; file Parts use url/filename/mediaType; streaming and push payloads wrap in StreamResponse oneof ({ task } / { statusUpdate } / { artifactUpdate } / { message }).
  • New task states. TASK_STATE_REJECTED (terminal, adcp_error in artifact) and TASK_STATE_AUTH_REQUIRED (interim, auth challenge in status.message.parts).
  • Dual compat. Extraction accepts both 1.0 and v0.3 wire shapes. Server side: dual-advertising Agent Card + enable_v0_3_compat=True playbook documented.
  • Security hardening. Normative auth-challenge URL validation, cancel-origin reconciliation (client-side, not seller-trusted), { message } envelope MUST-ignore, seller-controlled string hygiene, nested envelope rejection, exact-match state normalization.
  • Spec contradictions fixed. Pre-existing: quick-reference table vs algorithm fallback mismatch; interim example placed data in artifacts instead of status.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

  • 69/69 reference-extractor tests pass (was 34 pre-migration).
  • 14 new A2A 1.0 wire-format vectors added alongside 18 existing v0.3 vectors.
  • New "A2A 1.0 safety hardening" suite covering nested envelopes, array/null inner values, response: null/response: [] not-a-wrapper, exact-match normalization.
  • Precommit passed (631 unit tests + typecheck).
  • Docs preview renders cleanly.
  • Spot-check: copy the handleA2aResponse + helpers from a2a-response-format.mdx and verify they work end-to-end on a 1.0 payload.

Follow-ups (filed, not blocking this PR)

  • adcp#2966 — wrapper policy for status-message DataParts, prototype-pollution test hardening, concrete size limits, intermediary-injection guidance, test-vector expansion (100+ DataParts, malformed envelopes, combinatorial state×envelope).
  • adcp-client-python#263 — cross-repo alignment: wrapper policy (docs reject, Python unwraps), webhook envelope wrapping (docs say StreamResponse, Python emits bare), tests for rejected/auth-required, 1.0-client → 0.3-server integration test, 4.1.0 CHANGELOG subclasser-breakage call-outs.

Reference

🤖 Generated with Claude Code

…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]>
bokelley and others added 2 commits April 23, 2026 20:49
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
@github-actions

github-actions Bot commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor

Schema Link Check Results

Commit: 7560f16 - test(a2a): remove duplicate status key in exact-match normalization test

⚠️ Warnings (schema not yet released)

These schemas exist in source but haven't been released yet. The links will be broken until the next version is published:

  • https://adcontextprotocol.org/schemas/v3/collection/create-collection-list-request.json
    • Schema exists in latest (source) but not yet released in v3
    • Action: This link will work after next 3.x release is published
  • https://adcontextprotocol.org/schemas/v3/collection/create-collection-list-response.json
    • Schema exists in latest (source) but not yet released in v3
    • Action: This link will work after next 3.x release is published
  • https://adcontextprotocol.org/schemas/v3/collection/delete-collection-list-request.json
    • Schema exists in latest (source) but not yet released in v3
    • Action: This link will work after next 3.x release is published
  • https://adcontextprotocol.org/schemas/v3/collection/get-collection-list-request.json
    • Schema exists in latest (source) but not yet released in v3
    • Action: This link will work after next 3.x release is published
  • https://adcontextprotocol.org/schemas/v3/collection/get-collection-list-response.json
    • Schema exists in latest (source) but not yet released in v3
    • Action: This link will work after next 3.x release is published
  • https://adcontextprotocol.org/schemas/v3/collection/list-collection-lists-request.json
    • Schema exists in latest (source) but not yet released in v3
    • Action: This link will work after next 3.x release is published
  • https://adcontextprotocol.org/schemas/v3/collection/update-collection-list-request.json
    • Schema exists in latest (source) but not yet released in v3
    • Action: This link will work after next 3.x release is published
  • https://adcontextprotocol.org/schemas/v3/core/creative-consumption.json
    • Schema exists in latest (source) but not yet released in v3
    • Action: This link will work after next 3.x release is published
  • https://adcontextprotocol.org/schemas/v3/core/vendor-pricing-option.json
    • Schema exists in latest (source) but not yet released in v3
    • Action: This link will work after next 3.x release is published
  • https://adcontextprotocol.org/schemas/v3/enums/specialism.json
    • Schema exists in latest (source) but not yet released in v3
    • Action: This link will work after next 3.x release is published

To fix: Either:

  1. Wait for the next release and merge this PR after the release is published
  2. Use latest instead of a version alias if you need the link to work immediately (note: latest is the development version and may change)
  3. Coordinate with maintainers to cut a new release before merging

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]>
@bokelley
bokelley merged commit 193e262 into main Apr 24, 2026
16 checks passed
@bokelley
bokelley deleted the bokelley/a2a-1.0-update branch April 24, 2026 01:01
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]>
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