Repository navigation
feat(schema): add expected_confirmation_at to submitted media-buy envelopes - #8016
Conversation
…elopes Optional date-time on the submitted arm of create_media_buy, buy_products and accept_proposal so a buyer can schedule a status check for a scheduled confirmation (booking round, review window) instead of polling tightly. Estimate, not a commitment. Refs #8010. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Request changes
Request changes — 1 blocking finding.
Blocking findings
static/schemas/source/media-buy/media-buy-commitment-response.json:156 —expected_confirmation_atwas added only to orphan schema files (buy-products / accept-proposal async-response-submitted) that are referenced nowhere, while the live wire response — the "Commitment Submitted" branch ofmedia-buy-commitment-response.json(additionalProperties: false) — was not updated. A conformant seller payload carrying the new field would therefore fail validation for buy_products and accept_proposal, contradicting both the changeset (minor, x-added-in 3.3.0) and the docs. This is schema↔docs/wire-shape spec drift.
Note: create_media_buy's submitted shape (two additionalProperties: true schemas) was correctly updated; the changeset type and docs coherence for that path are fine. Fix: add the field to the live additionalProperties: false Commitment Submitted branch so the wire response actually accepts it.
Decision table row 1 (a HIGH finding present) → request-changes.
Blocking findings
- static/schemas/source/media-buy/media-buy-commitment-response.json:156 — expected_confirmation_at added only to orphan schemas for buy_products/accept_proposal; live additionalProperties:false response rejects it, contradicting changeset and docs (spec drift)
…bmitted arm buy_products and accept_proposal validate their submitted arm against media-buy-commitment-response.json (additionalProperties: false), not the unreferenced per-task wrappers. Move the field there, restore the wrappers, and refresh compliance symbol links in create_media_buy.mdx. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Superseded by a later Ladon review that rechecked and resolved its blocking findings.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval.
The prior HIGH blocker is resolved: expected_confirmation_at is now added to the live Commitment Submitted branch of media-buy-commitment-response.json:150 (the additionalProperties: false arm that both buy-products-response.json and accept-proposal-response.json $ref, and that the async submitted envelope routes to). The orphan *-async-response-submitted.json files are correctly reverted, the field is carried in create-media-buy-response.json and create-media-buy-async-response-submitted.json, schema↔docs are coherent across all three task pages, the changeset is correct for an additive optional field, no immutable dist artifacts are touched, and no undiscriminated oneOf was introduced. No current findings.
However, this PR modifies files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true), and review_decision is REVIEW_REQUIRED — not APPROVED. Per decision rule row 2, the gate is not satisfied and the outcome must be escalate. A clean diff cannot clear this gate without a real human/CODEOWNERS approval.
Escalation reasons
static/schemas/source/media-buy/create-media-buy-async-response-submitted.json,create-media-buy-response.json, andmedia-buy-commitment-response.jsonare under the hard approval gate; human/CODEOWNERS review is required (review_decision is REVIEW_REQUIRED, not APPROVED).
Why human review
- Modifies gated schema files under static/schemas/source/** while review_decision is REVIEW_REQUIRED (not APPROVED) — hard approval gate (row 2) requires human/CODEOWNERS review before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/media-buy/create-media-buy-async-response-submitted.json (modified) matches
static/schemas/source/**; static/schemas/source/media-buy/create-media-buy-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/media-buy-commitment-response.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.
…pected_confirmation_at Update the broadcast TV guide for #8016, #8017 and #8025: spot_status, scheduled_at, replaces_spot_id and break_position on by_spot (marked experimental, media_buy.spot_lifecycle), minute-resolution dayparts (experimental, media_buy.daypart_granularity), and expected_confirmation_at on submitted accept_proposal. Rewrites the makegoods section and the did-it-air reconciliation step, and extends the worked example with a preempted spot and its makegood replacement. Docs only. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…t and CPM demo example (#8006) * docs(creative): expand broadcast TV guide with reconciliation contract and CPM demo example Bring the linear TV channel guide up to the shape of the radio guide: :15/:30/:60 video_hosted reference declarations, Ad-ID/ISCI identifiers, no-VAST section, networks/stations/dayparts, demo notation and currency providers, C3/C7 maturation, and a reconciliation contract that reports as-run evidence (by_spot) separately from audience measurement. Adds a worked CPM impression guarantee on a demo through :15/:30 spots (product, request_proposals outcome_target, proposal, delivery with by_spot and by_demographic), states today's limits honestly (demo not bound on CPM pricing, no :30 equivalization; #8001), and notes the makegood menu with #5683 for 3.4. Docs only; no schema changes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * docs(creative): point TV guide at spot lifecycle, minute dayparts, expected_confirmation_at Update the broadcast TV guide for #8016, #8017 and #8025: spot_status, scheduled_at, replaces_spot_id and break_position on by_spot (marked experimental, media_buy.spot_lifecycle), minute-resolution dayparts (experimental, media_buy.daypart_granularity), and expected_confirmation_at on submitted accept_proposal. Rewrites the makegoods section and the did-it-air reconciliation step, and extends the worked example with a preempted spot and its makegood replacement. Docs only. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Summary
Part 1 of #8010 (3.3). Adds an optional
expected_confirmation_at(date-time) to thesubmittedtask envelope so a buyer can schedule a status check for a scheduled confirmation (a booking round, a manual review window) instead of polling tightly.create_media_buysubmitted arm (standalonecreate-media-buy-async-response-submitted.jsonand the inline arm increate-media-buy-response.json), plus the liveCommitment Submittedbranch ofmedia-buy-commitment-response.json, whichbuy_productsandaccept_proposalboth validate against. The per-taskbuy-products-/accept-proposal-async-response-submitted.jsonfiles are unreferenced and left unchanged. The field is deliberately not on the sharedcore/compact-task-submitted.json, which also servesdecline_proposals,control_media_buy,request_proposals, andrefine_proposals, because those tasks don't confirm a purchase.create_media_buy.mdx#expected-confirmation-time): a seller SHOULD set it when confirmation depends on a scheduled event; buyers SHOULD schedule a status check for that time instead of polling tightly; it is an estimate, not a commitment (a passed value is not a failure, and not an expiry). A seller MAY re-emit a revised value on a latersubmittedwebhook and SHOULD NOT send a past timestamp.x-added-in: 3.3.0, not experimental. The field is a generic single timestamp (useful for IO signing and manual review too), not TV-specific, andx-added-inis howoutcome-target.jsonmarks 3.3 additions. The experimental treatment is reserved for thebooking_rounds[]draft (separate PR).node tests/json-schema-validation.test.cjs --file docs/media-buy/task-reference/create_media_buy.mdx, and confirmed it fails on an invalid value). Fictional names (Pinnacle Media). Minor changeset.Notes for reviewers
estimated_completion.get_productsandget_signalssubmitted envelopes already carryestimated_completion(when a search finishes processing). This is a different contract (the scheduled event that confirms a purchase), and the docs say so.update_media_buyhas the same gap (changes confirm on the same calendar) and pairs with Delivery evidence gaps for scheduled and offline channels: change cutoff, package installment selection, cinema and print proof #7777; its submitted envelope is unchanged here. Also deferred: exposing the estimate onget_task_statusfor non-terminal tasks (the tasks-get response has no slot for submitted-state data). Both are additive and could follow in 3.3 if the WG wants them.PARITY_COMPILE_LIMITuntouched; none of these schemas reach the comply controller request."soon"rejected, field optional). Also refreshed compliance symbol links increate_media_buy.mdx(CI had flagged them stale).Testing
node tests/schema-validation.test.cjs,node tests/composed-schema-validation.test.cjs,npm run test:mcp-schema-projection,npm run build:compliance -- --check: passchangeset status: passestimated_completion, example placement, point-in-time/re-emit wording, past-timestamp rule,expires_atinteraction, unified field descriptions)Companion draft (not for merge):
booking_rounds[]sketch and WG decision brief on #8010.🤖 Generated with Claude Code