Skip to content

fix(testing): canonicalize agent URLs on 13.x - #3019

Merged
bokelley merged 2 commits into
13.xfrom
backport/13.x-agent-url-canonicalization
Sep 23, 2026
Merged

bokelley merged 2 commits into
13.xfrom
backport/13.x-agent-url-canonicalization

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Backport the remaining stable-runner fix from #2872 to the maintained 13.x line. @adcp/sdk 13.1.0 already carries the missing-parallel_dispatch_runner behavior from #2900, but its storyboard value comparisons still use raw equality for agent_url identity fields.

This change canonicalizes agent_url and *_agent_url values across literal, subset, context, and cross-response comparisons while keeping resource URLs such as preview_url byte-significant. Malformed identity values fail closed.

Tracks adcontextprotocol/adcp#7368 and adcontextprotocol/adcp#7367.

Validation

  • npm run build:lib
  • npm run typecheck
  • node --test test/lib/storyboard-validations.test.js test/storyboard-cross-step-validators.test.js test/lib/storyboard-parallel-dispatch.test.js (146 focused assertions before the additional cross-response cases; all passing)
  • node --test test/lib/storyboard-parallel-dispatch.test.js (27 assertions including the added identity cases)
  • git diff --check
  • PR title and commitlint checks

Includes the required patch changeset.

@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 backport with no blocking or medium findings.

Verified:

  • Canonicalization of agent_url/*_agent_url identity fields across storyboard value comparisons, while keeping resource URLs byte-significant.
  • Fail-closed handling on malformed identities.
  • Comparison-key threading through valuesMatch/deepEqualJsonValue/containsValueMatches and all call sites.
  • count_distinct null handling and the deepEqual→valuesMatch swap.
  • Changeset correctness (.changeset/calm-runners-canonicalize-13x.md present; type consistent with wire impact) and witness fidelity (no fabrication/re-shaping introduced).

Gate checks: no no-auto-approve team match, gated_paths false, high_risk false, no prior decision. No findings at any severity — falls through the decision table to row 9 (approve).

@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 or medium findings.

Delta since the prior clean approve is formatting-only: object literals in runValidations() / runOne() calls across two test files (storyboard-parallel-dispatch.test.js, storyboard-validations.test.js) were reflowed to multiple lines with all assertions byte-identical. No library, wire-shape, or changeset impact. A changeset (.changeset/calm-runners-canonicalize-13x.md) is present covering the src/lib/** touch.

Gate checks: no no-auto-approve team match; gated_paths is false; review_decision is APPROVED; high_risk is false. No findings of any severity. None of decision rows 1–8 fire, so this falls through to row 9 → approve.

@bokelley
bokelley merged commit 18bbe95 into 13.x Sep 23, 2026
31 checks passed
@bokelley
bokelley deleted the backport/13.x-agent-url-canonicalization branch September 23, 2026 15:12
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.

1 participant