# NousResearch/hermes-agent · Gateway lifecycle guard bypass when self-targeting profile

## Open now

- Nothing open on GitHub.

These issues and PRs concern a bug where using the profile flag to target the gateway's own profile causes restart and stop commands to bypass the lifecycle guard. The work focuses on identifying and fixing this self-targeting bypass.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #93291. Verify it addresses your case.
- **Recommended:** read PR #93291 (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-93291`. 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.67`: 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

- #78028: lifecycle_guard: hermes -p <profile> gateway stop|restart bypasses the gateway lifecycle guard

## Prior & competing PRs

- **#93291: fix: profile-flag gateway restart no longer bypasses the lifecycle guard when self-targeting (#78028, salvage #78044)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `cron/lifecycle_guard.py`, `tests/hermes_cli/test_gateway_restart_loop.py`
- **#78044: fix(cron): block profile-flag gateway restart/stop when self-targeting (#78028)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `c595d3564ac0`, `#93291`

## Fix status

- Merged to main in PR #93291 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-23`.
- Subsystem: `cron`
