Repository navigation
fix(compliance): backport the explicit sandbox selector on storyboard account refs to 3.2.x (#8216) - #8406
Merged
Conversation
…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]>
Contributor
There was a problem hiding this comment.
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:
sandboxis 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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport of #8216 (main
238d0814c, closes #8179) to3.2.x. The storyboards are regenerated against 3.2.x's own files rather than blindly cherry-picked.media_buy_seller/invalid_transitionssentsandbox: trueoncreate_media_buyonly. The follow-upupdate_media_buysteps omitted the selector, and persandbox.mdxthat names a distinct (production) account, so a conformant seller couldn't resolve the created buy:MEDIA_BUY_NOT_FOUNDinstead ofPACKAGE_NOT_FOUND, and bothdouble_cancelsteps 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: trueas the last key of a step'ssample_request.accountwhen:sandboxkey, andbrand.domain,operator,operator_unit.id) matches asandbox: truefixture in the same file.It leaves these unchanged, matching #8216:
get_products(buying_mode: wholesale) and wholesaleget_signals(discovery_mode: wholesale) requests, which keep omitted-selector semantics in the SDK request builder;sync_accountssteps;specialisms/creative-ad-server/index.yaml, whoselist_creatives/build_tag/report_usagesteps use the live fixture byaccount_id.check_governancepayload.accountgets the selector only where the same file presents the sandbox account oncreate_media_buy. That coversgovernance-spend-authority/index.yamlandgovernance-delivery-monitor/index.yaml, notgovernance-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 addedsandbox: truelines, 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)
test:storyboard-*andtest:compliance-*script passesnode --test tests/lint-storyboard-account-fixtures.node.mjs: 10/10node scripts/build-compliance.cjs --check: passesnode scripts/check-changeset-protocol-scope.cjs origin/3.2.x: passesnpx --yes @changesets/cli@^3.0.0 status --since=origin/3.2.x:adcontextprotocolpatchADCP_SKIP_STORYBOARD_MATRIX=1;training-agent-storyboards.ymlis the authoritative gate🤖 Generated with Claude Code