# NousResearch/hermes-agent · macOS ppid==1 wrongly detected as systemd

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #25525: fix(gateway): restrict ppid==1 systemd detection to Linux only

Reports and fixes for a bug where checking ppid==1 incorrectly identifies the process as running under systemd on macOS, where PID 1 is launchd. Proposed fixes restrict this detection logic to Linux only.

## TL;DR

- 5 member(s): 0 open issue(s), 2 closed issue(s), 1 open PR(s), 0 merged PR(s), 2 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.34`: 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

- #25508: Bug: shutdown_forensics incorrectly sets under_systemd=True on macOS (ppid==1 is launchd, not systemd)
- #25510: shutdown_forensics incorrectly reports \`under_systemd=yes\` on macOS (launchd PID 1, not systemd)

## Prior & competing PRs

- **#25511: fix: under_systemd incorrectly True on macOS (launchd PID 1, not systemd)**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#25525: fix(gateway): restrict ppid==1 systemd detection to Linux only**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#25687`
  - files: `gateway/shutdown_forensics.py`, `tests/gateway/test_shutdown_forensics.py`
- **#25566: fix(gateway): restrict ppid==1 systemd detection to Linux only**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#25525`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
