Files
hermes-agent/tests/tools
teknium1 c3f0d87738 fix(bot-mode): unreadable-ticket skips warn once, tolerate bad UTF-8, keep the sequence mark
Review follow-up for the unreadable-mailbox-ticket fix:

- The live poller rescans the mailbox twice a second, so the per-file
  WARNING flooded the log for as long as a bad ticket persisted (~2 lines/s
  per live session). `_scan_read` now logs WARNING the first time a path is
  unreadable in this process and DEBUG on repeats; the cron receipt scan
  (`_records`) gets the same once-per-path rule for its ERROR, since the
  scheduler drains every tick.
- Tolerance covers `(OSError, ValueError)`: invalid UTF-8 raised
  `UnicodeDecodeError` past the `JSONDecodeError`-only guard and wedged both
  bulk scans exactly like main.
- The admission sequence is allocated from a `.sequence` counter written
  under the dir lock (max of the persisted mark and the readable tickets),
  so skipping an unreadable ticket no longer hands a later admission a
  duplicate or lower sequence. Readable tickets still bootstrap dirs from
  before the counter existed.
2026-09-16 16:55:05 -07:00
..