Skip to content

feat(media-buy): define creative approval startup policy - #8485

Merged
bokelley merged 3 commits into
mainfrom
bokelley/adcp-issue-8479
Oct 25, 2026
Merged

bokelley merged 3 commits into
mainfrom
bokelley/adcp-issue-8479

Conversation

@bokelley

@bokelley bokelley commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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_approved after discovering media_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 own update_creative_start_policy action 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 reports pending_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 rejects true instead of silently ignoring it and echoes default false only 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:

  • Full local pre-commit test selection completed: 1,276 root tests and all 800 server suites, with failed files rerun in isolation. The final creative-features verifier passed all 20 assertions with --hookTimeout=30000 after exceeding its default 10-second setup budget. Dynamic-import/format-identity/call-state guards and both TypeScript checks pass.
  • Startup schema/action contracts and runtime rejection-atomicity/version regressions pass.
  • Full schema validation, schema build, compliance generation/check, changed-page JSON examples, TypeScript checks, and changeset scope/status checks pass.
  • All 42 MCP projection/parity tests and 20 startup/forecast schema contract tests pass. Condensed field prose preserves the contract; the measured controller schema is 1,318,217 bytes under its 1,320,000-byte compile budget, with independent 4 MiB/22 MiB caps retained.
  • Corrected the stale sales-fixed-rate compliance status description flagged by Ladon. Its schema-path approval gate still requires recorded human approval.
  • Protocol and buyer-workflow expert review findings are addressed, including staged launch, scope approval, mixed packages, pause behavior, generative preview versus approval, and action routing.
  • Existing sync_creatives executable-snippet failures reproduce on origin/main; code examples are unchanged.

Includes a minor protocol changeset. Released artifacts are unchanged.

Closes #8479.

@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: 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) matches static/schemas/source/**; static/schemas/source/core/media-buy-available-action-id.json (modified) matches static/schemas/source/**; static/schemas/source/core/media-buy-available-action.json (modified) matches static/schemas/source/**; static/schemas/source/core/media-buy-features.json (modified) matches static/schemas/source/**; static/schemas/source/core/package.json (modified) matches static/schemas/source/**; static/schemas/source/creative/sync-creatives-request.json (modified) matches static/schemas/source/**; static/schemas/source/enums/media-buy-status.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/create-media-buy-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/get-media-buys-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/package-control.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/package-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/package-update.json (modified) matches `stat

…(truncated)…

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 25, 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: 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) matches static/schemas/source/**; static/schemas/source/core/media-buy-available-action-id.json (modified) matches static/schemas/source/**; static/schemas/source/core/media-buy-available-action.json (modified) matches static/schemas/source/**; static/schemas/source/core/media-buy-features.json (modified) matches static/schemas/source/**; static/schemas/source/core/package.json (modified) matches static/schemas/source/**; static/schemas/source/creative/sync-creatives-request.json (modified) matches static/schemas/source/**; static/schemas/source/enums/media-buy-status.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/create-media-buy-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/get-media-buys-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/package-control.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/package-forecast-input.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/package-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/package-update.json (modified) matches static/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.

@bokelley
bokelley enabled auto-merge (squash) October 25, 2026 16:59
@bokelley
bokelley merged commit b581a50 into main Oct 25, 2026
67 checks passed
@bokelley
bokelley deleted the bokelley/adcp-issue-8479 branch October 25, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: may a media buy start before all its assigned creatives are approved?

1 participant