state.db schema drift and corrupt-row resilience fixes
Cluster 94691. Data as of
Nothing open on GitHub. Fix merged in #108086 on 11 Sep 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 #108086. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #108086. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These items address two related state.db issues: hardening the sessions list, export, insights, and prune operations against corrupt rows (bad timestamps, malformed JSON, oversized queries), and correcting a schema drift where origin_session_id was added lazily in async_delegation tooling but never declared in the canonical hermes_state_common schema.
Open issues0
Open PRs0
Fixes on record
-
#108086 state.db: one corrupt row (bad timestamp / malformed marker JSON / oversized IN-list) no longer kills sessions list, export, insights or prune (#102399 #102352 #99959 #94691 #106060; salvage #106071 #101726 #94701 #102679 #100658)
files:
agent/insights.py,hermes_cli/cli_session_mixin.py,hermes_cli/session_export.py,hermes_cli/session_export_html.py,hermes_cli/session_export_md.py,hermes_cli/session_filters.py,hermes_cli/sessions_cmd.py,hermes_cli/sessions_cmd_browse.py,hermes_cli/timefmt.py,hermes_state_common.py,hermes_state_compression.py,hermes_state_gateway.py,hermes_state_maintenance.py,hermes_state_messages.py,hermes_state_portability.py,hermes_state_schema.py,hermes_state_sessions.py,tests/hermes_state/test_corrupt_row_robustness.py,tests/test_hermes_state.py,tests/test_session_export_batch.py(+2 more)
1 PR closed without merging
From the close comments: merged via another change 1
-
#94701 fix(state): declare origin_session_id in the canonical async_delegations schema · merged via another change →
a241349,#108086
Closed issues · 1
- Closed#94691async_delegations schema drift: tools/async_delegation.py lazily adds origin_session_id; hermes_state_common.py canonical schema never gained it (no version bump)
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
- #108086
- Closed issues
- 1
- Attempts
- 1 PR closed without merging
- Fix link checked
- 11 Sep 2026