Skip to content

fix(storyboard): sign the request the official A2A client emits - #2967

Merged
bokelley merged 11 commits into
adcontextprotocol:mainfrom
KonstantinMirin:fix/storyboard-a2a-official-client
Sep 20, 2026
Merged

bokelley merged 11 commits into
adcontextprotocol:mainfrom
KonstantinMirin:fix/storyboard-a2a-official-client

Conversation

@KonstantinMirin

@KonstantinMirin KonstantinMirin commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

What an A2A run grades today

Nothing. Every request-signing vector reports signing_transport_unavailable.

#2958 made that fail-closed, and it was right: before it, the runner POSTed an MCP initialize at an A2A endpoint, took the 405, and reported it as a signature failure. Reporting a coverage gap beats reporting a false verdict.

But it is a stop-gap, and it is permanent until the dispatch is wired. This wires it — in the shape #2958's own comment in probe-dispatch.ts described as the correct one:

"Wiring it means signing a request the official client issues — applying each vector's RFC 9421 headers to that client's own request"

Nothing here frames an A2A envelope

@a2a-js/sdk's ClientFactory resolves the agent card and builds the call. The request is captured at the SDK's own fetchImpl seam, and those exact bytes are signed. Every protocol decision belongs to the official client:

decision who makes it
endpoint the card's supportedInterfaces[]
JSON-RPC method name the SDK, per the card's protocolVersion
a2a-version header the SDK, from that same version
proto-JSON encoding the SDK (role → "ROLE_USER", never 1)
payload key the SDK (input on 1.x, parameters on 0.x)

Observed rather than assumed, and asserted in tests. One cancelTask call, two cards:

card protocolVersion=1.0   → {"jsonrpc":"2.0","method":"CancelTask","params":{},"id":1}    a2a-version: 1.0
card protocolVersion=0.3.0 → {"id":1,"jsonrpc":"2.0","method":"tasks/cancel","params":{}}  a2a-version: 0.3

The second line is why this matters for vector 028. tasks/cancel is the method AdCP's protocol_methods_* namespace names — security.mdx @ 3.1.1 :1045 cites "A2A 0.3.0 §7.x defines task-lifecycle methods (tasks/cancel, tasks/get, tasks/resubscribe)". The official client emits it natively for a 0.3 agent. No envelope is framed to produce it.

Ordering: the version header is inside the signature base

Capture happens before signing, so a2a-version is part of the request the signer sees. A header added after signing sits outside the base the verifier reconstructs, and every vector would fail for a reason unrelated to the agent's verifier.

Fail-closed is preserved, not replaced

resolveVectorTransport still returns no framing for A2A. It cannot answer the real question — whether the agent's card resolves to a JSONRPC interface — because that is a fetch and the function is synchronous.

The decision moved into the async dispatcher:

All 44 tests in request-signing-vector-transport.test.js pass unchanged. That is deliberate: this does not delete behaviour you shipped on purpose. It is the "keep it reachable as a fallback" option from the #2964 thread, implemented rather than asked about.

Tests

7 new. Each asserts that a protocol decision was the SDK's, not this repo's — a card is served over loopback and the SDK resolves it, so a passing test is evidence the SDK chose the endpoint, the method name, the version header and the encoding.

The availability gate is graded both ways: a resolvable card makes dispatch available and names the endpoint it resolved; an unreachable agent stays unavailable rather than inventing an endpoint from the agent URL.

npm run test:node:fast: 125 pass, 0 fail. (handler-controlled-flow.test.js fails on unmodified main as well — verified by stashing this branch.)

On #2964

Closed with three objections. The first was fair and this PR is the answer to it: that branch hand-built the envelope, this one does not build one at all.

