Repository navigation
3.3.x: skip ledger_changed for empty first snapshot revisions (backport #9354) - #9397
Merged
Merged
Conversation
…ns (#9354) * feat(reporting): skip ledger_changed for empty first snapshot revisions A short-period pacing feed (for example PT5M snapshot periods) commits a revision for every elapsed period, including empty ones, so a quiet campaign rang 288 reporting.ledger_changed doorbells per account per day with nothing changed. A seller now MUST NOT fire reporting.ledger_changed for a revision that is the first of its logical slice (no supersedes_reporting_revision_id), has finality snapshot, and carries no delivery (row_count 0, or a non-empty control_totals whose values are all zero). Every other revision still fires, including superseding snapshots and every official revision (zero-row included), and every adjustment still fires. Unchanged: every elapsed period still commits its obligation and revision, changes_after still returns every revision, polling stays authoritative, and reporting.status_changed still announces late or missing periods. The rule is recorded as x-adcp-validation.empty_first_snapshot on the experimental webhook schema; the notification-type and capability descriptions and the reporting docs are aligned, and the reporting status contract test pins the rule with schema-valid revisions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(reporting): refine empty snapshot notification rule --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brian O'Kelley <bokelley@scope3.com> (cherry picked from commit 473cd6d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #9354 to the 3.3.x maintenance line, for 3.3.4.
Reliable Reporting (experimental): a seller SHOULD NOT fire
reporting.ledger_changedfor an empty first snapshot revision. That's asnapshotrevision withrow_count0 when no earlier revision of the same logical slice was ever committed; first-ness comes from the slice's commit history. Advisory only: no conforming seller becomes non-conforming, so it's patch-safe. Includes the compliance test vector and the changeset.Gated path (
static/schemas/source/**): approved by the maintainer on #9354.🤖 Generated with Claude Code