# NousResearch/hermes-agent · Cross-profile gateway --replace conflict guard

## Open now

- Nothing open on GitHub.

These items address a scenario where creating or replacing a gateway in one profile could terminate gateways belonging to other profiles. The changes add ownership verification and cross-profile guards around the --replace flag to prevent unintended SIGTERM across profile boundaries.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 2 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #99673. Verify it addresses your case.
- **Recommended:** read PR #99673 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-99673`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member 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.

## Closed / duplicate issues

- #89315: Desktop 'new profile' creates gateway that kills other profiles' gateways (--replace cross-profile SIGTERM + Feishu scoped lock conflict)

## Prior & competing PRs

- **#93768: fix(gateway): refuse --replace when target ownership cannot be proven**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/run.py`, `tests/gateway/test_replace_child_reap.py`, `tests/gateway/test_runner_startup_failures.py`, `tests/test_89315_replace_ownership_guard.py`
- **#99673: fix(profiles): profile delete refuses to kill another profile's gateway (#89315)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/status.py`, `hermes_cli/profiles.py`, `tests/hermes_cli/test_cross_profile_kill_refusal.py`
- **#89328: fix(profiles): strip gateway runtime files on config clone and add cross-profile --replace guard**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#93768`, `#93084`, `#89315`
- **#93084: fix(gateway): refuse --replace when target ownership cannot be proven**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#93768`

## Fix status

- Merged to main in PR #99673 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-02`.
- Subsystem: `gateway`
