Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

GitHub Engineering 9 min read Case study mediumAdept

Your alt text passes automated checks. That doesn’t mean it’s any good.

GitHub's alt text plugin for its Accessibility Scanner splits checks into five deterministic, on-by-default rules and one opt-in model-backed rule. The deterministic rules flag missing, filename, placeholder, single-generic-word and repeated alt text using exact-match closed sets, accepting misses to avoid false positives. Repeated-alt detection uses on-screen bounding-box gaps rather than DOM order. The opt-in rule sends the image and page context to a vision model through GitHub Models, with an ordered decision procedure, anti-nitpick rules and reasoning-before-verdict structured output to stop it critiquing good alt text. URL redaction, off-by-default cost and privacy controls, and known gaps such as computed accessible names, SVGs and authenticated images are covered.

Related posts

  • Finding leaked passwords with AI: How we built Copilot secret scanning

    GitHub Engineering mediumAdept

    GitHub replaced regex-based detection of generic passwords with an LLM prompt that judges candidate secrets from their file context. The first GPT-3.5-Turbo few-shot prompt broke on unusual file types in customer repos. GitHub responded by expanding offline evals with customer reports and GPT-4-generated cases, adding GPT-4 as a confirming scanner, and adopting Microsoft's MetaReflection hybrid chain-of-thought/few-shot prompt. To scale full-history scans, they excluded low-value files and built a workload-aware rate limiter in which workloads borrow unused LLM capacity from each other. Mirror testing on preview repos showed up to a 94% drop in false positives with little recall loss.

  • Continuous AI for accessibility: How GitHub transforms feedback into inclusion

    GitHub Engineering mediumAdept

    GitHub built an event-driven accessibility feedback pipeline on GitHub Actions, Copilot and the GitHub Models API that turns every user report into a tracked, prioritized issue. Issue creation triggers Copilot analysis that uses stored, PR-editable prompt files instead of fine-tuning. The analysis fills about 80% of 40+ metadata fields and suggests WCAG criteria, severity, affected user groups, team assignment and a reproduction checklist. A second Action parses Copilot's comment to apply labels and board status. Humans verify at each stage, and their corrections are logged to refine the prompts. About 75–80% of reports match existing audit findings and get reprioritized by real-world impact, and issues close only once the user confirms the fix works.

  • Unlocking inclusive design: how Primer’s color system is making GitHub.com more inclusive

    GitHub Engineering mediumAdept

    GitHub's Primer design system fixed hundreds of color contrast violations across light and dark modes and all themes by changing its foundational color tokens (Primer Primitives) rather than individual components. The team audited 100+ text/background color pairs against WCAG ratios (4.5:1 and 3:1) and wrote a script that checks every pair across every theme. The script handles semi-transparent colors by first blending the background onto the page background, then blending the text onto that result. The check now runs as a GitHub Action on every Primer pull request, and the changes were rolled out to staff behind a feature flag before going live.

  • LLMs Are Proving That It Is Impossible to Automate Away the Human Experience

    8th Light easyNovice

    Automated accessibility scanners (axe-core, WAVE, Lighthouse) and LLM-based auditors cannot replace manual testing with real screen readers. Scanners reliably catch contrast, heading and alt-text issues but miss an estimated 50–70% of barriers, and a W4A '25 study found GPT-4o, Gemini and Llama 3 detected at most 38% of what a scanner found while rarely producing compilable fixes. Simulated screen readers and hallucinating LLMs also generate false positives, and real failures like a button nested inside a link (focused twice in a row) or role="button" without keyboard handling slip through. The recommendation is to treat tools as a first layer and validate flows with NVDA, JAWS and VoiceOver, ideally by specialists with lived disability experience.

  • From a long list to a clear signal: baseline-driven accessibility reporting

    trivago tech mediumAdept

    trivago extended its Selenium-based test framework with baseline-driven accessibility reporting built on axe-core-maven-html-selenium. Each violation is fingerprinted by hashing its rule ID, HTML snippet, CSS selector and impact level, with normalization so small DOM or text changes still match. Pull request results are then compared against a baseline generated from main on every merge and classified as new, fixed or persisting. GitHub Actions workflows store baselines and reports with screenshots in a GCP bucket and fail the PR status whenever new issues appear, while persisting debt is handled separately, with the caveat that automation catches only about 30-50% of accessibility issues.

The quest for software engineering knowledge.

Look:
Layout: