refactor: move Wave 5 touch commands to platform runtime

Merged
TH
3mo ago
+3127-3051

Summary

Moves the Wave 5 touch cluster from legacy capability and dispatch routing to request-bound platform runtime operations for click, press, fill, longpress, and hover.

  • admits exact owner facts and binds only the operations each command requires
  • keeps ref support truthful to the request-scoped provider, including sparse web providers
  • retains the Maestro-only iOS non-hittable route while distinguishing a successful direct element tap from an executed coordinate fallback
  • keeps Apple fused presses and Linux alternate buttons owner-local
  • retires the superseded dispatcher, series helper, static capability cells, and the unmeasured ordinary iOS direct-selector optimization
  • adds singular cutover rows R47-R51 with runtime, provider, planted-red, and full daemon contract coverage

Part of #1739.

Validation

Exact head 444a98633:

  • pnpm check:affected --run passed: 543 related test files / 4,293 tests plus every runnable format, lint, typecheck, layering, fallow, build/package, Node integration, provider integration, conformance, and structural/model gate
  • the direct-Maestro registry test was observed red before the fix; the completed route now carries a typed internal maestro-direct-selector or maestro-non-hittable-fallback path with no new public response metadata
  • daemon contract coverage proves both outcomes: fallback-used suppresses resolution, while fallback-allowed-but-not-used keeps { source: 'direct-ios', kind: 'not-observed' }
  • eager-closure coverage is exact: the new touch-runtime entry is pinned at 4 modules, its four genuine +1 ancestor closures are recorded, and the retired dispatcher closure is ratcheted down from 94 to 88

Live device evidence from predecessor e809d492c (this follow-up changes only internal path classification, contract tests, and closure pins):

  • iOS simulator: click, press, fill, and longpress committed the expected app-state changes; hover returned the canonical typed refusal
  • Android emulator: the same five command cells passed, including committed app-state assertions and the canonical hover refusal
  • exact-head web remains pending because the managed browser device was live-leased by another session; no lease was stolen

The prior Android Smoke failure occurred after the migrated click successfully opened and exposed the native alert. alert dismiss then closed the dialog without the fixture receiving its cancel callback; current main passed the identical alert flow. This is isolated from touch dispatch and is left to exact-head CI rather than widening this PR.

The preceding size report at e809d492c was +6.2 kB npm unpacked (+1.3 kB gzip), entirely in JS/dist; Apple runner source, macOS helper source, and Android helper artifacts were unchanged. Exact-head Bundle Size and device lanes remain authoritative.

Docs and skills are unchanged because the public command surface and semantics are unchanged.