Skip to content

fix(sessions): salvage header-damaged state.db in the lost_and_found lane - #102808

Closed
TaoMasterCoder wants to merge 3 commits into
NousResearch:mainfrom
TaoMasterCoder:fix/sessions-recover-header-salvage
Closed

TaoMasterCoder wants to merge 3 commits into
NousResearch:mainfrom
TaoMasterCoder:fix/sessions-recover-header-salvage

Conversation

@TaoMasterCoder

@TaoMasterCoder TaoMasterCoder commented Sep 4, 2026 •

Copy link
Copy Markdown

Fixes #106667

Symptom (real incident)

An OOM kill followed by SIGKILL mid-write left this Hermes install's state.db in a shape the existing hermes sessions recover --allow-partial page-level lane cannot touch: page 1 itself is damaged, so SQLite refuses the file outright —

sqlite3.DatabaseError: file is not a database

and sqlite3 <file> .recover fails with the same error, because .recover opens the file like any other client (rc=26, SQLITE_NOTADB). Yet the data pages below page 1 are intact — 335 MB file, header bytes 16-17 damaged to 3250 (not a power of two), magic string gone. Before this change the lane reported "page-level .recover salvage failed" and gave back zero rows.

Fix

Extend the lost_and_found lane with a header-salvage pre-pass in session_lost_and_found.py:

  • detect_database_open_error() separates header rejection (file is not a database / unsupported file format, SQLITE_NOTADB) from opens-but-malformed (database disk image is malformed) — the latter keeps using the untouched plain path, no behavior change.
  • When the file is refused, a valid 100-byte SQLite header (produced by letting SQLite itself write a minimal donor DB at the target page size) is spliced onto a private copy — the source is never modified, the copy lives inside the recovery snapshot directory that is removed at the end.
  • Page-size selection follows the file's own bytes 16-17 when they are a legal power of two (512..65536, 1→65536); otherwise a candidate sweep (4096 first, then 8192, 16384, 65536, 2048, 1024, 512) picks the first size for which the existing .recover flow produces a usable lost_and_found database. A candidate whose header is accepted but whose pages still won't recover is a real failure and short-circuits the sweep.
  • The file's own version-number bytes (18/19) are preserved when they are a consistent legal pair (rollback 1/1 or WAL 2/2); otherwise the spliced header defaults to rollback mode — a WAL header without its -wal sidecar buys nothing.
  • Everything downstream (mapping, stubbing, FTS rebuild, verification, report) is the existing code, reused as-is. No new commands, tables, or config keys. The recovery report gains a sqlite3_cli.header_salvage section and a "header salvage" verification warning when the pre-pass fires, so the extra step is auditable.

Testing (RED → GREEN)

New tests in tests/hermes_cli/test_session_recovery_lost_and_found.py build real header damage with the genuine sqlite3 CLI (no mocks; skipped when the shell lacks .recover):

  • premise guard: the fixture really reproduces file is not a database
  • open-error probe distinguishes refused vs malformed vs healthy
  • donor-header contract (magic, page size incl. the 1→65536 encoding, sanitized version bytes, spliced file opens)
  • E2E recover_session_database(..., allow_partial=True) on header-damaged sources — both variants: page-size bytes surviving, and the incident shape where bytes 16-17 are also destroyed (3250) — asserting exact session/message counts, content payloads via FTS, integrity_check/fk_check, and that the output opens as a live SessionDB
  • the plain malformed-but-openable path records no header_salvage (no behavior change)
  • a beyond-repair source still raises LostAndFoundError (no lying, no hanging)

RED: 5 failed (the 5 new salvage tests; 9 pre-existing pass) on the pre-fix code — failing exactly with dump rc=26 ... file is not a database, the incident symptom.
GREEN: 18 passed (test_session_recovery_lost_and_found.py + test_session_recovery.py) after the fix.

On the real 335 MB incident file this approach went from file is not a database to a complete salvage of 136,392 rows including the lost_and_found table (validated manually with the same splice + .recover pipeline the code automates).

Branch base note

Branch based on fork main snapshot (no workflow scope on the PR token); fix applies cleanly to current upstream main — verified on origin/main via 3-way apply of the source changes, with the only friction being two tests appending at the same tail of the shared test file. Happy to rebase.

One pre-existing upstream test (test_lost_and_found_lane_refuses_to_verify_a_physically_shifted_source) fails identically on clean origin/main with a self-built recover-capable sqlite CLI under this environment's Python/sqlite combination — unrelated to this change.

…lane

A SIGKILL mid-write (OOM) can damage page 1 itself, making SQLite refuse
the whole file with 'file is not a database'. The existing page-level
salvage lane shells out to sqlite3 .recover, which opens the file like
any other client, so it fails on exactly this shape even though the
data pages below page 1 are intact.

Detect the header rejection (SQLITE_NOTADB) before running .recover;
when it fires, splice a valid 100-byte header onto a private copy of
the file and run the untouched recovery flow against the copy. The page
size comes from the damaged file's own bytes 16-17 when they are a legal
power of two, else a candidate sweep (4096 first) picks the size that
yields a usable lost_and_found database. The file's own version-number
bytes are preserved when readable, defaulting to rollback mode. The
source is never modified and no new commands, tables, or config are
added; downstream mapping/stubbing/FTS logic is reused as-is.

Validated on a real 335 MB incident file: the lane goes from 'file is
not a database' failure to a full 136k-row salvage.

Tests build real header damage (rotated bytes, non-power-of-two page
size field mirroring the incident) and run the genuine sqlite3 CLI
.skipping when the shell lacks .recover.
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard area/sessions Session lifecycle, resume, persistence, history sweeper:risk-session-state Sweeper risk: may lose/corrupt/mis-associate session or context state labels Sep 4, 2026
@shellybotmoyer

Copy link
Copy Markdown
Contributor

🔀 Merge Conflict Diagnosis

This PR currently shows mergeable_state: DIRTY — it cannot be merged until conflicts are resolved.

PR: #102808 — fix(sessions): salvage header-damaged state.db in the lost_and_found lane
Branch: u/nick/nick/salvage-db → main

The fix extends session_lost_and_found.py with a detect_database_open_error() function that separates header rejection (file is not a database / SQLITE_NOTADB) from other open failures, then applies a .recover pre-pass to salvage data pages when page 1 itself is damaged.

To complete the merge, the author should either:

  1. Rebase onto current main to pick up any new session_lost_and_found.py changes that may have landed since the branch was cut, or
  2. Manually resolve any overlapping modifications to session_lost_and_found.py if both sides modified it.

Happy to re-test once conflicts are resolved.

@TaoMasterCoder

Copy link
Copy Markdown
Author

Filed #106667 to track the production incident behind this PR (OOM SIGKILL mid-write → page-1 header damage → file is not a database, unreachable by the existing page-level --allow-partial lane). Body now carries Fixes #106667 so triage can pair them.

@strzhao

strzhao commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Review comment draft — PR #102808 (v3 final)

Independent verification of the header-salvage pre-pass, read against origin/main@ee7fc3bc06 (2026-09-09) and PR head 357e9e659f; no claims beyond file:line receipts.

