Files
hermes-agent/persistence
Electric Sheep e7e66a1120 fix(compression): read every archive reference row, without the 20,000 cap
referenced_archive_refs read at most 20,001 rows and answered "unknown"
past 20,000, and the sweep then kept every file in cache/pruned and
cache/spillover. Every prune stub row counts toward that number, so a
busy home passed it and was never swept again.

Rows are now read one at a time with no cap; memory is bounded by the
reference set. Any database error still answers "unknown", so the sweep
still fails closed. Below the old cap the cost is unchanged (the filter
has no index, so the whole table was already scanned). Past it the read
used to stop at the 20,001st match and now runs to the end, so on a
large home it stays open longer. The docs sentence about the cap is
removed.

(cherry picked from commit a5bed1d2d9fb436f6129388b237330a509abb6aa)
2026-11-18 20:36:07 -08:00
..