Skip to content

fix(conformance): grade request-signing vectors by protocol and by verdict - #2958

Merged
bokelley merged 1 commit into
mainfrom
conductor/rc-signing-fixes
Sep 18, 2026
Merged

bokelley merged 1 commit into
mainfrom
conductor/rc-signing-fixes

Conversation

@bokelley

@bokelley bokelley commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2954, fixes #2955, fixes #2956.

Three release-blocking bugs in the signed_requests conformance 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

resolveVectorTransport was the last probe family that ignored options.protocol (the auth probes were fixed in #2878/#2902), so every signed_requests vector on an A2A run was framed as a JSON-RPC tools/call envelope, POSTed at the A2A endpoint, and failed with 405 Method Not Allowed before 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. resolveVectorTransport takes the resolved protocol and returns no framing for an A2A run that didn't pick one explicitly. Each affected vector skips as signing_transport_unavailable → canonical fixture_unavailable. Five behaviors carry that through, each one a false-assurance path that review caught and each with its own regression:

Behavior Why it was needed
No raw A2A replay of vector 028 Replaying a fixture's JSON-RPC body at an A2A endpoint is a hand-rolled A2A dispatch (AGENTS.md forbids it), and the official @a2a-js/sdk handlers reject the unsigned raw shape anyway. 028 is now signing_transport_unavailable on A2A, still graded on MCP.
Storyboard cannot report overall_passed: true The in-library self-check (025) graded green beside zero wire coverage, so a standalone signed_requests run reported a pass — and exit 0 — having verified nothing remote.
Track stays partial when every step is unavailable computeTrackStatus returned skip for an all-skipped track, and computeOverallStatus ignores skipped tracks, so sibling tracks alone carried the run to passing. The fixture_unavailable check now runs before the all-skipped return.
Gate is per vector, not per storyboard A routed agents run pairs a top-level protocol: 'a2a' with per-agent transports; a whole-storyboard gate stranded a perfectly gradable MCP seller (and hid the gap behind one synthetic skip).
onlyVectors/skipVectors applied before transport availability Otherwise a vector the operator never selected came back fixture_unavailable — a manufactured coverage gap that inflates the unavailable count and drags the track to partial over vectors nobody asked to grade.

Plus: adcp storyboard step renders an unavailable step as ⏭️ Not verified with the remedy instead of a green Passed (a skipped step carries passed: true).

Coverage that survives A2A: only 025-jwk-alg-crv-mismatch, decided in-library with no wire exchange — and its step title says SDK 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_ungradable carve-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 existing not_applicable mapping. Flipping them would turn every signed_requests run, MCP included, partial over 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

gradeJwksOverrideNegative decides jwks_override vectors against the SDK verifier (the malformed JWK is never published by the agent) and reports http_status: 0 by contract. Synthesis emitted http_status: 401 for every negative vector, so vector 025 failed while the grader passed it.

Adds a probe_passed validation check that grades the verdict the dispatch layer actually reports (HttpProbeResult.error unset ⇒ pass), and emits it from synthesizeNegativeStep for jwks_override vectors 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 run never populated request_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), with ComplyOptions.request_signing added as a typed passthrough so the default assessment route is covered too. Malformed values exit 2 rather than falling back silently. Also corrects the stale BuildOptions.transport JSDoc 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 from origin/backport-2114-adcp-3.0 (a18bbb73). That branch still has transport: options.transport ?? 'raw' in grader.ts and no request_signing wiring in bin/adcp.js, so nothing on main reaches it. Not done here — it is a separate PR against a separate branch, and no dist/ artifact was hand-edited. Until it lands, 3.0-line operators grade signed_requests from the 3.1 CLI or drive runStoryboard with request_signing: { transport: 'mcp' }; that workaround is now documented in docs/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 canonical fixture_unavailable mapping; 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 stays partial and keeps computeOverallStatus off passing; sibling-track rollup; routed agents (routedAgentOptions({transport:'mcp'}, {protocol:'a2a'}) still grades); onlyVectors/skipVectors before 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_passed synthesis, 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 the signing_transport_unavailable wording), skip-line rendering, and the single-step verdict that must never print Passed for an ungraded step.
  • test/lib/cli-storyboard-signing-threading.test.js (slow group, ~18s) — --file threading, --signing-transport raw observed as a per-operation probe path, the assessment path (storyboard run <url> signed_requests, no --file) proving runFullAssessment forwarding, and a false-assurance guard: a mock that accepts negatives fails them and the run reports partial.

CI fixes in this revision: the skip renderer and flag parser moved into the already-shipped bin/adcp-storyboard-summary.js instead 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).

rateAbuseCap adjudication (not clamped, deliberately). The knob drives a for (i < cap) probe loop, but this PR does not widen its reach: StoryboardRunOptions.request_signing.rateAbuseCap is public on origin/main (types.ts:1723), GradeOptions.rateAbuseCap likewise, and complyImpl on main does not destructure request_signing, so it already flowed through ...testOptions into runOptions — independently confirmed by the reviewer's observation that a comply()-level test passes unchanged on origin/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 bounded grading_target_per_keyid_cap_requests.

