pingqiuandClaude Opus 5.5 b8950a262f storage: run the v3 format inside the real WALStore; fold codex01 row 5 review (format bump row 5b)
Integration seam ruling (Claude01, hub 10:22Z): v3 lives inside the real
*WALStore with version-dispatched internals, selected only through a
test-only create/open; production Create/Open stay v2 until row 12b.
The parallel walStoreV3 type from row 5 is removed; its logic is now the
store's v3 internals.

- walstore.go: a v3 field, set before the committer and flusher start
  (openInitializedInternal init hook). Dispatch at the v2-coupled points:
  Write appends through walWriterV3 with DurableLSN = Wack; Read uses the
  v3 record layout; Recover runs recoverV3 (R < W*, replay <= R into the
  dirty map, the exact fence, head = E, writer restored to E);
  syncWALBatch runs the C/A modes through the row-3 publisher under the
  v3 leader role; persistCheckpointReleasing publishes through it.
  WriteBatch, ApplyEntry, WriteExtentDirect refuse (errV3NotYet) and
  AdvanceFrontier is a no-op on v3 until their rows.
- flusher.go: readDirtyRecord decodes and validates v3 records.
- The v3 checkpoint/tail publication takes a map candidate hook for row
  7; without it the checkpoint and tail do not move (no fabricated
  coverage; the WAL stays retained).

codex01 row 5 review (40b7614f, AMEND):
- P1: the batch acknowledgement rechecks the store fault under s.mu
  before advancing Wack, closing the window where a queued append latches
  after the publisher's check. Held control in both modes.
- P1 (LSN order): recovery keeps the physical-prefix rule, which DESIGN
  r16 makes canonical (the WAL is LSN-strictly-increasing); a
  contradictory chain while installing is wrapped as ErrBaseIncomplete.
  The ErrWALLSNOrder writer refusal is codex03's row-4 change.
- P2: fence ranges use interval length, never floor+WALSize; a history
  ending at the last representable cursor recovers.
- P2: SetWMode evidence: a held C batch acks under C before the mode
  changes; no batch acks under a stale mode; crash cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:40:41 -08:00
Languages
Go 84.6%
Rust 7.8%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%