Repository navigation
feat(media-buy): define creative approval startup policy - #8485
Conversation
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval (review_decision is REVIEW_REQUIRED).
This PR adds the AdCP 3.3 start_requires_all_creatives_approved package start-policy gate: a new optional field (default false) defined consistently across package-request/update/control, core/package, and get-media-buys-response, plus the creative_start_policy feature flag, the structured-only update_creative_start_policy action, and enum semantics mirrored in docs and tests. Schema↔docs coherence is strong; the changeset is correctly additive/minor to unreleased 3.3; no Critical/High findings surfaced.
Why escalate (not approve): The diff modifies 13 files under static/schemas/source/**, which are declared under a hard, deterministic approval gate (gated_paths: true). review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied (decision table row 2). These are protocol wire-shape source files — human/CODEOWNERS review is required before merge. Additionally, this is a protocol-surface change on the published schema; per repo governance a protocol change must be classified against the constitution's decision classes, and ratification of spec changes is a human act.
Medium findings (do not block on their own; carried into the human review):
- static/compliance/source/specialisms/sales-fixed-rate/index.yaml:56 — stale pre-3.3 provisional-buy status prose, inconsistent with the new enum semantics the PR updated elsewhere (file not in diff).
Gated files requiring approval: static/schemas/source/{core/canonical-media-buy-action.json, core/creative-assignment.json, core/media-buy-available-action-id.json, core/media-buy-available-action.json, core/media-buy-features.json, core/package.json, creative/sync-creatives-request.json, enums/media-buy-status.json, media-buy/create-media-buy-response.json, media-buy/get-media-buys-response.json, media-buy/package-control.json, media-buy/package-request.json, media-buy/package-update.json}.
Medium findings
- static/compliance/source/specialisms/sales-fixed-rate/index.yaml:56 — Stale provisional-buy status prose in sales-fixed-rate compliance storyboard
Why human review
- Gated paths: 13 files under static/schemas/source/** are under a hard approval gate and review_decision is REVIEW_REQUIRED (not APPROVED) — human/CODEOWNERS review required before merge
- Protocol-surface change to published AdCP schema source — governance requires human classification/ratification of spec changes; not auto-approvable without an APPROVED review
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-media-buy-action.json (modified) matches
static/schemas/source/**; static/schemas/source/core/creative-assignment.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/media-buy-available-action-id.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/media-buy-available-action.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/media-buy-features.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/package.json (modified) matchesstatic/schemas/source/**; static/schemas/source/creative/sync-creatives-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/media-buy-status.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/create-media-buy-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-media-buys-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/package-control.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/package-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/package-update.json (modified) matches `stat
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema source changes require human/CODEOWNERS approval.
This PR modifies 13 files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
No blocking findings. The reviewer's delta pass over 9 files found no new Critical/High/Medium issues. Changes are editorial/additive: five start_requires_all_creatives_approved descriptions condensed with every normative MUST preserved; package-forecast-input.json adds the field via a valid $ref to package-request.json following the existing end_time/paused pattern, covered by the changeset and new tests; the PARITY_COMPILE_LIMIT bump to 1_320_000 (measured 1_318_217) is documented with headroom.
Prior finding resolved. The previous Medium on static/compliance/source/specialisms/sales-fixed-rate/index.yaml:56 (stale provisional-buy prose) has been addressed — the reworded narrative at L56-58 now aligns with the pending_creatives/pending_start enum definitions. Net improvement over the prior run.
Escalation is driven solely by the unsatisfied gated-paths gate plus protocol-surface governance (spec changes require human classification/ratification). Once an APPROVED review is recorded, this PR can fall through to the normal table and approve on the clean diff.
Why human review
- Gated paths: 13 files under static/schemas/source/** are under a hard approval gate and review_decision is REVIEW_REQUIRED (not APPROVED) — human/CODEOWNERS review required before merge.
- Protocol-surface change to published AdCP schema source (new package-forecast-input field, condensed normative descriptions) — governance requires human classification/ratification of spec changes; not auto-approvable without an APPROVED review.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-media-buy-action.json (modified) matches
static/schemas/source/**; static/schemas/source/core/creative-assignment.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/media-buy-available-action-id.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/media-buy-available-action.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/media-buy-features.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/package.json (modified) matchesstatic/schemas/source/**; static/schemas/source/creative/sync-creatives-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/media-buy-status.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/create-media-buy-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-media-buys-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/package-control.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/package-forecast-input.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/package-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/package-update.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
When a booked package has five assigned creatives—two approved, one rejected, and two still in review—buyers currently cannot predict whether the seller serves the approved subset, waits for the whole set, or rejects assignment.
This defines the AdCP 3.3 behavior: retain otherwise-valid pending-review/rejected assignments and serve eligible approved scopes by default. Buyers can opt into
start_requires_all_creatives_approvedafter discoveringmedia_buy.features.creative_start_policy. The package gate applies until first enablement for serving, independently of measured impressions. Exact-package availability forecasts share the same create-package field through a canonical reference and remain read-only. The compact package-control path has its ownupdate_creative_start_policyaction and exact seller-owned package scope, outside commercial proposal terms. Atomic assignment or paused staging prevents an incomplete intended launch set from starting prematurely.Seller review alone reports
pending_start; missing coverage or a blocking rejection requiring buyer action reportspending_creatives. The new pre-activation review-rejection cycle is version-gated in the local test controller. The reference seller does not claim optional gate support: it atomically rejectstrueinstead of silently ignoring it and echoes defaultfalseonly on 3.3+ readback.Merged SDK companion: adcontextprotocol/adcp-client#3425 . It adds matching version-aware seller/conformance graphs and operational buyer preflight/seller projection while preserving older protocol contracts.
Validation:
--hookTimeout=30000after exceeding its default 10-second setup budget. Dynamic-import/format-identity/call-state guards and both TypeScript checks pass.sync_creativesexecutable-snippet failures reproduce onorigin/main; code examples are unchanged.Includes a minor protocol changeset. Released artifacts are unchanged.
Closes #8479.