Skip to content

fix(compliance): backport the explicit sandbox selector on storyboard account refs to 3.2.x (#8216) - #8406

Merged
bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-storyboard-sandbox-selector
Oct 22, 2026
Merged

bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-storyboard-sandbox-selector

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Backport of #8216 (main 238d0814c, closes #8179) to 3.2.x. The storyboards are regenerated against 3.2.x's own files rather than blindly cherry-picked.

media_buy_seller/invalid_transitions sent sandbox: true on create_media_buy only. The follow-up update_media_buy steps omitted the selector, and per sandbox.mdx that names a distinct (production) account, so a conformant seller couldn't resolve the created buy: MEDIA_BUY_NOT_FOUND instead of PACKAGE_NOT_FOUND, and both double_cancel steps skipped. The same omission exists across 3.2.x's storyboards.

How the sweep was re-run

#8216's sweep script was not committed, so I re-implemented it from the PR's stated rules. It walks the YAML AST and inserts sandbox: true as the last key of a step's sample_request.account when:

  • the block has no sandbox key, and
  • its natural key (brand.domain, operator, operator_unit.id) matches a sandbox: true fixture in the same file.

It leaves these unchanged, matching #8216:

  • wholesale get_products (buying_mode: wholesale) and wholesale get_signals (discovery_mode: wholesale) requests, which keep omitted-selector semantics in the SDK request builder;
  • sync_accounts steps;
  • account blocks whose key matches no sandbox fixture;
  • specialisms/creative-ad-server/index.yaml, whose list_creatives / build_tag / report_usage steps use the live fixture by account_id.

check_governance payload.account gets the selector only where the same file presents the sandbox account on create_media_buy. That covers governance-spend-authority/index.yaml and governance-delivery-monitor/index.yaml, not governance-spend-authority/denied.yaml, which has no buy.

Calibration: run on main's pre-#8216 tree (238d0814c^), the script reproduces #8216 byte-for-byte. Run on 3.2.x, it touches the same 46 files with identical per-file insertion counts (225 lines). No 3.2.x storyboard outside that set has the defect, and nothing 3.3-only comes in: the diff is only added sandbox: true lines, verified by parsing each file before and after. The changeset is #8216's, unchanged (patch).

Patch eligibility

This is a conformance-harness fix only. There are no schema, task or wire-contract changes. It makes requests use the account the storyboard already seeds.

Verification (on this branch)

  • Every test:storyboard-* and test:compliance-* script passes
  • node --test tests/lint-storyboard-account-fixtures.node.mjs: 10/10
  • node scripts/build-compliance.cjs --check: passes
  • node scripts/check-changeset-protocol-scope.cjs origin/3.2.x: passes
  • npx --yes @changesets/cli@^3.0.0 status --since=origin/3.2.x: adcontextprotocol patch
  • Pushed with ADCP_SKIP_STORYBOARD_MATRIX=1; training-agent-storyboards.yml is the authoritative gate

🤖 Generated with Claude Code

…me a sandbox fixture (#8179)

Backport of #8216 (main 238d081) to 3.2.x, regenerated against 3.2.x's
storyboards instead of cherry-picked.

media_buy_seller/invalid_transitions sent sandbox: true on create_media_buy
only; the follow-up update_media_buy steps omitted the selector, which per
sandbox.mdx is a distinct (production) account, so the created buy could not
be resolved. Every sample_request.account whose natural key (brand,
operator, operator_unit) matches a sandbox: true fixture in the same file
now carries sandbox: true. Left unchanged: wholesale get_products
(buying_mode: wholesale) and get_signals (discovery_mode: wholesale)
requests, sync_accounts steps, keys that match no sandbox fixture, and
specialisms/creative-ad-server. check_governance payload.account is
mirrored only where the same file presents the sandbox account on
create_media_buy.

The sweep reproduces #8216 byte-for-byte on main's pre-#8216 tree. On
3.2.x it touches the same 46 files with the same per-file insertion counts.
The only semantic change is the added key.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

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 conformance-harness backport.

This PR backports #8216 to 3.2.x: it adds the account sandbox: true selector to compliance scenario fixtures where a seeded sandbox fixture shares a natural key with the request account. The reviewer verified:

  • sandbox is a valid boolean on account-ref/canonical-account-ref/account schemas (no validation break).
  • The changeset is present, patch-typed, and correctly scoped (compliance assets are conformance-only published surface with no wire change).
  • The sweep is limited to files with seeded sandbox fixtures; wholesale requests and account_id-keyed files are correctly excluded.
  • The invalid_transitions natural-key ambiguity is genuinely resolved.
  • No schema/dist/oneOf/governance changes; not Breaking-class.

No Critical/High/Medium findings. high_risk is false, gated_paths is false, no author team gate. No escalation triggers (no deletions in sensitive paths, no schema/data-loss/infra medium, no sticky prior). Falls through to row 9 → approve.

Blocking findings: none.
Medium findings: none.

@bokelley
bokelley merged commit acfa19d into 3.2.x Oct 22, 2026
70 of 71 checks passed
@bokelley
bokelley deleted the backport/3.2.x-storyboard-sandbox-selector branch October 22, 2026 12:18
bokelley added a commit that referenced this pull request Oct 24, 2026
Refresh #8302 onto the v3.2.6 release merge (3523bdc) so the evaluator
off-list rejection coverage ships in 3.2.7. Clean merge: the only shared
storyboard file, evaluator_auth.yaml, auto-merged #8406's five sandbox: true
account selectors into the PR's rewritten phases, and the result is
byte-identical to main's evaluator_auth.yaml and creative-build-probe test kit.
@adcp/sdk stays 14.0.0-rc.53 with an unchanged lock entry, so all 25 adapter
targets still apply against their pinned preimages.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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