# NousResearch/hermes-agent · Gateway systemd timing check using correct manager scope

## Open now

- 1 issue, 1 PR open on GitHub.
- #85117: check_systemd_timing_alignment() queries --user scope unconditionally, producing false "stale unit" warnings on system-level gateway installs
- PR #161031: fix(gateway): read the drain timeout from the systemd manager that owns the unit

These items concern the gateway's systemd timing-alignment check, which reportedly queries the user scope unconditionally and may give false stale-unit warnings for system-level installs. Two pull requests propose reading the drain timeout from the manager that owns the unit and detecting the actual systemd scope first.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 1 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_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.

## Open related issues

- #85117: check_systemd_timing_alignment() queries --user scope unconditionally, producing false "stale unit" warnings on system-level gateway installs

## Prior & competing PRs

- **#85250: fix(gateway): detect actual systemd scope before timing-alignment check**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#64029`
- **#161031: fix(gateway): read the drain timeout from the systemd manager that owns the unit**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `a428f5344f`
  - files: `gateway/run_startup.py`, `gateway/shutdown_forensics.py`, `tests/gateway/test_shutdown_forensics.py`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
- Kind: `bug` (from the open issues' GitHub type labels).
