From 0e8cd91af1dae0b48c59a6c0985075279ee58a6b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 10 Aug 2026 10:39:54 +0100 Subject: [PATCH] Make CultCache snapshots crash atomic --- notes/fresh-workspace-handoff.md | 25 +++++++++++++++++++++++++ state/ledgers.msgpack | Bin 601607 -> 602046 bytes state/map.yaml | 14 +++++++------- vendor/cultcache-rs | 2 +- 4 files changed, 33 insertions(+), 8 deletions(-) diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 8b2e6ce9..4fd1c2cd 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1,5 +1,30 @@ # Fresh workspace handoff +## Starfire reboot exposed non-atomic CultCache publication — 2026-08-10 + +Live c005 and the copied e97 Continuity harness independently lost only +`resident-self.cc` during the same host restart. The files were replaced 0.563 +seconds apart at `09:15:18Z`/`09:15:19Z`, each became a nonempty file consisting +entirely of zero bytes, Windows booted at `09:16:52.500Z`, and Docker later +reported c005 exited 255. Every sibling c005 `.cc` store remained nonzero. The +exact corrupt c005 bytes, hashes, container state, and host-event correlation +are preserved under +`.epiphany-run/interventions/c005-zero-store-20260810T091926Z/`. Do not restart +c005 and do not describe this as a clean shutdown. + +The source owner was CultCache's single-file publisher: it deleted the committed +destination before renaming a staged snapshot. Upstream CultCache `e8a9f2d` +now flushes a unique staging file, atomically replaces the sibling destination, +and performs the Unix parent-directory durability barrier; Windows uses +write-through replacement. Forty ordinary tests pass, with two explicit +operator crash probes ignored. Linux overlayfs and the exact writable Starfire +`F:` bind both pass replacement, failure-preservation, and directory-sync +checks. Thirty randomized writer SIGKILL/reopen passes on the bind and ten on a +Docker named volume always decoded one complete typed snapshot. The remaining +gate is to advance Epiphany to this dependency, package once, recover into a new +resident incarnation from surviving typed authority, and prove clean +restart/non-resurrection. The zero file is evidence, not a migration input. + ## Cross-container resident ownership accepted — 2026-08-09 Exact `c930f505` release diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 28f8c6e7fcfc2dbac016a9214cfc88a4757cee6e..e521200242956285726f8e2ec355e11517aa9ba4 100644 GIT binary patch delta 485 zcmYLFy-Gtd81>d_?VzKB(+3I;dTUy(*gAF)v71hAxi{anftbW3xAu0apdda#aqtBk z1qU}rpF;3e{BA`Z4hiRw^OO6}jrXsOm(^&w)7|ZK_t^QzT)px1x*lCc(cSH|azCv^ zgz}sxR0#`&MM90R^fs;3-PYrHv%XR-Ego;4YipC};WTiUNr&JtF(v>H&|tAT zcE&p0=6<)`YP1@hGCC#2@C0LlvV8b>@0(3d(N zK_bgt-10;!8H#P#Wk1~M@zKd~zrW+qSkz#-_rD=c2IV3V4~@#pWi#!61sGkD&LdA0 QLRcv*{hHU@`hf|JZx!FA>i_@% delta 71 zcmdmYU#0zy$_6n;UJENz11lr*sACMAI!`t$GZr#3HaAaYYM;u)2*e