# NousResearch/hermes-agent · Secret scope foreign-home miss fails closed fix

## Open now

- Nothing open on GitHub.

A bug where scoped secret lookups incorrectly fall through to os.environ under a foreign-home scope, plus associated fixes to ensure misses fail closed and scopes carry their own home context.

## TL;DR

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

## Closed / duplicate issues

- #119458: \[Bug\]: get_secret falls through to the launch profile's os.environ on a scoped miss under a foreign-home scope

## Prior & competing PRs

- **#120128: fix(secret-scope): bound scopes carry their home; foreign-home misses fail closed, setup raises release tokens, readers never borrow os.environ**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/auxiliary_client.py`, `agent/secret_scope.py`, `cron/scheduler.py`, `gateway/kanban_watchers_dispatcher.py`, `gateway/pairing.py`, `gateway/run.py`, `gateway/run_turn.py`, `gateway/session.py`, `hermes_cli/config.py`, `hermes_cli/kanban_db_dispatch.py`, `hermes_cli/nous_auth_keepalive.py`, `hermes_cli/web_routers/audio.py`, `hermes_cli/web_server_mcp.py`, `hermes_cli/web_server_profiles.py`, `tests/agent/test_secret_scope.py`, `tests/agent/test_secret_scope_tier1_migration.py`, `tests/gateway/test_multiplex_pairing_stores.py`, `tests/gateway/test_proxy_mode.py`, `tests/gateway/test_session.py`, `tests/hermes_cli/test_audio_router_scope.py` (+16 more)
- **#119459: fix(secret-scope): scoped misses fail closed under a foreign-home scope**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `b88b3de6e3`, `#120128`

## Fix status

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