feat(android): estimate the TalkBack swipe order in audit
Merged
TH
4d ago+1276+1276+0123456789012345678901234567890123456789-36-36-01234567890123456789
Summary
audit on Android now reports screenReaderOrder: the refs a TalkBack swipe is estimated to visit, per app window, labeled as an estimate. It comes from a TypeScript port of TalkBack 16.2's traversal and focus rules (Apache-2.0, attributed in LICENSES/talkback.txt and the bundled notices), run on one helper capture.
- The helper adds node ids, traversal links, and focus-rule facts. Older helpers report no order.
- The estimate drops not-important views, which UiAutomation captures and TalkBack never sees.
- Audit computes the estimate on first read. Android helper captures retain the input facts.
- Order refs are issued like finding refs (ADR 0014 amended).
- iOS reports no order.
Before / after
agent-device audit on Clock (World Clock tab), emulator API 37:
Before: No findings ā current screen
After:
Estimated TalkBack order: @e11~s849093 @e13~s849093 @e19~s849093 ⦠@e37~s849093
Limitation: The screen-reader order is estimated from TalkBack 16.2's rules, not observed. ā¦
The refs match the order TalkBack 17 recorded on this screen.
Validation
At 595590fb93, rebased onto main (ecb2089867):
- Affected validation, production exports, and eager-closure tests pass. GitHub reruns coverage and device lanes.
- TalkBack ordering loads on first audit read.
- Four fixtures record TalkBack 17 swipes. One known miss is a disabled Compose button.
- At
feebc2faed, emulator API 37 with helper0.21.43-devandandroid-helperproduced the output above.
Risks: no auto-scroll, cross-window order, or WebView; pinned to TalkBack 16.2.
š¤ Generated with Claude Code
Open in [code]smith Ā· Need help on this PR? Tag @codesmith-bot with what you need.