# NousResearch/hermes-agent · Scope prompt cache keys to prevent cross-session sharing

## Open now

- Nothing open on GitHub.

These issues and PRs address a problem where prompt cache keys based only on content can cause unrelated sessions to share the same cache routing scope. The proposed fixes namespace or scope cache keys by session or conversation lineage to isolate them properly.

## TL;DR

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

- #78941: \[Cache\]: content-only prompt_cache_key can concentrate unrelated sessions into one routing scope

## Prior & competing PRs

- **#79161: fix(cache): scope prompt_cache_key by session to stop cross-session bucket sharing**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/auxiliary_client.py`, `agent/transports/chat_completions.py`, `agent/transports/codex.py`, `agent/turn_context.py`, `plugins/model-providers/nous/__init__.py`, `plugins/model-providers/openrouter/__init__.py`, `tests/agent/test_auxiliary_client.py`, `tests/agent/transports/test_chat_completions.py`, `tests/agent/transports/test_codex_transport.py`, `tests/providers/test_provider_profiles.py`
- **#79193: fix(state): stop delegate/tool children corrupting compression lineage**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `hermes_state.py`, `tests/hermes_state/test_session_md_export.py`
- **#78956: fix(agent): namespace prompt_cache_key with logical session scope**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#78941`, `#79161`, `#78941`, `#79017`, `#79017`
- **#78959: fix(cache): scope prompt_cache_key by session to stop cross-session bucket sharing**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#79161`
- **#79024: fix(cache): scope prompt cache keys to conversation lineages**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#79193`, `#78941`, `#79161`, `#78959`, `#79017`, `#78956`

## Fix status

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