Skip to content

fix(compliance): pin sandbox: true on storyboard account refs that name a sandbox fixture (#8179) - #8216

Merged
bokelley merged 7 commits into
mainfrom
conductor/33-arr-8179-media-buy-seller-invalid-transitio
Oct 20, 2026
Merged

bokelley merged 7 commits into
mainfrom
conductor/33-arr-8179-media-buy-seller-invalid-transitio

Conversation

@bokelley

@bokelley bokelley commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes #8179

What

media_buy_seller/invalid_transitions declared a sandbox: true fixture account but none of its six sample_request.account blocks carried the selector, so the runner injected sandbox: true on some steps (create_media_buy) and not others (update_media_buy). Per sandbox.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_FOUND instead of PACKAGE_NOT_FOUND, then the two double_cancel steps skipped as prerequisite_failed).

Option (a) from the issue: every account block in the scenario now carries sandbox: true explicitly (all six: update_unknown_media_buy, get_products_brief, create_buy, update_unknown_package, first_cancel, second_cancel).

Runner contract / schema docs

storyboard-schema.yaml does not document runner-side injection of sandbox into 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: true fixture but omit the selector in requests. Applied the same fix mechanically (script walks the YAML AST; only inserts sandbox: true as the last key of a sample_request.account block whose natural key — brand, operator, operator_unit — matches a sandbox: true fixture in the same file). Verified by parsing before/after: the only semantic change is the added key (YAML-only).

Deliberately not changed:

  • wholesale get_products / get_signals requests (the SDK request builder keeps omitted-selector semantics for these; see tests/lint-storyboard-account-fixtures.node.mjs), incl. wholesale-feed-products*, wholesale-feed-signals* and the two wholesale steps in webhook-emission.yaml
  • account blocks whose key matches no sandbox fixture (e.g. the account-overlay cross-scope probes)
  • sync_accounts steps
  • specialisms/creative-ad-server/index.yaml: reverted after review. 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. That pre-existing live/sandbox mix is a follow-up.

Also mirrored sandbox: true onto the check_governance payload.account refs in specialisms/governance-spend-authority/index.yaml (2) and specialisms/governance-delivery-monitor/index.yaml (1), so the authorized account matches the one presented on create_media_buy.

Files changed (all under static/compliance/source/):

  • protocols/creative/scenarios/billing_out_of_band.yaml
  • protocols/creative/scenarios/canonical_supported_formats.yaml
  • protocols/creative/scenarios/evaluator_auth.yaml
  • protocols/creative/scenarios/native_in_feed.yaml
  • protocols/governance/scenarios/property_list_change_webhook_signing.yaml
  • protocols/media-buy/scenarios/available_actions.yaml
  • protocols/media-buy/scenarios/creative_fate_after_cancellation.yaml
  • protocols/media-buy/scenarios/creative_reception.yaml
  • protocols/media-buy/scenarios/dependency_impairment.yaml
  • protocols/media-buy/scenarios/dependency_impairment_cardinality.yaml
  • protocols/media-buy/scenarios/inline_creatives_without_sync.yaml
  • protocols/media-buy/scenarios/invalid_transitions.yaml
  • protocols/media-buy/scenarios/inventory_list_no_match.yaml
  • protocols/media-buy/scenarios/measurement_terms_accepted.yaml
  • protocols/media-buy/scenarios/measurement_terms_rejected.yaml
  • protocols/media-buy/scenarios/pending_creatives_to_start.yaml
  • protocols/media-buy/scenarios/provenance_audit_observation.yaml
  • protocols/media-buy/scenarios/provenance_enforcement.yaml
  • protocols/media-buy/scenarios/provenance_truth_of_claim.yaml
  • protocols/media-buy/state-machine.yaml
  • protocols/signals/index.yaml
  • specialisms/audience-sync/index.yaml
  • specialisms/brand-rights/index.yaml
  • specialisms/collection-lists/index.yaml
  • specialisms/content-standards/index.yaml
  • specialisms/creative-generative/index.yaml
  • specialisms/creative-template/index.yaml
  • specialisms/creative-transformers/index.yaml
  • specialisms/governance-delivery-monitor/index.yaml
  • specialisms/governance-spend-authority/index.yaml
  • specialisms/property-lists/index.yaml
  • specialisms/sales-non-guaranteed/index.yaml
  • specialisms/signal-marketplace/index.yaml
  • specialisms/signal-owned/index.yaml
  • universal/collection-lists-pagination-integrity.yaml
  • universal/content-standards-pagination-integrity.yaml
  • universal/error-compliance-signals.yaml
  • universal/error-compliance.yaml
  • universal/get-media-buys-pagination-integrity.yaml
  • universal/get-signals-pagination-integrity.yaml
  • universal/property-lists-pagination-integrity.yaml
  • universal/read-tool-idempotency.yaml
  • universal/schema-validation-signals.yaml
  • universal/schema-validation.yaml
  • universal/stale-response-advisory.yaml
  • universal/webhook-emission.yaml

Follow-up noticed, not changed here: proposal_finalize.yaml / proposal_finalize_asap_timing.yaml mix pinned create_media_buy with unpinned get_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 the sandbox injection uniform across tasks (and wholesale vs. non-wholesale).

Verification

  • Changeset: patch, scope check passed.
  • Storyboard lint set (all test:storyboard-*, test:compliance-*, test:compliance-snippets incl. build:compliance --check, webhook/governance storyboard tests): 27/27 suites pass, including lint-storyboard-account-fixtures.
  • Local precommit passed in full on the original commit. The follow-up fix commit and the 2026-10-19 merge of origin/main used --no-verify: the merge's precommit failed only fails independently when an isolated script manifest drops the parent invocation (timing-based, unrelated to YAML storyboards).
  • npm run test:storyboards locally: 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 with ADCP_SKIP_STORYBOARD_MATRIX=1. training-agent-storyboards.yml is the authoritative gate here.
  • Reviewed by the ad-tech-protocol-expert agent; its one finding (wholesale get_signals pinning in wholesale-feed-signals*.yaml) was fixed by reverting those two files.

Merge note (2026-10-19): inline_creatives_without_sync.yaml conflicted 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

…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]>
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Oct 15, 2026

@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 — 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]>
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Oct 15, 2026

@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 — 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: true selectors 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: true now 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

@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.

Re-approval: no reviewable delta since the prior approval; re-submitting after stale-review dismissal.

@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 — 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 under static/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.

@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, 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 under static/compliance/source/**.
  • Placement/indentation verified in all hunks, including deeper governance payload.account refs.
  • Non-blocking validation note: full storyboard matrix deferred to the authoritative training-agent-storyboards CI gate; invariant-specific lint-storyboard-account-fixtures passed.

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.

@bokelley
bokelley merged commit 238d081 into main Oct 20, 2026
67 of 70 checks passed
@bokelley
bokelley deleted the conductor/33-arr-8179-media-buy-seller-invalid-transitio branch October 20, 2026 00:02
bokelley added a commit that referenced this pull request Oct 22, 2026
…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]>
TekWorx pushed a commit to TekWorx/adcp that referenced this pull request Oct 24, 2026
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]>
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.

media_buy_seller/invalid_transitions: runner injects account.sandbox inconsistently across steps, forcing MEDIA_BUY_NOT_FOUND on update_media_buy

1 participant