--- name: audit-report-daily description: Generate a daily work report from audit data. Every number traces to a source file. Use when user says "/report-daily", "daily report", "what did I do today". --- # /report-daily — Audit-Driven Daily Report ## Trigger ``` /report-daily # today /report-daily 20260319 # specific date /report-daily review # with morning self-review ``` ## Data Sources | Section | Source | |---------|--------| | Task overview | `.boo/runs/index.json` | | Operation stats | `*/audit_trail.jsonl` tool records | | Changes | trail entries with edit/create/delete | | User feedback | `user_correction` entries in trail | | Anomalies | `*/anomalies.json` | | Backlog | previous day's daily report §6 | Every number must trace to a file. Do not fill from memory. ## Steps ### 1. Collect data 1. Read index.json, filter sessions for target date 2. Read each session's audit_trail.jsonl 3. Read pending (unflushed data) 4. Read previous day's report §6 (backlog) if exists ### 2. Generate report Write to `.boo/runs/daily/{YYYYMMDD}_daily.md`: ``` # Daily Report | > Source: .boo/runs/index.json + audit_trails ## 1. Task Overview | # | Type | Session | Task | Status | Records | ## 2. Operation Stats | Metric | Count | |--------|-------| | Write/Edit | N | | Bash | N | | AUDIT blocks | N | ## 3. Changes | Time | File | Change | ## 4. User Feedback & Corrections | Feedback | Persisted To | ## 5. Anomaly Alerts - ## 6. Backlog - previous day's todos - current status ## 7. Integrity - All sessions have records: ✅/❌ - Corrections persisted: ✅/❌ ``` ### 3. If /report-daily review After report, additionally: 1. Check: yesterday's anomalies all addressed? 2. Check: user feedback converted to improvements? 3. Check: backlog items completed? 4. Write `.boo/runs/daily/{YYYYMMDD}_morning_review.md` 5. Output recommended priorities for today ``` === Morning Self-Review === Trend: Anomalies resolved: N/M Backlog cleared: N/M Recommended priorities: 1. <...> 2. <...> ``` ## Notes - If no sessions today, generate empty report with "No activity" - Report itself should write one [AUDIT] block - Historical reports are append-only — corrections go in new report - Every number must cite its source file