Expand description
Idempotent analytics backfill from per-thread events.jsonl files
(roadmap phase 73, Task 3).
Raw thread-event JSONL stays the audit source of truth; this module
replays it into the SQLite analytics store. Import offsets make repeated
backfills incremental, rebuild clears analytics rows and replays from
scratch, and best_effort reports corrupt lines with file/line evidence
instead of failing the whole import.
Structs§
Functions§
- backfill_
analytics - Replays every
events.jsonlunderthread_root(including archived threads) intostore, then enriches session rows from each thread’smetadata.json(workspace label, provider, model).