# NousResearch/hermes-agent · In-place mutation of persisted dicts leaves stale DB rows

## Open now

- Nothing open on GitHub.

These items concern a bug where in-place mutations of stamped live dicts in the agent do not propagate correctly to state.db, leaving stale rows. The fix involves popping _db_persisted to ensure changes reach the database.

## TL;DR

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

- #117120: In-place mutations of _db_persisted live dicts leave stale rows in state.db

## Prior & competing PRs

- **#117569: fix(agent): in-place repairs of persisted message dicts reach state.db instead of leaving stale rows (#117120, salvage #117121)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_runtime_helpers.py`, `agent/message_sanitization.py`, `agent/micro_compaction.py`, `agent/turn_iteration_prep.py`, `agent/turn_recovery.py`, `tests/agent/test_message_sequence_repair.py`, `tests/agent/test_micro_compaction.py`, `tests/agent/test_tool_call_args_sanitizer.py`, `tests/agent/test_unicode_ascii_codec.py`
- **#117121: fix(agent): pop _db_persisted on in-place mutations of stamped live dicts**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `b8363f17d6`, `#117569`

## Fix status

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