Repository navigation
feat(targeting): add daypart timezone semantics - #7187
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 six 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 per decision rule row 2 the outcome must be escalate.
The change itself looks clean: additive daypart timezone semantics (new optional timezone field: inventory_local | IANA) plus product-scoped daypartSupport/daypartRequirement capability shapes. The reviewer verified schema↔docs coherence across all six schema files and their docs pages, confirmed the Normative (non-breaking) change is correctly carried by a minor changeset, found no new undiscriminated oneOf, no dist mutation, no breaking wire change, and coherent fail-closed server validation and test coverage. No blocking or Medium findings.
Because the diff is additive/Normative (not Breaking) and has no actionable findings, this escalation is driven purely by the unsatisfied approval gate — a human/CODEOWNERS approval on the gated schema files is required before merge.
Escalation reasons:
- Touches gated schema files (
static/schemas/source/core/daypart-target.json,product-allocation.json,targeting-overlay-requirements.json,targeting-overlay-support.json,targeting.json, andstatic/schemas/source/media-buy/get-products-request.json) whilereview_decisionis REVIEW_REQUIRED — human/CODEOWNERS approval required.
Why human review
- Gated paths under static/schemas/source/** are modified while review_decision is REVIEW_REQUIRED (not APPROVED); human/CODEOWNERS approval is required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/daypart-target.json (modified) matches
static/schemas/source/**; static/schemas/source/core/product-allocation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/targeting-overlay-requirements.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/targeting-overlay-support.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/targeting.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.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths under static/schemas/source/** are modified while review_decision is REVIEW_REQUIRED (not APPROVED).
The reviewer's subsequent pass is clean: the schema refactor extracts shared iana-timezone.json and daypart-timezone-mode.json, references them via $ref across daypart-target and targeting-overlay-{requirements,support}, and registers both in index.json. The new not:{const:"inventory_local"} on iana-timezone.json keeps the accepted wire union unchanged; the iana_timezones tightening lands only on unreleased x-added-in:3.2.0 fields; the minor changeset is correct; parity/$ref tests track the change. No critical/high/medium findings.
However, this PR touches multiple files under the hard, non-overridable approval gate (static/schemas/source/**) and the current GitHub review decision is REVIEW_REQUIRED, not APPROVED. Per decision-table row 2, the gate is not satisfied and Ladon cannot auto-approve regardless of how clean the diff is. The prior escalate stands on the same unchanged gate condition.
Escalation reasons:
- Gated files under
static/schemas/source/**are modified andreview_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval is required before merge.
Why human review
- Gated paths under static/schemas/source/** are modified (daypart-target.json, iana-timezone.json, product-allocation.json, targeting-overlay-requirements.json, targeting-overlay-support.json, targeting.json, daypart-timezone-mode.json, index.json, get-products-request.json) while review_decision is REVIEW_REQUIRED, not APPROVED. This is a hard, code-enforced approval gate — human/CODEOWNERS approval is required before merge regardless of how clean the diff is.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/daypart-target.json (modified) matches
static/schemas/source/**; static/schemas/source/core/iana-timezone.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/product-allocation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/targeting-overlay-requirements.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/targeting-overlay-support.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/targeting.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/daypart-timezone-mode.json (added) matchesstatic/schemas/source/**; static/schemas/source/index.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.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval.
This PR modifies and adds files under static/schemas/source/**, a hard, path-based approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: the gate is not satisfied and the PR cannot be auto-approved regardless of how clean the diff is.
The reviewer surfaced no critical/high/medium findings. The delta is a single correctness fix in scripts/mcp-schema-projection.cjs (pruneUnusedRootDefinitions now descends into nested $defs reached via $ref, so definitions like #/$defs/Kept/$defs/Local are no longer falsely pruned), covered by the updated test at tests/mcp-schema-projection.test.cjs:264. Clean pass with no new findings — the prior escalation persists solely because the gate is still unsatisfied, not because of any actionable defect.
This also introduces new protocol wire surface (daypart timezone semantics: new iana-timezone.json, daypart-timezone-mode.json enum, and modifications to targeting/product schemas). Such schema changes warrant human/CODEOWNERS review for wire-shape fidelity, schema↔docs coherence, and breaking-class classification before merge.
Blocking findings: none.
Escalation reasons:
- Files under
static/schemas/source/**(daypart-target.json, iana-timezone.json [added], product-allocation.json, targeting-overlay-requirements.json, targeting-overlay-support.json, targeting.json, daypart-timezone-mode.json [added], index.json, get-products-request.json) are under a hard approval gate andreview_decisionisREVIEW_REQUIRED, notAPPROVED. Human/CODEOWNERS approval is required before merge.
Why human review
- Files under static/schemas/source/** are modified/added (daypart-target.json, iana-timezone.json [added], product-allocation.json, targeting-overlay-requirements.json, targeting-overlay-support.json, targeting.json, daypart-timezone-mode.json [added], index.json, get-products-request.json) while review_decision is REVIEW_REQUIRED, not APPROVED — hard path-based approval gate requires human/CODEOWNERS approval before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/daypart-target.json (modified) matches
static/schemas/source/**; static/schemas/source/core/iana-timezone.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/product-allocation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/targeting-overlay-requirements.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/targeting-overlay-support.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/targeting.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/daypart-timezone-mode.json (added) matchesstatic/schemas/source/**; static/schemas/source/index.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.
|
Correction to the minor notes above: the |
|
@garvitkaushik-123 CI is fully green (60/60 checks), including Python and TypeScript SDK generation and all storyboards. Ladon and three independent expert passes found no substantive blockers; this is ready for the required human schema approval when you have a moment. Auto-merge is armed. |
|
Apologies, my first point was wrong and I shouldn't have gated you on it. I went back and checked Blocker 2 I'd downgrade to a correctness note rather than a gate. One thing I did miss and is worth a look: Sorry for the noise. Nothing here blocks merge. |
Summary
inventory_localdefault and concrete IANA-zone supportDesign decisions
overlay_support.daypart_targets.timezone_modes; do not add a seller-wide capabilityValidation
npm run test:targeting-aware-discoverynpm run test:schemasnpm run typechecknpm run test:json-schema -- --file docs/media-buy/advanced-topics/targeting.mdxnpm run test:json-schema -- --file docs/media-buy/product-discovery/media-products.mdxnpm run test:json-schema -- --file docs/media-buy/task-reference/get_products.mdxnpx vitest run --config server/vitest.config.ts server/tests/unit/training-agent.test.ts -t "enforces product-scoped daypart timezone support"npm run test:owned-linksnpm run lint:schema-linksnpm run test:schema-utf8node scripts/check-changeset-protocol-scope.cjs origin/mainnpx --yes @changesets/cli@^3.0.0 status --since=origin/mainCloses #7174
Open workspace in Conductor