pingqiuandClaude Opus 5.5 73e4c1c4c5 fix(storage,recovery): a BASE install handle lives until the next begin (row 9b P1)
codex01 row 9b review (f08ee20c): the real Sender sends BaseDone from its
base lane while its WAL lane is still sending, but a completed install
refused every later WAL entry of the same session (the handle admitted
only while installing). DESIGN r17.4 (Claude01 ruling A):

- every begin bumps an install epoch; a handle is admitted only while no
  later begin has run (checked under installMu shared);
- WriteBase stays installing-only under the handle's ID;
- ApplyInstallEntry is also admitted after the handle's own successful
  MarkBaseComplete, while installed under its ID or retired, under the
  8.1 order and gap rules;
- a later begin refuses the old handle with ErrInstallSuperseded, even
  after both installs completed and retired.

Controls: the real receiver in the Sender order (BASE, WAL, BaseDone,
WAL, barrier), also across a crash and reopen; the store-level lifetime
control. Mutants: installing-only admission, no epoch check.

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