pingqiuandClaude Opus 5.5 89f0ca8b30 durable: detach review fold 2: forced failed-drain branch, recorded deadlines, handshakes, mapping order, invariants
- Test-only hooks: DetachVolume's StopIO can be replaced (the repeat and
  retry tests now force and observe the failed-drain branch instead of
  racing a cancelled context against a finished drain); the detach's cut
  and settlement deadlines are traced (the budget test checks 3/4 of the
  freeze, then the bound); the backend signals an I/O passing its
  readiness check right before the I/O lock (the drain test's arrival
  handshake replaces a 100 ms non-completion window, with bounded
  receives).
- The delayed detach CAS worker is joined, bounded, also on failure.
- chunkErrorCode: the detach sentinels decide before a catalog-error
  cause; the table rows now discriminate that order (no storage CAS
  sentinel behind them).
- Invariants: INV-WS-DETACH-ABORT-001 and INV-WS-DETACH-FREEZE-001, and
  the M4 transition Holder (detaching) -> Holder.
- Mutants (declared, 10/10): plus a catalog cause deciding before the
  sentinels; the whole-budget cut is now caught by the deadline check too.

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