NousResearch/hermes-agent

state.db WAL lock and writer mode fixes

Cluster 109687 · other. Data as of

Nothing open on GitHub. Fix merged in #111627 on 15 Sep 2026. Check it covers your case.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #111627. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #109841. That is separate from the fix event.
Still open
Nothing open on GitHub.

A cluster of bugs and fixes around SQLite WAL generation being orphaned or dropped when CLI commands open state.db incorrectly, plus an opt-in self-heal for lost WAL generation. All members concern state.db locking and access-mode handling.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #109841 fix(state): tightening state.db modes no longer drops the holder's SQLite locks (#109786, salvage #109754)

    merged to main

    files: hermes_state.py, tests/test_hermes_state.py

  • #111627 fix(cli): `hermes sessions list|stats|pinned` and a plain `hermes doctor` no longer open state.db as a writer (#110173, salvage #110186)

    merged to main

    files: hermes_cli/doctor_state.py, hermes_cli/sessions_cmd.py, hermes_state.py, hermes_state_dbfile.py, hermes_state_holders.py, hermes_state_repair.py, tests/hermes_cli/test_observational_sessiondb_modes.py, tests/hermes_cli/test_session_export.py, tests/hermes_cli/test_sessions_delete.py, tests/hermes_cli/test_sessions_export_md_cli.py, tests/hermes_cli/test_sessions_export_output_dir.py, tests/hermes_cli/test_sessions_pin.py

1 PR closed without merging

From the close comments: closed without comment 1

  • #109766 hermes_state: opt-in in-place self-heal for a lost WAL generation (fixes #109687) · closed without comment
Closed issues · 1
  • Closed#109687[Bug]: A single plain CLI invocation orphans the live gateway's `state.db` WAL generation on Linux (reproduces on 2026-09-12 `main`, after the #102589 fix) — gateway keeps serving while silently dropping session writes
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.50: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
other
Merged PRs
#109841, #111627
Closed issues
1
Attempts
1 PR closed without merging
Fix link checked
15 Sep 2026

For your agent

The same facts, typed.