# Phase 8 Analytics Logic

1. Collect `daily_work_logs` in selected date range.
2. Compute:
   - average productivity score
   - total tracked/idle seconds
3. Collect tasks updated in range and compute completed count.
4. Compute delay analytics:
   - overdue task count
   - overdue breakdown by priority
5. Collect bugs in range and compute severity distribution.
6. Persist all results in `report_snapshots.payload` for consistent export/display.
