# NousResearch/hermes-agent · pytest runs overwriting real Hermes home files

## Open now

- Nothing open on GitHub.

A bug where running the test suite could resolve or write to the operator's actual Hermes home directory (config.yaml, .env, MEMORY.md), along with multiple fix attempts to isolate pytest temp directories from the live install.

## TL;DR

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

- #111101: \[Bug\]: tests/hermes_cli/test_profiles.py overwrites the operator's real Hermes home (config.yaml / .env / MEMORY.md)

## Prior & competing PRs

- **#111449: fix(tests): pytest basetemp inside the Hermes home no longer turns the sandbox into the live install (#111101, salvage #111096)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/ruochu88s@users.noreply.github.com`, `tests/conftest.py`, `tests/hermes_cli/test_profiles.py`, `tests/test_basetemp_isolation.py`
- **#111224: fix(tests): keep pytest homes outside operator home**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#111623`
- **#111623: fix(tests): a pytest run can no longer resolve or write the operator's real Hermes home (#111101, salvage #111173 #111096)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#111449`, `#111101`

## Fix status

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