Skip to content

test(app): measure what a screen reader gets today, before B2 adds keys - #14396

Merged
Git-on-my-level merged 2 commits into
mainfrom
task/msd-ui-semantics-baseline
Sep 17, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
task/msd-ui-semantics-baseline

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

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.identifier is explicitly "not exposed to
the users of the app" and maps to resource-id / accessibilityIdentifier /
flt-semantics-identifier for UIAutomator, XCUITest and Appium (semantics.dart ~1993–2014 in
Flutter 3.44.5). So the rule for B2 is simply to use it: omi.<surface>.<control> goes on
Key and/or identifier, and context.l10n.* goes on label / tooltip. HeaderCircleButton
and the tab bar already do exactly that split.

Today there is no leak: 0 spoken names match omi.*, an IconData, or a bare number. The
risk is prospective. Had the grammar leaked into labels, VoiceOver would announce
omi.home.tab_home instead of Home, omi.conversation_detail.ask instead 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.

Surface Unnamed Notes
conversation_detail 7 back, star, share, search, overflow — "Ask about this" is named
memories 4 graph/slider icon buttons, AppBar back
conversations 1 calendar IconButton has no tooltip; the Speaker beside it does
tasks 1 a body GestureDetector(onTap: () {})
settings 1 the search icon; rows inherit their title text
devices 1 the leading chevron
home, onboarding, chat 0 tabs announce correctly; chat already splits label from key

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) and ChatPage
(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

Review in cubic

Git-on-my-level and others added 2 commits September 18, 2026 02:47
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
Git-on-my-level merged commit 3a8d345 into main Sep 17, 2026
36 checks passed
@Git-on-my-level
Git-on-my-level deleted the task/msd-ui-semantics-baseline branch September 17, 2026 21:03
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant