# NousResearch/hermes-agent · WAL descriptor lifecycle and close-tolerance fixes

## Open now

- Nothing open on GitHub.

These issues and pull requests address bugs where state.db WAL operations fail when descriptors are closed mid-scan, during checkpointing, or across sibling process closes. The work focuses on making WAL scanning and guard logic more tolerant of descriptor state changes without crashing or halting.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 2 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #110544. Verify it addresses your case.
- **Recommended:** read PR #110544 (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.40`: 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

- #110214: Gateway halts hourly with 'retired state.db-wal generation' after WSL kernel update to 6.18.33

## Prior & competing PRs

- **#110544: state.db WAL survives sibling closes and stray lock cancellation on every runtime (Desktop chat dies after update; salvage #109758)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `hermes_state.py`, `hermes_state_dbfile.py`, `hermes_state_lockguard.py`, `tests/hermes_state/test_deleted_wal_generation_guard.py`, `tests/hermes_state/test_wal_lock_guard.py`
- **#111176: Deleted-WAL guard no longer counts a descriptor closed mid-scan as a holder (refs #110214, salvage #110235)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `hermes_state_dbfile.py`, `tests/hermes_state/test_deleted_wal_generation_guard.py`
- **#110235: fix(state): tolerate closed WAL scan descriptors**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `7feaf03883`, `#111176`
- **#110262: fix(state): tolerate in-process WAL checkpointing and prevent read-pool descriptor accumulation (#110214)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `3e43cee5050f`, `#110544`

## Fix status

- Merged to main in PR #110544 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-15`.
