An accessibility review prompt needs a state contract: build identifier, route, viewport, zoom level, language, authentication state, interaction path, and evidence type. A DOM snapshot, accessibility tree, screenshot, and recorded keyboard trace answer different questions. Ask the model to label direct observations separately from hypotheses and untested behavior. The reviewer must reproduce an interactive claim in the browser. Without a stable state, a later fix can be judged against a different interface than the one that failed.
Accessibility prompts: identify the tested page state
Operational case
Harbor's booking form has an idle state and a failed-submit state. A screenshot of the idle form shows the visible labels, but it says nothing about where focus lands after validation or whether an error is announced. The reviewer captures build B-47, the failed-submit path, a keyboard trace, and the resulting DOM. The prompt may ask which evidence is missing; it must return 'untested' for spoken output until a screen-reader check occurs.
Route: /booking; build: B-47
State: failed submit with required pickup code blank
Evidence: DOM snapshot + keyboard trace
Not observed: screen-reader announcement
Output: observation | hypothesis | test still neededPerformance and review cost
Capturing S states costs O(S) records and at least O(S) manual transitions; comparing DOM snapshots can cost O(N) in the number of nodes per state. Recording one stable state contract per finding is cheaper than retesting an ambiguous report. Keep sensitive account data out of traces and attach the minimum route and control labels needed to reproduce the issue.
Common Mistakes
- Do not infer spoken behavior from pixels.
- Do not omit build or state when reporting a failure.
- Do not label an untested concern as an observed defect.
Connected lessons
- Prompt engineering applications
- Prompt Engineering
- UI release prompts: compare appearance and verify access
- Evidence IDs: make generated claims auditable against supplied records
- Accessibility prompts: check semantics and control names
- Accessibility prompts: test keyboard and dialog focus paths
- Accessibility prompts: connect form errors and status changes
- Accessibility prompts: measure contrast and describe image purpose
- Accessibility prompts: inspect zoom and reflow states
- Accessibility prompts: write reproducible findings and retest fixes
- Project: review Harbor booking access across states
- Accessibility review prompt decisions
