pingqiuandClaude Opus 5.5 54191e188d feat(storage): v3 WriteBatch as one multi-block record, with replay and reads
The activation limiter codex01 named: v3 WriteBatch (the real 8 KiB
multi-block write) and its replay/read path returned errV3NotYet. Dark:

- WriteBatch on a v3 store appends one multi-block record (type 0x04)
  with LSNs first..first+n-1 and one CRC32C, so a crash keeps all of it
  or none; the writer consumes the whole range (DESIGN 6.7, r16), the
  map coverage follows every block's LSN, and each block's dirty entry
  names its data offset inside the record. A single block is a write.
- One whole-record reader (readWholeRecordV3, blockOfRecordV3) serves the
  store read, the flusher and codex03's dark offline reader: it sizes the
  record from its type and Length, validates the whole record and the
  block's LBA, LSN and offset in it. The read retry also compares the
  data offset.
- Recovery's replay and the install-path replays (the reopen cut and the
  same-open continuation) republish every block of a batch.

Controls: round trip across a crash in both modes, a torn batch (dropped
whole when unacknowledged, fail-closed when acknowledged), a crash
mid-batch (latched, never acknowledged, none served), the ack boundary,
the flusher, the offline reader and the map coverage. Mutants: block 0
reads, first-block replay, a split batch, a flusher at offset 0, an
offline reader indexing only block 0, no map coverage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 16:42:13 -08:00
Languages
Go 84.8%
Rust 7.6%
Shell 2.7%
templ 1.5%
Java 0.9%
Other 2.2%