Skip to content

fix(reporting): correct sub-day grids and snapshot notifications - #2029

Merged
rachitm022 merged 1 commit into
nextfrom
claude/issue-27113-subday-grid-fixes
Dec 6, 2026
Merged

rachitm022 merged 1 commit into
nextfrom
claude/issue-27113-subday-grid-fixes

Conversation

@rachitm022

Copy link
Copy Markdown
Collaborator

Why

Sub-day Reliable Reporting schedules must use each local day's civil grid, remain correct across DST and skipped dates, and avoid duplicate restatements or misleading empty-snapshot notifications after crashes.

What changed

  • anchor local PT5M/PT30M/PT1H grids at local day start while retaining epoch arithmetic for UTC schedules and dense integer ordinals
  • handle DST folds/gaps, Lord Howe half-hour transitions, and fully skipped dates with bounded transition-aware scheduling
  • reject UTC sub-day offerings backed by a source timezone that is not consistently UTC
  • determine first-snapshot notification suppression from committed revision history and row_count == 0 only
  • preserve crash atomicity so retries compare against committed observations

Verification

  • make lint
  • make typecheck-all
  • focused reporting matrix: 591 passed, 124 skipped
  • memory/Postgres notification and crash regressions: 5 passed
  • full make test advanced through 4,287 passes / 2,833 skips before being stopped on request so CI could finish the unrelated repository-wide tail

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rachitm022
rachitm022 merged commit 5de3260 into next Dec 6, 2026
39 checks passed
@rachitm022
rachitm022 deleted the claude/issue-27113-subday-grid-fixes branch December 6, 2026 16:20
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