fix: backfill sessions indexed before content hashing (#20)
The watermark means a sweep only ever revisits sessions updated since the last run, so sessions indexed before content hashing existed would never pick up reasoning. Also treats a missing stored hash as 'cannot prove current' rather than 'unchanged'. Adds 'knox ingest sessions --all' to ignore the watermark for a one-time backfill.
This commit is contained in:
@@ -695,7 +695,7 @@ func (w *Watcher) ingestGit() {
|
||||
// sweep is full every time; RecordObservation collapses unchanged sessions, so
|
||||
// no watermark is needed and repeated runs are idempotent.
|
||||
func (w *Watcher) ingestOpenCodeDB() {
|
||||
if _, _, _, err := IngestSessionsNow(w.knoxDB); err != nil {
|
||||
if _, _, _, err := IngestSessionsNow(w.knoxDB, false); err != nil {
|
||||
log.Printf("[knox] opencode.db ingest error: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user