The approach is sound and the incident shape is real. Damaged page-1 makes SQLite refuse the file outright (SQLITE_NOTADB, rc 26), and sqlite3 .recover opens files like any other client — so the existing lane could not reach the intact pages below page 1. Splicing a valid 100-byte header onto a private copy and running the untouched recovery flow against the copy is the right minimal shape: _splice_header writes to lf_path.with_name(...) inside the snapshot directory the caller removes on exit, so the source is never modified (the tests assert repaired[100:] == original[100:]).

This now composes with the quarantine that landed after this PR's base — #106587 (merged 09-09, 9e84ce5bae) moves a state.db whose first page is not SQLite aside to <stem>.notadb-<ts>-<pid>.bak together with its -wal/-shm (hermes_state_dbfile.py:245-292), before anything opens it (the pre-open decision itself is a non-opening pread probe, hermes_state_dbfile.py:168-202). In production the header-damaged file therefore reaches recovery via hermes sessions recover --source <bak>, not in place — the startup quarantine message points there explicitly (hermes_state.py:578-586: "salvage the preserved bytes with hermes sessions recover --source {qpath}"). Two things follow for the rebase:

  1. The E2E should exercise the quarantined-source path. The current tests damage a file in place and recover it directly — a flow current main no longer produces (a startup SessionDB open now quarantines the header-damaged file first). Recovering from a copy named/located like the quarantine output (or at least through --source on a .bak) would cover the actual production handoff.

  2. A surviving -wal is outside the salvage source — worth stating as a documented boundary or investigating. Hermes DBs default to journal_mode=wal (config_defaults.py:27-30), and A state.db with a clobbered first page is quarantined with its WAL instead of opened destructively (refs #102198, salvage #102212) #106587 deliberately preserves the sidecars next to the .bak. _splice_header copies only the main-file bytes, so any committed-but-uncheckpointed frames in a preserved -wal never participate in .recover. If the OOM kill landed during a checkpoint write-back the -wal may already be drained and little is lost; if frames remain, the tail of the session history is outside the recovered set. This is a structural question rather than a defect claim: recovering WAL frames onto a donor-header copy is not trivially "also copy the sidecar" (the donor header will not satisfy the WAL's expectations), so the honest options are (a) state the boundary in the salvage report ("recovers up to the last checkpoint; a preserved -wal is not included") or (b) treat WAL-aware salvage as a follow-up.

Rebase note: since this branch's base (09-04) the recovery core moved substantially — streamed salvaged population (ead7e91dab), physical layout inferred from schema history (17c43aba06), lost_and_found cells mapped by physical column names (7704712168), plus a central pre-open header probe (_preopen_header / has_invalid_sqlite_header_preopen, hermes_state_dbfile.py:168-202). "Downstream reused as-is" should be revalidated against that core, and detect_database_open_error() (a connect+PRAGMA probe) overlaps the new _preopen_header — reusing it after rebase keeps "notadb" meaning one thing across startup quarantine and recovery. One mechanism note in case it informs the choice: the PR's probe opens the file (sqlite3.connect + PRAGMA journal_mode), whereas the main-side probe deliberately preads the header so probing has no open-time side effects (hermes_state_dbfile.py:168-202 docstring).

Adjacent, for whoever converges this: .recover-era orphan FTS5 shadow hygiene is being worked in #56824 and #103868 (SessionDB open self-heal; the production .recover field report tying them together is #103840) — worth a glance if any recovered intermediate is opened as a live SessionDB.

@TaoMasterCoder

Copy link
Copy Markdown
Author

Thank you for the thorough review — the quarantine composition, WAL-boundary framing, and the pread probe reuse are all on point.

The rebase is substantial (upstream's recovery core has been restructured significantly since this PR's base: streamed salvaged population, physical layout inference from schema history, preopen header probe, and the #106587 quarantine). I'm planning to:

  1. Switch the detection from sqlite3.connect + PRAGMA journal_mode to has_invalid_sqlite_header_preopen(path, force=True) (pread-based, no side effects — aligns with the quarantine probe's invariant).
  2. Add an E2E that exercises the quarantined-source path (recover from a .notadb-*.bak via --source), so the test covers the actual production handoff.
  3. State the WAL boundary explicitly in the salvage report: "recovers up to the last checkpoint; a preserved -wal is not included."
  4. Revalidate the downstream mapping/stubbing/FTS reuse against the new core (streamed population, physical layout inference).

Will push a rebased branch once the conflicts are resolved and tests pass.

— TaoMasterCoder (via agent)

devops added 2 commits September 10, 2026 23:22
# Conflicts:
#	hermes_cli/session_lost_and_found.py
#	hermes_cli/session_recovery.py
#	tests/hermes_cli/test_session_recovery_lost_and_found.py
Review follow-up to strzhao's four points on the rebased lane:

1. detect_database_open_error no longer opens the file. It delegates to
   hermes_state_dbfile.has_invalid_sqlite_header_preopen(force=True) — the
   same side-effect-free pread probe the startup quarantine uses — so
   'notadb' carries exactly one meaning between quarantine and recovery,
   and the probe cannot fabricate -wal/-shm sidecars in the snapshot dir.
   force=True is safe here: the lane only ever probes offline files (the
   recovery flow's own snapshot copy, or a closed quarantined .bak).
2. New E2E: quarantine_invalid_state_db moves a header-damaged state.db to
   <stem>.notadb-<ts>-<pid>.bak, then the REAL CLI (subprocess, temp
   HERMES_HOME) runs `hermes sessions recover --source <bak> --allow-partial`
   and the rows come back; the .bak bytes are pinned unchanged.
3. The salvage report states the WAL boundary in both shapes: the
   machine-readable header_salvage.wal_boundary field and the human-facing
   verification warning: 'recovers up to the last checkpoint; a preserved
   -wal is not included.'
4. Downstream reuse re-validated against the restructured core by the
   existing parametrized E2E (streamed population, schema-history physical
   layout, physical-column mapping all pass post-merge); new invariant test
   pins the recovery probe to fire exactly when the quarantine probe does
   across header-damaged / zeroed / malformed / healthy shapes.
@TaoMasterCoder

Copy link
Copy Markdown
Author

Rebased onto current main and addressed all four points, @strzhao — thank you for the review.

The branch now carries two commits on top of the old head (357e9e659f):

  • 35d4ca0ff9 — merge of upstream/main (67764dc086). The recovery core was restructured substantially, so I resolved the conflicts by keeping upstream's shape and re-attaching the header-salvage lane on top (no force-push; the old history is intact).
  • 790a797735 — the four-point follow-up below.

1. Detection switched to the shared preopen probe. detect_database_open_error() (hermes_cli/session_lost_and_found.py:239) no longer opens the file at all — it delegates to hermes_state_dbfile.has_invalid_sqlite_header_preopen(path, force=True) (hermes_state_dbfile.py:197), the same side-effect-free pread probe the startup quarantine uses. force=True is the honest contract here: this lane only ever probes offline files (the recovery flow's own snapshot copy, or a closed quarantined .bak), never a live connection. As a bonus the probe can no longer fabricate -wal/-shm sidecars in the snapshot dir. An invariant test pins the alignment across four shapes (header-damaged / zeroed / malformed-but-openable / healthy): recovery fires exactly when the quarantine probe does — test_detection_shares_the_quarantine_notadb_invariant (tests/hermes_cli/test_session_recovery_lost_and_found.py:1236).

2. Quarantine-source E2E added. test_quarantine_source_recovers_via_sessions_recover_cli (tests/hermes_cli/test_session_recovery_lost_and_found.py:1456) walks the real #106587 handoff: quarantine_invalid_state_db() moves a header-damaged state.db aside as <stem>.notadb-<ts>-<pid>.bak, then the genuine CLI runs as a subprocess against a temp HERMES_HOME — hermes sessions recover --source <bak> --allow-partial — and asserts the rows come back, the .bak bytes are unchanged (sha256-pinned), and the report carries the salvage record.

3. WAL boundary stated in the salvage report, in both shapes: the machine-readable header_salvage.wal_boundary field (hermes_cli/session_lost_and_found.py:416) and the human-facing verification warning (hermes_cli/session_recovery.py:1026): "recovers up to the last checkpoint; a preserved -wal is not included." The copy .recover runs against is the main database file alone (the -wal/-shm sidecars are not spliced in), so that wording is the exact guarantee the lane makes rather than an aspirational one.

4. Downstream reuse re-validated against the restructured core. The merge resolution kept upstream's streamed salvaged population (ead7e91dab), schema-history physical layout (17c43aba06) and physical-column mapping (7704712168) intact, and the parametrized E2E (test_header_salvage_lane_recovers_file_not_a_database_source) now exercises the salvage through those paths — sessions/messages/FTS payloads all reconcile against the fixture. And as per point 1, detect_database_open_error() is now a thin adapter over _preopen_header semantics, so "notadb" has exactly one meaning between startup quarantine and recovery.

Test results (real run on the pushed head):

$ venv/bin/python -m pytest tests/hermes_cli/test_session_recovery_lost_and_found.py \
    tests/hermes_cli/test_session_recovery.py tests/hermes_cli/test_sqlite3_cli_salvage_gate.py \
    tests/hermes_state/test_state_db_corrupt_quarantine.py tests/test_state_db_notadb_fail_closed.py -q
..................................................................s..... [ 84%]
.............                                                            [100%]
84 passed, 1 skipped in 19.95s

(The one skip is pre-existing on this interpreter: SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE needs Python 3.12+, in test_state_db_corrupt_quarantine.py:122, unrelated to this lane.)

mergeable_state is no longer dirty; it now reports blocked pending maintainer review.

teknium1 pushed a commit that referenced this pull request Sep 11, 2026
…nd_found lane

A SIGKILL mid-write (OOM killer, #106667) can leave state.db with a garbage
page-1 header. SQLite refuses the file outright ("file is not a database",
SQLITE_NOTADB) and the sqlite3 shell's .recover opens the file like any other
client, so the lost_and_found lane failed with the same rc=26 twice although
every data page after the header survived. The #106587 quarantine now
preserves such a file as state.db.notadb-<ts>-<pid>.bak; this makes that
preserved file recoverable with `hermes sessions recover --source <bak>
--allow-partial`.

When both .recover attempts fail with "not a database", zero the 100-byte
header of the lane's private snapshot copy and rerun them. .recover trips
only on the magic check and infers page size and layout from the pages
themselves, so a zeroed header is enough; a spliced donor header (the PR's
original mechanism) instead advertises a database size / freelist that
contradicts the file and yields "database disk image is malformed" on a
direct open — verified live on a 139-page fixture, which also showed the
zeroed header recovers 60/60 sessions and 300/300 messages whether the
damage covers 100 bytes or the whole first page. The user's file is never
written; the report carries `sqlite3_cli.header_zeroed` and a warning about
the WAL boundary.

Live repro (sqlite3 shell 3.53.1 on PATH, header overwritten with random
bytes): BEFORE "page-level .recover salvage failed: ... file is not a
database (26)"; AFTER "Recovered 60 sessions and 300 messages", source md5
unchanged.

Salvaged from PR #102808 (intent; trimmed from 302 to ~40 source LOC by
dropping the donor-header/page-size sweep and the redundant preopen probe —
the shell's own refusal is the detector). Independent review on the PR by
@strzhao.

Refs #106667
Refs #106587
Reported-by: TaoMasterCoder
Cross-referenced-by: kshitijk4poor
teknium1 pushed a commit that referenced this pull request Sep 11, 2026
…nd_found lane

A SIGKILL mid-write (OOM killer, #106667) can leave state.db with a garbage
page-1 header. SQLite refuses the file outright ("file is not a database",
SQLITE_NOTADB) and the sqlite3 shell's .recover opens the file like any other
client, so the lost_and_found lane failed with the same rc=26 twice although
every data page after the header survived. The #106587 quarantine now
preserves such a file as state.db.notadb-<ts>-<pid>.bak; this makes that
preserved file recoverable with `hermes sessions recover --source <bak>
--allow-partial`.

When both .recover attempts fail with "not a database", zero the 100-byte
header of the lane's private snapshot copy and rerun them. .recover trips
only on the magic check and infers page size and layout from the pages
themselves, so a zeroed header is enough; a spliced donor header (the PR's
original mechanism) instead advertises a database size / freelist that
contradicts the file and yields "database disk image is malformed" on a
direct open — verified live on a 139-page fixture, which also showed the
zeroed header recovers 60/60 sessions and 300/300 messages whether the
damage covers 100 bytes or the whole first page. The user's file is never
written; the report carries `sqlite3_cli.header_zeroed` and a warning about
the WAL boundary.

Live repro (sqlite3 shell 3.53.1 on PATH, header overwritten with random
bytes): BEFORE "page-level .recover salvage failed: ... file is not a
database (26)"; AFTER "Recovered 60 sessions and 300 messages", source md5
unchanged.

Salvaged from PR #102808 (intent; trimmed from 302 to ~40 source LOC by
dropping the donor-header/page-size sweep and the redundant preopen probe —
the shell's own refusal is the detector). Independent review on the PR by
@strzhao.

Refs #106667
Refs #106587
Reported-by: TaoMasterCoder
Cross-referenced-by: kshitijk4poor
@teknium1

Copy link
Copy Markdown
Collaborator

Landed on main in #108130 (04dd80a). Salvaged with authorship intact but the mechanism changed: header zeroing instead of the donor-header splice, which was verified wrong for direct opens (page count/freelist contradict the file -> malformed). Thank you @TaoMasterCoder.

@teknium1 teknium1 closed this Sep 11, 2026
@TaoMasterCoder

Copy link
Copy Markdown
Author

Thanks for the salvage and the candid mechanism note, @teknium1.

Agreed on header zeroing being the right call — if the donor-header splice yields a file whose page count/freelist contradict the header on direct opens, that's malformed by definition, and zeroing lets the real recovery flow speak for itself. Noted for future work in this lane.

gabrielcosi pushed a commit to gabrielcosi/home-ops that referenced this pull request Sep 12, 2026
…9.7 ➔ v2026.9.11) (#754)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/gabrielcosi/hermes-agent](https://github.com/NousResearch/hermes-agent) | patch | `v2026.9.7` → `v2026.9.11` |

---

### Release Notes

<details>
<summary>NousResearch/hermes-agent (ghcr.io/gabrielcosi/hermes-agent)</summary>

### [`v2026.9.11`](https://github.com/NousResearch/hermes-agent/releases/tag/v2026.9.11): Hermes Agent v0.21.2 (v2026.9.11)

[Compare Source](NousResearch/hermes-agent@v2026.9.7...v2026.9.11)

##### Hermes Agent v0.21.2 (v2026.9.11) — The state.db Patch Release

**Release Date:** September 11, 2026

> Patch release. v0.21.0 shipped a large rewrite of the session store's connection handling, and for some installs it made `state.db` fragile: second writers cancelling each other's locks, healthy databases reported as corrupt, one bad row killing `sessions list`. This release closes that class and rolls up everything else that landed on `main` in the four days since v0.21.1.

##### About this release

Measured at commit `04dd80a977f40b05e5b2054111747af07a61886a`, the window since v0.21.1 contains **947 non-merge commits** across **1,869 changed files** (+182,504 / −15,564) and **312 merged PRs**. **140 contributors** appear in commits, co-author trailers, or salvage credits.

##### ✨ Highlights

##### state.db reliability campaign (six PRs, 44 issues closed)

If your `state.db` broke after 0.21.0, this is the release for you. Six PRs fix the root causes rather than the symptoms:

- **No more second writers.** Profile gateways wrote hosted-room state into the *root* `state.db` every 5 seconds; the dashboard opened a writable handle on startup; cron's lifecycle guard did a raw `open()` on a live database (which cancels the gateway's POSIX locks — the classic "how to corrupt SQLite" recipe); `doctor --fix` would checkpoint under a live holder. All four are gone: hosted rooms live in `shared-state.db`, the dashboard opens read-only first, the guard goes through the tracked connection registry, and `doctor --fix` refuses a checkpoint it can't prove is safe. ([#&#8203;108076](NousResearch/hermes-agent#108076) — salvage [#&#8203;103489](NousResearch/hermes-agent#103489) [@&#8203;RikETS](https://github.com/RikETS), [#&#8203;102682](NousResearch/hermes-agent#102682) [@&#8203;JoaoMarcos44](https://github.com/JoaoMarcos44), [#&#8203;108012](NousResearch/hermes-agent#108012) [@&#8203;Halldrix](https://github.com/Halldrix), [#&#8203;105428](NousResearch/hermes-agent#105428) [@&#8203;TaoMasterCoder](https://github.com/TaoMasterCoder))
- **Healthy WAL databases stop wedging.** OpenZFS `(deleted)` dentries and a `close()` racing an `append_message` both produced a sticky `DeletedWalGenerationError` on a perfectly good store; the read pool was handed out under an unconfirmed journal mode; a transient `disk I/O error` on WSL2 killed `get_session` on the first attempt; and a "state.db locked" banner was broadcast after the lock had already cleared. ([#&#8203;108082](NousResearch/hermes-agent#108082) — salvage [#&#8203;107411](NousResearch/hermes-agent#107411) [@&#8203;chelsealong](https://github.com/chelsealong), [#&#8203;105578](NousResearch/hermes-agent#105578) [@&#8203;ca-shrimp](https://github.com/ca-shrimp), [#&#8203;105711](NousResearch/hermes-agent#105711) [@&#8203;gaoanze888](https://github.com/gaoanze888), [#&#8203;106958](NousResearch/hermes-agent#106958) [@&#8203;nikkoxgonzales](https://github.com/nikkoxgonzales); co-authored [@&#8203;QDung210](https://github.com/QDung210), [@&#8203;fangliquanflq](https://github.com/fangliquanflq), [@&#8203;Sahilvishnaliya](https://github.com/Sahilvishnaliya))
- **FTS damage no longer kills your turn.** An error scoped to the full-text-search index was classified as whole-file corruption and fail-closed the conversation. It's now `fts_index`: search degrades, the index rebuilds later, the transcript store is untouched. Same PR: doctor names structural damage honestly instead of "FTS write corruption", the FTS write probe catches the stale-index shape that passed every check while every write failed, `.recover` output no longer fails startup on orphan FTS5 shadow tables, header-zeroed databases recover instead of being refused, and the dashboard analytics poller returns a 503 instead of 520K tracebacks a day. ([#&#8203;108130](NousResearch/hermes-agent#108130) — salvage [#&#8203;97843](NousResearch/hermes-agent#97843) [@&#8203;SulthanZahran1](https://github.com/SulthanZahran1) + [#&#8203;97841](NousResearch/hermes-agent#97841) [@&#8203;Finn763](https://github.com/Finn763), [#&#8203;88604](NousResearch/hermes-agent#88604) [#&#8203;56824](NousResearch/hermes-agent#56824) [#&#8203;103657](NousResearch/hermes-agent#103657) [@&#8203;liuhao1024](https://github.com/liuhao1024), [#&#8203;106890](NousResearch/hermes-agent#106890) [@&#8203;nftpoetrist](https://github.com/nftpoetrist), [#&#8203;103321](NousResearch/hermes-agent#103321) [@&#8203;jangomango76](https://github.com/jangomango76), [#&#8203;91413](NousResearch/hermes-agent#91413) [@&#8203;leegunwoo98](https://github.com/leegunwoo98), [#&#8203;102808](NousResearch/hermes-agent#102808) [@&#8203;TaoMasterCoder](https://github.com/TaoMasterCoder))
- **One corrupt row no longer kills `sessions list`, export, or insights.** A TEXT timestamp or a `1e30` epoch used to crash the whole listing; malformed marker JSON crashed `json_extract`; more than 999 ids crashed bulk delete/prune. One `coerce_epoch()` helper on every reader (bad rows render `?` with a WARNING naming the session), a `json_valid` guard, IN-list chunking, and batched export hydration. ([#&#8203;108086](NousResearch/hermes-agent#108086) — salvage [#&#8203;106071](NousResearch/hermes-agent#106071) [@&#8203;Xipong](https://github.com/Xipong), [#&#8203;101726](NousResearch/hermes-agent#101726) [@&#8203;efe-arv](https://github.com/efe-arv), [#&#8203;94701](NousResearch/hermes-agent#94701) [@&#8203;liuhao1024](https://github.com/liuhao1024), [#&#8203;102679](NousResearch/hermes-agent#102679) [@&#8203;mssteuer](https://github.com/mssteuer), [#&#8203;100658](NousResearch/hermes-agent#100658) [@&#8203;Mi55ed](https://github.com/Mi55ed))
- **Sessions never bind to or read another profile's database.** The Desktop launch backend could pin itself to the wrong profile's `state.db` under a HERMES\_HOME override race; `session_search` by bare ID silently scanned every profile and returned someone else's transcript; recovery guidance pointed at the wrong file; profile delete kept a handle open (WinError 32). ([#&#8203;108074](NousResearch/hermes-agent#108074) — salvage [#&#8203;102534](NousResearch/hermes-agent#102534) [@&#8203;HexLab98](https://github.com/HexLab98), [#&#8203;106975](NousResearch/hermes-agent#106975) [@&#8203;Sora-bluesky](https://github.com/Sora-bluesky))
- **Opening state.db no longer takes the write lock when nothing needs writing.** A one-shot `hermes` process opening the store behind a busy gateway stalled 4–20 s and then failed with "database is locked". Now 0.01 s. ([#&#8203;108067](NousResearch/hermes-agent#108067) — salvage [#&#8203;106751](NousResearch/hermes-agent#106751) [@&#8203;kshitijk4poor](https://github.com/kshitijk4poor), [#&#8203;101881](NousResearch/hermes-agent#101881) [@&#8203;jonpol01](https://github.com/jonpol01))

Also in the window from the same subsystem: a fresh `state.db` no longer publishes FTS tables before owning the rebuild lock ([#&#8203;106311](NousResearch/hermes-agent#106311)), a handle that lost its WAL generation no longer checkpoints stale frames at shutdown ([#&#8203;106315](NousResearch/hermes-agent#106315), [#&#8203;106840](NousResearch/hermes-agent#106840)), a clobbered first page is quarantined with its WAL instead of opened destructively ([#&#8203;106587](NousResearch/hermes-agent#106587)), WAL setup leaves an unverifiable database untouched ([#&#8203;106568](NousResearch/hermes-agent#106568)), and quarantined handles refuse VACUUM/FTS optimize ([#&#8203;106343](NousResearch/hermes-agent#106343), [#&#8203;106349](NousResearch/hermes-agent#106349)). Most of these salvaged community diagnoses by [@&#8203;kshitijk4poor](https://github.com/kshitijk4poor).

##### Multi-profile isolation hardening

A cluster of fixes for installs running several profiles under one gateway (multiplex): secondary-profile bots no longer inherit the default profile's allow-lists ([#&#8203;107616](NousResearch/hermes-agent#107616)), adapters no longer send credentials to the default profile's host ([#&#8203;107617](NousResearch/hermes-agent#107617)), stdio MCP servers no longer receive the default profile's vault secrets ([#&#8203;107630](NousResearch/hermes-agent#107630)), `MEDIA:` delivery can no longer attach another profile's `.env` / `auth.json` / `state.db` ([#&#8203;107609](NousResearch/hermes-agent#107609)), Feishu drive callbacks and `/p/<profile>/` webhook replies stay on the routed profile ([#&#8203;107620](NousResearch/hermes-agent#107620), [#&#8203;107626](NousResearch/hermes-agent#107626)), and secondary profiles no longer get a sibling's Nous bearer from per-process memos ([#&#8203;107611](NousResearch/hermes-agent#107611)).

##### Desktop backend spawn storms are over

Bot Mode used to spawn or dial one backend per profile on launch and on every roster tick, hovering the Bots roster spawned a backend per row, and profile switches could spawn a duplicate primary. ([#&#8203;108069](NousResearch/hermes-agent#108069), [#&#8203;108107](NousResearch/hermes-agent#108107), [#&#8203;108118](NousResearch/hermes-agent#108118), [#&#8203;108134](NousResearch/hermes-agent#108134), [#&#8203;107969](NousResearch/hermes-agent#107969), [#&#8203;108112](NousResearch/hermes-agent#108112) — salvage [#&#8203;102512](NousResearch/hermes-agent#102512), [#&#8203;103634](NousResearch/hermes-agent#103634), [#&#8203;103399](NousResearch/hermes-agent#103399), [#&#8203;107997](NousResearch/hermes-agent#107997) and others by [@&#8203;kshitijk4poor](https://github.com/kshitijk4poor))

##### Password-blind credential vault

The agent can now sign in, pay, and fill addresses from 1Password, Bitwarden, or the local Hermes vault without ever seeing a secret; two-factor codes come from a saved authenticator key or are asked for in the user's UI ([#&#8203;106480](NousResearch/hermes-agent#106480), [#&#8203;107585](NousResearch/hermes-agent#107585)). Private git plugins install with the user's stored credentials ([#&#8203;106981](NousResearch/hermes-agent#106981)).

##### Plugin catalog and one Plugins page

A curated, SHA-pinned plugin index with CLI, admission CI, docs and dashboard ([#&#8203;69446](NousResearch/hermes-agent#69446)); Desktop gets one Plugins page owning agent + desktop plugins, install, catalog and per-commit pinning ([#&#8203;107212](NousResearch/hermes-agent#107212), [#&#8203;107314](NousResearch/hermes-agent#107314), [#&#8203;107321](NousResearch/hermes-agent#107321)); Radio ships as an opt-in SDK plugin ([#&#8203;107072](NousResearch/hermes-agent#107072)).

##### Nous free tier and guided first launch

Free inference and connectors out of the box with one command to sign in ([#&#8203;105258](NousResearch/hermes-agent#105258), [#&#8203;105260](NousResearch/hermes-agent#105260)), `/login` from a chat ([#&#8203;105261](NousResearch/hermes-agent#105261)), connector tools (Gmail, Linear, Notion, ...) searchable through `tool_search` ([#&#8203;106842](NousResearch/hermes-agent#106842)), and a guided first launch behind `HERMES_GUEST_ONBOARDING=1` ([#&#8203;107697](NousResearch/hermes-agent#107697), [#&#8203;107958](NousResearch/hermes-agent#107958), [#&#8203;107985](NousResearch/hermes-agent#107985), [#&#8203;108211](NousResearch/hermes-agent#108211)).

##### 🐛 Notable Bug Fixes

**Gateway & platforms**

- A bare `display:` key in config.yaml no longer crashes every gateway turn ([#&#8203;106305](NousResearch/hermes-agent#106305)); a queued-lane final refused by the platform is recorded and redelivered ([#&#8203;106316](NousResearch/hermes-agent#106316)); a stalled WebSocket send no longer blocks every later event ([#&#8203;106581](NousResearch/hermes-agent#106581)); the first turn no longer waits on the Python toolchain probe ([#&#8203;106556](NousResearch/hermes-agent#106556)).
- Telegram bots must @&#8203;mention when `bots_require_mention` is on, breaking bot-to-bot loops ([#&#8203;106534](NousResearch/hermes-agent#106534)); Matrix renders LaTeX ([#&#8203;106515](NousResearch/hermes-agent#106515)); Signal renders markdown tables ([#&#8203;106538](NousResearch/hermes-agent#106538)); WhatsApp replies to view-once messages keep their quote ([#&#8203;106541](NousResearch/hermes-agent#106541)); media-only replies report SUCCESS everywhere ([#&#8203;106557](NousResearch/hermes-agent#106557)).

**Providers & routing**

- `/model` and auxiliary auto never bill a provider you didn't select ([#&#8203;107366](NousResearch/hermes-agent#107366)); never auto-switch to a provider you have no credentials for ([#&#8203;107281](NousResearch/hermes-agent#107281)); Bedrock Claude/Converse/Mantle models survive `/model`, fallback and restore ([#&#8203;107621](NousResearch/hermes-agent#107621), [#&#8203;107658](NousResearch/hermes-agent#107658)); Bedrock Guardrails enforced ([#&#8203;107815](NousResearch/hermes-agent#107815)).
- Codex: patch-budget image 400 shrinks and retries ([#&#8203;106525](NousResearch/hermes-agent#106525)); unentitled primary + fallback no longer oscillate ([#&#8203;106549](NousResearch/hermes-agent#106549)); Azure Foundry replayed-reasoning rejection classified and pruned ([#&#8203;106718](NousResearch/hermes-agent#106718) [@&#8203;erosika](https://github.com/erosika)). MCP OAuth refresh no longer erases the refresh token ([#&#8203;106185](NousResearch/hermes-agent#106185)). Anthropic clients send exactly one credential ([#&#8203;107978](NousResearch/hermes-agent#107978)).
- DeepSeek V4.1 Flash on Nous Portal and OpenRouter pickers ([#&#8203;107489](NousResearch/hermes-agent#107489)); GPT Image 2.5 via OpenAI and FAL ([#&#8203;105988](NousResearch/hermes-agent#105988)); Opus 5 / Fable 5.1 on the native Anthropic picker ([#&#8203;106636](NousResearch/hermes-agent#106636) [@&#8203;xxxigm](https://github.com/xxxigm)).

**Agent loop & compression**

- One blocked periodic callback no longer stalls lease refresh ([#&#8203;106308](NousResearch/hermes-agent#106308)); a mid-turn `/steer` is persisted as its own user row ([#&#8203;106317](NousResearch/hermes-agent#106317), [#&#8203;106344](NousResearch/hermes-agent#106344)); local-inference memory-ceiling rejections back off instead of compressing history ([#&#8203;106307](NousResearch/hermes-agent#106307)); context-overflow after partial streaming ends the turn ([#&#8203;106567](NousResearch/hermes-agent#106567)); length continuation stops when the prompt filled the window ([#&#8203;106571](NousResearch/hermes-agent#106571)); compression no longer times out silently on aux retries ([#&#8203;106866](NousResearch/hermes-agent#106866)); `model_thresholds` keys can be provider-scoped ([#&#8203;108061](NousResearch/hermes-agent#108061)).
- Surface switch (Desktop↔TUI) no longer rebuilds the system prompt and busts the prompt cache ([#&#8203;105844](NousResearch/hermes-agent#105844)); CLI keeps the `api_content` sidecar so the cache survives an early persist ([#&#8203;105842](NousResearch/hermes-agent#105842)).

**CLI, TUI & Desktop**

- `hermes -z --resume` continues the session ([#&#8203;106313](NousResearch/hermes-agent#106313)); Shift+letter and Cmd+Shift+Z work on extended-key terminals ([#&#8203;90674](NousResearch/hermes-agent#90674) [@&#8203;francip](https://github.com/francip), [#&#8203;105493](NousResearch/hermes-agent#105493)); `browser_exec` timeout kills the whole process tree ([#&#8203;106589](NousResearch/hermes-agent#106589)); update checks poll the GitHub API once a day instead of git-fetching every 30 min ([#&#8203;107648](NousResearch/hermes-agent#107648)); `hermes update` names the real cause and can't hang on a stalled fetch ([#&#8203;108053](NousResearch/hermes-agent#108053)).
- Desktop: UI language survives the update relaunch ([#&#8203;106476](NousResearch/hermes-agent#106476)), expired OAuth grants get a one-click re-sign-in ([#&#8203;106965](NousResearch/hermes-agent#106965)), HUD mode shows the transcript again and always gives the window back ([#&#8203;107491](NousResearch/hermes-agent#107491), [#&#8203;107423](NousResearch/hermes-agent#107423)), the backend exits when its Desktop parent dies ([#&#8203;107977](NousResearch/hermes-agent#107977)), Windows updates stop reporting false failures ([#&#8203;106175](NousResearch/hermes-agent#106175), [#&#8203;107183](NousResearch/hermes-agent#107183)), WSLg renders on the Windows GPU ([#&#8203;106528](NousResearch/hermes-agent#106528)), Telegram quick setup with QR ported from the dashboard ([#&#8203;107242](NousResearch/hermes-agent#107242)), and \~60 more Desktop fixes largely from [@&#8203;OutThisLife](https://github.com/OutThisLife) and [@&#8203;kshitijk4poor](https://github.com/kshitijk4poor).

**Cron & Kanban**

- An off-tick "run now" no longer cancels the next scheduled run ([#&#8203;106306](NousResearch/hermes-agent#106306)); a killed manual run no longer blocks the next one for 5 minutes ([#&#8203;106733](NousResearch/hermes-agent#106733)); a one-shot changed to recurring keeps firing ([#&#8203;106532](NousResearch/hermes-agent#106532)); unpinned jobs run on their creation-snapshot model ([#&#8203;106499](NousResearch/hermes-agent#106499)); `--clone-all` no longer copies cron jobs ([#&#8203;106478](NousResearch/hermes-agent#106478)); `kanban promote` refuses undone parents ([#&#8203;106550](NousResearch/hermes-agent#106550)); `kanban_request_review` rejects unknown reviewer profiles ([#&#8203;106547](NousResearch/hermes-agent#106547)).

**Tools & memory**

- A stdio MCP server dying mid-call no longer replays the tool call ([#&#8203;106546](NousResearch/hermes-agent#106546)); a skills-only background review can no longer delete memory entries ([#&#8203;106310](NousResearch/hermes-agent#106310)); mem0 memory no longer drops long turns ([#&#8203;106542](NousResearch/hermes-agent#106542)); `tool_search` returns nothing rather than five tools sharing one word ([#&#8203;106676](NousResearch/hermes-agent#106676)); remote NOPASSWD sudo no longer prompts ([#&#8203;107939](NousResearch/hermes-agent#107939)); RSS and Reddit reading no longer activate by default ([#&#8203;105873](NousResearch/hermes-agent#105873)).

**Housekeeping**

- `config.yaml` backups live in one bounded `backups/config/` dir ([#&#8203;106388](NousResearch/hermes-agent#106388)); `hermes backup` keeps the newest 3 zips ([#&#8203;106455](NousResearch/hermes-agent#106455)); `hermes setup --reset` backs up the real config ([#&#8203;106453](NousResearch/hermes-agent#106453)); `debug share` retention shrunk to 1 day on the dpaste fallback ([#&#8203;106531](NousResearch/hermes-agent#106531)).

##### 👥 Contributors

Thank you to the **140 contributors** whose commits, co-author trailers, and salvaged PRs landed in this window.

**state.db campaign — salvaged PR authors:** [@&#8203;RikETS](https://github.com/RikETS), [@&#8203;JoaoMarcos44](https://github.com/JoaoMarcos44), [@&#8203;Halldrix](https://github.com/Halldrix), [@&#8203;TaoMasterCoder](https://github.com/TaoMasterCoder), [@&#8203;chelsealong](https://github.com/chelsealong), [@&#8203;ca-shrimp](https://github.com/ca-shrimp), [@&#8203;gaoanze888](https://github.com/gaoanze888), [@&#8203;nikkoxgonzales](https://github.com/nikkoxgonzales), [@&#8203;QDung210](https://github.com/QDung210), [@&#8203;fangliquanflq](https://github.com/fangliquanflq), [@&#8203;Sahilvishnaliya](https://github.com/Sahilvishnaliya), [@&#8203;kshitijk4poor](https://github.com/kshitijk4poor), [@&#8203;jonpol01](https://github.com/jonpol01), [@&#8203;HexLab98](https://github.com/HexLab98), [@&#8203;Sora-bluesky](https://github.com/Sora-bluesky), [@&#8203;Xipong](https://github.com/Xipong), [@&#8203;efe-arv](https://github.com/efe-arv), [@&#8203;liuhao1024](https://github.com/liuhao1024), [@&#8203;mssteuer](https://github.com/mssteuer), [@&#8203;Mi55ed](https://github.com/Mi55ed), [@&#8203;SulthanZahran1](https://github.com/SulthanZahran1), [@&#8203;Finn763](https://github.com/Finn763), [@&#8203;nftpoetrist](https://github.com/nftpoetrist), [@&#8203;jangomango76](https://github.com/jangomango76), [@&#8203;leegunwoo98](https://github.com/leegunwoo98), [@&#8203;ggoldani](https://github.com/ggoldani).

**state.db campaign — issue reporters** (the forensics in these threads were often better than the fixes): [@&#8203;thedigitalcarpenterdad](https://github.com/thedigitalcarpenterdad), [@&#8203;Rroven](https://github.com/Rroven), [@&#8203;aoeman84](https://github.com/aoeman84), [@&#8203;StephanRosin](https://github.com/StephanRosin), [@&#8203;rubensandrade-sketch](https://github.com/rubensandrade-sketch), [@&#8203;wanliqin](https://github.com/wanliqin), [@&#8203;chenzheshushi-commits](https://github.com/chenzheshushi-commits), [@&#8203;CarlosReyesPena](https://github.com/CarlosReyesPena), [@&#8203;revazone](https://github.com/revazone), [@&#8203;reservassai-art](https://github.com/reservassai-art), [@&#8203;Cuttingwater](https://github.com/Cuttingwater), [@&#8203;soroush5](https://github.com/soroush5), [@&#8203;e-shizz](https://github.com/e-shizz), [@&#8203;shobhit-87labs](https://github.com/shobhit-87labs), [@&#8203;shivanathd](https://github.com/shivanathd), [@&#8203;hoelzl](https://github.com/hoelzl), [@&#8203;i8ei](https://github.com/i8ei), [@&#8203;Ace-Kelly](https://github.com/Ace-Kelly), [@&#8203;YinsenWANG](https://github.com/YinsenWANG), [@&#8203;zbabiarz](https://github.com/zbabiarz), [@&#8203;Sravanjangam](https://github.com/Sravanjangam), [@&#8203;0gl20shk0sbt36](https://github.com/0gl20shk0sbt36), [@&#8203;RChina](https://github.com/RChina), [@&#8203;bronder](https://github.com/bronder), [@&#8203;ccwssy](https://github.com/ccwssy), [@&#8203;bottenbenny](https://github.com/bottenbenny), and [@&#8203;Hitman117890](https://github.com/Hitman117890) whose Discord report kicked the campaign off.

**Everyone in the window (alphabetical):** [@&#8203;0genlab](https://github.com/0genlab), [@&#8203;0xalydev](https://github.com/0xalydev), [@&#8203;100yenadmin](https://github.com/100yenadmin), [@&#8203;1052326311](https://github.com/1052326311), [@&#8203;686f6c61](https://github.com/686f6c61), [@&#8203;69k4xmdfm2-blip](https://github.com/69k4xmdfm2-blip), [@&#8203;abundantbeing](https://github.com/abundantbeing), [@&#8203;Adolanium](https://github.com/Adolanium), [@&#8203;Ahmett101](https://github.com/Ahmett101), [@&#8203;albert748](https://github.com/albert748), [@&#8203;AlexxRussell](https://github.com/AlexxRussell), [@&#8203;alt-glitch](https://github.com/alt-glitch), [@&#8203;auroracapital](https://github.com/auroracapital), [@&#8203;austinpickett](https://github.com/austinpickett), [@&#8203;babatorik](https://github.com/babatorik), [@&#8203;Bartok9](https://github.com/Bartok9), [@&#8203;benbarclay](https://github.com/benbarclay), [@&#8203;bennybuoy](https://github.com/bennybuoy), [@&#8203;brian717](https://github.com/brian717), [@&#8203;briandevans](https://github.com/briandevans), [@&#8203;buihongduc132](https://github.com/buihongduc132), [@&#8203;ca-shrimp](https://github.com/ca-shrimp), [@&#8203;cervantesh](https://github.com/cervantesh), [@&#8203;Cesar-Azeredo](https://github.com/Cesar-Azeredo), [@&#8203;ChanPark03](https://github.com/ChanPark03), [@&#8203;chelsealong](https://github.com/chelsealong), [@&#8203;ckomma](https://github.com/ckomma), [@&#8203;ClintonEmok](https://github.com/ClintonEmok), [@&#8203;crazyief](https://github.com/crazyief), [@&#8203;ctaylor86](https://github.com/ctaylor86), [@&#8203;dalzio](https://github.com/dalzio), [@&#8203;DavidMetcalfe](https://github.com/DavidMetcalfe), [@&#8203;Drexuxux](https://github.com/Drexuxux), [@&#8203;edosulai](https://github.com/edosulai), [@&#8203;efe-arv](https://github.com/efe-arv), [@&#8203;emozilla](https://github.com/emozilla), [@&#8203;ericmaddox](https://github.com/ericmaddox), [@&#8203;erosika](https://github.com/erosika), [@&#8203;ethernet8023](https://github.com/ethernet8023), [@&#8203;everm1nd](https://github.com/everm1nd), [@&#8203;FalconOrtiz](https://github.com/FalconOrtiz), [@&#8203;fangliquanflq](https://github.com/fangliquanflq), [@&#8203;Finn763](https://github.com/Finn763), [@&#8203;FirmamentalSpring](https://github.com/FirmamentalSpring), [@&#8203;francip](https://github.com/francip), [@&#8203;g3org3yo](https://github.com/g3org3yo), [@&#8203;gaoanze888](https://github.com/gaoanze888), [@&#8203;ggoldani](https://github.com/ggoldani), [@&#8203;Halldrix](https://github.com/Halldrix), [@&#8203;haydster7](https://github.com/haydster7), [@&#8203;hbizi](https://github.com/hbizi), [@&#8203;helix4u](https://github.com/helix4u), [@&#8203;HexLab98](https://github.com/HexLab98), [@&#8203;huklaa](https://github.com/huklaa), [@&#8203;IAvecilla](https://github.com/IAvecilla), [@&#8203;infinitycrew39](https://github.com/infinitycrew39), [@&#8203;jahfaliabdulrahman-dev](https://github.com/jahfaliabdulrahman-dev), [@&#8203;jangomango76](https://github.com/jangomango76), [@&#8203;JoaoMarcos44](https://github.com/JoaoMarcos44), [@&#8203;jonpol01](https://github.com/jonpol01), [@&#8203;jwilson411](https://github.com/jwilson411), [@&#8203;KeyArgo](https://github.com/KeyArgo), [@&#8203;kokhlo](https://github.com/kokhlo), [@&#8203;KoNit-K](https://github.com/KoNit-K), [@&#8203;kshitijk4poor](https://github.com/kshitijk4poor), [@&#8203;kyssta-exe](https://github.com/kyssta-exe), [@&#8203;leegunwoo98](https://github.com/leegunwoo98), [@&#8203;lesterlxt](https://github.com/lesterlxt), [@&#8203;liuhao1024](https://github.com/liuhao1024), [@&#8203;Mabolla](https://github.com/Mabolla), [@&#8203;manuelschipper](https://github.com/manuelschipper), [@&#8203;MaxFreedomPollard](https://github.com/MaxFreedomPollard), [@&#8203;mearls0501](https://github.com/mearls0501), [@&#8203;mengyuyuan](https://github.com/mengyuyuan), [@&#8203;Mi55ed](https://github.com/Mi55ed), [@&#8203;MiseHinoha](https://github.com/MiseHinoha), [@&#8203;mjshorty](https://github.com/mjshorty), [@&#8203;mkrb84](https://github.com/mkrb84), [@&#8203;moisesvalero](https://github.com/moisesvalero), [@&#8203;moken627-hub](https://github.com/moken627-hub), [@&#8203;mssteuer](https://github.com/mssteuer), [@&#8203;nateEc](https://github.com/nateEc), [@&#8203;nftpoetrist](https://github.com/nftpoetrist), [@&#8203;nickseelert](https://github.com/nickseelert), [@&#8203;nikkoxgonzales](https://github.com/nikkoxgonzales), [@&#8203;notwitcheer](https://github.com/notwitcheer), [@&#8203;onuraycicek](https://github.com/onuraycicek), [@&#8203;outdog-hwh](https://github.com/outdog-hwh), [@&#8203;OutThisLife](https://github.com/OutThisLife), [@&#8203;philmossman](https://github.com/philmossman), [@&#8203;phuongvm](https://github.com/phuongvm), [@&#8203;pierrenode](https://github.com/pierrenode), [@&#8203;portavales](https://github.com/portavales), [@&#8203;PRATHAMESH75](https://github.com/PRATHAMESH75), [@&#8203;QDung210](https://github.com/QDung210), [@&#8203;rewbs](https://github.com/rewbs), [@&#8203;RikETS](https://github.com/RikETS), [@&#8203;romanovzky](https://github.com/romanovzky), [@&#8203;ryantuc](https://github.com/ryantuc), [@&#8203;Sahilvishnaliya](https://github.com/Sahilvishnaliya), [@&#8203;salch-cred](https://github.com/salch-cred), [@&#8203;sgarrand](https://github.com/sgarrand), [@&#8203;shannonsands](https://github.com/shannonsands), [@&#8203;simpolism](https://github.com/simpolism), [@&#8203;Solitud1nem](https://github.com/Solitud1nem), [@&#8203;somewheresy](https://github.com/somewheresy), [@&#8203;Sora-bluesky](https://github.com/Sora-bluesky), [@&#8203;sprmn24](https://github.com/sprmn24), [@&#8203;squevo](https://github.com/squevo), [@&#8203;StellarisW](https://github.com/StellarisW), [@&#8203;Stoltemberg](https://github.com/Stoltemberg), [@&#8203;SulthanZahran1](https://github.com/SulthanZahran1), [@&#8203;Svector-anu](https://github.com/Svector-anu), [@&#8203;szicely](https://github.com/szicely), [@&#8203;TaoMasterCoder](https://github.com/TaoMasterCoder), [@&#8203;teknium1](https://github.com/teknium1), [@&#8203;ten82e](https://github.com/ten82e), [@&#8203;thedavidweng](https://github.com/thedavidweng), [@&#8203;tkaufmann](https://github.com/tkaufmann), [@&#8203;Totoro-qaq](https://github.com/Totoro-qaq), [@&#8203;Tranquil-Flow](https://github.com/Tranquil-Flow), [@&#8203;tuancookiez-hub](https://github.com/tuancookiez-hub), [@&#8203;TurgutKural](https://github.com/TurgutKural), [@&#8203;ugoenyioha](https://github.com/ugoenyioha), [@&#8203;unsupportedpastels](https://github.com/unsupportedpastels), [@&#8203;victor-kyriazakos](https://github.com/victor-kyriazakos), [@&#8203;webtecnica](https://github.com/webtecnica), [@&#8203;wliu-dev](https://github.com/wliu-dev), [@&#8203;wukangcheng1994](https://github.com/wukangcheng1994), [@&#8203;Xipong](https://github.com/Xipong), [@&#8203;Xixiartemis](https://github.com/Xixiartemis), [@&#8203;xkam7ar](https://github.com/xkam7ar), [@&#8203;xxxigm](https://github.com/xxxigm), [@&#8203;yavarb](https://github.com/yavarb), [@&#8203;yoniebans](https://github.com/yoniebans), [@&#8203;Youssef](https://github.com/Youssef), [@&#8203;yoyodine-industries](https://github.com/yoyodine-industries), [@&#8203;yuanchenglu](https://github.com/yuanchenglu), [@&#8203;YuhGuan](https://github.com/YuhGuan), [@&#8203;Zeus-Deus](https://github.com/Zeus-Deus).

Also: Youssef.

##### Updating

- Existing install: `hermes update`
- Fresh install: `curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash`
- Managed deployments should update through their deployment tooling using the new tag.
- If your `state.db` was already damaged by 0.21.0/0.21.1: run `hermes doctor` first; it now names structural vs index damage correctly and points at `hermes sessions recover --inspect-only` (profile-pinned) when a rebuild isn't enough.

**Full Changelog:** [v2026.9.7...v2026.9.11](NousResearch/hermes-agent@v2026.9.7...v2026.9.11)

</details>

---

### Configuration

📅 **Schedule**: (in timezone Europe/Berlin)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC42NS4wIiwidXBkYXRlZEluVmVyIjoiNDQuNjUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9wYXRjaCJdfQ==-->

Reviewed-on: https://git.xcd.dev/gabrielcosi/home-ops/pulls/754
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sessions Session lifecycle, resume, persistence, history comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists sweeper:risk-session-state Sweeper risk: may lose/corrupt/mis-associate session or context state type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: state.db page-1 header damage (OOM kill mid-write) is unrecoverable — sessions recover --allow-partial refuses the file outright

5 participants