Repository navigation
feat(reporting): settle period arithmetic and cutover edge cases from the coverage vectors - #8622
Conversation
c7c4b7a to
5941e6e
Compare
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS review.
This PR modifies four files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true). review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied and the PR cannot auto-approve (decision table row 2).
The reviewer found no blocking or medium findings — the experimental reporting-subscription period-arithmetic changes are coherent across schema, docs, reference model, and vectors; schema↔docs coherence verified; changeset present and correctly minor for an experimental Normative tightening; no dist/** touched; no oneOf regression. On the merits this is a clean diff. But the gated-path rule stands until a human/CODEOWNERS approval lands.
Escalation reasons
- Modifies gated schema files (
reporting-delivery-capabilities.json,reporting-schedule-offering.json,reporting-schedule.json,reporting-subscription.json) understatic/schemas/source/**;review_decisionisREVIEW_REQUIRED. Human/CODEOWNERS approval required before merge.
Non-blocking follow-up noted by reviewer (pre-existing): a mixed date+time billing_cycle duration (P1DT12H) stays schema-valid though the reference model rejects it — worth closing in a later pass.
Why human review
- Modifies gated schema files under static/schemas/source/** (reporting-delivery-capabilities.json, reporting-schedule-offering.json, reporting-schedule.json, reporting-subscription.json); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/reporting-delivery-capabilities.json (modified) matches
static/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-subscription.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.
The reviewer found no blocking, Medium, or load-bearing Low findings: schema↔docs coherence holds (period_generation, period_timezone UTC-alias, coverage/cutover, status_retention_days all match sync_principal.mdx and get_reporting_status.mdx), the billing_cycle sub-daily rejection regex is sound, the reference-model (calendar.cjs/coverage.cjs) edits and new test vectors are internally consistent, no new undiscriminated oneOf, no dist/ edits, and a correctly-scoped minor changeset is present (optional→invalid tightening downgrades Breaking→Normative on x-status:experimental).
However, this PR modifies four files under static/schemas/source/**, which is a deterministic hard approval gate (gated_paths: true), and review_decision is REVIEW_REQUIRED — not APPROVED. Per decision rule row 2, a clean diff cannot auto-approve while the gate is unsatisfied.
Escalation reasons
static/schemas/source/core/reporting-delivery-capabilities.json,reporting-schedule-offering.json,reporting-schedule.json,reporting-subscription.jsonare under thestatic/schemas/source/**hard approval gate; human/CODEOWNERS review is required (review_decision = REVIEW_REQUIRED).
Why human review
- Modifies gated schema files under static/schemas/source/** (reporting-delivery-capabilities.json, reporting-schedule-offering.json, reporting-schedule.json, reporting-subscription.json); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/reporting-delivery-capabilities.json (modified) matches
static/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-subscription.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.
… the coverage vectors Rulings on ambiguities the canonical coverage vectors surfaced (#8616): the local day start is always a boundary (PT24H equals P1D and days nest in sub-daily schedules where midnight does not exist); Lord Howe's 90-minute hour stands; E never precedes the outgoing side's own start; reactivation resumes after the last period owed before deactivation; UTC aliases are exactly UTC and Etc/UTC; billing_cycle needs a date component; P7D weeks start on Thursday; status_retention_days counts 24-hour days. The reference model and vectors pin each. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
5941e6e to
ddc1b9d
Compare
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema files require human/CODEOWNERS approval.
This PR modifies four files under static/schemas/source/** (reporting-delivery-capabilities.json, reporting-schedule-offering.json, reporting-schedule.json, reporting-subscription.json), which are under a hard, deterministic approval gate. gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The reviewer reported a clean pass with no Critical/High/Medium findings: schema↔docs coherence holds, the changeset is present and correctly scoped (minor, experimental wire-tightening on 3.3.0-beta.3), the new not regex correctly rejects sub-daily billing_cycle with a matching vector, the reactivation branch in coverage.cjs traces correctly, no released dist/** artifact is touched, and no new undiscriminated oneOf is introduced.
Escalation reasons
- Modifies gated schema files under
static/schemas/source/core/**andreview_decisionisREVIEW_REQUIRED, notAPPROVED— human/CODEOWNERS approval required (row 2, hard gate).
Note: prior decision was escalate for the same reason; the gate remains unsatisfied (review still not APPROVED). The escalation persists on the deterministic path-based gate, not on new findings (none exist).
Why human review
- Modifies gated schema files under static/schemas/source/core/** (reporting-delivery-capabilities.json, reporting-schedule-offering.json, reporting-schedule.json, reporting-subscription.json); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/reporting-delivery-capabilities.json (modified) matches
static/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-subscription.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.
|
Ladon's non-blocking note, that a mixed date-and-time |
A sub-daily billing_cycle was routed to the local sub-daily calendar, which aligns to local midnight and ignores period_anchor, so every boundary was off by the anchor's time of day. adcontextprotocol/adcp#8622 makes a sub-daily billing_cycle invalid; refuse it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Summary
AdCP 3.3.0-beta.3: period arithmetic and cutover edge cases that came up while building the canonical coverage vectors and the independent reference model (#8616). Each ruling is stated normatively, and the vectors and reference model in
static/compliance/source/test-vectors/reporting-subscriptions/andscripts/reference/reporting-coverage/now pin it.PT24HvsP1D, and doesPT2Hnest?PT24HequalsP1D, with no 47-hour period.P1Dalready landed there by "advance by the gap".havana-pt24h-equals-p1d-when-midnight-does-not-exist,havana-pt2h-nests-in-the-day. Properties: PT24H = P1D in every zone; day starts nest in every sub-daily schedule.lord-howe-*cases unchanged.two-cutovers-inside-one-periodunchanged.reactivation-after-a-schedule-change-never-owes-twice(UTC day to Tokyo day, reactivated mid-day). The model implements it.UTCandEtc/UTC. Other tzdata links (Etc/GMT,GMT,Etc/Universal,Zulu) don't match.a-utc-offering-matches-only-utc-or-etc-utcunchanged.billing_cycleignores the anchorbilling_cyclerequires a date component, enforced by the schema inreporting-schedule.jsonandreporting-schedule-offering.json.sub-daily-billing-cycle-is-refused(wire_valid: false).P7Dweeks start on Thursdayutc,account_timezoneandsource_timezone. Another week start usesbilling_cyclewith aperiod_anchoron that day. No new field.p7d-*cases unchanged.status_retention_daysItems 5 and 7 went to the PRs that own those rules:
billing-cutover-owes-a-stubvector.Owner decisions
billing_cycleschedules (experimental surface).Test plan
npm run build:schemas && npm run build:compliance(no symbol-link changes)test:schemas(which includes the coverage vectors, the reference model and the property tests),test:json-schema,test:compliance-snippets,test:owned-links, the MCP projection and analysis tests, and the bounds teststest:docs-navlive-source checks pass. The snapshot checks needdist/docs, which the sparse worktree omits.🤖 Generated with Claude Code