Skip to content

Freeze settled weekly facts - #6

Merged
mixn1998 merged 2 commits into
mainfrom
agent/segment-timeline-sync
Jul 27, 2026
Merged

mixn1998 merged 2 commits into
mainfrom
agent/segment-timeline-sync

Conversation

@mixn1998

Copy link
Copy Markdown
Owner

What changed

  • freeze weekly plan totals, completion totals, and overdue items at weekly settlement
  • keep current-week overdue content live while settled weeks remain immutable
  • make monthly week cards read frozen weekly/daily facts
  • constrain weekly AI harvests to the exact completed count
  • migrate historical SQLite snapshots safely after event replay
  • include the existing local-service startup hardening commit

Why

Historical weekly statistics and overdue content were being recalculated from mutable plans, so later rescheduling or sync changes could rewrite settled weeks. The AI harvest also inferred the completion count from content and produced an incorrect number.

Validation

  • npm.cmd test — 168 tests passed
  • npm.cmd run typecheck
  • npm.cmd run build
  • live local state migrated to schema 22 with the settled 2026-07-20—2026-07-26 week frozen at 41/41

@mixn1998
mixn1998 merged commit 5aa36fb into main Jul 27, 2026
1 check passed
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