Rik
0e422e0ece
fix(gateway): isolate hosted-room state in shared-state.db — profile gateways must not write master state.db
...
gateway.hosted_rooms.default_db_path() resolved profile gateways
(~/.hermes/profiles/<name>/) to the ROOT state.db, making every profile
gateway process a long-lived writer on the master session store. Across a
6-gateway fleet this was the recurring multi-writer corruption vector
(WAL/FTS collisions during bot-gateway restart storms, observed 2026-09-03
with four state.db corruptions in five weeks fleet-wide; upstream refs
#100896 , #100313 , #102827 ).
Move hosted_room* tables to a dedicated root shared-state.db so profile
gateways never open state.db writable. Single-gateway installs are
unaffected (same file semantics, different filename); multi-profile fleets
stop sharing the master store.
Verified live in production: deployed 2026-09-04, zero I/O-error /
reopen-race events across 9h+ of active multi-gateway load (previously
~1 failure per 2-3 min).
Co-authored-by: Rik <rik.sedd@gmail.com >
2026-09-11 06:21:48 -07:00
..
2026-09-11 02:24:55 -07:00
2026-09-11 14:02:08 +10:00
2026-09-07 06:10:54 -07:00
2026-09-02 19:21:46 -07:00
2026-09-11 03:45:33 +05:30
2026-09-10 18:17:22 -07:00
2026-09-10 10:27:07 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-02 19:21:46 -07:00
2026-09-03 13:46:50 -07:00
2026-09-02 19:21:46 -07:00
2026-09-08 14:14:47 +00:00
2026-09-11 10:45:33 +10:00
2026-09-07 06:10:54 -07:00
2026-09-03 09:44:26 -07:00
2026-09-02 19:21:46 -07:00
2026-09-02 20:13:08 -07:00
2026-09-07 04:46:20 -07:00
2026-09-07 06:00:05 -07:00
2026-09-04 00:15:16 -07:00
2026-09-02 22:42:55 -07:00
2026-09-03 09:44:26 -07:00
2026-09-02 19:21:46 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 00:09:14 -07:00
2026-09-03 17:13:22 -07:00
2026-09-07 05:58:52 -07:00
2026-09-04 00:15:16 -07:00
2026-09-03 13:46:50 -07:00
2026-09-11 06:21:48 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 13:48:14 -07:00
2026-09-07 14:16:57 -07:00
2026-09-04 00:15:16 -07:00
2026-09-02 19:21:46 -07:00
2026-09-05 16:09:46 +05:30
2026-09-02 19:21:46 -07:00
2026-09-02 19:21:46 -07:00
2026-09-02 19:21:46 -07:00
2026-09-04 00:15:16 -07:00
2026-09-02 19:21:46 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 09:44:26 -07:00
2026-09-02 20:13:08 -07:00
2026-09-11 19:04:06 +10:00
2026-09-11 03:45:33 +05:30
2026-09-11 19:04:06 +10:00
2026-09-02 16:11:50 -07:00
2026-09-03 14:00:59 -07:00
2026-09-11 19:04:06 +10:00
2026-09-07 14:16:57 -07:00
2026-09-07 14:16:57 -07:00
2026-09-11 19:04:06 +10:00
2026-09-10 18:17:22 -07:00
2026-09-10 18:17:22 -07:00
2026-09-11 14:02:08 +10:00
2026-09-07 22:47:33 +05:30
2026-09-10 10:27:07 -07:00
2026-09-11 19:04:06 +10:00
2026-09-07 22:47:33 +05:30
2026-09-07 06:10:54 -07:00
2026-09-11 19:04:06 +10:00
2026-09-11 19:04:06 +10:00
2026-09-02 21:14:22 -07:00
2026-09-04 15:41:27 -03:00
2026-09-09 10:55:32 -07:00
2026-09-02 19:21:38 -07:00
2026-09-07 06:10:54 -07:00
2026-09-07 06:10:54 -07:00
2026-09-07 14:16:57 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 09:44:26 -07:00
2026-09-07 14:11:18 -07:00
2026-09-11 03:45:33 +05:30
2026-09-03 13:46:50 -07:00
2026-09-07 08:20:09 -07:00
2026-09-03 10:00:07 -07:00
2026-09-03 17:13:22 -07:00
2026-09-10 18:17:22 -07:00
2026-09-11 03:45:33 +05:30
2026-09-07 22:47:33 +05:30
2026-09-07 22:47:33 +05:30
2026-09-11 03:45:33 +05:30
2026-09-10 18:17:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-02 21:14:22 -07:00
2026-09-09 09:55:52 -07:00
2026-09-03 17:13:22 -07:00
2026-09-08 17:51:35 +10:00
2026-09-02 19:19:38 -07:00
2026-09-02 19:52:43 -07:00
2026-09-08 17:51:35 +10:00
2026-09-08 17:51:35 +10:00
2026-09-04 00:15:16 -07:00
2026-09-02 20:24:52 -07:00
2026-09-09 10:59:52 -07:00
2026-09-03 17:13:22 -07:00
2026-09-07 14:11:18 -07:00
2026-09-03 13:12:50 -07:00
2026-09-09 10:55:32 -07:00
2026-09-03 08:16:44 -07:00
2026-09-11 19:04:06 +10:00
2026-09-11 19:04:06 +10:00
2026-09-11 19:04:06 +10:00
2026-09-11 19:04:06 +10:00