The other two are worth re-examining against this repo's own source before they are applied to this PR:

  • "vector 028 carries an MCP tasks/cancel envelope." tasks/cancel is an A2A method — MCP defines no such method — and builder.ts:295-299 already says so: "The fixture body is already a JSON-RPC envelope with method: "tasks/cancel" — NOT a tools/call envelope." 028 is the one vector that is natively A2A.
  • "an invented binding the contract does not specify." The shipped MCP path re-frames the same REST fixtures into a tools/call envelope built by hand in wrapMcpEnvelope, with params.name derived from the fixture's URL path. If re-framing a REST fixture is inventing a binding, that one is invented too. This PR invents neither — it signs what the official client emits.

@a2a-js/sdk stays a peer dependency; the import is dynamic and inside the A2A path, so grading an MCP agent never loads it.


Verified against a live agent — both cards now grade identically

Run on a real seller (prebid/salesagent, which implements the verifier transport-independently), this SDK built from this branch:

mcp: passed=59 failed=23 not_selected=10 graded=82
a2a: passed=59 failed=23 not_selected=10 graded=82

Symmetric difference 0. Same 82 vectors graded, same 59 passing, same 23 failing. That equality is the property worth having: two cards that grade different vector sets compare nothing.

The remaining 23 are the same non-signing gaps both surfaces always had, plus two vectors — negative-007-missing-content-digest and negative-018-digest-covered-when-forbidden — that fail identically on both transports because this build lacks the agentCapability wiring in #2963. Their symmetry is the evidence they are not transport defects.

Three defects this measurement found, each fixed here

Getting to that equality took three corrections, and the first two were only findable against a live verifier:

  1. 32367ae — duplicate Content-Type on the wire. A plain object spread is case-sensitive; the fixture's Content-Type and the client's content-type both survived it, and the request carried the header twice. A conformant verifier refuses that at checklist step 1 as request_signature_header_malformed, before evaluating anything the vector grades. This was 16 of 27 A2A failures. A2A went 42p → 66p.

  2. c49689d — the fixture's deliberate malformation was being overwritten. Merging the other way fixed the duplicate but broke negative-022-multi-valued-content-type, whose multi-valued Content-Type is the fault under test. The transport now fills only gaps (a2a-version, accept) and never replaces a header the fixture names.

  3. 26870d7 — URL-edge vectors were graded on A2A. A2A graded 90 vectors to MCP's 82, and the extra 8 were the canonicalization positives (005–008), reported as passes. Their edge lives in the vector URL's port/path/query, which any single-endpoint transport neutralizes — that skip existed but was gated on transport === 'mcp', and A2A routes every vector to the one endpoint its card names for exactly the same reason. Coverage claimed and not delivered; the gate now reads "not raw", which is what the condition always meant.

On the Ladon medium finding (ff091ad)

Correct, and fixed. The 022 guard located the vector and then built loaded.positive[0], asserting only a2a-version/accept — gap-fills present under either merge order, so it passed with the bug in place. It now hands the transport a content-type differing from the fixture's and asserts the fixture's survives, so only one order satisfies it. Verified non-vacuous: flipped, it fails on the fixture's Content-Type must survive; restored, it passes.


Open workspace in Conductor

An A2A run reports every request-signing vector as `signing_transport_unavailable`.
adcontextprotocol#2958 made that fail-closed, which was right — the previous behaviour POSTed an MCP
`initialize` at an A2A endpoint and graded the 405 as a signature failure. But it leaves no
A2A agent's verifier graded at all, and the gap is permanent unless the dispatch is wired.

This wires it, in the shape adcontextprotocol#2958's own comment described as the correct one: "signing a
request the official client issues — applying each vector's RFC 9421 headers to that
client's own request".

WHAT DECIDES THE WIRE. `@a2a-js/sdk`'s `ClientFactory` resolves the agent card and builds
the call; the request is captured at the SDK's own `fetchImpl` seam and those exact bytes
are signed. Nothing about the A2A wire is written down here:

  endpoint             <- the card's supportedInterfaces[]
  JSON-RPC method name <- the SDK, per the card's protocolVersion
  a2a-version header   <- the SDK, from that same version
  proto-JSON encoding  <- the SDK (role -> "ROLE_USER", not 1)
  payload key          <- the SDK (input on 1.x, parameters on 0.x)

Observed, not assumed, and asserted in tests: against a card declaring 1.0 the client emits
{"method":"SendMessage"} with `a2a-version: 1.0`; against 0.3.0 the same `cancelTask` call
emits {"method":"tasks/cancel"} with `a2a-version: 0.3`. That second one matters — it is the
method the AdCP spec's `protocol_methods_*` namespace names (security.mdx @ 3.1.1 :1045
cites "A2A 0.3.0 §7.x"), so vector 028 is graded by the official client issuing the
lifecycle call natively rather than by anyone framing an envelope.

ORDERING. Capture happens before signing, so `a2a-version` is inside the signature base. A
header added after signing sits outside the base the verifier reconstructs.

FAIL-CLOSED IS PRESERVED, NOT REPLACED. `resolveVectorTransport` still returns no framing
for A2A — it cannot answer the question, which is whether the card resolves, and that is a
fetch. The decision moved into the async dispatcher: when the card resolves to a JSONRPC
interface the vectors dispatch; when it does not, nothing is framed on a guess and the
vector keeps adcontextprotocol#2958's `signing_transport_unavailable` reporting and every guardrail around
it. All 44 tests in request-signing-vector-transport.test.js pass unchanged.

`@a2a-js/sdk` stays a peer dependency: the import is dynamic and inside the A2A path, so
grading an MCP agent never loads it.

Tests: 7 new, each asserting that a protocol decision was the SDK's. The availability gate
is graded both ways — a resolvable card makes dispatch available and names the endpoint it
resolved; an unreachable one stays unavailable rather than inventing an endpoint.

Supersedes adcontextprotocol#2964, which hand-built the envelope. That objection was fair and this does not
repeat it.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Request changes

Request changes — 1 blocking finding.

Blocking findings

  • src/lib/testing/storyboard/request-signing/probe-dispatch.ts — Vector 028 maps to protocolMethodPassthrough, which bypasses applyTransport and discards the captured a2aRequest, grading the raw tasks/cancel fixture against agentUrl. This defeats the PR's marquee A2A request-signing case (High).

Medium findings (surfaced, not independently blocking)

  • builder.ts — No timeout on the card fetch; timeoutMs option is dead (missing timeout on an external call).
  • a2a-dispatch.ts — a2aDispatchAvailable caches transient faults as a permanent coverage gap.
  • grader.ts — Double-parse in captureA2aRequestForVector throws on the malformed body its own comment claims falls through.

Row 1 of the decision table fires: a High-severity finding is present, so the outcome is request-changes. The High finding undermines the core purpose of wiring A2A signing through the official client and must be corrected. The three mediums should be addressed alongside it.

Blocking findings

  • src/lib/testing/storyboard/request-signing/probe-dispatch.ts — Vector 028 maps to protocolMethodPassthrough, bypassing applyTransport and discarding the captured a2aRequest; grades raw tasks/cancel fixture against agentUrl, defeating the PR's marquee A2A request-signing case (High)

…t twice

Measured against a live agent on the box: 42 of 90 A2A vectors passed and 16 of the 27
failures were the agent answering `request_signature_header_malformed` — refusing at
checklist step 1, before it evaluated anything the vector grades.

The cause was here, not in the agent. `applyTransport` merged the fixture's recorded
headers with the client's using a plain object spread, and object keys are CASE-SENSITIVE
while HTTP header names are not. A fixture carrying `Content-Type` and a client emitting
`content-type` therefore both survived the merge, and the request went out carrying the
header twice.

That the agent under test is transport-independent is what localizes it: its verifier takes
no protocol argument and runs the same code on every transport, so a refusal that appears
on A2A and not on MCP has to come from the request, not from verification.

Regression test asserts the header appears exactly once, and is non-vacuous — with the
merge reverted it fails with `got ["Content-Type","content-type"]`.
@aao-secretariat
aao-secretariat Bot dismissed their stale review September 19, 2026 13:49

