Files
hermes-agent/tools
Teknium f809a37115 fix(redact): bound the stream hold-back; keep cwd and sudo-failure reads raw
- ExactValueStreamScrubber moved the cut back to every overlapping match, so a
  self-overlapping value (12341234 in repeated 1234) walked the cut to 0 and
  held the whole stream. The cut now moves back once, to the span str.replace
  itself would mask (leftmost, non-overlapping, longest value first): the
  carry stays under twice the longest value.
- The bounded collector masked the shell's closing cwd/PIPESTATUS marker
  lines, so a 4-char password inside a directory name lost the session cwd.
  Those lines are held raw and stored unmasked for _parse_cwd_marker.
- sudo's own failure messages are looked for in the raw stream
  (SUDO_DIAGNOSTICS -> result["raw_signals"]): a rejected password that is a
  word of the message ("sudo") is masked out of it and stayed cached.
- The kill-receipt test waits with tests.waiting.wait_until (HX013).
2026-12-01 16:27:41 -08:00
..