# NousResearch/hermes-agent · SQLite WAL fallback handling for disk I/O errors in state database

## Open now

- 1 issue, 0 PRs open on GitHub.
- #46797: fix: add "disk i/o error" to _WAL_INCOMPAT_MARKERS so stale-SHM/EIO after unclean shutdown falls back to DELETE journal mode

Members appear to concern SQLite WAL journal mode handling, with several proposing that "disk I/O error" be treated as a WAL-incompatibility marker so the system falls back to DELETE journal mode. One also mentions a configurable journal_mode, and another reports state.db problems on ZFS with multiple connections.

## TL;DR

- 5 member(s): 1 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 #74485. Verify it addresses your case.
- **Recommended:** read PR #74485 (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: `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.44`: 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

- #46797: fix: add "disk i/o error" to _WAL_INCOMPAT_MARKERS so stale-SHM/EIO after unclean shutdown falls back to DELETE journal mode

## Closed / duplicate issues

- #55305: Hermes Agent gateway on ZFS corrupts state.db with multiple connections

## Prior & competing PRs

- **#74485: fix(state): configurable journal_mode + WAL-refusal detection cluster (salvages #68912, #57918, #46865, #55322)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `cli-config.yaml.example`, `contributors/emails/[redacted:email]`, `hermes_cli/config_defaults.py`, `hermes_cli/kanban_db.py`, `hermes_state.py`, `tests/hermes_cli/test_kanban_db.py`, `tests/test_hermes_state.py`, `tests/test_hermes_state_wal_fallback.py`, `tests/test_journal_mode_config.py`
- **#46967: \[verified\] fix: force WAL fallback to delete on disk i/o init failure**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `5c49cd0ed0`, `#74485`
- **#55322: fix(gateway): add disk I/O error to WAL-fallback markers for ZFS**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `5c49cd0ed0`, `#74485`

## Fix status

- Merged to main in PR #74485 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-07-30`.
- Subsystem: `cron`
