Files
hermes-agent/hermes_cli/local_runtime
kshitijk4poor 8bc78140fc fix(local-runtime): stop() after a router crash stops its surviving model children and keeps them covered
The watcher's restart backoff: llama-server crashed, its model children still run in its group.
stop() skipped _terminate_tree (the leader was dead) and then unregistered the group anyway, so the
model children were neither stopped nor covered by the owner-death supervisor: they kept their VRAM
after Hermes exited.

stop() now ends with process_identity.stop_owned_group_survivors: for a group this process still
owns it TERMs what is left, waits, KILLs, and releases the group only once it is empty. A group it
fails to empty stays registered. New test crashes a stand-in router with a live model child and
calls stop(); it fails without the fix (the child survives, timed out after 10 s).

The router-tree test's sleep loop now uses tests.waiting.wait_until.

Reported by Greptile on #137057.
2026-10-29 16:58:09 +05:30
..
…
…
…