From ee9024c33af5e33a4b60b1af49c6dd05febcdb34 Mon Sep 17 00:00:00 2001 From: Anshuman-Prakash <199287261+Anshuman-Prakash@users.noreply.github.com> Date: Tue, 20 Oct 2026 21:34:14 +0530 Subject: [PATCH 1/2] docs(adr): update stale ms.date in 0006-adopt-layered-accessibility-ci-gate.md The stale-docs check flagged the ADR at 95 days past its ms.date of 2026-07-16. The accepted decision and its dates are unchanged. Verified the ADR's evidence still holds before refreshing the date: all seven paths under affected_components exist, the full-site crawl in docs/docusaurus/e2e/site-crawl.spec.ts still asserts zero axe violations across wcag2a/2aa, wcag21a/21aa, wcag22aa and best-practice tags, and both callers of .github/workflows/docusaurus-tests.yml run it with soft-fail disabled, so the gate remains blocking. Co-Authored-By: Claude Opus 5 --- docs/planning/adrs/0006-adopt-layered-accessibility-ci-gate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/planning/adrs/0006-adopt-layered-accessibility-ci-gate.md b/docs/planning/adrs/0006-adopt-layered-accessibility-ci-gate.md index 899de8fc09..8e4f2adb38 100644 --- a/docs/planning/adrs/0006-adopt-layered-accessibility-ci-gate.md +++ b/docs/planning/adrs/0006-adopt-layered-accessibility-ci-gate.md @@ -3,7 +3,7 @@ id: "0006" title: "Adopt a layered accessibility CI gate as a blocking merge guardrail" description: "Adopt a layered accessibility CI architecture for the Docusaurus site that runs static linting, component-level axe assertions, behavioral end-to-end checks, and a full-site crawl as a single blocking job, gating merges at a zero-violation full-site threshold against WCAG 2.2 AA." author: "HVE Core Maintainers" -ms.date: "2026-07-16" +ms.date: "2026-10-20" ms.topic: "reference" status: "accepted" proposed_date: "2026-06-14" From 19de3d28ade1d0f89a4710a67bce4798d887e095 Mon Sep 17 00:00:00 2001 From: Anshuman-Prakash <199287261+Anshuman-Prakash@users.noreply.github.com> Date: Fri, 23 Oct 2026 17:45:11 +0530 Subject: [PATCH 2/2] docs(adr): correct a11y plugin name and browser provisioning in ADR 0006 Address review feedback on #3262. - `eslint-plugin-jsx-a11y` was replaced by `eslint-plugin-jsx-a11y-x` (0.2.0) in #3067, so the four references in this ADR named a package that is no longer installed. Line 57 was a `success_criteria` metric, so it pointed at a package that cannot report anything. - The workflow no longer installs a browser. The "Provision system Chrome" step in docusaurus-tests.yml resolves the runner's Google Chrome and `playwright.config.ts` uses `channel: 'chrome'`, so "installs Chromium only" is inaccurate. The Firefox/WebKit deferral itself still holds, so only the wording changed. The ASCII layer diagram keeps its original 62-character box width. Co-Authored-By: Claude Opus 5 --- .../0006-adopt-layered-accessibility-ci-gate.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/planning/adrs/0006-adopt-layered-accessibility-ci-gate.md b/docs/planning/adrs/0006-adopt-layered-accessibility-ci-gate.md index 8e4f2adb38..d296413245 100644 --- a/docs/planning/adrs/0006-adopt-layered-accessibility-ci-gate.md +++ b/docs/planning/adrs/0006-adopt-layered-accessibility-ci-gate.md @@ -3,7 +3,7 @@ id: "0006" title: "Adopt a layered accessibility CI gate as a blocking merge guardrail" description: "Adopt a layered accessibility CI architecture for the Docusaurus site that runs static linting, component-level axe assertions, behavioral end-to-end checks, and a full-site crawl as a single blocking job, gating merges at a zero-violation full-site threshold against WCAG 2.2 AA." author: "HVE Core Maintainers" -ms.date: "2026-10-20" +ms.date: "2026-10-23" ms.topic: "reference" status: "accepted" proposed_date: "2026-06-14" @@ -54,7 +54,7 @@ success_criteria: measurement_window: "every PR run" source: ".github/workflows/docusaurus-tests.yml" - metric: "static-lint-clean" - target: "eslint-plugin-jsx-a11y reports zero accessibility errors on the Docusaurus source tree" + target: "eslint-plugin-jsx-a11y-x reports zero accessibility errors on the Docusaurus source tree" measurement_window: "per-PR" source: "docs/docusaurus/eslint.config.mjs" decisionMetadata: @@ -72,7 +72,7 @@ decisionMetadata: > full-site crawl from pa11y-ci to the `@axe-core/playwright` site-crawl spec > (`docs/docusaurus/e2e/site-crawl.spec.ts`). pa11y-ci, `.pa11yci`, and puppeteer were removed; > the full-site and behavioral layers now both run on Playwright, so the gate spans three tools -> (`eslint-plugin-jsx-a11y`, `jest-axe`, Playwright with `@axe-core/playwright`) across four +> (`eslint-plugin-jsx-a11y-x`, `jest-axe`, Playwright with `@axe-core/playwright`) across four > layers. The decision to run a layered, blocking accessibility gate at a zero-violation > full-site threshold is unchanged. @@ -118,7 +118,7 @@ and the npm scripts that wire these together live in ## Considered Options -* Option A: Layered multi-tool gate. Run static linting (`eslint-plugin-jsx-a11y`), component-level axe assertions (`jest-axe`), behavioral end-to-end checks (Playwright with `@axe-core/playwright`), and a full-site axe crawl (Playwright `@axe-core/playwright` site-crawl spec) as one blocking CI job at a zero-violation full-site threshold. +* Option A: Layered multi-tool gate. Run static linting (`eslint-plugin-jsx-a11y-x`), component-level axe assertions (`jest-axe`), behavioral end-to-end checks (Playwright with `@axe-core/playwright`), and a full-site axe crawl (Playwright `@axe-core/playwright` site-crawl spec) as one blocking CI job at a zero-violation full-site threshold. * Option B: Single full-site scanner. Run only a Playwright axe crawl against the served site as the sole accessibility gate. * Option C: Runtime-only. Run only Playwright with axe injection against a running browser, with no static linting and no full-site crawl. @@ -152,7 +152,7 @@ defense in depth, and they fall on CI rather than on authors. * Good, because the four layers are wired through standard npm scripts and the shared workflow, making the gate a reusable lighthouse pattern other sites can adopt. * Bad, because the layered gate spans several configuration surfaces to keep aligned, increasing the maintenance footprint under upstream churn. * Bad, because the behavioral layer drives a real browser and is the most likely source of flakiness, which can erode contributor trust if not contained. -* Bad, because cross-browser behavioral coverage is deferred: the workflow installs Chromium only, so Firefox and WebKit keyboard/focus paths are not yet exercised in CI. +* Bad, because cross-browser behavioral coverage is deferred: the workflow runs Playwright against system Google Chrome only, so Firefox and WebKit keyboard/focus paths are not yet exercised in CI. * Neutral, because the conformance target is fixed at WCAG 2.2 AA for all layers; tightening or relaxing it is a follow-up decision, not a per-run toggle. * Neutral, because the canonical scan set is intentionally small at adoption and grows as new page types ship rather than enumerating every route up front. @@ -218,7 +218,7 @@ The diagram below traces a pull request through the layers to the merge gate. +--------------------------------------------------------------+ | docusaurus job (.github/workflows/docusaurus-tests.yml) | | | -| Layer 1: eslint-plugin-jsx-a11y (static / lint src) | +| Layer 1: eslint-plugin-jsx-a11y-x (static / lint src) | | | | | v | | Layer 2: jest-axe (component / render) | @@ -240,7 +240,7 @@ The diagram below traces a pull request through the layers to the merge gate. * Risk: the layered gate spans several configuration surfaces to keep aligned, increasing the maintenance footprint under upstream churn. Mitigation: centralize the layers in one workflow and the `docs/docusaurus/package.json` scripts, and pin tool versions through the existing dependency-pinning checks. * Risk: the behavioral browser layer is the most likely source of flakiness, which can erode contributor trust if it produces false failures. Mitigation: scope the behavioral specs under `docs/docusaurus/e2e/` to deterministic flows, use explicit waits and focus helpers, and keep the highest-risk keyboard/focus paths narrow. -* Risk: cross-browser behavioral coverage is deferred because the workflow installs Chromium only, so Firefox and WebKit regressions can slip through. Mitigation: track cross-browser expansion as a follow-up that extends `playwright.config.ts` to the highest-risk keyboard/focus paths on Firefox and WebKit once the Chromium gate is stable. +* Risk: cross-browser behavioral coverage is deferred because the workflow runs Playwright against system Google Chrome only, so Firefox and WebKit regressions can slip through. Mitigation: track cross-browser expansion as a follow-up that extends `playwright.config.ts` to the highest-risk keyboard/focus paths on Firefox and WebKit once the Chrome gate is stable. ## Rollback / Exit Strategy