FABRIC/src
jeda 3457ef35d8 feat(bd-art): SQLite Historical Analytics Storage
Implements persistent storage for historical session analytics:

- Add HistoricalStore class using better-sqlite3
- Schema includes sessions, task_metrics, and error_history tables
- Session management: start/end sessions with worker/task/cost metrics
- Task metrics: record per-bead completion times, costs, tokens
- Error history: track errors with resolution status
- Historical queries: worker comparison across sessions
- Learned recoveries: extract patterns from historical error resolutions
- Integration with EventStore for automatic session persistence
- Historical query methods in WorkerAnalytics
- Enhanced recovery suggestions using historical data in RecoveryManager
- Comprehensive unit tests (20 passing tests)

Database stored at ~/.needle/fabric.db for cross-session persistence.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-07 04:18:45 +00:00
..
tui feat(bd-art): SQLite Historical Analytics Storage 2026-03-07 04:18:45 +00:00
web feat(bd-1j9): E2E test: WorkerDetail shows selected worker info 2026-03-05 03:57:08 +00:00
cli.ts fix: ESM/CommonJS blessed import compatibility 2026-03-04 23:47:19 +00:00
crossReferenceManager.ts feat(bd-xig): Implement worker collision detection 2026-03-03 13:50:02 +00:00
dagUtils.ts feat(bd-3sj): P4-002: File Heatmap 2026-03-03 12:11:54 +00:00
errorGrouping.test.ts feat(bd-1a6): Add comprehensive unit tests for errorGrouping module 2026-03-04 03:50:58 +00:00
errorGrouping.ts feat(bd-4jn): P4-004: Smart Error Grouping 2026-03-03 11:53:27 +00:00
fileHeatmap.test.ts feat(bd-3sj): P4-002: File Heatmap 2026-03-03 12:11:54 +00:00
gitParser.test.ts feat(bd-2js): Parse git status and diff from NEEDLE logs 2026-03-04 04:23:39 +00:00
gitParser.ts feat(bd-2js): Parse git status and diff from NEEDLE logs 2026-03-04 04:23:39 +00:00
historicalStore.test.ts feat(bd-art): SQLite Historical Analytics Storage 2026-03-07 04:18:45 +00:00
historicalStore.ts feat(bd-art): SQLite Historical Analytics Storage 2026-03-07 04:18:45 +00:00
index.ts feat(bd-art): SQLite Historical Analytics Storage 2026-03-07 04:18:45 +00:00
needleFabric.integration.test.ts feat: add NEEDLE-FABRIC integration test suite 2026-03-04 23:47:44 +00:00
parser.test.ts feat(bd-193s): Add NEEDLE log format tests to parser.test.ts 2026-03-04 23:19:52 +00:00
parser.ts fix: support both string and object worker formats in parser 2026-03-04 23:38:25 +00:00
semanticNarrative.test.ts feat: add NEEDLE-FABRIC integration test suite 2026-03-04 23:47:44 +00:00
semanticNarrative.ts feat: add NEEDLE-FABRIC integration test suite 2026-03-04 23:47:44 +00:00
sessionDigest.test.ts feat(bd-1c5): Implement AI session digest generation 2026-03-04 03:28:04 +00:00
sessionDigest.ts feat(bd-1c5): Implement AI session digest generation 2026-03-04 03:28:04 +00:00
store.test.ts feat(bd-2fz): Add comprehensive unit tests for store.ts 2026-03-04 04:08:40 +00:00
store.ts feat(bd-art): SQLite Historical Analytics Storage 2026-03-07 04:18:45 +00:00
tailer.test.ts feat(bd-2kf): Add comprehensive test coverage for parser and store 2026-03-03 10:43:24 +00:00
tailer.ts feat: implement Phase 1 core infrastructure for FABRIC 2026-03-03 04:58:42 +00:00
types.ts feat: add NEEDLE-FABRIC integration test suite 2026-03-04 23:47:44 +00:00
workerAnalytics.test.ts feat(bd-msa): Implement worker analytics aggregation 2026-03-04 03:46:28 +00:00
workerAnalytics.ts feat(bd-art): SQLite Historical Analytics Storage 2026-03-07 04:18:45 +00:00