# NousResearch/hermes-agent · Tests leaking HERMES_CONFIG_BACKEND setting between config test files

## Open now

- 1 issue, 1 PR open on GitHub.
- #160722: tests: \`HERMES_CONFIG_BACKEND\` leaks out of two config-backend test files (≈300 order-dependent failures), plus a stale \`cli._hermes_home\` from import at collection time
- PR #160873: Config tests no longer fail when run together: backend setting stops leaking between tests (#160722, salvage #160750)

All three members concern test isolation: the HERMES_CONFIG_BACKEND setting appears to persist between tests, with one mentioning order-dependent failures and a stale cli._hermes_home value from import time. They propose or describe changes to reset or blank the backend selector between tests; the data here does not confirm any outcome.

## 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

- #160722: tests: \`HERMES_CONFIG_BACKEND\` leaks out of two config-backend test files (≈300 order-dependent failures), plus a stale \`cli._hermes_home\` from import at collection time

## Prior & competing PRs

- **#160750: fix(tests): blank config backend selector between tests**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#160873`, `#160722`
- **#160873: Config tests no longer fail when run together: backend setting stops leaking between tests (#160722, salvage #160750)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `857fb7b9781dff9ddc5307dffdbbafd8679d8499`
  - files: `tests/_fixtures/env_filter.py`, `tests/hermes_cli/test_config_backend.py`, `tests/hermes_cli/test_config_backend_kinds.py`

## Fix status

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