refactor(reasons): declare the R7 shared reasons in ReasonTable rows

Merged
TH
5d ago
+252-139

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 (replaces REQUEST_CANCELED_REASON) and keyboard_dismiss_unavailable. Kernel is the only home that grows no eager closure.
  • plugins: invalid_plugin. command-registry: fill_text_stdin_in_batch.
  • Follow-up: sparseFindRefusal moves into selectors/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

Measurebasehead
R89 untyped reason sites5828
R89 untyped values2113
Reason table rows464475

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