Skip to content

fix(reporting): skip empty first snapshot status notifications - #9396

Open
rachitm022 wants to merge 1 commit into
mainfrom
feat/reporting-status-changed-empty-first-snapshot
Open

rachitm022 wants to merge 1 commit into
mainfrom
feat/reporting-status-changed-empty-first-snapshot

Conversation

@rachitm022

Copy link
Copy Markdown
Collaborator

Why

This is the companion to #9354. Suppressing reporting.ledger_changed alone would leave the same quiet-period notification volume on reporting.status_changed when a rowless first snapshot moves an obligation from waiting to healthy or complete.

What changed

  • Recommend that sellers SHOULD NOT fire reporting.status_changed when that empty first snapshot is the only health change.
  • Define firstness from the logical slice’s complete commit history, not the presence of supersedes_reporting_revision_id.
  • Define empty solely as row_count == 0; control totals do not affect the decision.
  • Preserve informative notifications for lateness, overdue/action-required states, failures that change health, recoveries, non-empty first revisions, and later revisions that change health.
  • Add vector-driven conformance coverage and a 3.3.x patch changeset.

Verification

  • node --test tests/reporting-status-contract.test.cjs
  • node --test tests/reporting-subscriptions.test.cjs tests/reporting-subscription-coverage-vectors.test.cjs
  • npm run build:compliance -- --check
  • npm run lint:schema-links
  • Documentation JSON-schema validation for all four touched pages

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rachitm022
rachitm022 force-pushed the feat/reporting-status-changed-empty-first-snapshot branch from d1d44e2 to 373983e Compare December 6, 2026 11:47

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant