# NousResearch/hermes-agent · Preventing concurrent writable database opens causing corruption

## Open now

- Nothing open on GitHub.

These issues and PRs address a pattern where multiple components open the session/state database with write access simultaneously, which can trigger concurrent full-text-search rebuild corruption. The work focuses on making secondary openers read-only to ensure only one writable owner exists at a time.

## TL;DR

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

- #107688: Dashboard does an unconditional writable SessionDB open at startup, exposing the documented concurrent-FTS-rebuild corruption vector

## Prior & competing PRs

- **#108076: state.db no longer gets a second writer from profile gateways, the dashboard, the lifecycle guard or doctor --fix (#102120 #107688 #102589 #107440; salvage #103489 #102682 #108012 #105428)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `contributors/emails/[redacted:email]`, `cron/lifecycle_guard.py`, `gateway/hosted_room_policy_checkpoint.py`, `gateway/hosted_rooms.py`, `hermes_cli/doctor_state.py`, `hermes_cli/web_server_lifecycle.py`, `hermes_state_holders.py`, `tests/cron/test_lifecycle_guard_live_db.py`, `tests/gateway/test_hosted_rooms.py`, `tests/hermes_cli/test_doctor_wal_holder_guard.py`, `tests/hermes_cli/test_web_server.py`, `tests/state/test_fts_holder_instance_scope.py`, `tests/tui_gateway/test_groups_methods.py`, `tests/tui_gateway/test_hosted_room_service.py`, `tui_gateway/hosted_room_service.py`
- **#107691: fix(dashboard): keep SessionDB read-only to avoid concurrent FTS corruption**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `1caab41045`, `#107974`, `#107701`
- **#107701: fix(dashboard): eager session-store reconcile opens read-only, removing second writable owner**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#107974`, `#107691`
- **#107729: fix(dashboard): eager session-store reconcile opens read-only to avoid concurrent FTS rebuilds (#107688)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#107701`, `#107688`, `#107691`

## Fix status

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