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

Merged
TH
2h ago
+726-299

Summary

Declares the R1 daemon reasons (51 values) in ReasonTable rows beside their classifiers. That adds 36 tables, and daemon_shutting_down joins DAEMON_LIFECYCLE_REASONS. The imported constants DAEMON_SHUTTING_DOWN_REASON, BOUNDED_COMPOSITE_RESOURCE_UNSUPPORTED_REASON and ALERT_WAIT_WINDOW_TOO_LONG_REASON become rows, and their readers switch to them. The device-claim conflict union now comes from its table.

Published-value change (prose reasons): the sparse-verdict refusals used to publish the runner's message as reason. Now:

  • find ... click|fill|focus|type (daemon route) answers find_snapshot_unreadable. Read-only find ... exists|wait|get text follows in #4930.
  • react-native dismiss-overlay answers overlay_snapshot_unreadable.

The message moves to details.verdictReason and the code to details.verdictReasonCode. FIND_READ_REASONS lives in capture-kit/snapshot-quality-verdict.ts, declared byte-identically in #4930. Merge #4930 first so both find paths switch together.

Value

before (d6767e0910)after
R89 values / sites (repo)248 / 334212 / 284
R89 values / sites (daemon)42 / 576 / 7 (all R7)
Reason tables / rows39 / 11475 / 167

Before / after

Only the two prose reasons change, as listed above. Every other spelling is byte-for-byte unchanged.

Validation

  • pnpm typecheck passes.
  • pnpm generate:reasons: page regenerated and committed.
  • pnpm check:affected --run --head 478859bce8: all 11 runnable checks passed (exactCommit=true). Wire ledger re-pins handleArtifactDownload (value unchanged).

🤖 Generated with Claude Code


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