# NousResearch/hermes-agent · Isolate gateway and terminal workers via cgroups

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #97739: feat(gateway): isolate workers and queue under resource pressure

These items address a bug where local background terminal executors share the gateway cgroup, risking control-plane termination under memory pressure, and introduce fixes and features to isolate workers in their own cgroups and handle resource pressure gracefully.

## TL;DR

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

- #70716: \[Bug\]: Local background terminal executors share the gateway cgroup and can terminate the control plane under memory pressure

## Prior & competing PRs

- **#81264: fix(gateway): isolate bounded workers and recover interrupted turns**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/run.py`, `gateway/session.py`, `tests/gateway/test_active_turn_recovery.py`, `tests/tools/test_process_registry.py`, `tests/tools/test_windows_compat.py`, `tools/process_registry.py`
- **#71378: fix(terminal): isolate local background executors in their own systemd cgroup (#70716)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#81264`
- **#97739: feat(gateway): isolate workers and queue under resource pressure**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `2ce15b344010ab37ba706194ddc2d3419a3c6025`, `9d9f44d63826b18503f44c754e48e1f4f83b3a6e`, `#70716`, `#71023`, `#57121`, `#97722`, `#97723`, `#97825`, `#97739`
  - files: `cron/scheduler.py`, `docs/observability/gateway-resource-safety.md`, `gateway/admission.py`, `gateway/config.py`, `gateway/platforms/api_server.py`, `gateway/run.py`, `gateway/shutdown_forensics.py`, `gateway/status.py`, `gateway/systemd_notify.py`, `hermes_cli/config_defaults.py`, `hermes_cli/gateway.py`, `scripts/hermes_gateway_diagnostics.py`, `scripts/hermes_health_guard.py`, `scripts/stress_gateway_admission.py`, `scripts/stress_gateway_worker_scope.py`, `tests/gateway/test_agent_admission.py`, `tests/gateway/test_background_active_work_drain.py`, `tests/gateway/test_config.py`, `tests/gateway/test_gateway_diagnostics.py`, `tests/gateway/test_status.py` (+13 more)

## Fix status

- Merged to main in PR #81264 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-07`.
- Subsystem: `environments`
- Kind: `feature` (from the open PRs' GitHub type labels).
