Repository navigation
Conversation
… starts before today A buy or package start_time years in the past was booked. Refuse a start before the caller's current sandbox day (UTC) with INVALID_REQUEST on that start_time field (schema_validation/create_buy_past_start_reject). A start earlier today is accepted: the engine books whole days, so it books the same flight as now, and storefronts commonly send today's midnight. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Parked: this stays a draft for now. This PR refuses a start before the caller's sandbox day. The Apostra storefront has no sandbox clock: it always books on wall time (buys start at now; its create-without-creatives probe starts a few hours ahead). So once a caller's sandbox clock runs ahead of wall time, every buy Apostra sends on that caller's token would be refused as a past start.
Unblocks when the storefront uses its own demo token, and a decision is made on how a wall-time client books against a caller whose sandbox clock is ahead. Options include checking against wall time when the clock is pinned ahead, or a grace window, or Apostra reading the sandbox clock. The storyboard gap it closes ( |
Summary
On the inventory tenants (
/inventory-adserver,/inventory-content),create_media_buybooked a flight whosestart_timewas years in the past.schema_validation'screate_buy_past_start_rejectexpectsINVALID_REQUEST.The new rule:
start_timebefore the start of the caller's current sandbox day (UTC) is refused, withINVALID_REQUESTon thatstart_timefield."asap"is unchanged.This is the second quick gap found when #9150's
seed_*scenarios letschema_validationrun on these tenants. Today's CI doesn't run that storyboard here, so no floor moves; #9150's floors will include this fix.Draft until the R&D coordinator confirms that the Apostra certification never books with a start before the current day.
Test plan
INVALID_REQUESTonstart_time, and a start at today's midnight books. It fails without the fix: the 2020 flight was booked.🤖 Generated with Claude Code