feat(audit): evaluate role-less clickable views on Android
Merged
TH
7d ago+371+371+012345678901234567890123456789-22-22-01234567890123456789
Summary
audit recognized Android controls only by role, so a role-less clickable or long-clickable view (a React Native Pressable without accessibilityRole) produced no small-target and no missing-name finding. The audit now folds the helper's retained clickability evidence back onto the captured nodes and evaluates such a node as a clickable control. A clickable container whose only actionable descendant is already a control reports once, on the container. iOS is unchanged. commands.md no longer says generic clickable containers on Android are not evaluated, and the audit help states the new rule. 8 files. No scope expansion. Closes #4759
Validation
Head 2d48b3bdc0.
- Gate:
pnpm check:affected --run— all runnable checks passed,exactCommit=true. Coverage, provider integration, and device lanes are CI obligations. - Focused vitest: capture-kit, platform-android, command-surface, command-runtime capture — 330 files / 3084 tests passed. New tests cover the 30dp role-less clickable, the unnamed long-clickable, and the container-wrapping-a-button collapse.
- Live evidence:
emulator-5554(Pixel_7_CI, Android 16), branch-builtnode bin/agent-device.mjs, sessionroleless.snapshot -i --jsonshowsandroidSnapshot.backend=android-helper,helperVersion=0.21.42-dev, density 2.625.audit --jsonon the dev-client launcher reportssmall-target role=clickableforINFO(38.5x32dp) andRESET(41.9x48dp); the snapshot captures both as role-lessandroid.widget.TextView, so neither reported before this change. Raw outputs saved under.tmp/evidence/. - Limitation: the installed
com.callstack.agentdevicelabdev client crashes on this checkout's Metro bundle (gesture-handler v3 binding mismatch), so the lab app screens were unreachable; the dev-client launcher provided the role-less clickables instead.

![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.