Repository navigation
test(app): measure what a screen reader gets today, before B2 adds keys - #14396
Merged
Merged
Conversation
B1 requires real VoiceOver/TalkBack improvement, not just keys. Dump per-surface unnamed controls now so B2 cannot bake omi.* grammar into spoken labels — Flutter already keeps identifier off the announcement. Co-authored-by: Cursor <[email protected]>
Dart Analyze & Tests failed on three new occurrences introduced by the harness: prefer_const_constructors (1 vs baseline 0), unnecessary_brace_in_string_interps (15 vs 13) and unnecessary_import (13 vs 11). Fixed rather than baselined: dropped the redundant braces in two interpolations, removed the two imports that schema.dart already provides, and made the GetMemoriesResult fixture a const declaration. The one remaining hint is the pre-existing pipelineOwner deprecation, which is inside its baseline. Failure-Class: none Co-Authored-By: Claude Opus 5 <[email protected]>
Git-on-my-level
added a commit
that referenced
this pull request
Sep 17, 2026
#14396 merged its copy of the semantics harness, so the two files conflicted add/add. Resolved by taking this branch's version, which is main's plus isFocusWrapperForNamedField and the getter that uses it — verified as a strict extension by diffing both sides rather than assumed. Co-Authored-By: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
A hermetic accessibility baseline, taken before B2 adds addressability keys across nine
surfaces. One reusable test utility that dumps a surface's semantics tree, and one report. No
app code changes.
B1 requires that semantics work "improve real VoiceOver/TalkBack behavior, not just add
identifiers", and that requirement had no measurement behind it. B2 is exactly the moment an
agent-only labelling habit would get baked in, so this measures the starting point.
The headline finding answers B1's hardest question. Flutter already separates the machine
identifier from the spoken name:
SemanticsProperties.identifieris explicitly "not exposed tothe users of the app" and maps to
resource-id/accessibilityIdentifier/flt-semantics-identifierfor UIAutomator, XCUITest and Appium (semantics.dart~1993–2014 inFlutter 3.44.5). So the rule for B2 is simply to use it:
omi.<surface>.<control>goes onKeyand/oridentifier, andcontext.l10n.*goes onlabel/tooltip.HeaderCircleButtonand the tab bar already do exactly that split.
Today there is no leak: 0 spoken names match
omi.*, anIconData, or a bare number. Therisk is prospective. Had the grammar leaked into labels, VoiceOver would announce
omi.home.tab_homeinstead of Home,omi.conversation_detail.askinstead of "Ask about this",and
omi.conversations.row.r{sha256}instead of a row's title.What is genuinely poor today: 15 interactive controls have no accessible name at all.
IconButtonhas no tooltip; the Speaker beside it doesGestureDetector(onTap: () {})Product invariants affected
none
How it was verified
Test utility and report only. Counts come from pumping each surface and reading the semantics
tree, not from reading source.
These are lower bounds, and the report says so. Five surfaces could not be pumped
hermetically —
HomePage(timers),HomeContentPage(HTTP summaries),ConversationsPage(
CaptureProvider/recordings),ConnectDevicePage(ServiceManager/BLE scan) andChatPage(blocked on #14315) — so their unnamed controls are not counted. Apple sign-in was not built on
this host.
A semantics tree is not VoiceOver or TalkBack. It cannot see real focus order, gesture
conflicts, announcement timing or rotor behavior. This is a baseline, not an accessibility pass,
and should not be cited as one.
Tests
The dump utility itself, plus its use across the surfaces in the table.
Failure class (fixes)
Failure-Class: none
🤖 Generated with Claude Code