Superseded by a later Ladon review that rechecked and resolved its blocking findings.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 19, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — prior blocking issue resolved, clean delta.

The prior High blocker (Vector 028 bypassing applyTransport via protocolMethodPassthrough and discarding the captured a2aRequest) has been fixed: vector 028 now routes through captureA2aRequestForVector, and its captured cancelTask request is signed by applyTransport. The delta since the last pass — the case-insensitive header merge in builder.ts plus its regression test — is clean and correct.

No Critical/High/Medium findings remain in this run. Changeset present (.changeset/storyboard-a2a-official-client.md) covering the src/lib/** changes. Not high-risk, not gated, no author-team gate.

Decision table: rows 1–8 do not fire → row 9 approve. This is a net improvement crediting the developer's iteration.

…lls gaps

Measured on the box after the case-insensitive merge landed: A2A went 42p/48f -> 66p/24f,
and of the six remaining failures exactly one was A2A-specific —
`negative-022-multi-valued-content-type`, answering `request_signature_window_invalid`
where the vector expects `request_signature_header_malformed`.

The precedence was backwards. 022 presents a deliberately MULTI-VALUED `Content-Type`, and
that header is the fault under test; letting the official client's clean `content-type`
override it destroys the vector, so the agent answers about a different defect and the run
grades a request nobody meant to send.

The client's headers now fill only what the fixture does not set — `a2a-version`, `accept`
— which is also what the implementation that scored 59 on this agent did: it took the
vector's headers and added the version header, nothing more.

The other five failures are not this transport: `negative-007` and `negative-018` fail
identically on MCP and A2A (the `agentCapability` fix in adcontextprotocol#2963, absent from this build),
and the sixth is a version-pin assertion in the harness used to run the experiment.
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 19, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — 1 medium finding, no blocking issues, no escalation triggers.

What I checked:

  • The header-merge flip (mergeHeadersCaseInsensitively(a2aRequest.headers, headers)) makes fixture headers win over the transport's, which is the correct witness-not-translator semantics for fault-injection vectors (e.g. 022). Transport-only headers (a2a-version, accept) still gap-fill. Clean fix.
  • Changeset present (.changeset/storyboard-a2a-official-client.md) covering the src/lib/** change.
  • No transport reimplementation; official-client usage intact.

Medium findings (non-blocking):

  • test/lib/request-signing-a2a-official-client.test.js — the new test builds loaded.positive[0] instead of vector 022 and asserts only a2a-version/accept, so it passes identically under the old buggy merge order and leaves the merge-order regression unguarded.

Decision-table walkthrough: no critical/high findings (row 1 no); gated_paths false (row 2 no); high_risk false (rows 3/5 no); the single medium is a missing-test category, not data-loss/schema/infra (row 4 no); prior decision was approve, not escalate (row 6 no); no no-auto-approve team match (row 7 no); only 1 medium finding, fewer than 3 (row 8 no). Falls through to row 9 → approve.

…port

Measured on the box: mcp graded 82 vectors and a2a graded 90, so the two cards were no
longer measuring the same thing and a2a's higher pass count (66 vs 59) was inflation rather
than coverage.

The canonicalization-edge positives (005-008) bake their edge into the vector URL's port,
path or query. Any transport that routes every vector to one endpoint neutralizes that
edge, so passing says nothing about it. The skip existed but was gated on `transport ===
'mcp'`, and A2A routes every vector to the one RPC endpoint its card names for exactly the
same reason — so on A2A those vectors were graded, and reported as PASSES. Coverage
claimed, not delivered.

The gate now reads "not raw", which is what the condition always meant: `raw` is the only
transport that preserves the vector's own URL, and it is where this edge is gradable.
adcp-client#2964 stated this property in its description; reimplementing lost it.
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 19, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve.

Reviewed the delta since the prior approve: a ~20-line change in src/lib/testing/storyboard/request-signing/grader.ts that widens the URL-canonicalization-edge skip (vectors 005–008) from MCP-only to all single-endpoint transports via flattensUrlEdges = transport !== 'raw', correctly covering the newly-added A2A transport so it can no longer report those edges as false PASSES. The fix is fail-closed, type-consistent with the widened transport union, and carries a changeset (.changeset/storyboard-a2a-official-client.md).

No Critical/High/Medium findings. No high-risk paths, no gated paths, no author-team gate. Falls through to row 9.

Blocking findings: none.
Medium findings: none.

… order

Ladon's medium finding on c49689d was right: the test located vector 022 and then built
`loaded.positive[0]`, asserting only `a2a-version`/`accept`. Both of those are gap-fills
present under either merge order, so the test passed identically with the bug in place —
it guarded nothing.

It now hands the transport a `content-type` that differs from the fixture's and asserts the
FIXTURE's value survives, so only one order can satisfy it.

Non-vacuity checked rather than asserted: with the merge order flipped back the test fails
on "the fixture's Content-Type must survive", and passes again when restored.
@KonstantinMirin

Copy link
Copy Markdown
Contributor Author

The medium finding was right, and it's fixed in ff091ad.

The guard located vector 022 and then built loaded.positive[0], asserting only a2a-version and accept. Both are gap-fills present under either merge order, so the test passed identically with the bug in place — it named the regression and guarded nothing. That is the worst kind of test, because the green mark is what stops anyone looking.

It now hands the transport a content-type that differs from the fixture's (application/vnd.transport-must-not-win, a value no fixture uses) and asserts the fixture's value survives. Only one merge order satisfies that. Checked rather than claimed: with the order flipped back the test fails on the fixture's Content-Type must survive, and passes again when restored.

Worth recording why the order matters at all, since it is the opposite of the intuition: the transport is a witness, not a translator. Where a vector names a header it is naming it on purpose — 022's multi-valued Content-Type is the fault under test — so a transport that overwrites it makes the agent answer about a different defect and the vector grades nothing. The client's headers fill only what the fixture does not set.

Since the last review the branch has also been measured against a live seller that implements its verifier transport-independently:

mcp: passed=59 failed=23 not_selected=10 graded=82
a2a: passed=59 failed=23 not_selected=10 graded=82

Symmetric difference 0 — same vectors, same results, both cards. Getting there surfaced two further defects this branch now carries fixes for: a case-sensitive header merge that sent Content-Type twice and was refused at checklist step 1 (16 of 27 A2A failures), and the URL-canonicalization skip being gated on MCP alone, which let A2A report vectors 005–008 as passes when the edge never reached the wire. Details and commit-by-commit numbers are in the updated description.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 19, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — clean pass, no findings.

This is a subsequent review; the prior decision was also approve with no findings. The pass-2 delta is a single test-only commit that rewrites the "fixture deliberately malforms" case in test/lib/request-signing-a2a-official-client.test.js to be non-vacuous: it now hands the transport a Content-Type differing from the fixture's and asserts the fixture's value survives exactly once — a valid strengthening of the merge-order assertion, verified against mergeHeadersCaseInsensitively in builder.ts. No library/CLI code in the delta.

Checked: no critical/high/medium findings; a changeset (.changeset/storyboard-a2a-official-client.md) is present for the src/lib/** changes; no witness-not-translator or official-client concerns. high_risk false, gated_paths false, no author-team gate.

No blocking findings and none of rows 1–8 fire → row 9 approve.

…ard base

An A2A agent that publishes a conformant brand.json was graded non-conformant for
publishing exactly what the spec asks for.

security.mdx @ 3.1.1 :1142 step 1 defines `A`: "invoke `get_adcp_capabilities` via the
agent's declared transport (MCP `tools/call` or A2A skill invocation) ... The agent URL is
the PROTOCOL ENDPOINT, not a JSON capabilities document." Step 5 (:1104) then byte-equals
`agents[].url` against that same `A`, explicitly without canonicalization.

`probeBrandJwks` passed the URL the runner was handed. On MCP that IS the protocol
endpoint, so this changed nothing there. On A2A it is not: the runner must be given the
card's BASE, because the card lives at `<base>/.well-known/agent-card.json` and passing the
RPC endpoint asks for `/a2a/.well-known/agent-card.json` (404). The endpoint `A` names is
what the card resolves to.

So a seller publishing `https://host/a2a` — the protocol endpoint, per the spec — got ZERO
byte-equal matches against the base, and `selectAgentByUrl` correctly reported
`agent_not_in_brand_json`. The resolver was right; it was being asked the wrong question.

The A2A branch now resolves the card-named endpoint before matching, reusing
`resolveA2aDispatchTarget` from this branch's dispatch path. It falls back to the handed
URL rather than throwing: an unresolvable card is already reported by the dispatch path
with its own reason, and raising here would relabel one failure as another.

Measured against a live seller: brand.json publishes `.../a2a` and `.../mcp/`; mcp matched
one entry, a2a matched none. The test asserts both directions — the base finds nothing, the
protocol endpoint finds exactly one.
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 20, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — subsequent pass, clean.

This is a follow-up pass on PR #2967. The delta is a focused, correct fix: for A2A, brand.json JWKS matching now resolves the card's protocol endpoint (via resolveA2aDispatchTarget) instead of byte-equal matching the runner's base URL against agents[].url — aligning with the spec-mandated target. The fallback-not-throw behavior is deliberate and documented, the protocol option is threaded through correctly, and a unit test covers the base-vs-endpoint mismatch case. A patch changeset (test-runner scope) is present, consistent with the wire-impact of the change.

No critical, high, or medium findings in this run. The prior clean approve stands. No author-team gate, no gated paths, high_risk false. Falls through to row 9.

@bokelley

Copy link
Copy Markdown
Contributor

Issue #2973 was filed covering the legacyCompat knob missing from the conformance runner. Part of that issue — the hardcoded { enabled: true } in request-signing/a2a-dispatch.ts (lines 138, 212) — overlaps with this PR's diff. The author of #2973 is you, and you acknowledged it's yours to fix here ("so that is mine to fix either way").

Suggesting this be folded before merge so #2973's scope doesn't split across two PRs. The broader work (runner guard fix, card-derived default in createNativeA2AClientFromCardUrl, CLI flag) is tracked separately on #2973 as ready-to-implement.

Blocked-on: this PR — #2973 resurfaces on merge for the remaining scope.


Generated by Claude Code

Brings in adcontextprotocol#2963 (content-digest vectors graded against the selected verifier
profile) and adcontextprotocol#2968 (native-mode A2A compliance), both of which touch the
grading path this branch changes. Clean merge; the conformance measurement is
taken against this state rather than a branch five commits behind main.
…ent behind it

`a2a-dispatch.ts` hardcoded `legacyCompat: { enabled: true }` at two call sites.
adcontextprotocol#2973 asked which of two things that means, and the answer decides whether the
value is a defect or the only correct one. MEASURED against `@a2a-js/sdk`, one
`cancelTask`, four combinations:

  | card    | enabled | method emitted | a2a-version |
  |---------|---------|----------------|-------------|
  | 1.0     | true    | CancelTask     | 1.0         |
  | 1.0     | false   | CancelTask     | 1.0         |
  | 0.3.0   | true    | tasks/cancel   | 0.3         |
  | 0.3.0   | false   | CancelTask     | 1.0         |

So `true` means "also accept 0.3", not "speak 0.3": a 1.0 card is never
downgraded — the first two rows are byte-identical — and a 0.3 card gets the
`tasks/*` family the AdCP spec names for it (security.mdx @ 3.1.1 :1045).
`false` is the value that ignores the card: the last row is a 1.0 frame sent
to an agent that published 0.3, silently.

A conformance runner grades the agent the card describes, so the card-following
policy is the only correct one at this layer, and it is deliberately not
operator-configurable here: a knob that selected framing the agent never
advertised would produce a verdict about an agent that does not exist.

The two literals become one frozen, named constant so they cannot drift, and a
test pins both directions of the measurement. adcontextprotocol#2973 keeps its broader scope —
the library-wide default in `createNativeA2AClientFromCardUrl`, a CLI flag, and
the runner guard.
@KonstantinMirin

Copy link
Copy Markdown
Contributor Author

Folded the a2a-dispatch.ts half of #2973, in 60d2a7c. Also merged main in (8ea1259) — this branch was five commits behind, including #2963 and #2968, which touch the same grading path; clean merge.

#2973's open question, answered by measurement rather than reading. That issue asked whether legacyCompat: true means "also accept 0.3" or "speak 0.3", and noted the right fix depends on which. One cancelTask against @a2a-js/sdk, four combinations:

card enabled method emitted a2a-version
1.0 true CancelTask 1.0
1.0 false CancelTask 1.0
0.3.0 true tasks/cancel 0.3
0.3.0 false CancelTask 1.0

It is "also accept". true is the card-following setting — a 1.0 card is never downgraded, the first two rows are byte-identical — and it is what gives a 0.3 card the tasks/* family the spec names for it (security.mdx @ 3.1.1 :1045). false is the value that ignores the card: the last row is a 1.0 frame sent to an agent that published 0.3, silently, with no refusal.

So the hardcoded value was right and flipping it would have been a regression. What was missing was the reason. The two literals are now one frozen named constant with the table recorded at it, and a test pins both directions. It is deliberately not operator-configurable at this layer — a knob selecting framing the agent never advertised produces a verdict about an agent that does not exist. #2973 keeps its broader scope: the library-wide default in createNativeA2AClientFromCardUrl, the CLI flag, and the runner guard.

Measured against a live seller before pushing, since this PR is what grades one. Built this branch, packed it, installed it over the pinned SDK in a storyboard worktree, and ran the full stack — run innet_200926_1358, salesagent c1ef49bcb:

mcp  101 passed / 15 failed
a2a  101 passed / 15 failed
webhook_emission: 0 failures   signed_requests: 0 failures   (both protocols)

Identical to the baseline taken on the pinned SDK, and the two protocols' failure sets have symmetric difference 0. The 15 that remain are pre-existing media_buy/core gaps unrelated to signing or transport.

One thing worth reporting from that exercise: the seller's local patch-package patch against rc.35 no longer applies to this build, and that is the intended outcome rather than a problem — every hunk it carried is now upstream (#2958, #2963, this PR's dispatch and brand.json commits). The run above used no local patch at all; the 101/101 is this build standing on its own.

npm run test:node:fast: 144 files, one failure — handler-controlled-flow.test.js, which fails identically on unmodified main (all 12 subtests pass; the file-level harness is what errors).

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 20, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — clean pass on the rc.3→rc.4 adoption.

No blocking or Medium findings. The two behavioral changes are correct and both carry targeted tests:

  • Native-A2A compliance grading (applyNativeA2AComplianceTransportOptions forcing legacyCompat: {enabled:false} at the runner boundary, wired through comply/runner/agent-routing and client cache identity).
  • Content-digest grader narrowing (contentDigestDeclarationMismatch now grading 'either'-agent vectors except the two policy-refusal codes).

Remainder is generated types, schema-cache bundles, doc version bumps, and illustrative example seeding. Changesets are present and correctly typed.

Gate checks: no no-auto-approve team match; gated_paths false; high_risk false. No escalation triggers. Prior decision was approve; this run remains clean — falls through to row 9.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 20, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — subsequent pass on the A2A request-signing dispatch delta, no blocking findings.

This run surfaced no critical/high/medium findings. The changes harden card discovery onto the DNS-pinned, redirect-checked transport with a caller-facing deadline, make resolveA2aDispatchTarget fail-closed (throwing rather than returning an empty endpoint), re-key the availability cache per-run, redact/truncate discovery errors, and adopt typed A2A requests — all backed by tests. The changeset was correctly bumped patch→minor to reflect the additive A2A transport and new exports, satisfying changeset-vs-wire-impact.

Decision-table walkthrough:

  • Row 1 (critical/high): none.
  • Row 2 (gated_paths): false — N/A.
  • Row 3 (high_risk deleted): high_risk is true only via bin/** (modified), no deletions.
  • Rows 4/5 (medium findings): none, so no escalation triggers.
  • Row 6 (sticky escalate): prior decision was approve, not escalate.
  • Row 7 (no-auto-approve team): no team match.
  • Row 8 (≥3 medium): zero medium findings.
  • Row 9: approve.

The high_risk flag fires only on (modified) bin/** files with no medium-or-higher concern, so it is presumed safe per the heuristic guidance. Net improvement / clean continuation of the prior approve.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 20, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — clean subsequent review.

The only delta since the prior approve (head 3dbb0ec) is a single test assertion in test/lib/cli-storyboard-signing-threading.test.js:353, updating the expected remedy string to match the rewritten SIGNING_VECTORS_UNAVAILABLE_DETAIL constant in probe-dispatch.ts verbatim. Reviewer reports a clean pass with no findings.

Decision-table walkthrough:

  • No critical/high findings (row 1 n/a).
  • gated_paths: false (row 2 n/a).
  • high_risk: true but all high_risk_reasons are (modified) — no (deleted) (row 3 n/a).
  • No medium findings at all (rows 4, 5, 8 n/a).
  • Prior decision was approve, not escalate (row 6 n/a).
  • No no-auto-approve team match (row 7 n/a).
  • Falls through to row 9 → approve.

The bin/** high-risk modifications carry no reviewer concerns, so per the high-risk guidance a modification with no medium-or-higher finding is presumed safe. Changeset files are present (.changeset/a2a-dispatch-legacy-compat.md, .changeset/storyboard-a2a-official-client.md) covering the src/lib/** and bin/** changes.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve.

Subsequent pass with no new findings. The only delta since the prior clean review (head 61c33d1) is merge commit da20cdc fast-forwarding main into the A2A signing branch — no new branch commits, and the PR's actual subject (A2A official-client signing dispatch) is unchanged. The merged-in main work (rc.4 reporting semantics, targeting-input conformance harness, createWithCapabilityPreflight, async transport-diagnostics capture, legacy requires_proposal handling, schema-loader $id disambiguation) was reviewed; changesets present and correctly typed.

Gate checks:

  • No no-auto-approve team match.
  • gated_paths: false — no hard path gate.
  • high_risk: true, but all reasons are (modified) bin/** files with zero medium-or-higher findings, so the modifications are presumed contract-preserving. No (deleted) reason.
  • No critical/high/medium findings this run; prior decision was already approve.

No decision-table rows 1–8 fire → row 9 approve.

Copy link
Copy Markdown
Contributor

Comment-resolution audit on current head da20cdcf:

  • Vector 028 now routes through passthrough in A2A mode, so the captured official-client endpoint, headers, and body reach applyTransport; regression coverage pins that behavior.
  • Agent-card discovery uses the guarded transport with an abort deadline, including injected fetches that ignore abort; a timeout regression test covers it.
  • A2A availability is scoped to the current run, and card-discovery failures are redacted, truncated, and included in the coverage-gap detail instead of being reported as a permanent global capability result.
  • A2A vector parsing now reuses the parsed body and has a single explicit malformed-body boundary rather than double-parsing.
  • The Content-Type precedence regression test is non-vacuous: it supplies a conflicting transport value and asserts the fixture value survives exactly once.

All five inline threads are resolved. The separate #2973 concern is also closed after verifying that #2895 exposed the override, #2968 forces native compliance mode, and the official SDK follows a 1.0 card under compatibility mode. No unresolved review threads remain.

@bokelley
bokelley merged commit d5b016e into adcontextprotocol:main Sep 20, 2026
36 of 37 checks passed
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.

2 participants