pub fn backfill(home: &Path) -> usizeExpand description
Derives, once per store, the events that happened before live counting began from the logs Borg kept anyway: corrections (episodes), outcomes, lessons, the queen’s queue, imports, expert and facet calls, steering drops, and the turn ends recorded in the session state (dated by the state file’s time). Only what happened before the first live event counts, so nothing is counted twice. Returns how many events it wrote; 0 when it ran before.