# NousResearch/hermes-agent · Memory consolidation batch silently empties profile bug

## Open now

- Nothing open on GitHub.

A bug where background memory consolidation could silently empty USER.md or MEMORY.md was identified and addressed across multiple fix attempts. The fixes aim to prevent a consolidation batch from emptying a non-empty memory store.

## 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 #104151. Verify it addresses your case.
- **Recommended:** read PR #104151 (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-104151`. 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

- #103419: \[Bug\]: Background memory consolidation can silently empty USER.md

## Prior & competing PRs

- **#104151: fix(memory): a consolidation batch can no longer silently empty USER.md / MEMORY.md (#103419, salvage #103421)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_memory_tool.py`, `tools/memory_tool_store.py`
- **#103421: fix(memory): refuse batch that would empty a non-empty store (#103419)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `c3718d5500`, `faa46ed2c7`, `7602b33d79`, `#104151`, `#103419`
- **#104019: fix(memory): a consolidation batch can no longer silently empty a profile (#103419)**. closed without merge
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `245e48008fa814b3251f50755eb656bd9fb86cb1`

## Fix status

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