pingqiuandClaude Opus 5.5 3f73b56f18 volume: typed recovery reasons wiring and controls (RED)
#133 (follow-up to #128 rule 6): wiring with the classifier stubbed,
plus controls.

- volume: UnhealthyWALCorrupt / UnhealthyIOError; LocalRecoveryHealthReason
  (stubbed here: classifies nothing); Host.ReportLocalRecoveryFailure
  records the classified reason, cleared by ClearLocalReadinessBlock; the
  watchdog reports a recorded local failure for a primary-assigned
  replica at once (after the G1 latch, before readiness and the timeout).
- blockvolume: a failed durable RecoverVolume calls
  ReportLocalRecoveryFailure(recErr) next to BlockLocalReadiness.
- controls: the classifier maps WALIntegrity (typed or the sentinel,
  wrapped or not) to wal_corrupt, SubstrateIO / fs.PathError /
  io.ErrUnexpectedEOF / EIO to io_error, and anything else (WALRecycled,
  untyped) to nothing; the real chain (a corrupted smartwal store ->
  durable.Recover -> ReportLocalRecoveryFailure) makes a primary-assigned
  replica report wal_corrupt at once, cleared by a clean recovery; a
  replica that is not primary-assigned is not flagged; an unclassified
  failure reports nothing early and recovery_timeout still covers it.

Refs #133

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