refactor(reasons): declare the R6a reasons in ReasonTable rows

Merged
TH
6d ago
+1043-344

Summary

Declares the 55 published error.details.reason values of kernel, host-kit, host-swift, provision-kit, device-selection, session-journal, proxy, remote, plugins and react-native as ReasonTable rows beside the code that classifies them, so each wire spelling is written once and every raise reads TABLE.member.reason. Owners are the CLI command that raises, or a subsystem: timeouts, device shell, device selection, web session naming, artifact extraction, host commands, process stop, process lock, host paths, script publication, request cancellation, Swift helper cache, install-from-source, remote transfer, remote connection, events, proxy, plugins, react-devtools.

classifyBootFailure and values owned by other batches stay as they are.

The one published-value change: the React DevTools runtime no longer publishes an unknown injected-script spelling as the reason behind a React DevTools failed: ... sentence. An unknown spelling now publishes no reason, the raw spelling in details.runtimeReason, and a generic message. The ten known spellings are unchanged.

Value

55 literals become 22 tables and no raise-site literal in those packages. website/docs/docs/error-reasons.md gains 150 documented rows.

Before / after

No observable change except the unknown-DevTools-spelling fallback above; wire spellings are byte-for-byte identical.

Validation

SHA 9cce87aa44 (full lane): pnpm lint, typecheck, build, check:layering and check:fallow pass; the eager-closure (919) and reason-table guards pass; 21,558 unit tests pass, with one unrelated apple-runner preflight retry assertion that passes in isolation and for the whole project.

Head dc941a9ad1 (review fixes): typecheck, lint, affected package tests, reason-table guard and Fallow pass; CI validates it.

🤖 Generated with Claude Code


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