Repository navigation
fix(storyboard): route A2A auth probes through SDK - #2902
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — no blocking or medium findings.
Routes A2A storyboard auth-override probes through the official @a2a-js/sdk via an isolated one-shot TestClient (satisfies official-transport-clients-only) and adds safe, non-secret request-correlation metadata (JSON-RPC method + AdCP skill) to RawHttpCapture. Reviewer verified: complete credential isolation, capture never stores the request body, skill correlation cannot misgrade discovery traffic, and missing captures fail closed to status 0 (no fabrication — witness-not-translator preserved). Changeset present and correctly scoped as patch. Two end-to-end tests cover the happy path and both transport-failure branches.
high_risk is true only via a (modified) file (src/lib/protocols/rawResponseCapture.ts), but with no medium-or-higher findings the modification is presumed safe (row 5 does not fire). gated_paths is false, so row 2 does not apply despite review_decision: REVIEW_REQUIRED. No author team gate. No critical/high/medium findings → decision table falls through to row 9.
7671d6a to
051aa10
Compare
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean subsequent pass, no blocking or Medium findings.
This PR routes A2A storyboard auth-override probes through the official @a2a-js/sdk client and records A2A transport metadata. The reviewer confirmed:
- Credential isolation in
createA2AAuthOverrideClientis sound and well-tested (test_kit/oauth/credential-header stripping; auth override wins overoptions.auth). - Ambiguous/cross-origin captures fail closed.
- No request-payload fabrication or reshaping — witness-not-translator honored.
- Official transport client (
@a2a-js/sdk) used rather than a hand-rolled HTTP/SSE reimplementation. - Changeset present (
.changeset/fuzzy-pandas-probe-a2a.md).
Decision-table walk: no critical/high findings (row 1 n/a); gated_paths is false (row 2 n/a); no (deleted) high-risk reasons (row 3 n/a); no Medium findings (rows 4/5/8 n/a); prior decision was approve, not escalate (row 6 n/a); no no-auto-approve team match (row 7 n/a). Falls through to row 9 → approve.
Note: high_risk is true because src/lib/protocols/rawResponseCapture.ts is a (modified) file matching src/lib/protocols/**, but per the high-risk flag guidance a modified sensitive file with no Medium-or-higher finding is presumed safe. review_decision: REVIEW_REQUIRED does not gate here since gated_paths is false.
Summary
Verification
npm run build:libnpm run typechecknpm run lint(0 errors; 526 existing warnings)npm run test:file -- test/lib/raw-response-capture.test.js test/lib/storyboard-security.test.js test/storyboard-a2a-wire-shape-capture.test.js test/lib/custom-headers.test.js(146 passed)Fixes #2878
Open workspace in Conductor