refactor(reasons): declare the boot failure reasons in ReasonTable rows

Merged
TH
4d ago
+109-32

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.

  • BootFailureReason derives 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's IOS_RUNNER_OWNED_BY_OTHER_DAEMON checks its literal against the derived type with satisfies, and its startup paths keep their literals, which are already typed as BootFailureReason.
  • The infrastructure subset in contracts/boot-failure stays a name list: contracts sits below provision-kit and cannot read the table.

Value

Measurebasehead
Documented boot failure reasons010
Reason table rows464474
R89 untyped reason sites5858

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


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