Skip to content

fix(a2a): send the A2A 1.0 version header - #196612

Closed
DIZ-admin wants to merge 1 commit into
openclaw:mainfrom
DIZ-admin:codex/a2a-version-header
Closed

DIZ-admin wants to merge 1 commit into
openclaw:mainfrom
DIZ-admin:codex/a2a-version-header

Conversation

@DIZ-admin

Copy link
Copy Markdown

What Problem This Solves

Outbound A2A requests omit the required protocol-version header, so version 1.0 peers may interpret them as the older 0.3 protocol.

User Impact

A2A clients now identify version 1.0 on both canonical requests and the legacy-method retry.

Why This Change Was Made

The A2A 1.0 client contract requires A2A-Version on each request. The request builder owns one shared header set, so both send paths stay consistent. Documentation examples show the same contract.

Evidence

  • pnpm test extensions/a2a/src/outbound.test.ts --maxWorkers=1 — 11 passed.
  • pnpm tsgo:extensions — passed.
  • Oxlint, formatting, docs formatting, MDX checks, and git diff --check — passed.
  • Autoreview against current upstream/main — clean, score 0.94.
  • Live Gateway-to-peer round-trip remains pending after merge and Mac deployment.

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: a2a size: XS labels Nov 10, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR adds the A2A 1.0 version header to outbound requests and documentation examples.

Example: OpenClaw sends “hello” to configured peer hermes.

  • Before: The SendMessage request omits A2A-Version, which the specification says servers interpret as version 0.3.
  • After: The request declares A2A-Version: 1.0, including when retrying with message/send.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused implementation has no identified correctness defect, but mocked requests do not satisfy the external-PR behavior-proof gate; no persisted data model changes or migrations are introduced.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Version-aware A2A peers can interpret OpenClaw's version 1.0 requests as version 0.3.
Reason: The patch restores the existing documented protocol contract without adding configuration, APIs, or another transport owner.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this PR addresses a current protocol-contract defect with a focused change, and no definite introduced bug was found.

Priority: P2
Reviewed head: 17842b49686d87e7b38f55f252f93bd1bbc2f720

Before merge

  • Add real behavior proof - The supplied tests exercise the sender with mocked fetch, while the PR explicitly leaves the live Gateway-to-peer round trip pending after merge; before merging, the contributor should supply redacted terminal output or logs showing A2A-Version: 1.0 and successful task receipts on canonical and compatibility requests, including existing-peer behavior after upgrading from latest stable, with IPs, API keys, phone numbers, and non-public endpoints removed. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.

Findings

None.

Tests

  • Missing end-to-end proof: Provide a recorded Gateway-to-peer send covering canonical and legacy-method requests, including an upgrade from latest stable with existing peer settings intact; a red-on-base test result is also not supplied.
Agent review details

How this fits together

The A2A channel adapter accepts outbound text and a configured peer, sends JSON-RPC through the shared SSRF guard, and returns the remote task identifier as a delivery receipt.

flowchart LR
  A[Outbound text] --> B[A2A channel adapter]
  B --> C[Shared request builder]
  C --> D[SSRF guarded HTTP transport]
  D --> E[Configured peer]
  E --> F[Task identifier and receipt]
Loading

Technical review

Best possible solution:

Retain the single header addition in the existing shared outbound request builder and the matching documentation examples.

Do we have a high-confidence way to reproduce the issue?

Current-main source unconditionally omits the header required by the canonical specification; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The defect is an omitted version declaration, the invariant is that every A2A 1.0 request declares its version, and the existing shared header set is the smallest complete repair.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c6fc5bd784b5.

Provenance checked

  • Outbound request headers and documentation examples keeps the original intent (ad1e946: The original merged feature intentionally implements A2A 1.0 and retains dotted-method interoperability aliases; its header set omitted the protocol declaration without documenting a reason for that omission.)
  • Compatibility retry and request handoff keeps the original intent (000d86d: The later lifecycle repair requires a current handoff check before each peer request while preserving accepted results and the compatibility retry; this patch leaves those mechanics intact.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit ad1e946 adds extensions/a2a/src/outbound.ts:52 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ad1e946c7ada; files: extensions/a2a/src/outbound.ts)
  • Agustin Rivera: Raw commit 8bee143 adds extensions/a2a/src/outbound.ts:56 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 8bee14300743; files: extensions/a2a/src/outbound.ts)

PR surface

Source +1, Tests +12, Docs +2. Total +15 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 1 12 0 +12
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 15 0 +15

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: The missing required header affects interoperability with version-aware A2A peers on an optional channel.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: The missing required header affects interoperability with version-aware A2A peers on an optional channel.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 10, 2026, 5:57 AM ET / 10:57 UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: a2a docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant