Skip to content

fix(compliance): accept active non-guaranteed media buys - #8027

Merged
bokelley merged 1 commit into
mainfrom
fix/8015-non-guaranteed-lifecycle
Oct 9, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/8015-non-guaranteed-lifecycle

Conversation

@bokelley

@bokelley bokelley commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

A seller without a creative library can create an immediately active non-guaranteed media buy. The sales storyboard required pending_creatives at creation and pacing, so that valid flow failed compliance before bid updates.

Accept active and pending_creatives in those two existing field_value checks and clarify the capability-dependent lifecycle expectations. The installed runner supports allowed_values; its any_of check evaluates contribution flags rather than nested field checks. Response schemas, context echo, package state, and recorded upstream POST checks remain required.

Regression fixtures parse the actual storyboard through the official SDK parser. Both accepted states complete creation, pacing, and bid updates; other states fail; incorrect context and missing upstream traffic still fail.

Validation:

  • Fresh normal npm ci; full affected runner test file: 23 passed, zero failures or skips.
  • Compliance build and storyboard lints, protocol changeset scope, and immutable release-artifact check passed.
  • Actual commit hook passed: 1,106 root tests; 12,268 server tests with 31 existing skips; import/format/API guards and both typechecks.
  • Installed official Changesets status passed against HEAD^, origin/main, and origin/3.1.x.
  • Actual push hook passed version sync and changeset policy. The local advisory matrix passed /signals, then was deliberately interrupted because sales isolation took approximately 40 seconds per storyboard. The documented ADCP_SKIP_STORYBOARD_MATRIX=1 option was used for delivery; full authoritative service CI remains required. Local sales is incomplete and local 3.0 compatibility is unrun. Mintlify correctly skipped because no docs changed.

Package, lock, and published artifacts are unchanged. Fresh install disclosed 51 existing audit findings (7 low, 11 moderate, 30 high, 3 critical); no audit fix or security-clean claim. This source PR adds a patch changeset. Maintenance backport follows the main merge.

Fixes #8015.

@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, non-breaking loosening of two compliance assertions.

This PR loosens two media_buy_status field_value checks in sales-non-guaranteed/index.yaml (create_media_buy L451, get_media_buys_pacing L509) from value: pending_creatives to allowed_values: [pending_creatives, active], letting a seller without a creative library complete the non-guaranteed flow.

What I checked:

  • allowed_values on check: field_value is runner-supported and already in use (deterministic-testing.yaml:149).
  • Both states are valid media-buy-status enum values; no downstream phase hard-asserts pending_creatives, so the active path doesn't break.
  • status.monotonic cross-step assertion still rejects nonsensical transitions; context-echo, package-state, response-schema, and upstream-POST checks remain required. New regression tests confirm other states / missing upstream / bad context still fail.
  • Patch changeset present and in-scope for the compliance protocol surface; non-breaking loosening (widens acceptance, no wire-shape change, no enum/field/required alteration).

Non-blocking note: the checks now accept either status unconditionally, so the has_creative_library profile flag is decorative — a documented, intentional Normative-class tradeoff, not a code defect.

No critical/high/medium findings. gated_paths is false; high_risk is false; no author team gate. review_decision is REVIEW_REQUIRED but no hard gate applies (row 2 requires gated_paths true). This is a non-breaking Normative/Editorial loosening, not a Breaking-class change, so the breaking-change hard gate does not fire. Falls through to row 9.

@bokelley
bokelley merged commit 07f2ad1 into main Oct 9, 2026
76 of 77 checks passed
@bokelley
bokelley deleted the fix/8015-non-guaranteed-lifecycle branch October 9, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant