NousResearch/hermes-agent

Gateway --replace flag deadlocks and race conditions

Cluster 119467 · gateway. Data as of

2 open items. Fix merged in #120122 on 23 Sep 2026. Check it covers your case.

The short answer

0open issues
2open PRs
6items grouped
Known?
Yes. 6 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #120122. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #120122. That is separate from the fix event.
Still open
0 issues and 2 PRs.

Multiple fixes and a bug report targeting the gateway's --replace mechanism, addressing deadlocks, race conditions, restart loops, and stale systemd drop-ins related to cross-profile ownership and lock handling.

Open issues0

No open issues.

Open PRs2

  • PR#119488fix(gateway): stop cross-profile replace restart loops
  • PR#119492fix(gateway): --replace degrades to START beside another profile's standalone owner

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #120122 fix(gateway): --replace no longer starts a second gateway on a lost lock race, respawn-storms beside a standalone owner, or deadlocks on the stale systemd drop-in (#119837, #119807, #119467)

    merged to main

    files: gateway/host_attach.py, gateway/run.py, hermes_cli/gateway_service_unit.py, tests/gateway/test_host_attach_lifecycle.py, tests/gateway/test_host_gateway_lock_refusal.py, tests/hermes_cli/test_systemd_replace_dropin.py, website/docs/user-guide/multi-profile-gateways.md

2 PRs closed without merging

From the close comments: merged via another change 1 · other 1

  • #119517 fix(gateway): retire the Hermes systemd --replace drop-in on unit refresh · merged via another change → 1a4da74, #120122
  • #123164 fix(gateway): surface fatal --replace aborts on stderr so the supervisor sees them · other
Closed issues · 1
  • Closed#119467[Bug] A Hermes-written systemd --replace drop-in becomes a permanent gateway deadlock after update (Refusing --replace: PID n cannot be proven to belong to this profile's gateway)
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.33: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
gateway
Merged PRs
#120122
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
23 Sep 2026

For your agent

The same facts, typed.