Skip to content

AI, fully local on your computer.

docs(build-state): the #1033 line; #1028 marked merged

comilionas48017decb34b
diff --git a/BUILD_STATE.md b/BUILD_STATE.md
index e809563c..9e84e059 100644
--- a/BUILD_STATE.md
+++ b/BUILD_STATE.md
@@ -28,7 +28,8 @@
> entries were true when written but are snapshots — as of 2026-07-10 `master` is pushed (in sync
> with origin through `ac4f315`) and the 2026-06-30 audit branch stack is merged. Only the branches
> named in §5's branch analysis still carry unmerged work.
-_2026-11-23 — **#1028 (an engine install marker that is there but damaged no longer turns the pre-spawn check off; branch `fix/1028-garbled-engine-marker`, on `6c2fc2c8`): in review.** One reading for every reader (`readRuntimeMarkerState`): a marker cut short, garbled, with a `binaries` entry that is no SHA-256, or recording files but not the program is the new verdict `marker-damaged`, never cached, with no fallback to the family marker for a `cpu/` net; the engines refuse it as `files-damaged` with "Install again", the sell gate names it, and both `fetch-runtime` twins fetch it again (review round 2: each reads it with its own JSON reader). Owner call 2026-11-23: Q1 (a), the knowledge-pack tools refuse it like a missing file (the repair is outside the app). Records: security-model.md "Re-hash sidecar binaries before spawn", architecture.md "Engine load failures" §14, data-contracts.md (the reading rule, the frozen writer rules), known-limitations.md, troubleshooting.md. Open: plan 06's F-24 split and W-62's marker fixtures (orchestrator); the `binaries`-garble residual._
+_2026-11-23 — **#1033 (a file hash settles only once the file is closed; branch `fix/1033-hash-settles-on-close`, on `f7f632ce`): in review.** `sha256File` resolved on the read stream's `end`, before the stream had closed its file; under load a folder rename right after the hash met the open file and Windows refused it (EPERM: 1,000 of 1,000 with one pool thread and CPU load, 0 after the fix), the `engine-swap.test.ts` flake. Now an unaborted hash settles on `close`; an abort after the read settles at once with the digest (the #420 rule; the cache stores it, so no second read), and a close that fails after a complete read keeps the digest. Records: architecture.md #420 Trap 1, CHANGELOG. Open: `archive-size.ts` `tarGzListing` resolves before its stream closes (the Linux and macOS tar.gz engines only, where nothing refuses the rename)._
+_2026-11-23 — **#1028 (an engine install marker that is there but damaged no longer turns the pre-spawn check off; PR #1035): merged 2026-11-23 (`f7f632ce`).** One reading for every reader (`readRuntimeMarkerState`): a marker cut short, garbled, with a `binaries` entry that is no SHA-256, or recording files but not the program is the new verdict `marker-damaged`, never cached, with no fallback to the family marker for a `cpu/` net; the engines refuse it as `files-damaged` with "Install again", the sell gate names it, and both `fetch-runtime` twins fetch it again (review round 2: each reads it with its own JSON reader). Owner call 2026-11-23: Q1 (a), the knowledge-pack tools refuse it like a missing file (the repair is outside the app). Records: security-model.md "Re-hash sidecar binaries before spawn", architecture.md "Engine load failures" §14, data-contracts.md (the reading rule, the frozen writer rules), known-limitations.md, troubleshooting.md. Open: plan 06's F-24 split and W-62's marker fixtures (orchestrator); the `binaries`-garble residual._
_2026-11-23 — **#1024 (a back-end start that throws; PR #1034): merged 2026-11-23 (`6d065598`).** `initBackend` runs through `runBackendStart`: a throw logs its code (no path), drops the channels the partial start registered and registers the failure state, so `getWorkspaceState` answers `start_failed` (a cause + the code) and the gate shows "The app could not start", what helps, the code and "Copy details for support". Review round 1: a masked mkdir errno is read again, a throw after the back end shows an error box and exits, the crash lines log codes. Owner calls 2026-11-23: OQ-1 (b) the copy button, OQ-2 (b) three texts. Records: data-contracts "Start failure (#1024)" (P6: the update registrar takes the narrow failure context), security-model, troubleshooting, known-limitations. Dev app: as designed; the card's text waits two frames. Open: the German read; a Narrator listen; Electron's handler swap after a late throw; review._
_2026-11-22 — **#1027 (a v1 → v2 password change whose staged database cannot be moved into place; PR #1031): merged 2026-11-23 (`6c2fc2c8`).** The open session now wins: the change drops the stage from the rekey journal, saves `.enc` from the open database under the new key and deletes the stage; every lock of the session retries what is left; an unlock removes a stage that opens under the data key beside an `.enc` that opens too (`superseded`). A failed rollback no longer hides the change's own error or skips zeroing the new key. Owner calls 2026-11-22: OQ-1 (a) a log line and docs, no notice; G-1 refined as recommended. Records: security-model "Password change" + the #973 rule, data-contracts (rekey journal, `superseded`, the frozen constraint), known-limitations. Open: residuals R1–R3 (known-limitations); review._
_2026-11-22 — **#1015 + #1014 (the rekey journal at the start; PR #1030): merged 2026-11-22 (`838a31f2`).** A swap a held file stops now blocks the recovery (`vault_recovery_blocked`, "try again", the code logged) instead of throwing out of `init()` before the IPC, and a folder in the way is left aside, never a block (but at `.enc`); the journal acts only inside the workspace folder on the disk (no link on the way), is rewritten to what still waits, the rotated log by its computed path, out-of-store stages outside the folder (or reached through a link) at the unlock when the database lists them and the stage opens under the data key; the shreds never write through a link or a hard-linked file; a folder at `.enc.new` no longer replaces `.enc` nor costs the only copy (owner calls 2026-11-22: D1 (a), D2 (a); reviews: Fable, `/code-review high`). Records: `security-model.md` "Password change" + "Secure erase", `data-contracts.md` rekey journal. Follow-ups: #1024 (a failed backend start leaves the window with no IPC), #1027 (a v1 → v2 change whose staged database cannot be moved into place)._