Skip to content

feat(schema): add expected_confirmation_at to submitted media-buy envelopes - #8016

Merged
bokelley merged 2 commits into
mainfrom
conductor/33-tv-confirmation-booking-rounds-8010
Oct 8, 2026
Merged

bokelley merged 2 commits into
mainfrom
conductor/33-tv-confirmation-booking-rounds-8010

Conversation

@bokelley

@bokelley bokelley commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Part 1 of #8010 (3.3). Adds an optional expected_confirmation_at (date-time) to the submitted task envelope so a buyer can schedule a status check for a scheduled confirmation (a booking round, a manual review window) instead of polling tightly.

  • Where: create_media_buy submitted arm (standalone create-media-buy-async-response-submitted.json and the inline arm in create-media-buy-response.json), plus the live Commitment Submitted branch of media-buy-commitment-response.json, which buy_products and accept_proposal both validate against. The per-task buy-products- / accept-proposal-async-response-submitted.json files are unreferenced and left unchanged. The field is deliberately not on the shared core/compact-task-submitted.json, which also serves decline_proposals, control_media_buy, request_proposals, and refine_proposals, because those tasks don't confirm a purchase.
  • Normative text (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 later submitted webhook and SHOULD NOT send a past timestamp.
  • Stable optional, 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, and x-added-in is how outcome-target.json marks 3.3 additions. The experimental treatment is reserved for the booking_rounds[] draft (separate PR).
  • Docs plus a schema-valid example (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

  • Not estimated_completion. get_products and get_signals submitted envelopes already carry estimated_completion (when a search finishes processing). This is a different contract (the scheduled event that confirms a purchase), and the docs say so.
  • Deliberately deferred: update_media_buy has 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 on get_task_status for 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_LIMIT untouched; none of these schemas reach the comply controller request.
  • Review-bot finding fixed: the field was first added only to the unreferenced wrappers; it now lives on the live commitment arm (verified with ajv: valid date-time accepted, "soon" rejected, field optional). Also refreshed compliance symbol links in create_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: pass
  • Changeset scope check and changeset status: pass
  • Local pre-commit (including the full server unit suite and typecheck) passed
  • Reviewed with the ad-tech-protocol-expert and code-reviewer agents; findings addressed (cross-reference to estimated_completion, example placement, point-in-time/re-emit wording, past-timestamp rule, expires_at interaction, unified field descriptions)

Companion draft (not for merge): booking_rounds[] sketch and WG decision brief on #8010.

🤖 Generated with Claude Code

…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]>

@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: Request changes

Request changes — 1 blocking finding.

Blocking findings

  • static/schemas/source/media-buy/media-buy-commitment-response.json:156 — expected_confirmation_at was 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 of media-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]>
@aao-secretariat
aao-secretariat Bot dismissed their stale review October 8, 2026 09:57

Superseded by a later Ladon review that rechecked and resolved its blocking findings.

@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.

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, and media-buy-commitment-response.json are 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) matches static/schemas/source/**; static/schemas/source/media-buy/media-buy-commitment-response.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.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 8, 2026
@bokelley
bokelley merged commit 1406ff1 into main Oct 8, 2026
62 checks passed
@bokelley
bokelley deleted the conductor/33-tv-confirmation-booking-rounds-8010 branch October 8, 2026 14:35
bokelley added a commit that referenced this pull request Oct 8, 2026
…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]>
bokelley added a commit that referenced this pull request Oct 8, 2026
…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]>
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.

1 participant