pingqiuandClaude Opus 5.5 273ca809d8 durable: a refused observer rebase never leaves I/O open; seed and install serialized
SetWriteObserver published the observer first and only logged a refused
ship-LSN rebase, so the volume kept serving writes its observer would
mis-order.

Now:
- SetWriteObserver rebases an LSN-ordering observer to the store's next
  LSN before installing it. If the rebase is refused, the observer is
  not installed and the error is returned. The backend also records the
  fault and refuses every I/O until an install succeeds, so a later
  attach that marks the volume operational cannot reopen it. blockvolume
  reports the error.
- The frontier seed and its observer rebase run in one critical section
  with observer installs (observerMu). Whichever runs second sees the
  other's result; a seed landing between an install's rebase and its
  publication can no longer leave the observer on the old LSN. A refused
  rebase after the seed records the same fault.
- RebaseShipLSN documents that it moves only the ordering cursor:
  entries already dispatched to peer queues carry lower LSNs and are
  untouched.

The composition test checks the install error.

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