Files
hermes-agent/tests/hermes_state
Teknium 9a2fa5e406 fix(sessions): optimize-storage counts backfill rows from an index; no VACUUM over a live writer
From an independent re-review of the mid-run pacing change:
- The pre-backfill message count walked the messages table by rowid
  range: 73 s cold on a 1.97M-message store with nothing printed, the
  symptom this PR fixes. +id lets the planner count from a covering
  index (1.9 s cold).
- A writer that appeared mid-run was still locked out by the
  minutes-long VACUUM. VACUUM is skipped while another process holds
  the store (vacuumed=False, vacuum_skipped=in_use) with a message to
  re-run when it is closed.
- The "Not enough free disk" refusal exits 1, like the other failures.
2026-10-25 18:25:29 -07:00
..
2026-10-08 21:35:58 +02:00