# NousResearch/hermes-agent · systemd system-scope unit missing user environment vars

## Open now

- Nothing open on GitHub.

These issues and PRs address problems with gateway units running at the system scope lacking necessary user environment variables (XDG_RUNTIME_DIR, DBUS_SESSION_BUS_ADDRESS) and related linger/user-bus provisioning needed for cron and Kanban child processes.

## TL;DR

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

- #103705: System-scope gateway unit missing XDG_RUNTIME_DIR — systemd-run --user --scope fails for cron workers

## Prior & competing PRs

- **#105346: fix(gateway): cron and Kanban children start under a system-level systemd unit (#104893, salvage #105037)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_cli/gateway.py`, `tests/hermes_cli/test_gateway_user_bus_adoption.py`, `tools/process_registry.py`
- **#105884: fix(gateway): provision linger and derive the user bus per spawn for system-level units (#104893, salvage #105222 + #105135)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/trading-monitoring@localhost`, `cron/scheduler.py`, `hermes_cli/gateway.py`, `hermes_cli/kanban_db_dispatch.py`, `tests/hermes_cli/test_gateway_foreign_xdg_runtime.py`, `tests/hermes_cli/test_gateway_linger.py`, `tests/hermes_cli/test_gateway_service.py`, `tests/hermes_cli/test_systemd_watchdog_unit.py`, `tests/tools/test_process_registry.py`, `tools/process_registry.py`
- **#103706: fix(gateway): include XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS in system-scope systemd unit**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `6f11a3296e`, `#105884`, `#105346`, `#103705`

## Fix status

- Merged to main in PR #105884 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-08`.
