mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-10-06 01:17:42 +00:00
Lands @Vybo's storage-stack rework from #179 — runtime SD wedge/remount recovery, chat-store health diagnostics, and a segmented, append-friendly message store that replaces the whole-ring file rewrite (crash-atomic migration, per-segment corruption quarantine) — plus a fix for the segment-table-cap latch that made SD I/O fail after a few hours of uptime: at the cap, segBuildJob emitted a create-append segCommitJob could not table, freezing the durability watermark into a permanent write-spin that leaked orphan segment files until the card filled. Full credit to Dan Vybiral (@Vybo) for the design and implementation. The cap-latch fix is the only change on top of his branch. Landed directly (his fork branch could not carry the fix), so #179 is closed rather than merged. Co-Authored-By: Dan Vybiral <dan.vybiral@greencode.cz> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>