refactor(reasons): declare the R7 shared reasons in ReasonTable rows
Summary
First R7 PR for #4937. It declares reasons that several packages raise as ReasonTable rows, each in the lowest package every producer already loads:
- contracts:
remote_instance_mismatch,app-device-scope,alert-not-found,alert-wait-timeout - daemon-contracts:
daemon-owner-unrecognized,daemon_retirement_unconfirmed - kernel:
runtime-contract-invalid,request_canceled(replacesREQUEST_CANCELED_REASON) andkeyboard_dismiss_unavailable. Kernel is the only home that grows no eager closure. - plugins:
invalid_plugin. command-registry:fill_text_stdin_in_batch. - Follow-up:
sparseFindRefusalmoves intoselectors/interaction-error. The eager-closure gate passes.
The Apple runner's RUNNER_ERROR_CODES row keeps its keyboard_dismiss_unavailable literal, because the runner refusal docs guard reads only same-file tables there (native mappings belong to R8). The durable outcomes are in #4978; the runtime facts and boot failures follow.
Value
| Measure | base | head |
|---|---|---|
| R89 untyped reason sites | 58 | 28 |
| R89 untyped values | 21 | 13 |
| Reason table rows | 464 | 475 |
Before / after
No observable change; spellings stay byte-identical. The three remote_instance_mismatch wire declarations now read the table, so their ledger digests and acks are re-pinned with a note.
Validation
Head 3eb1b26f36: typecheck, oxlint, format, generate:reasons, the repo guards, the eager-closure gate, wire-compat, and fallow audit (0 issues) pass. About 4,000 affected tests pass.
š¤ Generated with Claude Code