# NousResearch/hermes-agent · Fix journal mode reset after DB corruption repair

## Open now

- Nothing open on GitHub.

These items address a bug where the corruption repair process silently changes the database journal mode (e.g., WAL to DELETE) without logging it, and ensure the configured journal mode is re-applied after repair rather than left in an altered state.

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

## Closed / duplicate issues

- #89674: bug(state): corruption-repair silently changes a DB's journal_mode (WAL→delete) with no log record

## Prior & competing PRs

- **#96617: state.db journal mode has one owner: repair re-applies it, delegation guests stop flipping it (salvage #89681, #93012)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_state.py`, `tests/test_guest_durability_barriers.py`, `tests/test_state_db_malformed_repair.py`, `tests/tools/test_async_delegation.py`, `tools/async_delegation.py`
- **#89681: fix(state): re-apply the configured journal mode after corruption repair**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#96617`, `#89674`

## Fix status

- Merged to main in PR #96617 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-27`.
- Subsystem: `agent`
