Skip to content

fix(testing): canonicalize agent URLs in storyboard validation - #2872

Merged
bokelley merged 1 commit into
mainfrom
seville-v28
Sep 9, 2026
Merged

bokelley merged 1 commit into
mainfrom
seville-v28

Conversation

@bokelley

@bokelley bokelley commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • canonicalize agent URL identity fields across storyboard value, subset, context, and cross-response validators
  • preserve byte-significant resource URL and query behavior while failing closed for malformed or non-string identities
  • add regression coverage for direct, nested, tolerant, context, and distinct-count paths, plus a patch changeset

Testing

  • npm run build:lib -- --pretty false
  • node --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 ...
  • pre-push validation

Fixes #2858.
Addresses adcontextprotocol/adcp#7367.


Open workspace in Conductor

@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-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

valuesMatch compares format:uri fields with raw ===, making get_products_pagination_integrity/wholesale_first_page unsatisfiable

1 participant