pingqiuandClaude Opus 5.5 5d5dedcfb6 fix(storage): v3 BASE begin covers appended LSNs; complete settles the map (row 9a P1s)
codex01 row 9a review (60803a87), two P1s:

1. With W 1 and unacknowledged LSNs 2 and 3 appended, a begin at
   BaseLSN 1 left 2 and 3 behind BaseCursor while the allocator went on
   at 4; after complete an acknowledged write 4 met a hole at reopen
   (strict R 1 < W 4; lagged could drop it). The begin now also needs
   BaseLSN >= the highest appended LSN and is refused otherwise, writing
   nothing; nothing is rewound or dropped.
2. A BASE write's UNKNOWN coverage was only in memory, and complete
   published installed with the old clean map root. Complete now settles
   step 2 like a checkpoint: one fsync, the metadata and chunk barriers,
   a fresh owned-map candidate, and one installed publication carrying
   it, under the leader role and the recovery-lifetime check. A guest
   write that makes the candidate stale fails the completion.

Each has an actual-store control and a mutant. The held-test hooks now
always release in cleanup (P2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:33:34 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%