Accessibility & Testing

Accessibilitymaxxing: Enforced Accessibility Trees Built for Screen Readers and AI Agents

· 6 min read · Christian Findlay

Sherbet Signal casting player rendered on GPUI with accessible play, volume, and receiver controls
Sherbet Signal on GPUI: every control on the GPU canvas exposes a typed role, bounds, and live label to AccessKit and @osprey/uitest.

Accessibility is usually treated as a late audit: sprinkle ARIA attributes or semantics modifiers onto finished screens and hope nothing breaks on the next refactor. That fails screen reader users — and it also forces AI agents into brittle screenshot-clicking loops.

In Osprey Native, accessibilitymaxxing is built into the framework's data model (accessibility.td):

  • Every control in a UI machine declares a typed AccessRole (Pressable, Slidable, Popup, MenuItem, Unannounced) and a template label.
  • Canvases::semantics produces the live accessibility tree on every frame. Hidden or disabled controls are omitted, so neither a person nor an AI agent can invoke an illegal action.
  • @osprey/uitest drives the app's real start and dispatch exports headlessly with zero window or simulator: tap "Play" fires a real pointer press and release at the control's bounds, and letters "00:50" verifies the actual text drawn on screen.
  • On the GPUI host, every entry maps to AccessKit (NSAccessibility on macOS, UI Automation on Windows, AT-SPI on Linux).

Mapping the same tree across WinUI, SwiftUI, and VS Code hosts, emitting it from direct view code, and exposing an external MCP server over semantics and act remain active delivery work.

Osprey Native is actively evolving. Try it on your projects, validate it against your workload, and assess the risks before relying on it in production. Back to all posts →