pingqiuandClaude Opus 5.5 092784eb80 storage: v3 publisher latches slot write errors and pins the uncertain candidate (row 3 amend)
codex01 row 3 review (c9790ac4, AMEND):
- P1: a slot pwrite error (full or partial), like an fsync error, now
  latches a publisher failure (ErrDescriptorPublishUncertain) and the store
  fault through descriptorIOV3.latch, retains the uncertain candidate, and
  refuses every further publication, rollover and reuse with no further
  I/O until reopen reads the slots back (DESIGN 5 failure rule). The v2
  syncFile leaf is unchanged.
- P2: publication-side counter checks return ErrCounterExhausted before
  any write; installed -> installing is refused (not an 8.5 edge).
- Tests: full and partial slot write then error (refusals, no further
  writes, no reuse, store fault latched, reopen selects the previous gen
  after a torn write and the new gen after a complete one); counter
  exhaustion for W, checkpoint, head and map generation; the extra edge.
- invariants.md: INV-WAL-V3-PUBLISH-001 statement and tests updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:52:02 -08:00
Languages
Go 84.7%
Rust 7.7%
Shell 2.7%
templ 1.5%
Java 1%
Other 2.1%