Corrupt state.db silently accepting or misreporting writes
Cluster 97940. Data as of
Nothing open on GitHub. Fix merged in #99652 on 31 Aug 2026. Check it covers your case.
The short answer
- Known?
- Yes. 3 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #99652. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #99652. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues concern a structural corruption condition in state.db where writes are incorrectly accepted or misdiagnosed rather than rejected, and log messages falsely indicate success. The work focuses on detecting corruption early and halting further writes to a corrupt database.
Open issues0
Open PRs0
Fixes on record
-
#99652 fix(state): structurally corrupt state.db no longer keeps accepting writes (#97940, salvage #96038)
files:
contributors/emails/[redacted:email],gateway/session.py,hermes_state.py,tests/gateway/test_session.py,tests/state/test_fts_runtime_rebuild.py
1 PR closed without merging
From the close comments: done elsewhere 1
-
#98090 fix(state): stop structurally corrupt databases from accepting writes · done elsewhere →
#99652,#96038,#76280
Closed issues · 1
- Closed#97940SQLITE_CORRUPT on canonical B-trees is misdiagnosed as FTS corruption; logs claim 'canonical message rows are preserved' while transcript writes silently fail
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.67: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means 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 LabAt a glance
- Merged PRs
- #99652
- Closed issues
- 1
- Attempts
- 1 PR closed without merging
- Fix link checked
- 31 Aug 2026