Repository navigation
fix(testing): canonicalize agent URLs on 13.x - #3019
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean, well-tested backport with no blocking or medium findings.
Verified:
- Canonicalization of
agent_url/*_agent_urlidentity fields across storyboard value comparisons, while keeping resource URLs byte-significant. - Fail-closed handling on malformed identities.
- Comparison-key threading through
valuesMatch/deepEqualJsonValue/containsValueMatchesand all call sites. count_distinctnull handling and thedeepEqual→valuesMatchswap.- Changeset correctness (
.changeset/calm-runners-canonicalize-13x.mdpresent; 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).
There was a problem hiding this comment.
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.
Summary
Backport the remaining stable-runner fix from #2872 to the maintained 13.x line.
@adcp/sdk13.1.0 already carries the missing-parallel_dispatch_runnerbehavior from #2900, but its storyboard value comparisons still use raw equality foragent_urlidentity fields.This change canonicalizes
agent_urland*_agent_urlvalues across literal, subset, context, and cross-response comparisons while keeping resource URLs such aspreview_urlbyte-significant. Malformed identity values fail closed.Tracks adcontextprotocol/adcp#7368 and adcontextprotocol/adcp#7367.
Validation
npm run build:libnpm run typechecknode --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 --checkIncludes the required patch changeset.