pingqiuandClaude Opus 5.5 cfc6ddec23 feat(transport): the legacy single-lane rebuild on the BASE install handle (row 10b)
DESIGN r17.4 section 8.7, caller 2 (core/transport/replica.go, the
production default --recovery-mode=legacy):

- the first admitted MsgRebuildBlock of a connection, or an empty
  rebuild's MsgRebuildDone, begins one install at the lineage's frontier
  hint under a fresh random ID; a different hint on the connection is
  refused; a reconnect is a new connection and so a superseding install
  under the coverage rule;
- each block is written through the handle's WriteBase, never the
  store-level WriteExtentDirect;
- MsgRebuildDone completes through the handle, then calls Sync, which is
  ordinary once installed, and stops discarding the Sync error: a failed
  completion or Sync closes the connection with no MsgBarrierResp.

Stores without the seam keep their pre-seam behaviour behind the legacy
handle (lazy BaseStager staging, WriteExtentDirect, AdvanceFrontier at
completion). The one behaviour change on them is the DESIGN 8.7 rule: a
Sync error on the done path no longer replies AchievedLSN 0 but closes
the connection. The live MsgBarrierReq handler keeps replying the gated
Sync's 0 while installing (section 7).

Tagged controls on a dark v3 replica: the positive and empty rebuilds,
the real BlockExecutor.StartRebuild -> doRebuild path, injected
MarkBaseComplete and Sync failures, and reconnect supersession.

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