Repository navigation
fix(compliance): accept active non-guaranteed media buys - #8027
Conversation
There was a problem hiding this comment.
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_valuesoncheck: field_valueis runner-supported and already in use (deterministic-testing.yaml:149).- Both states are valid
media-buy-statusenum values; no downstream phase hard-assertspending_creatives, so theactivepath doesn't break. status.monotoniccross-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.
A seller without a creative library can create an immediately active non-guaranteed media buy. The sales storyboard required
pending_creativesat creation and pacing, so that valid flow failed compliance before bid updates.Accept
activeandpending_creativesin those two existingfield_valuechecks and clarify the capability-dependent lifecycle expectations. The installed runner supportsallowed_values; itsany_ofcheck 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:
npm ci; full affected runner test file: 23 passed, zero failures or skips.HEAD^,origin/main, andorigin/3.1.x./signals, then was deliberately interrupted because sales isolation took approximately 40 seconds per storyboard. The documentedADCP_SKIP_STORYBOARD_MATRIX=1option 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.