Repository navigation
fix(testing): canonicalize agent URLs in storyboard validation - #2872
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean, well-scoped grading-fidelity fix.
This PR corrects agent-URL identity grading (agent_url, *_agent_url) to use RFC 3986 URI equivalence via the signed-vector-tested canonicalTargetUri('3.2') profile, fixing trailing-slash/host-case/default-port false-negatives (adcp-client#2327, adcp#7367). Resource URLs (preview_url) remain byte-significant, and the change fails closed on null/numeric/malformed input.
Verified against repo rules:
- Witness-not-translator: intact — comparison happens only at the grading seam, no wire reshaping or fabrication.
- Changeset present and correctly typed (patch), consistent with the src/lib/** touch and no export/shape changes.
- Official transport clients: N/A (no protocol/client HTTP/SSE code touched).
No blocking or medium findings. One non-blocking, pre-existing/documented note: cross_response_count_distinct still keeps object-member-order significance.
Decision path: no critical/high findings; gated_paths false; high_risk false; no medium findings; no no-auto-approve team match → falls through to row 9 (approve). Note: review_decision is REVIEW_REQUIRED, but the gated-paths gate (row 2) only applies when gated_paths is true, which it is not here.
Summary
Testing
npm run build:lib -- --pretty falsenode --test test/lib/storyboard-validations.test.js test/lib/storyboard-parallel-dispatch.test.js test/storyboard-cross-step-validators.test.js(166 passed)npx eslint src/lib/testing/storyboard/validations.ts(0 errors; 1 pre-existing warning)npx prettier --check ...Fixes #2858.
Addresses adcontextprotocol/adcp#7367.
Open workspace in Conductor