# NousResearch/hermes-agent · Log rotation breaks cross-uid profile worker access

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #120173: fix(logging): keep cross-uid profile workers able to start after log rotation

These issues and fixes concern log rotation causing ownership and inheritance problems for served profiles, where rotated log files are recreated under the rotating process's uid, locking out workers running under a different uid. Related gaps include loss of log ownership, TTS credentials, and other settings across profile boundaries.

## 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 #126145. Verify it addresses your case.
- **Recommended:** read PR #126145 (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-126145`. 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

- #120151: Per-profile log rotation recreates agent.log as the rotating process's uid, locking out workers on another uid (regression of #34107 via a 0.21.3 path)

## Prior & competing PRs

- **#126145: Served profiles no longer inherit the launch profile's logs, log ownership, slash gating, TTS credentials or skipped .env (#125974 #120151 #121705 #120481 #125530)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_init.py`, `gateway/run_busy.py`, `gateway/slash_access.py`, `gateway/slash_commands.py`, `gateway/slash_commands_login.py`, `gateway/slash_commands_session.py`, `hermes_cli/env_loader.py`, `hermes_logging.py`, `tests/agent/test_setup_logging_profile_scope.py`, `tests/agent/test_skip_background_review.py`, `tests/gateway/test_multiplex_credential_isolation.py`, `tests/gateway/test_slash_access_dispatch.py`, `tests/hermes_cli/test_local_runtime.py`, `tests/test_hermes_logging.py`, `tests/tools/test_tts_command_providers.py`, `tests/tools/test_tts_lifecycle_leases.py`, `tools/tts_command_provider.py`, `tools/tts_tool_lifecycle.py`, `website/docs/user-guide/multi-profile-gateways.md`
- **#120173: fix(logging): keep cross-uid profile workers able to start after log rotation**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `hermes_logging.py`, `tests/test_hermes_logging.py`
- **#124764: fix(logging): preserve log ownership across a rollover**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#120151`

## Fix status

- Merged to main in PR #126145 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-28`.
- Subsystem: `other`
