refactor(reasons): declare the boot failure reasons in ReasonTable rows
Summary
Third R7 PR for #4937 (after #4976 and #4978). It declares the ten boot failure classifications as BOOT_FAILURE_REASONS rows in provision-kit/boot-diagnostics, which every boot producer already loads.
BootFailureReasonderives from the rows.classifyBootFailure,bootFailureHint, the Android emulator path and the iOS simulator retry path read the table.- apple-runner loads provision-kit only through its host port. So
runner-lease'sIOS_RUNNER_OWNED_BY_OTHER_DAEMONchecks its literal against the derived type withsatisfies, and its startup paths keep their literals, which are already typed asBootFailureReason. - The infrastructure subset in
contracts/boot-failurestays a name list: contracts sits below provision-kit and cannot read the table.
Value
| Measure | base | head |
|---|---|---|
| Documented boot failure reasons | 0 | 10 |
| Reason table rows | 464 | 474 |
| R89 untyped reason sites | 58 | 58 |
The R89 site count does not change, because the scan still counts runner-lease's literal checked with satisfies.
Before / after
No observable change. Wire spellings stay byte-identical.
Validation
Head c62ccb857d: typecheck, oxlint, format, generate:reasons, the repo guards, the eager-closure gate, wire-compat and fallow audit (0 issues) pass. Tests pass for provision-kit, platform-android, platform-apple core, apple-runner and replay-port (about 4,300 tests).
🤖 Generated with Claude Code

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.