# NousResearch/hermes-agent · Doctor FTS layout staleness detection fix

## Open now

- Nothing open on GitHub.

These items address a bug where the doctor command fails to structurally detect a stale FTS layout, specifically when fts_storage_version is stamped ahead of the actual layout, causing optimize-storage to never be suggested.

## TL;DR

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

- #129927: \[Bug\]: hermes doctor never suggests optimize-storage when fts_storage_version was stamped ahead of the real layout

## Prior & competing PRs

- **#142418: fix(state): stop offering the ~60% FTS rebuild to stores that already ran it**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_cli/config_defaults.py`, `hermes_cli/doctor_state.py`, `hermes_cli/update_cmd_maint.py`, `hermes_state_dbfile.py`, `hermes_state_fts.py`, `hermes_state_schema.py`, `hermes_state_search.py`, `scripts/ci/classify_changes.py`, `tests/hermes_cli/test_fts_optimize_notice.py`, `tests/hermes_state/test_fts_layout_drift.py`, `tests/hermes_state/test_hermes_state.py`, `tests/hermes_state/test_state_db_stats.py`
- **#129932: fix(doctor): detect stale FTS layout structurally**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `28b98c56c493a59c97d466742cb3ded79e18464f`, `#129934`, `#142418`
- **#129934: fix(doctor): detect stale FTS layout structurally**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `28b98c56c493a59c97d466742cb3ded79e18464f`, `#142418`

## Fix status

- Merged to main in PR #142418 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-21`.
- Subsystem: `hermes_cli`
