backend
database
Improve period aggregation and LLM history regeneration
Improvements
- Updated period boundary calculations to use en-CA date formatting so produced dates are valid ISO strings.backend
- Refactored commit processing and added a reusable triggerPeriodAggregationIfDone function to ensure period aggregation is triggered consistently.backend
Bug Fixes
- Archived existing period entries before deleting commit entries during LLM history regeneration so the period backfill runs idempotently and stale summaries are not left behind.database