# NousResearch/hermes-agent · Fix compression archiving held rows incorrectly

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #121750: fix(compression): keep unseen turns after in-place compression

These issues and PRs address a bug where in-place compression archives rows by position rather than by ID, causing turns the compressor never saw to be lost. The fixes aim to ensure only the rows the compressor actually held are archived, preserving unseen turns.

## TL;DR

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

- #121734: \[Bug\]: in-place compaction still archives by position — a foreign-row gap below the newest held row, or an unpersisted current turn, loses turns the compressor never saw

## Prior & competing PRs

- **#121780: fix(compression): archive the rows the compressor held, not every row up to the newest**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_runtime_helpers.py`, `agent/context_compressor.py`, `agent/conversation_compression.py`, `agent/conversation_compression_archive.py`, `agent/conversation_compression_manual.py`, `agent/micro_compaction.py`, `hermes_state_messages.py`, `tests/agent/test_conversation_compression_manual.py`, `tui_gateway/server.py`
- **#121750: fix(compression): keep unseen turns after in-place compression**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `f53c0f6b20a`, `1a632c3ab3b`, `4d5899868a5`, `#121750`, `#121734`, `#121302`, `#118481`, `#121489`, `#121777`, `#121780`
  - files: `acp_adapter/session.py`, `agent/agent_runtime_helpers.py`, `agent/conversation_compression.py`, `gateway/platforms/api_server.py`, `gateway/platforms/api_server_openai_routes.py`, `gateway/run_turn.py`, `gateway/session_transcript.py`, `hermes_cli/cli_agent_setup_mixin.py`, `hermes_cli/cli_chat_turn_mixin.py`, `hermes_cli/cli_session_mixin.py`, `hermes_state_messages.py`, `tests/acp_adapter/test_session.py`, `tests/agent/test_compression_held_provenance.py`, `tests/agent/test_compression_live_foreign_rows.py`, `tests/hermes_state/test_compaction_held_rows.py`, `tui_gateway/server.py`
- **#121777: fix(compression): archive held rows by id**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#121780`

## Fix status

- Merged to main in PR #121780 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-24`.
- Subsystem: `agent`
