mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-06 05:17:15 +00:00
The watcher noticed a crashed router, waited out the restart backoff (up to 60 s) and only then called stop_owned_group_survivors, which signals a group because its number is still in the registered set. When the crash left nothing in the group, that number was free for reuse for the whole backoff while still registered, so a stranger's group that got it would be sent TERM and then KILL. The watcher now releases an already-empty group as soon as it sees the crash; a group with survivors stays registered, and its number cannot be reused while they run. Test: a router stand-in that exits at once is no longer registered when the backoff starts; fails without the release.