fix(daemon): run find focus through the shared touch-point decisions

Merged
AI
23d ago
+988-95

Summary

find focus and find type dispatch their own point, so they skipped the touch-point decisions the acting paths run. They could tap the middle of a container and report success.

Now they share those decisions. A match holding one text field aims at it. Several fields refuse with AMBIGUOUS_MATCH and name them. A field the locator named stays the target, and a disabled one refuses with target_disabled.

Touches 18 files. Scope expansion: the touch-point module moves to a new @agent-device/selectors/node-touch-point subpath. Refs #3734: the other waived guarantee cells remain.

Validation

Tested 2e1ba8a6d. pnpm check:affected --run --head: 41 passed, 25 skipped, exactCommit=true. Skipped includes unit-ci, coverage, Swift runners and replay lanes; CI owns those.

Live at 5daff16a6, not rerun since; iPhone 17 simulator, Contacts new-contact form. Comparison: #4219's branch, with base 035c2b6ca's find code.

  • find role=table focus: comparison taps (201, 507), reports success, and First name keeps focus; head refuses, naming 3 fields.
  • find value="Last name" type Lovelace: lands in Last name, 3/3 on each.

Risks:

  • One earlier run put that text in First name. It did not recur in 7 later runs; cause unknown.
  • Web textbox/searchbox are not recognized as text fields; the docs say so.
  • find role=cell focus --first taps the Ringtone row on both builds, because --first follows ranking.
  • A field inset inside another field refuses or aims at its gutter. No backend was seen producing this.

šŸ¤– Generated with Claude Code