Files
hermes-agent/tests/tools
kshitijk4poor f2187d2743 docs(terminal): state the cleanup() raise rule; tidy the reaper tests
- `BaseEnvironment.cleanup()` documents the contract teardown relies on:
  raise only while the sandbox may still be live, since a raise skips
  settling its background processes.
- The plugin guide matches it: settlement also runs when cleanup reports
  the sandbox already gone, and `cleanup_stops_processes = True` means the
  processes are gone for that env object (ended or unreachable).
- The reaper tests share one env-cache fixture (the two hand-copied blocks
  skipped `_calls_in_flight`), the SSH-like double initialises its cleanup
  count, and the settlement race patches `_finish_exited` via monkeypatch.
2026-11-10 15:47:18 +05:30
..