# NousResearch/hermes-agent · Session DB message duplication and compression rollback fixes

## Open now

- Nothing open on GitHub.

These items address a bug causing exponential message duplication in the session database when compression interrupts queued drains, along with fixes to roll back the live transcript when an in-place compaction commit fails. Includes a defense-in-depth deduplication backstop as a secondary safeguard.

## TL;DR

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

- #99477: \[Bug\]: Exponential message duplication in session DB when compression interrupts queued follow-up drain

## Prior & competing PRs

- **#100427: fix(compression): roll the live transcript back when an in-place compaction commit fails (#99477)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/conversation_compression.py`, `tests/run_agent/test_in_place_commit_rollback_99477.py`
- **#99822: fix(compression): roll the live transcript back when an in-place compaction commit fails (#99477)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#100427`, `#99477`
- **#99899: fix(agent): defense-in-depth content dedup in session-DB flush (backstop for #99477)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#98997`, `#99822`, `#99912`

## Fix status

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