Skip to main content

Module backfill

Module backfill 

Source
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§

BackfillOptions
BackfillParseError
BackfillReport

Functions§

backfill_analytics
Replays every events.jsonl under thread_root (including archived threads) into store, then enriches session rows from each thread’s metadata.json (workspace label, provider, model).