pingqiuandClaude Opus 5.5 66be344b54 feat(storage,recovery): v3 gated Sync and the receiver's install-log ack (row 10a)
DESIGN r17.4 section 7 (O1-a), dark:

- While installing, the v3 logical Sync returns exactly (0,
  ErrBaseInstalling): no batch, no new W; the gate is rechecked at the
  completion under the leader role.
- SyncInstallLog(installID) on the narrow InstallLogSyncer (not on
  LogicalStorage): under installMu shared it refuses outside an install
  (ErrNotInstalling) or for another ID (ErrInstallIDMismatch), freezes the
  cut H, fsyncs the WAL and publishes W = max(W, H) with BaseState still
  installing, always mode A. A v2 store's SyncInstallLog is its Sync.
- The receiver's sendAck uses it until the session's own BaseDone, then
  the ordinary Sync (the WAL lane can outlive BaseDone, r17.4).

Controls: the gate, the refusals, mode A on a lagged store with a crash,
the receiver's progress ack (tagged), and the receiver-only boundary.

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