# NousResearch/hermes-agent · Compaction alternation repair drops unaccounted rows

## Open now

- Nothing open on GitHub.

These issues and pull requests address a bug where rows dropped or merged by the alternation repair step during in-place compaction are not properly accounted for, causing incorrect row sequencing. Multiple fix attempts or iterations are represented across the members.

## TL;DR

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

- #129123: \[Bug\]: In-place compaction re-sequences a killed turn's tool call behind the running turn (rows the alternation repair drops are not accounted for)

## Prior & competing PRs

- **#130672: In-place compaction no longer re-sends old prompts or re-orders a killed turn's tool call after a reload (#125564, #129123, salvage #129749, #125567)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/agent_runtime_helpers.py`, `agent/conversation_compression.py`, `agent/conversation_compression_archive.py`, `agent/message_metadata.py`, `contributors/emails/[redacted:email]`, `gateway/run.py`, `hermes_state.py`, `hermes_state_coverage.py`, `hermes_state_messages.py`, `tests/agent/test_in_place_merged_user_rows.py`, `tests/agent/test_message_sequence_repair.py`, `tests/hermes_state/test_repaired_history_commit_coverage.py`
- **#125567: fix(compression): in-place compaction accounts for every row the alternation repair merged or dropped**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `6a1a762d02`, `#130672`
- **#129124: fix(agent): account for dropped tool rows during compaction**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `6a1a762d02`, `#130672`
- **#129162: fix(compaction): account for alternation repair dropped rows (#129123)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `6a1a762d02`, `#130672`
- **#129749: fix(compression): account for rows the alternation repair drops or merges**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `6a1a762d02`, `#130672`

## Fix status

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