fix: sessions indexed before content hashing never gain new content #20
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #18/#19.
The sweep watermark only revisits sessions whose
time_updatedis newer than the last run, so sessions indexed before content hashing existed are never revisited. Combined with treating a missing stored hash as "unchanged", newly captured reasoning would never reach them.Change
knox ingest sessions --allignores the watermark for a one-time backfill.Result on the real index
Backfill ran in 20.6 s. Sessions whose stored content already matched are skipped by the observation layer (no rewrite, no hash) — that is correct, not a gap: their content is already current, and the next real change writes a hashed observation.
Warm sweep after backfill: 59 ms.