# NousResearch/hermes-agent · Fix compression snapshot role alternation bug

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #116960: fix(compression): preserve snapshot role alternation

A bug was identified where compression appends a synthetic user snapshot using raw list.append, bypassing the alternation guard. The members address preserving correct role alternation when routing todo-snapshot synthetic user rows through the compression merge logic.

## TL;DR

- 3 member(s): 0 open issue(s), 1 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.

## Closed / duplicate issues

- #116880: \[Bug\]: Compression appends synthetic user snapshot with raw list.append, bypassing alternation guard

## Prior & competing PRs

- **#116960: fix(compression): preserve snapshot role alternation**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#69292`, `#65919`
  - files: `agent/context_compressor.py`, `agent/conversation_compression.py`, `agent/session_persistence.py`, `agent/turn_final_response.py`, `agent/turn_finalizer.py`, `tests/agent/test_compression_rotation_state.py`, `tests/agent/test_salvage_grown_transcript.py`, `tests/agent/test_verification_continuation_budget.py`
- **#117128: fix(compression): route todo-snapshot synthetic user row through alternation-safe merge**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#117129`, `#117130`, `#116855`, `#117121`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
