# NousResearch/hermes-agent · Matrix recovery key profile scoping bug fixes

## Open now

- Nothing open on GitHub.

Multiple fixes addressing a bug where the Matrix adapter incorrectly read the recovery key from the default secret scope instead of the active profile's scope in multi-profile/multiplex mode. Related secret-scope migration work is also included.

## TL;DR

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

- #69090: \[Bug\]: Matrix adapter uses only the default recovery key in multi-profile mode

## Prior & competing PRs

- **#76573: fix(secrets): secret-scope migration wave — /compress, Matrix, model tools, cold hydration, WhatsApp (cluster salvage)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/secret_sources/base.py`, `agent/secret_sources/bitwarden.py`, `agent/secret_sources/command.py`, `agent/secret_sources/onepassword.py`, `agent/secret_sources/registry.py`, `contributors/emails/[redacted:email]`, `gateway/platforms/whatsapp_cloud.py`, `gateway/platforms/whatsapp_common.py`, `gateway/run.py`, `gateway/session.py`, `gateway/slash_commands.py`, `hermes_cli/env_loader.py`, `hermes_cli/tools_config.py`, `model_tools.py`, `plugins/platforms/matrix/adapter.py`, `plugins/platforms/whatsapp/adapter.py`, `tests/gateway/test_64674_multiplex_primary_token_scope.py`, `tests/gateway/test_75349_whatsapp_multiplex_secret_scope.py`, `tests/gateway/test_compress_command.py`, `tests/gateway/test_matrix_recovery_key_scope.py` (+14 more)
- **#69110: fix(matrix): honor profile secret scope for recovery key under multiplex**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `153442dd5b`, `#76573`, `#69090`
- **#69133: fix(matrix): read MATRIX_RECOVERY_KEY from the active profile secret scope (#69090)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#69110`, `#69090`, `#69110`, `#59739`, `#69110`
- **#70633: fix: use profile-scoped get_secret for MATRIX_RECOVERY_KEY (#69090)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#69110`

## Fix status

- Merged to main in PR #76573 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-02`.
- Subsystem: `gateway`
