Repository navigation
fix(conformance): grade request-signing vectors by protocol and by verdict - #2958
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean, well-tested bug-fix PR.
Verified against the decision table top-down:
- No
no_auto_approveteam match (rule 1 team gate N/A). gated_paths: false— row 2 does not apply despitereview_decision: REVIEW_REQUIRED.high_risk: trueonly viabin/adcp.js (modified), but the reviewer found no medium-or-higher concerns, so rows 3–5 do not fire (no deletions, no medium findings).- No prior decision; rows 6–8 do not apply.
- Falls through to row 9 → approve.
What was checked: three release-blocking request-signing conformance fixes — protocol-aware transport resolution with whole-storyboard/step-level A2A skip gates (#2954), in-library probe_passed grading with a non-vacuous pass invariant (#2955), and CLI flag wiring across all six run paths plus comply() passthrough (#2956). Changeset present and correctly typed; skip-detail plumbing verified. No Critical/High/Medium findings.
6653fff to
4282bcd
Compare
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean subsequent pass on PR #2958 (request-signing conformance fixes #2954/#2955/#2956).
No blocking findings. No critical/high/medium findings surfaced in this run, and no prior blockers regressed. Verified against repo-specific gates:
- Witness-not-translator: holds — vector 028 replayed byte-for-byte, no SDK-invented A2A envelope; A2A vectors fail closed (signing_transport_unavailable → fixture_unavailable) rather than fabricating data.
- Honest grading: probe_passed grades in-library verdicts honestly; skip detail is redacted.
- CLI: flags thread through all run paths with fail-closed validation.
Decision-table walk: no critical/high (row 1 n/a); gated_paths=false (row 2 n/a); high_risk=true but reasons are bin/adcp-step-skip.js (added) and bin/adcp.js (modified) with no medium finding on the modified file (rows 3/4/5 n/a); prior decision was approve so sticky escalation (row 6) n/a; no no-auto-approve team match (row 7 n/a); zero medium findings (row 8 n/a). Falls through to row 9 → approve.
Only note is a Low: the patch changeset arguably understates the additive CLI-flag/ComplyOptions feature surface. Per repo changeset-vs-wire-impact rule, a purely additive feature surfacing new CLI flags could warrant a minor bump rather than patch, but the reviewer graded this Low/non-blocking (no removed/renamed export, no required-param flip, no dropped enum, no response-shape change), so it does not block.
4282bcd to
60e2d8b
Compare
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — subsequent pass on the request-signing conformance changes (prior decision: approve, clean).
What I checked: witness-not-translator fidelity (SDK returns upstream shapes unchanged — verified clean), changeset correctness (.changeset/signing-vector-transport-and-cli-knobs.md present and impact-appropriate for the src/lib/** and bin/** touches), OAuth redaction seam, probe dispatch ordering, CLI flag parsing, and official-client usage — all clean.
Medium findings (1):
src/lib/testing/compliance/storyboard-tracks.ts:266— thecomputeTrackStatusreorder moves thefixture_unavailablepartial check ahead of the all-skipped skip gate, widening flip-to-partial behavior past signing to creative-asset and validation-only fixture gaps, untested for those producers.
Decision rationale: No critical/high findings (row 1 n/a). gated_paths is false (row 2 n/a). High-risk is true only for (modified) bin/** files, but the single medium finding is in src/lib/testing/**, not a modified high-risk file, so row 5 does not fire; the medium is not data-loss/schema/infra so row 4 does not fire. Prior decision was approve, not escalate, so row 6 n/a. No no-auto-approve team match (row 7 n/a). Only 1 medium finding — fewer than three, so row 8 does not fire. Falls through to row 9: approve.
A single untested medium edge case with no blocking issues is a net-clean iteration on already-approved work.
60e2d8b to
4edc483
Compare
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass, no blocking findings.
This is a subsequent review; the prior decision was also approve with no findings. The current run again surfaces no Critical/High/Medium findings.
What was checked:
- Per-vector
signing_transport_unavailable→fixture_unavailablegate on A2A runs (witness fidelity preserved — no fabrication). probe_passedin-library grading forjwks_overridenegatives; dispatch precedence verified.- CLI signing-knob threading, positional exclusion, and flag-validation ordering.
computeTrackStatusreorder — no reachable regression for seeding/fixture_unsatisfied/creative producers.- OAuth-redacted skip-detail read.
- Changeset present and correctly typed (
minor), consistent with thesrc/lib/**andbin/**changes per changeset-vs-wire-impact rule.
High-risk flag: true only because bin/adcp.js and bin/adcp-storyboard-summary.js are (modified) under bin/**. Per the high-risk guidance, a modification with no medium-or-higher finding is presumed safe — the flag alone does not escalate.
No no-auto-approve team match; gated_paths is false. Rows 1–8 do not fire, so the outcome falls through to row 9: approve.
|
We ran this against our agent before commenting, so the numbers below are measured rather than inferred. Three of the four defects we hit are fixed here and the A2A stop-gap does what the description says — we confirmed it reports a coverage gap rather than a false pass, which we appreciate. One defect is not addressed, and it is the one that costs a conformant agent the most.
|
4edc483 to
9165ec3
Compare
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass, no blocking or medium findings.
Reviewed the request-signing conformance fixes (#2954/#2955/#2956): A2A transport gating, in-library jwks_override grading via probe_passed, CLI signing flags, and the coverage-driven exit contract. The largest delta files (bin/adcp.js, bin/adcp-storyboard-summary.js, runner.ts, probe-dispatch.ts) were verified — exit logic, flag parsing edge cases, coverage classification, and exclusion ordering are correct and well-tested. A correctly-typed minor changeset is present, satisfying the changeset-vs-wire-impact rule for the bin/** and src/lib/** changes.
high_risk is true only because bin/adcp.js and bin/adcp-storyboard-summary.js are (modified) — with no medium-or-higher findings on those files, the modifications are presumed safe (no escalation on the flag alone; row 5 requires a medium finding). No no-auto-approve team match, gated_paths is false, and no deletions. Prior decision was also approve. Falls through to row 9.
9165ec3 to
7ece002
Compare
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Subsequent pass on a PR previously approved at head 9165ec3. The reviewer re-reviewed the full request-signing conformance change: CLI flag wiring and positional stripping, the single-sourced signingCoverage rule consumed across storyboard/track/report/CLI-exit, A2A and routed-agent dispatch, fail-closed capability declaration reads, terminal control-char escaping and probe-error URL redaction, and the correctly-typed minor changeset. No new Critical/High/Medium findings; one Low (orphaned JSDoc in comply.ts) not posted.
Decision-table walk:
- Rows 1: no critical/high findings.
- Row 2: gated_paths is false — not triggered.
- Row 3: high_risk true but reasons are
bin/**(modified), no(deleted)— not triggered. - Rows 4–5: no medium findings, so no medium+high-risk-modified escalation.
- Row 6: prior decision was
approve, notescalate— sticky rule N/A. - Row 7: no no-auto-approve team match.
- Row 8: fewer than three medium findings (zero).
- Row 9: approve.
The bin/** high-risk flag is (modified) with no medium-or-higher concern on those files, so it is presumed safe per the high_risk reading rules. Changeset present and correctly typed as minor per witness/changeset-vs-wire-impact checks.
7ece002 to
e6ec38b
Compare
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass, no blocking findings.
Reviewed the request-signing conformance fixes (#2954/#2955/#2956) across the delta: signingCoverage reads wire status (not skip reason) and is consistently wired through storyboard verdict, track rollup, report, and CLI exit; redaction seams have no TDZ; the fail-closed protocol-method grammar gate is sound; observation_data/tracks integration points check out; and the minor changeset correctly justifies the additive public surface.
Decision-table walk:
- No critical/high/medium findings (rows 1, 4, 5, 6, 8 do not fire).
gated_paths: false(row 2 n/a).high_risk: truebut only(modified)entries underbin/**with no medium-or-higher findings, and no(deleted)entries (rows 3, 5 do not fire).- No no-auto-approve team match (row 7 n/a).
- Prior decision was
approve, so no sticky escalation.
Falls through to row 9 → approve. Changeset present and correctly scoped for the src/lib/** and bin/** changes; witness-not-translator posture preserved.
e6ec38b to
a515e62
Compare
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — no blocking findings.
Reviewer completed a clean pass on PR #2958 (request-signing conformance fixes #2954/#2955/#2956 plus CLI knobs). Traced the coverage classifier, transport resolution, semantic-exclusion ordering, fail-closed capability-declaration parsing, OAuth-URL redaction seam, CLI positional stripping/exit contracts, and the changeset with its additive public-surface pins — all correct and backed by extensive new tests. No Critical/High/Medium findings.
Decision-table walk:
- Rows 1: no critical/high findings.
- Row 2: gated_paths is false — does not fire despite review_decision REVIEW_REQUIRED.
- Row 3: high_risk true, but reasons are
(modified)on bin/**, no(deleted). - Rows 4–5: no medium findings, so no medium+high-risk/sensitive-category triggers.
- Row 6: prior decision was
approve, notescalate— no sticky escalation. - Row 7: no no-auto-approve team match.
- Row 8: fewer than three medium findings (zero).
- Row 9: falls through to
approve.
The high_risk flag is a heuristic on modified bin/** files; the reviewer found the CLI positional/exit-contract changes correct with test coverage, so the modifications are presumed safe. Changeset present and additive-pinned per repo governance.
Blocking findings
- None.
Medium findings
- None.
…rdict Three release-blocking bugs in the signed_requests conformance path. #2954 — the request-signing probe was the last probe family that ignored `options.protocol`, so every vector on an A2A run was dispatched as an MCP `tools/call` envelope against the A2A endpoint and failed with a transport error before grading. `resolveVectorTransport` now reads the protocol and returns no framing for an unqualified A2A run; each affected vector skips as `signing_transport_unavailable`. Three verdicts move with it, each a false-assurance path found in review. The storyboard reports `overall_passed: false` when its wire coverage was unavailable, instead of passing off the back of an SDK self-check the agent never saw. `computeTrackStatus` grades `partial` before its all-skipped check, so an entirely unavailable track no longer evaporates into `skip` — which `computeOverallStatus` ignores, letting sibling tracks carry the run to `passing`. And the gate is per vector, not per storyboard: a routed `agents` run pairs a top-level protocol with per-agent transports, so a whole-storyboard gate would strand a gradable MCP seller. Only the `jwks_override` negatives still grade on A2A; they touch no transport at all. Vector 028 is deliberately not replayed raw at an A2A endpoint despite shipping a complete `tasks/cancel` envelope. That is a gap in this runner, not in the official client — `@a2a-js/sdk` issues `tasks/cancel` fine; what is missing is a signing probe wired through it, which needs an interceptor applying each vector's RFC 9421 headers to a request the client itself issues, plus an upstream answer for how a verifier scopes `required_for` over A2A methods. RFC 9421 conformance needs byte-level control of the request, which the builder has for the two bindings AdCP defines for these fixtures; picking a third here would be the SDK inventing one. The skip is emitted in the output contract's registered shape: canonical `not_applicable` with `skip.detail` set to the `signing_transport_unavailable` token exactly, empty validations, no pass/fail counter movement — the same shape the contract defines for `rate_limit_not_triggered`. Deliberately not `fixture_unavailable`, whose contract text mandates a `creative_asset_fixture_unavailable:` detail prefix and says the storyboard grades `not_applicable` with no verdict movement. Registering `canonical_detail_sub_reasons.not_applicable.signing_transport_unavailable` upstream (spec_source `test-kits/signed-requests-runner.yaml`) remains an external blocker; emitting the registered shape now means that registration moves nothing here. The same applies to `probe_passed`, which is not yet in the contract's runner-synthesized grading codes: it fails closed here — a `probe_passed` check with no probe result is a hard step failure, and a failed grade always carries a diagnostic — and the registration ask is recorded in the changeset. One exported rule decides what a run verified. `signingCoverage` in the runner answers whether any request-signing vector reached the agent, and names which way a run came up empty: `probe_errored` (the handshake or connection failed), `transport_unverified` (no dispatch shape for this protocol), `scope_excluded` (the run's own selection removed every vector, which the output contract keeps apart as `selection_result`), or `self_check_only` (only the in-library SDK check ran). Each carries its own remedy — advising someone to drop `--signing-skip-vectors` when the agent was unreachable sends them the wrong way. Telling the first two apart needs provenance, because a DNS or connect failure and an in-library grade both come back as `http_status: 0` with text attached: `VectorGradeResult` now carries `transport_error`, which the dispatch maps onto `HttpProbeResult.probe_error` for the classifier to read. Every `probeSignedRequest` call site carries it — the positive and negative single probes, both terminal returns of the replay-window pairs (a first submission that succeeds followed by a replay probe that dies on the wire is a fault, not a verdict), and the rate-abuse path including its cap-filling requests. Rate abuse needed more than provenance. A fill request that never completed means the per-keyid cap was never established, so the (cap+1) rejection says nothing about the limiter — an agent that rejects everything with that code would have passed the vector. `passed` now requires zero fill faults, the first fill failure is carried into the diagnostic by text rather than a bare flag, and because that rejection arrives as a real `401`, a status-only coverage rule still called the run graded: `signingCoverage` no longer counts a response carrying a transport fault as evidence, while a sibling probe that completed cleanly still does. The storyboard verdict, the track rollup, the compliance report and the CLI exit contract all consume that one rule — the CLI through dist — because hand-written copies of the same question drifted inside one revision of this change, one of them into a false CI failure on an all-green report. Keying the rule on a skip reason was itself too narrow: excluding every wire vector and keeping the in-library self-check exited 0 with nothing graded. Exclusions are decided before the protocol gate: operator selection, then exclusions belonging to the vector itself, then transport availability. So `026-non-ascii-host` reports `transport_ungradable` on A2A exactly as on MCP. Vector 028 is now gated on the agent's advertised capability, which is a behavior change on MCP runs as well as A2A: it reports `capability_profile_mismatch` unless the agent declares `request_signing.protocol_methods_required_for`, the gate signed-requests.yaml specifies. The storyboard used to dispatch it at every agent, so one that never claimed the JSON-RPC bucket could fail it; the path now also diverges from `adcp grade request-signing`, which compares against an operator-supplied profile rather than a live advertisement. That one field is read on its own, and only from a schema-valid declaration. The capabilities schema requires just `supported`, so demanding `covers_content_digest`/`required_for` failed a schema-legal `{supported: true}` agent on a vector it never claimed. In the other direction, a value the line's schema rejects — `null`, `[""]`, `["tasks/cancel "]`, a bare string, a non-string entry, an over-long token, or (from 3.2) `tools/call` — is discarded rather than read as "not declared": reading it that way let a server that accepts an unsigned `tasks/cancel` suppress the vector and report `overall_passed: true` with exit 0. The wire-name grammar is keyed to the run's own compliance line and pinned against both shipped schemas by test, because a copy that drifts from the schema breaks it in one direction or the other: too wide accepts a declaration the line rejects and suppresses the vector, too narrow rejects a legal one and fails a vector the agent never claimed. 3.2 allows A2A 1.0 PascalCase names and multi-segment paths and caps names at 256; 3.1 allows a single lowercase pair and declares no cap, so no cap is applied there. Nothing else is read from a live advertisement: the rest of a vector's `verifier_capability` describes an operator-selected grading profile, and comparing it to an advertisement excludes 39 of 40 vectors. Both exclusions carry the grader's diagnostic so an operator can audit an agent that under-declares. A failed vector load — or a vector id missing from the loaded set — now surfaces as a probe error. It used to be swallowed, leaving the transport gate to report an unreadable compliance cache as a coverage gap: wrong, and skip-shaped, so it could never fail a run. Probe errors are read from the redacted result on both branches, not just the skip branch. #2955 — `synthesizeNegativeStep` emitted `http_status: 401` for every negative vector including the `jwks_override` ones, which the grader decides in-library at `http_status: 0` by contract. Those steps failed while the grader passed them, unreachable by any implementation. New `probe_passed` validation check grades the verdict the dispatch layer actually reports; no synthetic HTTP status is invented, keeping the library-verification and wire planes distinct (RFC 9421 §3). Their step title now carries `SDK verifier self-check, agent not contacted`, because JUnit keeps titles and drops narratives. #2956 — `storyboard run` never populated `request_signing`, so CLI-driven CI could not select the vector transport or exclude a vector. Adds `--signing-transport raw|mcp`, `--signing-skip-vectors`, and `--signing-skip-rate-abuse`, threaded through every storyboard-run path, plus a `ComplyOptions.request_signing` passthrough destructured and re-spread like its siblings. Omitting the transport infers it from the resolved protocol. Both value-bearing flags are validated: an unknown vector id is rejected with the nearest real ids, and `--signing-skip-rate-abuse=false` is rejected rather than read as "on" — it used to skip the vector the operator asked to run. Also corrects the stale `BuildOptions.transport` JSDoc. A run that graded no verifier now exits nonzero. Skipped steps carry `passed: true`, so `adcp storyboard step … && echo ok` printed ok for a vector nothing verified; that command exits 3 when the runner could not dispatch the step, and now honours `--soft-fail`, which it previously advertised and ignored. The full assessment exits 3 when a storyboard's signing coverage went unverified, whatever removed the vectors, with the two causes named distinctly in the message. It is evaluated per storyboard, not per scenario — compliance scenarios are per phase, and a per-phase rule failed runs whose positive vectors graded fine. Everything else keeps exit 0: other `partial` runs, legacy `fixture_unavailable` gaps, and single steps the operator excluded. Adopters to plan for: an agent that honestly advertises `request_signing.supported: true` and is graded over A2A now exits nonzero with no agent-side remedy — grade the MCP or REST binding, point `--signing-transport` at it, or pass `--soft-fail`. Reporting and packaging: `storyboard run` prints each skipped step's reason and detail, rendering runner-owned gaps as `COVERAGE UNAVAILABLE` with the remedy; the canonical compliance report names each storyboard whose signing coverage went unverified, and why, where it otherwise rendered as a bare failure marker with no failing step beneath it; the detailed reason joins the compliance skip-cause block (the canonical one is left alone, so unrelated fixture gaps keep their classification); skip details read from the redacted probe result. The skip renderer and the signing-flag parser live in the already-shipped `bin/adcp-storyboard-summary.js` rather than a new published file, keeping the packed-file budget intact and the flag semantics unit-testable without spawning a CLI per case. The spawn-heavy threading tests live in their own slow-group file so every fast-suite file stays under the 60s per-file ceiling. The published 3.0 line (`adcp-3.0` dist-tag, 7.11.x on `backport-2114-adcp-3.0`) predates both the `'mcp'` default and these flags, and needs its own backport; documented rather than patched here. Tests fail before the fix: protocol-aware resolution, the per-vector coverage gap in its registered shape, the storyboard verdict beside a passing SDK self-check, the all-unavailable track that must stay partial, the sibling track rollup, routed-agent dispatch, 028 refused on A2A and still graded on MCP, the intrinsic and profile exclusions reported identically on both protocols with their diagnostics, the 028 gate against schema-minimal, fully-populated, malformed, null, empty-string, whitespace-bearing, wrong-type and line-specific capability declarations on both the 3.1 and 3.2 lines, the per-line length cap (a 258-character name is legal on 3.1 and over cap on 3.2), the grammars pinned against both shipped schemas, the coverage states told apart — an unreachable agent and a replay pair whose second probe dies mid-run as `probe_errored` rather than `self_check_only`, an in-library grade failure as a verdict rather than a fault, and a rate-abuse run whose cap-fill sockets died while the (cap+1) request returned the expected 401 as `passed: false` / `probe_errored` rather than a pass, with the established-cap run still passing and a clean sibling probe still making the storyboard graded — a broken vector cache erroring instead of skipping, the jwks_override synthesis and its end-to-end grade, the `vector grade failed` fallback failing its step and reaching the summary, the summary skip cause, the canonical report naming the storyboard and staying silent when any vector graded, its control-character escaping, the bundle rollup under #2960's capability neutralization, CLI flag validation and threading, and the single-step exit codes with and without `--soft-fail`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
a515e62 to
98c1bac
Compare
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass on PR #2958.
Reviewed the request-signing conformance surface: the fail-closed coverage classifier (signingCoverage), redacted report seams, CLI flag parsing/positional stripping, per-line protocol-method grammar keying, and the minor changeset backed by barrel-level type-checks. No Critical/High/Medium findings.
Decision-table walk (top-down):
- No no-auto-approve team match (HARD RULE clear).
- gated_paths: false — row 2 does not apply despite review_decision REVIEW_REQUIRED.
- high_risk: true, but reasons are only
(modified)onbin/**files with no medium-or-higher findings — rows 3 and 5 do not fire (no deletions, no medium). - Row 4: no medium data-loss/schema/infra findings.
- Row 6: prior decision was
approve, notescalate— not sticky. - Rows 7/8: no team gate, zero medium findings.
- Falls through to row 9 → approve.
Changeset present (.changeset/signing-vector-transport-and-cli-knobs.md, minor) satisfying the changeset-vs-wire-impact requirement for the src/lib/, bin/ and scripts/** touches. Behavior changes are documented conformance bug fixes.
* fix(storyboard): sign the request the official A2A client emits An A2A run reports every request-signing vector as `signing_transport_unavailable`. #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 #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 #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 #2964, which hand-built the envelope. That objection was fair and this does not repeat it. * fix(storyboard): merge A2A headers case-insensitively, so none is sent 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"]`. * fix(storyboard): let the FIXTURE's headers win; the transport only fills 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 #2963, absent from this build), and the sixth is a version-pin assertion in the harness used to run the experiment. * fix(storyboard): skip URL-edge vectors on EVERY single-endpoint transport 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. * test(storyboard): make the merge-order guard actually guard the merge 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. * fix(storyboard): match brand.json on the PROTOCOL ENDPOINT, not the card 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. * fix(storyboard): name the A2A legacy-compat policy, with the measurement behind it `a2a-dispatch.ts` hardcoded `legacyCompat: { enabled: true }` at two call sites. #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. #2973 keeps its broader scope — the library-wide default in `createNativeA2AClientFromCardUrl`, a CLI flag, and the runner guard. * fix(storyboard): harden official A2A signing dispatch * test(storyboard): expect actionable A2A dispatch remedy --------- Co-authored-by: Brian O'Kelley <[email protected]>
Fixes #2954, fixes #2955, fixes #2956.
Three release-blocking bugs in the
signed_requestsconformance path. All three were reported by an adopter running the runner in CI across mcp/a2a/rest, and all three make a conformant agent fail vectors it cannot influence.#2954 — A2A runs dispatched signed-request probes as MCP
resolveVectorTransportwas the last probe family that ignoredoptions.protocol(the auth probes were fixed in #2878/#2902), so everysigned_requestsvector on an A2A run was framed as a JSON-RPCtools/callenvelope, POSTed at the A2A endpoint, and failed with405 Method Not Allowedbefore grading — 31 universal checks an agent could not pass by any implementation.Shipped: the triaged stop-gap, reported as a coverage gap that cannot read as a pass.
resolveVectorTransporttakes the resolved protocol and returns no framing for an A2A run that didn't pick one explicitly. Each affected vector skips assigning_transport_unavailable→ canonicalfixture_unavailable. Five behaviors carry that through, each one a false-assurance path that review caught and each with its own regression:@a2a-js/sdkhandlers reject the unsigned raw shape anyway. 028 is nowsigning_transport_unavailableon A2A, still graded on MCP.overall_passed: truesigned_requestsrun reported a pass — and exit 0 — having verified nothing remote.partialwhen every step is unavailablecomputeTrackStatusreturnedskipfor an all-skipped track, andcomputeOverallStatusignores skipped tracks, so sibling tracks alone carried the run topassing. Thefixture_unavailablecheck now runs before the all-skipped return.agentsrun pairs a top-levelprotocol: 'a2a'with per-agent transports; a whole-storyboard gate stranded a perfectly gradable MCP seller (and hid the gap behind one synthetic skip).onlyVectors/skipVectorsapplied before transport availabilityfixture_unavailable— a manufactured coverage gap that inflates the unavailable count and drags the track topartialover vectors nobody asked to grade.Plus:
adcp storyboard steprenders an unavailable step as⏭️ Not verifiedwith the remedy instead of a greenPassed(a skipped step carriespassed: true).Coverage that survives A2A: only
025-jwk-alg-crv-mismatch, decided in-library with no wire exchange — and its step title saysSDK verifier self-check, agent not contacted, because that step grades the SDK, not the agent.Why no
'a2a'transport. The fixtures carry REST request bodies only, and no AdCP spec text defines an A2A framing for them. (An earlier revision cited adcp#7567 — that issue is schema-invalid vector bodies, not an A2A binding; adcp#7571 raised the A2A gap and was closed as superseded by adcp-client#2954. No open spec issue covers the binding today, so the rationale stands on the fixture contents.) Composing an envelope in the SDK — hand-rolled, or captured out of the official client, which also can't preserve the intentionally-invalid header/body bytes ~21 negative vectors depend on — would bake an SDK-invented binding into every adopter's conformance run.Scope note on the pre-existing
transport_ungradablecarve-outs. Two vectors (026 non-ASCII host, profile-3.2/002 malformed authority) are skipped on every run — no HTTP client can put those bytes on the wire — and keep their existingnot_applicablemapping. Flipping them would turn everysigned_requestsrun, MCP included,partialover two vectors while the other 38 still verify the agent; that is a different question from these three issues and is left to a follow-up, with the reasoning recorded at the mapping.So this PR closes #2954 with the stop-gap plus honest reporting. A real A2A transport is follow-on work gated on the spec defining the binding.
#2955 — in-library vector 025 always failed its synthesized step
gradeJwksOverrideNegativedecidesjwks_overridevectors against the SDK verifier (the malformed JWK is never published by the agent) and reportshttp_status: 0by contract. Synthesis emittedhttp_status: 401for every negative vector, so vector 025 failed while the grader passed it.Adds a
probe_passedvalidation check that grades the verdict the dispatch layer actually reports (HttpProbeResult.errorunset ⇒ pass), and emits it fromsynthesizeNegativeStepforjwks_overridevectors only. Probed negatives keep their 401 assertion. No synthetic HTTP status is invented anywhere — per the protocol-expert triage, fabricating a 401 from a library boolean would conflate the library-verification and wire planes (RFC 9421 §3).#2956 — CLI could not reach the request-signing options
bin/adcp.js storyboard runnever populatedrequest_signing, so CLI-driven CI had no way to select the vector transport or exclude a vector. Adds:--signing-transport raw|mcp— distinct from--transport/--protocol; help text says so explicitly. Omit it and the vector transport is inferred from the resolved protocol (MCP →mcp, A2A →signing_transport_unavailable, reported as coverage unavailable per the table above).--signing-skip-vectors <ids>and--signing-skip-rate-abuse.Threaded through every storyboard-run path (single,
--file, multi-instance, agents-routed,--local-agent,storyboard step), withComplyOptions.request_signingadded as a typed passthrough so the default assessment route is covered too. Malformed values exit 2 rather than falling back silently. Also corrects the staleBuildOptions.transportJSDoc that still advertised'raw' (default), spelling out why the builder primitive and the grader entry points intentionally default differently.Backport determination (asked for in the issue): yes, the published 3.0 line needs its own.
adcp-3.0=@adcp/[email protected], published fromorigin/backport-2114-adcp-3.0(a18bbb73). That branch still hastransport: options.transport ?? 'raw'ingrader.tsand norequest_signingwiring inbin/adcp.js, so nothing onmainreaches it. Not done here — it is a separate PR against a separate branch, and nodist/artifact was hand-edited. Until it lands, 3.0-line operators gradesigned_requestsfrom the 3.1 CLI or driverunStoryboardwithrequest_signing: { transport: 'mcp' }; that workaround is now documented indocs/guides/VALIDATE-YOUR-AGENT.md.Tests
All verified to fail before the fix (by reverting the built behavior and re-running):
test/lib/request-signing-vector-transport.test.js— protocol-aware resolution; the per-vector gap and its canonicalfixture_unavailablemapping; 028 refused on A2A and still graded on MCP with its verbatim JSON-RPC body witnessed on the wire; storyboard verdict false beside a passing SDK self-check; all-unavailable track stayspartialand keepscomputeOverallStatusoffpassing; sibling-track rollup; routed agents (routedAgentOptions({transport:'mcp'}, {protocol:'a2a'})still grades);onlyVectors/skipVectorsbefore transport availability, with the selected vector keeping its truthful verdict; rate-abuse cap sourced from the contract.test/lib/request-signing-jwks-override-grading.test.js—probe_passedsynthesis, the SDK-self-check step title, the grade→validation round trip, failure and no-probe-result paths.test/lib/cli-storyboard-signing-flags.test.js(fast, ~5s) — flag semantics against the shared parser seam, one exit-2 spawn, help text (including thesigning_transport_unavailablewording), skip-line rendering, and the single-step verdict that must never printPassedfor an ungraded step.test/lib/cli-storyboard-signing-threading.test.js(slow group, ~18s) —--filethreading,--signing-transport rawobserved as a per-operation probe path, the assessment path (storyboard run <url> signed_requests, no--file) provingrunFullAssessmentforwarding, and a false-assurance guard: a mock that accepts negatives fails them and the run reportspartial.CI fixes in this revision: the skip renderer and flag parser moved into the already-shipped
bin/adcp-storyboard-summary.jsinstead of a new published file, so the packed-file budget is back at 6135/6135 (no budget raise); the spawn-heavy tests were split into the slow-group file so every fast-suite file stays under the 60s ceiling (4.8s / 17.8s measured).Verification:
npm run check:package-size,format:check,lint,typecheck,ci:docs-check(no generated drift),ci:doc-links,check:skill-sync, plus the focused suites (202 tests green).rateAbuseCapadjudication (not clamped, deliberately). The knob drives afor (i < cap)probe loop, but this PR does not widen its reach:StoryboardRunOptions.request_signing.rateAbuseCapis public onorigin/main(types.ts:1723),GradeOptions.rateAbuseCaplikewise, andcomplyImplonmaindoes not destructurerequest_signing, so it already flowed through...testOptionsintorunOptions— independently confirmed by the reviewer's observation that acomply()-level test passes unchanged onorigin/main. No CLI flag exposes it before or after. Per the "document evidence rather than expand scope" instruction it is documented, not clamped; a test pins the default to the shipped contract's boundedgrading_target_per_keyid_cap_requests.Review
Dual-stack per
docs/development/REVIEW-STACKS.md, run across three rounds (review:codexcode/security/protocol personas with the diff piped via stdin — the repo-read path needsbwrap, unavailable in this sandbox — plus Claude code-reviewer passes). Every blocker the reviews raised changed the patch:fixture_unavailablereporting, replacing a whole-storyboard skip that producedoverall_passed: true | passed 0 | failed 0 | skipped 40.skip→fixture_unavailablecheck hoisted above the all-skipped return.UNVERIFIED_COVERAGE_SKIP_REASONSblocksoverall_passed.onlyVectorsafter the transport gate → operator selection applied first.skip.detailseam, staletransport_ungradablewording in--help, missing flags in the guide/skill,patchbump on additive public surface (nowminor, with the rationale in the changeset) — all addressed.Changeset included (
minor).🤖 Generated with Claude Code
Open workspace in Conductor