Add accessibility-expert agentic workflow - #79
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pelikhan
August 28, 2026 11:02
View session
pelikhan
marked this pull request as ready for review
August 28, 2026 11:03
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.
Adds a scheduled agentic workflow that audits this repository's only web interface — the Astro docs site — for WCAG 2.2 A/AA accessibility barriers and files a single superseding issue with findings.
Workflow —
.github/workflows/accessibility-expert.mdengine: pi, weeklyschedule+workflow_dispatch(optionalpagesinput), read-only permissions,timeout-minutes: 30,max-ai-credits: 400.mode: cli) with a no-sandbox chromium config;network.allowedscoped to node/chrome/playwright/local.safe-outputslimited tocreate-issue([accessibility]prefix,close-older-key: accessibility-expert,max: 1), so repeat runs replace rather than accumulate reports.Repository tailoring
axe-core@4.13.0vianpm packinto.a11y/axe.min.js, so the agent fetches nothing at runtime behind the egress firewall.package.jsonandastro.config.mjsinstead of hard-coding a port — the docs site sets a non-root base.prefers-reduced-motion; each page is visited in both light and dark schemes. Infrastructure blockers are reported separately from accessibility findings so a build failure doesn't masquerade as a clean audit.Supporting changes
.github/workflows/accessibility-expert.lock.ymlcommitted, plus the matching.gitignorenegation required for workflows that actually run in this repo.tests/unit/workflow-contract.test.mjs: added the lock to the clean-room expected list and a contract test pinning trigger, engine, Playwright CLI mode, axe-core pinning, WCAG scope, light/dark coverage, and the absence of any write safe output other thancreate-issue.Note for reviewers
Frontmatter declares
issues: read. That is deliberate — gh-aw grantsissues: writeto the generatedsafe_outputsjob (lock lines 1101, 1915) while the agent job stays read-only.