refactor(ios-runner): drop the XCTest coordinate gesture fallback

TH
3m ago
+267-730

Summary

Stacked on #5354. Invariant: a synthesized iOS gesture never switches to an XCUICoordinate gesture. Covered: tap, long press, drag, one-contact gesture, sequence tap/long-press, nav-bar back tap, coordinate fill tap. When the private event record is refused, the runner returns the refusal with the synthesis hint: SYNTHESIZED_GESTURE_NOT_DISPATCHED when nothing was sent, otherwise UNSUPPORTED_OPERATION.

Why: both routes go through testmanagerd event synthesis and only differ when a private selector is missing. The XCUICoordinate route crashed the runner on a rejected AX root (#4274). No report or local log shows the fallback firing.

Removed: the fallback policy, the deferred-window proof, the policy log marker, the gestureFallback* wire fields, and the TS diagnostic. Older runners still send the fields; the client ignores them, so version skew is safe. ADR 0011 and RUNNER_PROTOCOL.md are amended.

Value

  • Runner fallback branches (.xctestFallback): 10 → 0
  • Gesture fallback wire fields: 3 → 0
  • Net diff: −526 lines (+156/−682)

Validation

141 affected runner tests on an iPhone 17 Pro simulator (iOS 27.0) at 3b10ed3: 140 passed; testCoordinateTapCommandOnASoleScreenPhoneLandsWithoutAWindowsQuery read its witness early, is unchanged here, and passed alone. pnpm vitest run runner-session-response.test.ts passed (10 tests).

Risk: if the event record fails only on a physical device, the gesture is now refused instead of falling back to a slower XCTest gesture.

🤖 Generated with Claude Code


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