Review

Dual-stack per docs/development/REVIEW-STACKS.md, run across three rounds (review:codex code/security/protocol personas with the diff piped via stdin — the repo-read path needs bwrap, unavailable in this sandbox — plus Claude code-reviewer passes). Every blocker the reviews raised changed the patch:

  • Track-level false assurance → per-vector fixture_unavailable reporting, replacing a whole-storyboard skip that produced overall_passed: true | passed 0 | failed 0 | skipped 40.
  • All-unavailable track evaporating into skip → fixture_unavailable check hoisted above the all-skipped return.
  • Standalone storyboard passing off an SDK self-check → UNVERIFIED_COVERAGE_SKIP_REASONS blocks overall_passed.
  • Raw A2A replay of 028 → removed, with the AGENTS.md rule and the official-handler rejection recorded at the call site.
  • onlyVectors after the transport gate → operator selection applied first.
  • Routed-agent override, assessment-path test that didn't discriminate, false adcp#7567 citation, JUnit-invisible self-check title, unredacted skip.detail seam, stale transport_ungradable wording in --help, missing flags in the guide/skill, patch bump on additive public surface (now minor, with the rationale in the changeset) — all addressed.

Changeset included (minor).


🤖 Generated with Claude Code


Open workspace in Conductor

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 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, well-tested bug-fix PR.

Verified against the decision table top-down:

  • No no_auto_approve team match (rule 1 team gate N/A).
  • gated_paths: false — row 2 does not apply despite review_decision: REVIEW_REQUIRED.
  • high_risk: true only via bin/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.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 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 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.

Comment thread bin/adcp.js Fixed
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 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 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 — the computeTrackStatus reorder moves the fixture_unavailable partial 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.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 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 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_unavailable gate on A2A runs (witness fidelity preserved — no fabrication).
  • probe_passed in-library grading for jwks_override negatives; dispatch precedence verified.
  • CLI signing-knob threading, positional exclusion, and flag-validation ordering.
  • computeTrackStatus reorder — no reachable regression for seeding/fixture_unsatisfied/creative producers.
  • OAuth-redacted skip-detail read.
  • Changeset present and correctly typed (minor), consistent with the src/lib/** and bin/** 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.

@KonstantinMirin

Copy link
Copy Markdown
Contributor

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.

agentCapability never reaches the grader

capabilityMismatch and agentCapability appear nowhere in this diff (the only hits are test fixtures). The machinery already ships in grader.mjs — the storyboard path simply never hands it the agent's declared request_signing. So vectors keep being graded against a profile the agent does not implement:

  • negative-007 requires covers_content_digest: "required"; negative-018 requires "forbidden". An agent declares exactly one value, so one of that pair fails for every agent, whatever it declares. They are mutually exclusive by construction.
  • negative-028 asserts a protocol_methods_required_for bucket. An agent that declares nothing there — as the storyboard's own text says it may, "the runner skips when the agent does not declare the bucket" — still gets the vector dispatched and failed.

That is 3 permanent failures on every card, for every agent, that no implementation can move. Merging this closes #2954/#2955/#2956 and leaves that behind.

Measured

Against our seller, with everything in this PR applied and nothing else changed, signed_requests on the mcp card still carries those 3. With the capability wired through, they resolve to capabilityMismatch skips — which is the runner's own designed outcome, not a special case — and signed_requests reaches 0 failures.

Our declared value is covers_content_digest: "either", which is the one that grades the most: "required" would additionally fail the three positives that do not sign a digest, and "forbidden" would fail positive/002, which does. So this is not us picking a lenient profile to dodge vectors — "either" costs us 007 and 018 and we still cannot pass both.

We have opened the fix

#2963 wires agentCapability through. One caution from our own implementation of it, which cost us a re-run: the predicate must exclude a vector only when its verifier_capability names a covers_content_digest value the agent did not declare. Our first attempt matched on "does this vector involve content-digest" and wrongly dropped positive-002 and negative-010, both of which are gradable under "either" — 002 covers the digest and must be accepted, 010 has a mismatch and must be rejected. Over-exclusion inflates a pass rate as effectively as under-exclusion deflates it.

Happy to fold #2963 into this PR instead if you would rather ship it as one change.

Comment thread bin/adcp-storyboard-summary.js Fixed
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 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 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.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 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 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, not escalate — 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.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 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 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: true but only (modified) entries under bin/** 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.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 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 — 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, not escalate — 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]>

@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 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) on bin/** 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, not escalate — 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.

@bokelley
bokelley merged commit d29fe80 into main Sep 18, 2026
38 checks passed
@bokelley
bokelley deleted the conductor/rc-signing-fixes branch September 18, 2026 14:40
bokelley added a commit that referenced this pull request Sep 20, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants