Repository navigation
fix(media-buy): preserve legacy discovery coverage and request semantics - #7444
Conversation
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval.
This PR modifies published protocol schema source under static/schemas/source/** (product-filters.json, product-offer-filters.json, get-products-request.json), which is a hard, deterministic approval gate. gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so per decision rule row 2 the outcome must be escalate.
The reviewer surfaced no Critical/High/Medium findings: schema↔docs coherence verified, correct minor changeset, oneOf audit intact, released artifacts untouched, and fail-closed reference-seller code with comprehensive tests. The diff itself looks clean — but this is an additive change to the published protocol wire surface, and ratification of protocol schema changes is a human act. The gate lifts once a human/CODEOWNERS review approves.
Blocking findings: none.
Escalation reasons:
- Modifies gated schema source files (
static/schemas/source/core/product-filters.json,static/schemas/source/core/product-offer-filters.json,static/schemas/source/media-buy/get-products-request.json) — hard approval gate,review_decisionisREVIEW_REQUIRED. Human/CODEOWNERS approval required before merge.
Why human review
- Modifies gated schema source under static/schemas/source/** (product-filters.json, product-offer-filters.json, get-products-request.json) — hard approval gate with review_decision=REVIEW_REQUIRED; human/CODEOWNERS approval required.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/product-filters.json (modified) matches
static/schemas/source/**; static/schemas/source/core/product-offer-filters.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-products-request.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.
A 3.1 buyer's geographic coverage filter can currently be translated into delivery targeting, or rejected as ambiguous when the buyer also supplies an independent overlay. Compact offer filters have a country home but no sub-country homes. This change preserves coverage as product eligibility across retained
get_productsand native discovery.Adds
regions,metros,postal_areas, andgeo_proximitytoproduct-offer-filters, corrects migration and deprecation guidance, and defines seller obligations for legacy fields that cannot be translated mechanically. Raw legacy requests remain authoritative; shared services may preserve formats, inline catalogs, projections, preferences, budgets, identities, and transaction semantics. Unsupported inputs require an explicit field-specific preflight error. Native required signatures, purchase continuations, and loss-consent policies remain unchanged.The reference seller now evaluates declared country/metro inventory independently of delivery targeting. A new compliance scenario uses independent negative controls and one-row pagination; the existing targeting scenario now accepts Canadian coverage plus US delivery for an offer covering both countries. The training fixture supports discrete country/metro facts and explicitly rejects geography it cannot evaluate; this is not an implementation of a general geospatial engine or every legacy business rule.
Addresses #7403 and follows the source-pinned audit in #7420. The wider cross-language response-conformance harness remains a separate implementation under #7439. This is a 3.2 minor protocol change; no immutable released artifacts are modified.
Validation: