Repository navigation
fix(compliance): pin sandbox: true on storyboard account refs that name a sandbox fixture (#8179) - #8216
Conversation
…me a sandbox fixture (#8179) 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. Pin sandbox: true on all six sample_request.account blocks, and sweep the same omission across other storyboards whose account natural key matches a sandbox fixture in the same file. Wholesale get_products / get_signals requests and non-matching keys are left unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — mechanical compliance-storyboard PR pinning sandbox: true on ~40 sample_request.account blocks that reference a dual-fixture natural key. No wire/schema change, changeset is correct (patch, compliance surface), and reviewer verified uniformity on the named scenarios.
Two Medium findings (no blocking issues):
- static/compliance/source/specialisms/creative-ad-server/index.yaml:329 — stateful flow split across live and sandbox accounts
- static/compliance/source/specialisms/governance-spend-authority/index.yaml:451 — check_governance payload.account omits sandbox selector while authorized create pins it
Decision trace: no critical/high findings (row 1 no). gated_paths=false (row 2 no). high_risk=false, no deletions (rows 3,5 no). Both medium findings are conformance-artifact category — not data-loss/schema/infra (row 4 no). No prior decision (row 6 no). No no-auto-approve team match (row 7 no). Only 2 medium findings, fewer than 3 (row 8 no). Falls through to row 9 → approve. Both gaps are non-blocking and surfaced inline for follow-up.
Medium findings
- static/compliance/source/specialisms/creative-ad-server/index.yaml:329 — creative-ad-server stateful flow split across live and sandbox accounts
- static/compliance/source/specialisms/governance-spend-authority/index.yaml:451 — check_governance payload.account omits sandbox selector while authorized create pins it
… governance payloads (#8179) - creative-ad-server: revert the pin; its list_creatives/build_tag/report_usage steps reference the live fixture by account_id, so pinning only get_creative_delivery would split one flow across two accounts. - governance-spend-authority / governance-delivery-monitor: mirror the sandbox selector onto check_governance payload.account so the authorized account matches the account presented on create_media_buy. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — conformance-only storyboard edits resolving prior sandbox-selector splits.
This is a subsequent pass on a clean iteration. The prior run flagged two mediums, both now resolved:
- creative-ad-server:329 —
sandbox: trueselectors removed so all account-bearing stateful steps (list_creatives, build_creative, get_creative_delivery, report_usage) resolve to the single live fixture; split eliminated. - governance-spend-authority:451 —
sandbox: truenow applied consistently across all three account-bearing steps (check_governance_conditions, check_governance_adjusted, create_media_buy), resolving the check↔create mismatch.
Additionally governance-delivery-monitor gained a sandbox selector on check_governance_approved, completing its three account-bearing steps. The patch changeset is correct for conformance-only storyboard edits. No new findings this run.
Gate check: no critical/high findings; gated_paths is false (so row 2 does not fire despite review_decision=REVIEW_REQUIRED); high_risk false; no no-auto-approve team match; zero medium findings. Falls through to row 9 → approve. Prior decision was also approve, so no sticky-escalation concern. Net improvement over the prior pass.
…-media-buy-seller-invalid-transitio # Conflicts: # static/compliance/source/protocols/media-buy/scenarios/inline_creatives_without_sync.yaml
…-media-buy-seller-invalid-transitio
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — compliance-fixture-only change, clean review with no findings.
This PR adds sandbox: true to the sample_request.account objects across 46 compliance fixture YAMLs plus one correctly-typed patch changeset. The reviewer verified that sandbox is a defined boolean on core/account.json, and its schema description confirms the rationale: for buyer-declared accounts, sandbox is part of the natural key, so a request seeding (brand, operator, sandbox:true) must repeat the selector on follow-up calls for a conformant seller to resolve the account.
Checks:
- No schema or wire-contract change — conformance artifacts only; no oneOf/discriminator impact.
- Changeset present and correctly typed (
patch), consistent with the rationale. - Placement consistent (sibling of
operator/operator_unit) across all files. - No
dist/**immutable-artifact modification (changes are understatic/compliance/source/**).
Gate evaluation (top-down):
- No critical/high/medium findings (row 1, 4, 5 not triggered).
- gated_paths: false; review_decision: APPROVED (row 2 n/a).
- high_risk: false, no deletions (rows 3, 5 n/a).
- Prior decision was approve (row 6 n/a).
- No no-auto-approve team match (row 7 n/a).
- Zero medium findings (row 8 n/a).
- Falls through to row 9 → approve.
…-media-buy-seller-invalid-transitio
…-media-buy-seller-invalid-transitio
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean, additive conformance-fixture fix.
This PR mechanically inserts sandbox: true as a sibling of operator in sample_request.account blocks across 46 compliance storyboards whose fixtures declare a sandbox account. sandbox is a defined boolean on core/account.json documented as part of the buyer-declared natural key, so a conformant seller treating (brand, operator, sandbox:true) as a distinct natural key resolves the same account across steps.
Checks:
- No schema, wire-shape, dist, or oneOf change — additive-only (230 additions, 0 deletions) to compliance source fixtures.
- Changeset present and correct:
patch/adcontextprotocol, appropriate for a non-wire conformance artifact. - No released-artifact (
dist/<semver>/) mutation — changes are understatic/compliance/source/**. - Placement/indentation verified in all hunks, including deeper governance
payload.accountrefs. - Non-blocking validation note: full storyboard matrix deferred to the authoritative training-agent-storyboards CI gate; invariant-specific
lint-storyboard-account-fixturespassed.
No Critical/High/Medium findings. high_risk false, gated_paths false, review_decision APPROVED, no author team gate. No decision-table trigger fires (rows 1–8) → row 9 approve.
…me a sandbox fixture (#8179) (#8406) 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]>
Merge the published v3.2.6 maintenance release (tag v3.2.6, 3523bdc, the adcontextprotocol#8274 Version Packages merge on 3.2.x) into main as a record-only merge, following adcontextprotocol#8278 for 3.2.5. The merge keeps main's tree (ours strategy) and adds only the 3.2.6 release records: - dist/schemas/3.2.6/, dist/compliance/3.2.6/ and the signed dist/protocol/3.2.6.tgz{,.crt,.sha256,.sig} tuple, byte-identical to the tag. - CHANGELOG.md: the 3.2.6 block, verbatim from the tag, inserted below main's 3.3.0-beta.0 section. (The workflow's take-3.2.x rule would have dropped that section.) - static/compliance/published-versions.json: register 3.2.6, matching the 3.2.x manifest. - dist/schemas/index.json and latest.json: regenerated by build:schemas; latest_stable, v3 and v3.2 now 3.2.6. main's 3.3.0-beta.0 entry and v3.0 (3.0.28) are kept; taking 3.2.x's copy would have regressed both. The 3.2.5..3.2.6 source changes are all backports of work already on main in its main form (adcontextprotocol#8335, adcontextprotocol#8402, adcontextprotocol#8218, adcontextprotocol#8216, adcontextprotocol#8341/adcontextprotocol#8387, adcontextprotocol#8327/adcontextprotocol#8334, adcontextprotocol#8260, adcontextprotocol#8261, adcontextprotocol#8263, adcontextprotocol#8244), so no 3.2.x source is taken. The second parent records that reconciliation so the next 3.2.x forward merge does not re-conflict on it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Closes #8179
What
media_buy_seller/invalid_transitionsdeclared asandbox: truefixture account but none of its sixsample_request.accountblocks carried the selector, so the runner injectedsandbox: trueon some steps (create_media_buy) and not others (update_media_buy). Persandbox.mdx,(brand, operator, sandbox: true)is a distinct account from(brand, operator), so a conformant seller could not resolve the created buy on the follow-up (MEDIA_BUY_NOT_FOUNDinstead ofPACKAGE_NOT_FOUND, then the twodouble_cancelsteps skipped asprerequisite_failed).Option (a) from the issue: every account block in the scenario now carries
sandbox: trueexplicitly (all six:update_unknown_media_buy,get_products_brief,create_buy,update_unknown_package,first_cancel,second_cancel).Runner contract / schema docs
storyboard-schema.yamldoes not document runner-side injection ofsandboxinto the account reference (its sandbox mentions cover seeding, the signing path and the controller), so no schema-doc change.Sweep (same defect elsewhere)
Many storyboards seed a
sandbox: truefixture but omit the selector in requests. Applied the same fix mechanically (script walks the YAML AST; only insertssandbox: trueas the last key of asample_request.accountblock whose natural key — brand, operator, operator_unit — matches asandbox: truefixture in the same file). Verified by parsing before/after: the only semantic change is the added key (YAML-only).Deliberately not changed:
get_products/get_signalsrequests (the SDK request builder keeps omitted-selector semantics for these; seetests/lint-storyboard-account-fixtures.node.mjs), incl.wholesale-feed-products*,wholesale-feed-signals*and the two wholesale steps inwebhook-emission.yamlaccount-overlaycross-scope probes)sync_accountsstepsspecialisms/creative-ad-server/index.yaml: reverted after review. Itslist_creatives/build_tag/report_usagesteps reference the live fixture byaccount_id, so pinning onlyget_creative_deliverywould split one flow across two accounts. That pre-existing live/sandbox mix is a follow-up.Also mirrored
sandbox: trueonto thecheck_governancepayload.accountrefs inspecialisms/governance-spend-authority/index.yaml(2) andspecialisms/governance-delivery-monitor/index.yaml(1), so the authorized account matches the one presented oncreate_media_buy.Files changed (all under
static/compliance/source/):protocols/creative/scenarios/billing_out_of_band.yamlprotocols/creative/scenarios/canonical_supported_formats.yamlprotocols/creative/scenarios/evaluator_auth.yamlprotocols/creative/scenarios/native_in_feed.yamlprotocols/governance/scenarios/property_list_change_webhook_signing.yamlprotocols/media-buy/scenarios/available_actions.yamlprotocols/media-buy/scenarios/creative_fate_after_cancellation.yamlprotocols/media-buy/scenarios/creative_reception.yamlprotocols/media-buy/scenarios/dependency_impairment.yamlprotocols/media-buy/scenarios/dependency_impairment_cardinality.yamlprotocols/media-buy/scenarios/inline_creatives_without_sync.yamlprotocols/media-buy/scenarios/invalid_transitions.yamlprotocols/media-buy/scenarios/inventory_list_no_match.yamlprotocols/media-buy/scenarios/measurement_terms_accepted.yamlprotocols/media-buy/scenarios/measurement_terms_rejected.yamlprotocols/media-buy/scenarios/pending_creatives_to_start.yamlprotocols/media-buy/scenarios/provenance_audit_observation.yamlprotocols/media-buy/scenarios/provenance_enforcement.yamlprotocols/media-buy/scenarios/provenance_truth_of_claim.yamlprotocols/media-buy/state-machine.yamlprotocols/signals/index.yamlspecialisms/audience-sync/index.yamlspecialisms/brand-rights/index.yamlspecialisms/collection-lists/index.yamlspecialisms/content-standards/index.yamlspecialisms/creative-generative/index.yamlspecialisms/creative-template/index.yamlspecialisms/creative-transformers/index.yamlspecialisms/governance-delivery-monitor/index.yamlspecialisms/governance-spend-authority/index.yamlspecialisms/property-lists/index.yamlspecialisms/sales-non-guaranteed/index.yamlspecialisms/signal-marketplace/index.yamlspecialisms/signal-owned/index.yamluniversal/collection-lists-pagination-integrity.yamluniversal/content-standards-pagination-integrity.yamluniversal/error-compliance-signals.yamluniversal/error-compliance.yamluniversal/get-media-buys-pagination-integrity.yamluniversal/get-signals-pagination-integrity.yamluniversal/property-lists-pagination-integrity.yamluniversal/read-tool-idempotency.yamluniversal/schema-validation-signals.yamluniversal/schema-validation.yamluniversal/stale-response-advisory.yamluniversal/webhook-emission.yamlFollow-up noticed, not changed here:
proposal_finalize.yaml/proposal_finalize_asap_timing.yamlmix pinnedcreate_media_buywith unpinnedget_products(no sandbox fixture declared in those files).For adcp-client
Please add the runner-level guard suggested in the issue: assert the account reference (including
sandbox) is byte-identical across all steps of a storyboard, so account-identity drift mid-scenario fails the run instead of producing a misleading compliance result. Also worth making thesandboxinjection uniform across tasks (and wholesale vs. non-wholesale).Verification
patch, scope check passed.test:storyboard-*,test:compliance-*,test:compliance-snippetsincl.build:compliance --check, webhook/governance storyboard tests): 27/27 suites pass, includinglint-storyboard-account-fixtures.origin/mainused--no-verify: the merge's precommit failed onlyfails independently when an isolated script manifest drops the parent invocation(timing-based, unrelated to YAML storyboards).npm run test:storyboardslocally: signals tenant passed (53 clean); the sales tenant did not finish within the sandbox's time limit (loaded sandbox), so the local run was not completed and pushed withADCP_SKIP_STORYBOARD_MATRIX=1.training-agent-storyboards.ymlis the authoritative gate here.get_signalspinning inwholesale-feed-signals*.yaml) was fixed by reverting those two files.Merge note (2026-10-19):
inline_creatives_without_sync.yamlconflicted with main's restructure; resolved by taking main's file and re-applying the deterministic pin (14 blocks, up from 8 because main added steps). Re-swept all other files: no new gaps.🤖 Generated with Claude Code
Open workspace in Conductor