# NousResearch/hermes-agent · Memory consolidation char-count guard and backup

## Open now

- 1 issue, 1 PR open on GitHub.
- #76035: Agent hallucinates full memory, destructively consolidates USER.md without char-count check
- PR #76036: fix(memory): pre-consolidation char-count guard + timestamped backup

These items address a bug where the agent could destructively overwrite memory (USER.md) during consolidation without verifying character count. The fix adds a pre-consolidation character-count guard and a timestamped backup mechanism.

## TL;DR

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

## Open related issues

- #76035: Agent hallucinates full memory, destructively consolidates USER.md without char-count check

## Prior & competing PRs

- **#76036: fix(memory): pre-consolidation char-count guard + timestamped backup**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `38c8a9c10fb3680beb6170a604cbec209fcb89a5`, `e4c700e571c4`, `#30332`, `#60908`, `#60909`, `#76036`, `#76241`, `#30267`, `#76035`, `#374151`
  - files: `tests/tools/test_memory_tool.py`, `tools/memory_tool.py`
- **#76241: fix: guard against hallucinated memory consolidation (#76035)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#76036`, `#76035`

## Fix status

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