Repository navigation
feat(reporting): beta.5 coverage — package_ids exceptions compose; billing stub at timezone cutovers - #8797
feat(reporting): beta.5 coverage — package_ids exceptions compose; billing stub at timezone cutovers#8797bokelley wants to merge 1 commit into
Conversation
…lling stub at timezone cutovers - Coverage rule change: a period is removed when the union of the packages named by the package_ids exceptions in effect for it covers every package that resolves the offering and is owed that period. - Reference-model fix: on a billing account_timezone offering, an account timezone change owes the stub [effective_at, first new-timezone boundary), as the cutover text already said (both SDKs already did). - Seven new vectors, two new properties, harness generator exercises both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Consent round: objections by Fri 2026-11-13, or raise them at the Mon Nov 9 WG session. This is a coverage-rule change, and it settles money:
Whether one entry names them all or several entries each name some makes no difference. The PR also fixes the reference model to owe a billing stub at an account-timezone cutover. The spec text already required it, and both SDKs already do it. The "vectors through both SDKs" check stays red on the 3 new composition vectors until the SDKs adopt the rule. Both SDKs adopt it once consent holds; the change then ships in the next beta. 🤖 Generated with Claude Code |
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 Critical/High/Medium findings: compose logic, account-timezone stub, vectors, schema↔docs coherence, changeset scope/type (minor on experimental beta line), and property tests all check out. No oneOf changes, no dist/** edits. On the merits this is clean.
However, this PR modifies gated paths and the required human review is not yet in place:
Escalation reasons
static/schemas/source/core/reporting-subscription.jsonandstatic/schemas/source/core/reporting-subscription-coverage.jsonare under the hard approval gate (static/schemas/source/**), andreview_decisionisREVIEW_REQUIRED(notAPPROVED). Human/CODEOWNERS approval is required before merge (decision table row 2).
Once a reviewer approves, this PR should fall through to approve on its clean findings.
Why human review
- Gated schema files static/schemas/source/core/reporting-subscription.json and reporting-subscription-coverage.json modified while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required (decision rule row 2)
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/reporting-subscription-coverage.json (modified) matches
static/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.
Beta.5 coverage fixes for experimental reporting subscriptions (
media_buy.reporting_subscriptions).For WG consent
package_idsexceptions compose (coverage-rule change; owner-approved direction, needs WG consent before the Nov 13 close).Before: a period was removed only when a single
package_idsexception entry named every package that resolves the offering and is owed that period. Two separate entries that together named every owing package did not remove it, so a buy whose packages had each been excluded by separate entries still owed the period.After: a period is removed when the union of the packages named by the
package_idsexceptions in effect for it covers every package that resolves the offering and is owed that period. An entry is in effect for a period when the period's start is in its[from, until)and, if it hasoffering_id, that offering matches. Whether one entry names every package or several entries each name some makes no difference.added_atcomposition (#8718), in-place membership, and the version scoping ofexcluded_by_buyerare unchanged. This settles money, and SDKs must adopt it.Changes
cutovertext says a timezone change applies "including on billing offerings, where the stub rule above applies", andtimezone_cutoverssays the same. The model emitted no stub there; both SDKs already did. The model now owes, on a billingaccount_timezoneoffering, one stub[effective_at, first new-timezone boundary)withstub: true. There is no stub wheneffective_atis already a new-timezone boundary. Text unchanged: it isn't ambiguous.package_idsexceptions compose. Updatedcore/reporting-subscription.jsoncoverage, thepackage_idsdescription incore/reporting-subscription-coverage.json, the reason-code definitions inreason-codes.json(theexceptionrule andexcluded:offering_unsupported; codes unchanged),excepted()in the reference model, andtests/reporting-subscriptions.test.cjs.tests/interop/differential/generate.cjsnow puts billing feeds, monthly ones included, onaccount_timezoneunder timezone changes, sometimes to a same-offset zone (no stub). It also writes staggered multi-entrypackage_idsexceptions for one buy. Two new properties: composition (one entry per package equals one entry naming them all) and billing contiguity across a timezone change. The contiguity property fails without the model fix.get_reporting_statusExceptions section and timezone-change bullet,whats-new-in-3-3(a beta.5 section), migration 3.2→3.3, and the vectors README.Vectors
Changed: none. All 138 existing cases have the same expected output under the new rule.
Added (package_ids composition):
package-exclusions-together-name-every-resolving-packagepackage-exclusions-together-name-all-but-one-resolving-packagestaggered-package-exclusions-remove-periods-once-both-applypackage-exclusions-compose-with-a-package-added-laterAdded (billing stub at timezone change):
billing-account-timezone-change-mid-month-owes-a-stub: New York → Los Angeles, a 3-hour stubbilling-account-timezone-change-eastward-owes-a-stub-of-most-of-a-month: Los Angeles → Tokyobilling-account-timezone-change-on-a-shared-boundary-owes-no-stub: London → UTC at a winter month endLocal verification against the published SDKs (@adcp/sdk 17.0.0-beta.20, adcp 10.0.0b12)
reference | ts+py. All 19 agree with the SDKs when the old single-entry rule is swapped back in, so every one comes from composition.package-exclusions-together-name-every-resolving-package,staggered-package-exclusions-remove-periods-once-both-apply, andpackage-exclusions-compose-with-a-package-added-later. The all-but-one case and all 3 stub vectors pass through both SDKs.Checklist
package_idscompositionnpm run build:schemasandnpm run build:compliance(no tracked generated output changed)test:schemas, the x-added-in 3.3 sweep,test:additive-minor, and the changeset scope checktests/storyboard-exclusion-compat.test.cjs(installed-SDK storyboard grading, 3 tests). This PR doesn't touch that suite, so it was committed with HUSKY=0. Confirm it's also red or green on main in CI.🤖 Generated with Claude Code
Open workspace in Conductor