ultra11y 5.59.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@
10
10
  "name": "ultra11y",
11
11
  "source": "./",
12
12
  "description": "RGAA 4.1.2 accessibility audits on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports in Claude Code.",
13
- "version": "5.59.0",
13
+ "version": "6.0.0",
14
14
  "author": { "name": "maxgfr" },
15
15
  "homepage": "https://github.com/SocialGouv/ultra11y",
16
16
  "repository": "https://github.com/SocialGouv/ultra11y",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ultra11y",
3
3
  "description": "RGAA 4.1.2 accessibility audits, the French State's standard, on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports. Never declares conforming what it has not verified.",
4
- "version": "5.59.0",
4
+ "version": "6.0.0",
5
5
  "author": { "name": "maxgfr" },
6
6
  "homepage": "https://github.com/SocialGouv/ultra11y",
7
7
  "repository": "https://github.com/SocialGouv/ultra11y",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ultra11y",
3
3
  "description": "RGAA 4.1.2 accessibility audits, the French State's standard, on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports. Never declares conforming what it has not verified.",
4
- "version": "5.59.0",
4
+ "version": "6.0.0",
5
5
  "author": { "name": "maxgfr", "url": "https://github.com/maxgfr" },
6
6
  "homepage": "https://github.com/SocialGouv/ultra11y",
7
7
  "repository": "https://github.com/SocialGouv/ultra11y",
@@ -44,7 +44,7 @@ import { fileURLToPath } from "node:url";
44
44
  // does not carry it, so a user's own ultra11y.js is never clobbered. Kept as text, not as
45
45
  // an export (see above).
46
46
  const ULTRA11Y_OPENCODE_PLUGIN = "ULTRA11Y_OPENCODE_PLUGIN";
47
- const ULTRA11Y_PLUGIN_VERSION = "5.59.0";
47
+ const ULTRA11Y_PLUGIN_VERSION = "6.0.0";
48
48
  const PLUGIN_ID = "ultra11y";
49
49
  const SKILL_NAMES = ["ultra11y", "review-a11y"];
50
50
 
package/README.md CHANGED
@@ -125,12 +125,12 @@ with `SKIP_A11Y=1`, or per-session with `ULTRA11Y_HOOK=off`; raise or lower the
125
125
  claude mcp add ultra11y -- npx -y ultra11y mcp
126
126
  ```
127
127
 
128
- **As a GitHub Action** — audits the PR diff and, optionally, the served pages:
129
-
130
- ```yaml
131
- - uses: SocialGouv/ultra11y@v5
132
- with: { since: auto, standard: rgaa, fail-on: blocking }
133
- ```
128
+ **In CI — run iterion's [`rgaa-audit` bot](https://github.com/SocialGouv/iterion/tree/main/bots/rgaa-audit).**
129
+ ultra11y ships no CI integration of its own. The bot is the harness that turns the engine into an
130
+ audit with no one at the keyboard: it installs the engine pinned (version and sha256), renders
131
+ your page sample, has read-only agents adjudicate the judgment criteria, puts every claim on
132
+ trial, gates with `check` and files one issue per non-conforming criterion. See
133
+ [`references/ci.md`](skills/ultra11y/references/ci.md).
134
134
 
135
135
  Or clone and run the bundled engine straight from the repo:
136
136
 
@@ -454,44 +454,30 @@ or malformed file is reported unreadable. See `skills/ultra11y/references/audit.
454
454
  block. It re-decides nothing and invents no format, so a page sheet and the compliance report
455
455
  cannot disagree; `check` gates it against invented criteria like any other report.
456
456
  See `references/pages.md`.
457
- - **A shipped GitHub Action** — `uses: SocialGouv/ultra11y@v5` audits the **code** (PR diff) and,
458
- optionally, the **pages** (it can start your app, wait for it, then scan real URLs or your
459
- declared sample). The engine ships inside the action, so there is nothing to install and no
460
- `setup-node`. With pages in scope, its job summary and `pages-status.md` artifact list every
461
- criterion under every page; `pages-report: compact` packages only `pages-status.md`,
462
- `pages.json`, the source audit and its verdict ledger, omitting adjudication worklists,
463
- detailed remediation dossiers, HTML and crops. The gate runs **last**, after SARIF,
464
- annotations, the summary, the sticky PR comment and the report — a red job is never a dead
465
- end. `adjudicate: api|agent` optionally
466
- rules on the judgment criteria that would otherwise stay « à évaluer » in CI, reading its key
467
- from the job environment and skipping itself without one. `ultra11y init --ci` writes a
468
- workflow using it. `mode: lite` is the per-pull-request **rendered** gate: only the pages the
469
- diff reaches, the engine alone, failing only on new findings (see below). See `references/ci.md`.
470
- - **Two PR comments, not one** — `comment-kind: digest` (the default) posts the distinct
471
- defects a reviewer can act on; `comment-kind: pages` posts the **page-by-page grid**: one row
472
- per page with its basis, its rate *and its denominator*, then the non-conforming criteria of
473
- each failing page. Each kind is keyed by its own sticky marker, so a workflow that gates code
474
- in one job and sweeps pages in another keeps **both** comments — sharing a marker is how a
475
- 684-occurrence sweep silently overwrote a four-finding gate, and the actionable half is the
476
- one that vanished.
457
+ - **CI through iterion** — ultra11y ships no GitHub Action or GitLab template. CI audits run
458
+ through iterion's [`rgaa-audit` bot](https://github.com/SocialGouv/iterion/tree/main/bots/rgaa-audit),
459
+ which drives the engine CLI pinned, adjudicates and refutes with read-only agents, and files
460
+ the issues. The CLI it calls — `audit`, `scan --sample`, `verify --manual`/`--apply`/`--report`,
461
+ `check`, `report`, `pages`, `tickets` — is the engine's stable contract. See `references/ci.md`.
477
462
  - **CI surfaces** — a red job says *that* the build broke, not *where*. `--format sarif` emits
478
463
  SARIF 2.1.0 for GitHub code scanning, so each finding lands as an **inline annotation on the
479
464
  causing line** of the PR; `--format github` does the same via `::error::` workflow commands
480
465
  plus a `$GITHUB_STEP_SUMMARY` table, for plans without code scanning. Alert identity reuses
481
466
  the baseline's `findingId`, so an alert survives line drift; a URL-keyed finding gets **no**
482
467
  location rather than a guessed one. Run it from `report --standard rgaa` for pack-keyed
483
- output. See `references/ci.md`.
468
+ output. `ULTRA11Y_PR_COMMENT=1` also keeps one sticky PR comment per standard and kind
469
+ (`digest`, `pages`, `full`), edited in place. See `references/ci.md`.
484
470
  - **Automation** — `init --hook` (default) wires a zero-dependency git pre-commit gate over the
485
471
  **strict staged snapshot**: it audits the exact index blobs, auto-applies the safe fixes and
486
472
  re-stages them, and blocks only on judgment issues. `init --baseline`/`--ci` is the opt-in
487
473
  regression variant (hook + committed baseline / GitHub Actions job) that fails only on **new**
488
474
  non-conformities, not the existing backlog. See `references/automation.md`.
489
475
 
490
- ### Rendered regressions on every pull request (`mode: lite`)
476
+ ### Rendered regressions on every pull request (`audit --lite`)
491
477
 
492
478
  The full page-by-page run captures every page and adjudicates with a model, which is minutes of
493
479
  browser and tens of minutes of model: it belongs on a schedule. The static gate runs on every pull
494
- request but cannot see the rendered page. `mode: lite` is the gate in between, priced for every
480
+ request but cannot see the rendered page. `audit --lite` is the gate in between, priced for every
495
481
  pull request:
496
482
 
497
483
  - **only the pages the diff can change** — `ultra11y affected --since origin/main` diffs from the
@@ -506,21 +492,20 @@ pull request:
506
492
  - **only NEW findings fail** — the baseline keys a rendered finding on
507
493
  `page|rule|criterion|normalized selector` (generated ids, hashes and digits folded), not on its
508
494
  position in the serialized DOM, which moves whenever anything above it changes. A finding that
509
- only moved is not new; a third `img` without `alt` on a page that had two is. The baseline lives
510
- in the Actions cache: the push to the default branch audits every page and saves it under a key
511
- carrying the SHA, and a pull request restores the one of its merge-base (else the closest by
512
- prefix);
495
+ only moved is not new; a third `img` without `alt` on a page that had two is. Where the baseline
496
+ is kept is the caller's choice: the push to the default branch audits every page and writes it
497
+ (`--write-baseline`), and a pull request compares against the one of its merge-base;
513
498
  - **a new page is judged with no reference** — that push records every sample page, clean ones
514
499
  included, so a page the merge-base's own baseline does not know was added by the pull request:
515
500
  every finding on it at `fail-on` is new and fails, and the summary says the page is new. Only a
516
501
  baseline that cannot speak for it only warns: none at all, one written by another ultra11y
517
- version, or the closest entry by prefix (`--baseline-approximate`, set by the action). A page
502
+ version, or one that is not the merge-base's own (`--baseline-approximate`). A page
518
503
  the push was asked for, or that the sample declares, but that left no snapshot is recorded as
519
504
  `skipped` in the baseline and never judged new;
520
505
  - **a route nobody declared is named** — `affected` lists the route files the diff adds or changes
521
506
  (Next.js App Router `page.*`, a `pages/` router — Next, Nuxt, Astro —, SvelteKit
522
- `+page.svelte`) that no sample page declares in its `sources`, as `unsampled` and the action
523
- output `affected-unsampled`. `--require-sampled` / `require-sampled: true` fails on them: declare
507
+ `+page.svelte`) that no sample page declares in its `sources`, as `unsampled`.
508
+ `--require-sampled` fails on them: declare
524
509
  the page in `sample.pages`, or exempt it in `sample.exempt` with a reason. A router configured in
525
510
  code (React Router, Vue Router) has no route files to recognise: declare those pages.
526
511
 
@@ -538,44 +523,6 @@ pull request:
538
523
  }
539
524
  ```
540
525
 
541
- ```yaml
542
- name: Accessibility (rendered, per PR)
543
- on:
544
- pull_request:
545
- push:
546
- branches: [main] # writes the baseline the pull requests compare against
547
- permissions:
548
- contents: read
549
- security-events: write # SARIF → code scanning (optional: annotations cover it without)
550
- jobs:
551
- a11y-lite:
552
- runs-on: ubuntu-latest
553
- steps:
554
- - uses: actions/checkout@v5
555
- with:
556
- fetch-depth: 0 # the merge-base
557
- - id: affected
558
- uses: SocialGouv/ultra11y@v5
559
- with:
560
- mode: lite
561
- step: affected
562
- require-sampled: true # a new route no sample page declares fails here
563
- # Your own capture, of those pages only. Here a Playwright suite whose tests call
564
- # `checkA11y` and filter their routes on ULTRA11Y_PAGES (empty = every page).
565
- - if: steps.affected.outputs.affected-none != 'true'
566
- run: npx playwright test e2e/a11y
567
- env:
568
- ULTRA11Y_PAGES: ${{ steps.affected.outputs.affected-pages }}
569
- - if: steps.affected.outputs.affected-none != 'true'
570
- uses: SocialGouv/ultra11y@v5
571
- with:
572
- mode: lite
573
- step: audit
574
- pages: ${{ steps.affected.outputs.affected-pages }}
575
- standard: rgaa
576
- fail-on: blocking
577
- ```
578
-
579
526
  ```ts
580
527
  // e2e/a11y/sweep.a11y.ts — capture only what `affected` selected
581
528
  const only = process.env.ULTRA11Y_PAGES?.split(",").filter(Boolean);
@@ -587,11 +534,10 @@ for (const route of ROUTES.filter((r) => !only?.length || only.includes(r.id)))
587
534
  }
588
535
  ```
589
536
 
590
- The job summary lists each new finding (page, criterion, rule, element); annotations and a SARIF
591
- upload (category `ultra11y-lite-<standard>`) carry them too. No sticky comment. The same gate
592
- outside GitHub: `ultra11y affected --since origin/main --json`, your capture, then
537
+ The loop is `ultra11y affected --since origin/main --json`, your capture of those pages, then
593
538
  `ultra11y audit --lite --pages <ids> --baseline <file> --fail-on blocking` (and
594
- `--write-baseline <file>` on the default branch).
539
+ `--write-baseline <file>` on the default branch); `--format sarif|github` renders the new
540
+ findings for code scanning or as annotations.
595
541
 
596
542
  ### Optional model tier (`judge`) — for the runs with no agent in the loop
597
543
 
@@ -619,14 +565,9 @@ it uses the model attached to the ChatGPT account unless `--model` is given. Its
619
565
  has no per-run dollar-budget flag, so `--max-budget-usd` is rejected for Codex rather than
620
566
  pretending to enforce a ceiling. Use `--timeout` and `--max` to bound the local run.
621
567
 
622
- The GitHub Action wires this as `adjudicate: api`, and offers `adjudicate: agent` as the other
623
- half — the same worklist handed to a `claude-code-action` run, which can **open the cited files**
624
- instead of ruling from harvested evidence alone. Both end in the same fail-closed gate; they
625
- differ in evidence, not in trust. Both read `ANTHROPIC_API_KEY` from the **job environment**,
626
- never from an input, and **skip themselves when it is absent** — which is exactly what a fork's
627
- pull request looks like, so the job stays green and the criteria stay « à évaluer ». See
628
- `references/ci.md` for the cost per run and for `gate-adjudicated`, which lets a model-ruled
629
- non-conformity fail the build at the price of a red/green that no longer reproduces.
568
+ In CI, the judgment criteria are adjudicated by iterion's
569
+ [`rgaa-audit` bot](https://github.com/SocialGouv/iterion/tree/main/bots/rgaa-audit), with
570
+ read-only agents and a second reader, through the same fail-closed fold.
630
571
  ChatGPT-subscription authentication stays local: public CI does not receive or manufacture a
631
572
  Codex subscription secret.
632
573
 
@@ -655,10 +596,9 @@ node scripts/ultra11y.mjs check --report audits/wcag-YYYY-MM-DD.md # integrity
655
596
  There are two deliberate publication profiles. In an interactive audit — on Claude Code, Codex
656
597
  or OpenCode alike, following `skills/ultra11y/references/full-audit.md` — the skill produces the
657
598
  detailed deliverable: adjudicated Markdown, a printable single-file HTML report,
658
- per-page HTML/Markdown dossiers, screenshots and annotated evidence. In GitHub Actions,
659
- `pages-report: compact` with `report`, `html` and `evidence` disabled still gates every criterion
660
- on every page but uploads only the status Markdown, page JSON, source audit and verdict ledger.
661
- The CI profile is a gate and handoff; it is not a second remediation report.
599
+ per-page HTML/Markdown dossiers, screenshots and annotated evidence. In CI, iterion's
600
+ `rgaa-audit` bot publishes the dated report, the per-page grid, the coverage annex and the
601
+ verdict ledger.
662
602
 
663
603
  `--html` turns the audit into a page: `audits/index.html` as the entry point, plus — from
664
604
  `report` — a detachable single file that prints to PDF. Self-contained — no script, no
@@ -683,9 +623,6 @@ occurrence with no picture must never read as an occurrence with no defect. It d
683
623
  an occurrence *folded* into another's picture from a distinct defect a limit *cut off*, because
684
624
  only the second is a gap.
685
625
 
686
- In the GitHub Action both are **on by default**, so the uploaded artifact has a front door
687
- without changing a workflow. See `references/ci.md`.
688
-
689
626
  The skill (`skills/ultra11y/SKILL.md` + `references/`) teaches the agent when and how to run these, how to complete the manual criteria, and the native-first authoring doctrine.
690
627
 
691
628
  ## Démo RGAA : le refuge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultra11y",
3
- "version": "5.59.0",
3
+ "version": "6.0.0",
4
4
  "description": "Audit d'accessibilité RGAA 4.1.2, le référentiel de l'État : rapport daté, grille des 106 critères, backlog et tickets. Moteur statique, navigateur et jugement IA contre-vérifié. Il ne déclare jamais conforme ce qu'il n'a pas vérifié. Socle WCAG 2.2 AA.",
5
5
  "homepage": "https://socialgouv.github.io/ultra11y/",
6
6
  "type": "module",
@@ -41,11 +41,6 @@ edit("src/types.ts", (s) => s.replace(/(export const VERSION = ")[^"]+(";)/, `$1
41
41
  edit("skills/ultra11y/SKILL.md", setVersionField);
42
42
  edit("skills/review-a11y/SKILL.md", setVersionField);
43
43
 
44
- // GitLab installs the published package rather than consuming the repository checkout. Keep
45
- // its default exact pin on the release that owns the template, so a later `latest` cannot
46
- // silently change an old pipeline's audit semantics.
47
- edit("skills/ultra11y/templates/gitlab-ci.yml", (s) => s.replace(/(ULTRA11Y_VERSION:\s*')[^']+(')/, `$1${version}$2`));
48
-
49
44
  // The plugin manifests — what carries the automatic-review hook. A stale version here is
50
45
  // what makes an installed plugin report the wrong engine, so every harness's manifest is
51
46
  // rewritten (verify-skill-bundle.mjs fails the build if they drift). Codex resolves
@@ -62,5 +57,5 @@ edit(".codex-plugin/plugin.json", setJsonVersion);
62
57
  edit(".opencode/plugins/ultra11y.js", (s) => s.replace(/(const ULTRA11Y_PLUGIN_VERSION = ")[^"]+(")/, `$1${version}$2`));
63
58
 
64
59
  console.log(
65
- `sync-version: set ${version} in package.json, src/types.ts, both SKILL.md files, the GitLab template, and every plugin manifest`,
60
+ `sync-version: set ${version} in package.json, src/types.ts, both SKILL.md files and every plugin manifest`,
66
61
  );
@@ -2637,7 +2637,7 @@ import { join as join36, relative as relative10, resolve as resolve17, sep as se
2637
2637
  import { fileURLToPath as fileURLToPath4, pathToFileURL } from "url";
2638
2638
 
2639
2639
  // src/types.ts
2640
- var VERSION = "5.59.0";
2640
+ var VERSION = "6.0.0";
2641
2641
  var SCHEMA_VERSION = 2;
2642
2642
  function isAdjudicated(by) {
2643
2643
  return by === "agent" || by === "human";
@@ -60502,6 +60502,7 @@ function changedSince(ref, root) {
60502
60502
  import { writeFileSync as writeFileSync12, mkdirSync as mkdirSync9, chmodSync, realpathSync as realpathSync5 } from "fs";
60503
60503
  import { execFileSync as execFileSync8 } from "child_process";
60504
60504
  import { join as join23, relative as relative9, sep as sep4 } from "path";
60505
+ var ITERION_RGAA_AUDIT_URL = "https://github.com/SocialGouv/iterion/tree/main/bots/rgaa-audit";
60505
60506
  var EN_SEV = { bloquant: "blocking", majeur: "major", mineur: "minor" };
60506
60507
  function repoRoot() {
60507
60508
  try {
@@ -60566,23 +60567,20 @@ exit 0
60566
60567
  function ciWorkflow(enginePath, failOn) {
60567
60568
  return `name: a11y
60568
60569
  # Generated by \`ultra11y init --ci\`. Fails only on NEW non-conformities >= ${EN_SEV[failOn]}
60569
- # introduced by the PR (vs audits/baseline.json) \u2014 not the existing backlog.
60570
+ # introduced by the PR (vs audits/baseline.json) \u2014 not the existing backlog. Each one is
60571
+ # annotated on the line of code that caused it, with a summary on the job page.
60570
60572
  #
60571
- # Findings are reported IN the pull request: SARIF \u2192 code scanning puts each one on the line
60572
- # of code that caused it, and \`::error::\` annotations cover repositories without Advanced
60573
- # Security. Set \`comment: 'true'\` to also get a sticky summary comment (needs
60574
- # \`pull-requests: write\`), and \`standard: 'rgaa'\` to report against a country standard.
60573
+ # This is a static regression gate, not an accessibility audit. For the full RGAA audit in CI \u2014
60574
+ # judgment criteria adjudicated, every claim put on trial, one issue per non-conforming
60575
+ # criterion \u2014 run iterion's rgaa-audit bot:
60576
+ # ${ITERION_RGAA_AUDIT_URL}
60575
60577
  #
60576
- # The action is PINNED to the engine version that generated this file, so a CI run stays
60577
- # reproducible. \`SocialGouv/ultra11y@v${VERSION.split(".")[0]}\` also resolves (a moving major
60578
- # tag) if you would rather track the major line and take fixes automatically.
60578
+ # The engine is PINNED to the version that generated this file, so a CI run stays reproducible.
60579
60579
  on:
60580
60580
  pull_request:
60581
60581
 
60582
60582
  permissions:
60583
60583
  contents: read
60584
- security-events: write # SARIF upload; drop it and the annotations still report
60585
- # pull-requests: write # uncomment together with \`comment: 'true'\` below
60586
60584
 
60587
60585
  jobs:
60588
60586
  ultra11y:
@@ -60591,31 +60589,19 @@ jobs:
60591
60589
  - uses: actions/checkout@v7
60592
60590
  with:
60593
60591
  fetch-depth: 0 # the diff gate needs the base ref
60594
- - uses: SocialGouv/ultra11y@v${VERSION}
60592
+ - uses: actions/setup-node@v7
60595
60593
  with:
60596
- since: auto # the PR's base branch
60597
- baseline: audits/baseline.json
60598
- fail-on: ${EN_SEV[failOn]}
60599
- # standard: rgaa
60600
- # comment: 'true'
60601
- #
60602
- # Page-by-page, with a real browser (computed contrast, focus, zoom, reflow).
60603
- # Every scanned page is also persisted to .ultra11y/pages/ and folded into the
60604
- # audit, which is what lets a page be CONFORMING at all \u2014 and the per-page
60605
- # dossiers (one sheet per page, with its screenshot) land in the artifact.
60606
- # start: npm run start
60607
- # wait-on: http://localhost:3000
60608
- # urls: http://localhost:3000 http://localhost:3000/contact
60609
- #
60610
- # \u2026or let the page list come from the site itself:
60611
- # sitemap: http://localhost:3000/sitemap.xml
60612
- # crawl: http://localhost:3000 # crawl-depth / crawl-max bound it
60613
- #
60614
- # \u2026or \`sample: 'true'\` to scan the sample declared in .ultra11yrc.json
60615
- # (\`ultra11y pages discover --write\` builds that block for you).
60594
+ node-version: 24
60595
+ - name: Accessibility regression gate
60596
+ run: >-
60597
+ npx -y ultra11y@${VERSION} audit
60598
+ --since "origin/\${{ github.base_ref }}"
60599
+ --baseline audits/baseline.json
60600
+ --fail-on ${EN_SEV[failOn]}
60601
+ --format github
60616
60602
  #
60617
- # Vendored alternative \u2014 no marketplace action, just the bundle in this repo:
60618
- # - run: node "${enginePath}" audit --since "origin/\${{ github.base_ref }}" --baseline audits/baseline.json --fail-on ${EN_SEV[failOn]}
60603
+ # Vendored alternative \u2014 no package fetch, just the bundle in this repo:
60604
+ # - run: node "${enginePath}" audit --since "origin/\${{ github.base_ref }}" --baseline audits/baseline.json --fail-on ${EN_SEV[failOn]} --format github
60619
60605
  `;
60620
60606
  }
60621
60607
  function writeHook(root, enginePath, failOn, mode = "staged") {
@@ -67882,7 +67868,7 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
67882
67868
  "all",
67883
67869
  "project",
67884
67870
  // `status`: ALSO ask whether the browser tier resolves here — the question `scan --runtime
67885
- // local` answers for itself, exposed so a caller (the GitHub Action) can branch on it
67871
+ // local` answers for itself, exposed so a caller (a CI harness such as iterion's rgaa-audit bot) can branch on it
67886
67872
  // instead of re-deriving it in shell.
67887
67873
  "browser",
67888
67874
  "no-skills"
@@ -68015,7 +68001,7 @@ function emitCiFormat(result, format, standard, lang, failOn) {
68015
68001
  lang,
68016
68002
  kind,
68017
68003
  // The run is known before the artifact exists, so the link is always safe. The artifact
68018
- // NAME is only set by the action when it actually uploads one — naming an artifact that
68004
+ // NAME is only set by the caller when it actually uploads one — naming an artifact that
68019
68005
  // was never uploaded sends the reader to a page that does not exist.
68020
68006
  ...process.env.ULTRA11Y_RUN_URL ? { runUrl: process.env.ULTRA11Y_RUN_URL } : {},
68021
68007
  ...process.env.ULTRA11Y_ARTIFACT_NAME ? { artifactName: process.env.ULTRA11Y_ARTIFACT_NAME } : {}
@@ -70661,7 +70647,7 @@ async function cmdScan(p2) {
70661
70647
  if (!useLocal && sampleConfig.pages.some((pg) => pg.storageState)) {
70662
70648
  const forced = runtimeFlag === "docker";
70663
70649
  console.error(
70664
- lang === "fr" ? `ultra11y scan : l'\xE9chantillon comporte des pages authentifi\xE9es (storageState), non prises en charge par le runtime Docker.${forced ? " Retirez --runtime docker." : " Le runtime local n'a pas pu \xEAtre r\xE9solu : installez @playwright/test et @axe-core/playwright dans le projet audit\xE9 (ou pointez --cwd dessus). Via l'Action, ce sont des d\xE9pendances du d\xE9p\xF4t."}` : `ultra11y scan: the sample has authenticated pages (storageState), unsupported by the Docker runtime.${forced ? " Drop --runtime docker." : " The local runtime could not be resolved: install @playwright/test and @axe-core/playwright in the audited project (or point --cwd at it). Through the Action, those are dependencies of the repository."}`
70650
+ lang === "fr" ? `ultra11y scan : l'\xE9chantillon comporte des pages authentifi\xE9es (storageState), non prises en charge par le runtime Docker.${forced ? " Retirez --runtime docker." : " Le runtime local n'a pas pu \xEAtre r\xE9solu : installez @playwright/test et @axe-core/playwright dans le projet audit\xE9 (ou pointez --cwd dessus)."}` : `ultra11y scan: the sample has authenticated pages (storageState), unsupported by the Docker runtime.${forced ? " Drop --runtime docker." : " The local runtime could not be resolved: install @playwright/test and @axe-core/playwright in the audited project (or point --cwd at it)."}`
70665
70651
  );
70666
70652
  return 2;
70667
70653
  }
@@ -65,18 +65,6 @@ const bad = (m) => {
65
65
  console.log(` FAIL ${m}`);
66
66
  };
67
67
 
68
- const gitlabTemplate = readFileSync(join(root, "skills/ultra11y/templates/gitlab-ci.yml"), "utf8");
69
- const gitlabVersion = gitlabTemplate.match(/ULTRA11Y_VERSION:\s*'([^']+)'/)?.[1];
70
- gitlabVersion === pkg.version
71
- ? ok(`GitLab template pins package ${gitlabVersion}`)
72
- : bad(`GitLab template pin "${gitlabVersion ?? "missing"}" != package version "${pkg.version}" — keep it in scripts/sync-version.mjs and the release assets`);
73
- const releaseConfig = JSON.parse(readFileSync(join(root, ".releaserc.json"), "utf8"));
74
- const gitRelease = releaseConfig.plugins.find((plugin) => Array.isArray(plugin) && plugin[0] === "@semantic-release/git");
75
- const releaseAssets = new Set(gitRelease?.[1]?.assets ?? []);
76
- releaseAssets.has("skills/ultra11y/templates/gitlab-ci.yml")
77
- ? ok("release commit carries the version-pinned GitLab template")
78
- : bad("@semantic-release/git omits skills/ultra11y/templates/gitlab-ci.yml — every release would leave its exact package pin behind");
79
-
80
68
  // 1. No SKILL.md at the repo root (would make `skills add` install it alone).
81
69
  existsSync(join(root, "SKILL.md"))
82
70
  ? bad("a SKILL.md exists at the repo ROOT — `skills add` would install it alone, dropping the engine. Move it under skills/<name>/SKILL.md")
@@ -3,7 +3,7 @@ name: review-a11y
3
3
  description: "Use to REVIEW changed frontend code for accessibility: staged files, a working diff, branch, or PR; prompts such as 'review a11y', 'is this accessible?', or 'anything to fix before merge?'; and hook or CI findings on a change. Run the bundled install-free engine with cross-file JSX/TSX analysis, then adjudicate candidates and return a severity-ranked WCAG 2.2 AA review with file:line fixes, residual rendering risks, and a verdict. Use `ultra11y` instead for whole-repo audits, dated conformance reports, country standards, PRD backlogs, or authoring accessible markup."
4
4
  license: MIT
5
5
  metadata:
6
- version: 5.59.0
6
+ version: 6.0.0
7
7
  ---
8
8
 
9
9
  # review-a11y — accessibility review of changed code
@@ -2637,7 +2637,7 @@ import { join as join36, relative as relative10, resolve as resolve17, sep as se
2637
2637
  import { fileURLToPath as fileURLToPath4, pathToFileURL } from "url";
2638
2638
 
2639
2639
  // src/types.ts
2640
- var VERSION = "5.59.0";
2640
+ var VERSION = "6.0.0";
2641
2641
  var SCHEMA_VERSION = 2;
2642
2642
  function isAdjudicated(by) {
2643
2643
  return by === "agent" || by === "human";
@@ -60502,6 +60502,7 @@ function changedSince(ref, root) {
60502
60502
  import { writeFileSync as writeFileSync12, mkdirSync as mkdirSync9, chmodSync, realpathSync as realpathSync5 } from "fs";
60503
60503
  import { execFileSync as execFileSync8 } from "child_process";
60504
60504
  import { join as join23, relative as relative9, sep as sep4 } from "path";
60505
+ var ITERION_RGAA_AUDIT_URL = "https://github.com/SocialGouv/iterion/tree/main/bots/rgaa-audit";
60505
60506
  var EN_SEV = { bloquant: "blocking", majeur: "major", mineur: "minor" };
60506
60507
  function repoRoot() {
60507
60508
  try {
@@ -60566,23 +60567,20 @@ exit 0
60566
60567
  function ciWorkflow(enginePath, failOn) {
60567
60568
  return `name: a11y
60568
60569
  # Generated by \`ultra11y init --ci\`. Fails only on NEW non-conformities >= ${EN_SEV[failOn]}
60569
- # introduced by the PR (vs audits/baseline.json) \u2014 not the existing backlog.
60570
+ # introduced by the PR (vs audits/baseline.json) \u2014 not the existing backlog. Each one is
60571
+ # annotated on the line of code that caused it, with a summary on the job page.
60570
60572
  #
60571
- # Findings are reported IN the pull request: SARIF \u2192 code scanning puts each one on the line
60572
- # of code that caused it, and \`::error::\` annotations cover repositories without Advanced
60573
- # Security. Set \`comment: 'true'\` to also get a sticky summary comment (needs
60574
- # \`pull-requests: write\`), and \`standard: 'rgaa'\` to report against a country standard.
60573
+ # This is a static regression gate, not an accessibility audit. For the full RGAA audit in CI \u2014
60574
+ # judgment criteria adjudicated, every claim put on trial, one issue per non-conforming
60575
+ # criterion \u2014 run iterion's rgaa-audit bot:
60576
+ # ${ITERION_RGAA_AUDIT_URL}
60575
60577
  #
60576
- # The action is PINNED to the engine version that generated this file, so a CI run stays
60577
- # reproducible. \`SocialGouv/ultra11y@v${VERSION.split(".")[0]}\` also resolves (a moving major
60578
- # tag) if you would rather track the major line and take fixes automatically.
60578
+ # The engine is PINNED to the version that generated this file, so a CI run stays reproducible.
60579
60579
  on:
60580
60580
  pull_request:
60581
60581
 
60582
60582
  permissions:
60583
60583
  contents: read
60584
- security-events: write # SARIF upload; drop it and the annotations still report
60585
- # pull-requests: write # uncomment together with \`comment: 'true'\` below
60586
60584
 
60587
60585
  jobs:
60588
60586
  ultra11y:
@@ -60591,31 +60589,19 @@ jobs:
60591
60589
  - uses: actions/checkout@v7
60592
60590
  with:
60593
60591
  fetch-depth: 0 # the diff gate needs the base ref
60594
- - uses: SocialGouv/ultra11y@v${VERSION}
60592
+ - uses: actions/setup-node@v7
60595
60593
  with:
60596
- since: auto # the PR's base branch
60597
- baseline: audits/baseline.json
60598
- fail-on: ${EN_SEV[failOn]}
60599
- # standard: rgaa
60600
- # comment: 'true'
60601
- #
60602
- # Page-by-page, with a real browser (computed contrast, focus, zoom, reflow).
60603
- # Every scanned page is also persisted to .ultra11y/pages/ and folded into the
60604
- # audit, which is what lets a page be CONFORMING at all \u2014 and the per-page
60605
- # dossiers (one sheet per page, with its screenshot) land in the artifact.
60606
- # start: npm run start
60607
- # wait-on: http://localhost:3000
60608
- # urls: http://localhost:3000 http://localhost:3000/contact
60609
- #
60610
- # \u2026or let the page list come from the site itself:
60611
- # sitemap: http://localhost:3000/sitemap.xml
60612
- # crawl: http://localhost:3000 # crawl-depth / crawl-max bound it
60613
- #
60614
- # \u2026or \`sample: 'true'\` to scan the sample declared in .ultra11yrc.json
60615
- # (\`ultra11y pages discover --write\` builds that block for you).
60594
+ node-version: 24
60595
+ - name: Accessibility regression gate
60596
+ run: >-
60597
+ npx -y ultra11y@${VERSION} audit
60598
+ --since "origin/\${{ github.base_ref }}"
60599
+ --baseline audits/baseline.json
60600
+ --fail-on ${EN_SEV[failOn]}
60601
+ --format github
60616
60602
  #
60617
- # Vendored alternative \u2014 no marketplace action, just the bundle in this repo:
60618
- # - run: node "${enginePath}" audit --since "origin/\${{ github.base_ref }}" --baseline audits/baseline.json --fail-on ${EN_SEV[failOn]}
60603
+ # Vendored alternative \u2014 no package fetch, just the bundle in this repo:
60604
+ # - run: node "${enginePath}" audit --since "origin/\${{ github.base_ref }}" --baseline audits/baseline.json --fail-on ${EN_SEV[failOn]} --format github
60619
60605
  `;
60620
60606
  }
60621
60607
  function writeHook(root, enginePath, failOn, mode = "staged") {
@@ -67882,7 +67868,7 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
67882
67868
  "all",
67883
67869
  "project",
67884
67870
  // `status`: ALSO ask whether the browser tier resolves here — the question `scan --runtime
67885
- // local` answers for itself, exposed so a caller (the GitHub Action) can branch on it
67871
+ // local` answers for itself, exposed so a caller (a CI harness such as iterion's rgaa-audit bot) can branch on it
67886
67872
  // instead of re-deriving it in shell.
67887
67873
  "browser",
67888
67874
  "no-skills"
@@ -68015,7 +68001,7 @@ function emitCiFormat(result, format, standard, lang, failOn) {
68015
68001
  lang,
68016
68002
  kind,
68017
68003
  // The run is known before the artifact exists, so the link is always safe. The artifact
68018
- // NAME is only set by the action when it actually uploads one — naming an artifact that
68004
+ // NAME is only set by the caller when it actually uploads one — naming an artifact that
68019
68005
  // was never uploaded sends the reader to a page that does not exist.
68020
68006
  ...process.env.ULTRA11Y_RUN_URL ? { runUrl: process.env.ULTRA11Y_RUN_URL } : {},
68021
68007
  ...process.env.ULTRA11Y_ARTIFACT_NAME ? { artifactName: process.env.ULTRA11Y_ARTIFACT_NAME } : {}
@@ -70661,7 +70647,7 @@ async function cmdScan(p2) {
70661
70647
  if (!useLocal && sampleConfig.pages.some((pg) => pg.storageState)) {
70662
70648
  const forced = runtimeFlag === "docker";
70663
70649
  console.error(
70664
- lang === "fr" ? `ultra11y scan : l'\xE9chantillon comporte des pages authentifi\xE9es (storageState), non prises en charge par le runtime Docker.${forced ? " Retirez --runtime docker." : " Le runtime local n'a pas pu \xEAtre r\xE9solu : installez @playwright/test et @axe-core/playwright dans le projet audit\xE9 (ou pointez --cwd dessus). Via l'Action, ce sont des d\xE9pendances du d\xE9p\xF4t."}` : `ultra11y scan: the sample has authenticated pages (storageState), unsupported by the Docker runtime.${forced ? " Drop --runtime docker." : " The local runtime could not be resolved: install @playwright/test and @axe-core/playwright in the audited project (or point --cwd at it). Through the Action, those are dependencies of the repository."}`
70650
+ lang === "fr" ? `ultra11y scan : l'\xE9chantillon comporte des pages authentifi\xE9es (storageState), non prises en charge par le runtime Docker.${forced ? " Retirez --runtime docker." : " Le runtime local n'a pas pu \xEAtre r\xE9solu : installez @playwright/test et @axe-core/playwright dans le projet audit\xE9 (ou pointez --cwd dessus)."}` : `ultra11y scan: the sample has authenticated pages (storageState), unsupported by the Docker runtime.${forced ? " Drop --runtime docker." : " The local runtime could not be resolved: install @playwright/test and @axe-core/playwright in the audited project (or point --cwd at it)."}`
70665
70651
  );
70666
70652
  return 2;
70667
70653
  }
@@ -3,7 +3,7 @@ name: ultra11y
3
3
  description: "Use to AUDIT a site, repository, or page against RGAA 4.1.2, the French State's accessibility standard (référentiel de l'État), on a WCAG 2.2 AA core (other country standards as packs); produce a dated conformance report, criterion grid, PRD backlog, or tickets; AUTHOR accessible markup; fix accessibility; or wire a repo gate and rendered-DOM capture pipeline. The bundled install-free engine runs 102 static checks tied to success criteria, while the agent adjudicates judgment criteria and routes rendering criteria to browser scans; check/verify reject invented non-conformities and never declare conforming what was not verified. Use `review-a11y` instead for a review scoped only to a diff, branch, or PR."
4
4
  license: MIT
5
5
  metadata:
6
- version: 5.59.0
6
+ version: 6.0.0
7
7
  ---
8
8
 
9
9
  # ultra11y — audit WCAG 2.2 AA and write accessible markup
@@ -154,7 +154,7 @@ Domain knowledge first, then the tooling. Read the one that matches the question
154
154
  | `references/rendered.md` · `references/automation.md` | Auditing produced HTML, captures, hooks and CI |
155
155
  | `references/harnesses.md` | Where this runs: Claude Code, Codex CLI, OpenCode 1.x and 2.x, and the AGENTS.md fallback |
156
156
  | `references/orchestrators.md` | Driving the engine from a workflow engine / non-GitHub CI: pinning, the six-step pipeline, exit codes, the ticket set as JSON for any tracker |
157
- | `references/ci.md` | `--format sarif\|github`: inline PR annotations, code scanning, job summary |
157
+ | `references/ci.md` | CI: run iterion's `rgaa-audit` bot; the CLI contract it relies on; `--format sarif\|github` |
158
158
  | `references/pages.md` | Page snapshots + the per-page criterion grid (`pages`), and its honesty rules |
159
159
  | `references/e2e.md` | `render --e2e`: auditing a page during your Playwright/Cypress run |
160
160
  | `references/devtools.md` | `dev`: the live overlay while you build, and the per-page dashboard |
@@ -177,7 +177,8 @@ Domain knowledge first, then the tooling. Read the one that matches the question
177
177
  them into the ledger, then publish the dated Markdown report, printable HTML and evidenced
178
178
  per-page dossiers and pass the `check` gates (`--require-decided=pages` included). Read
179
179
  **`references/full-audit.md`** and finish with its full deliverable set. **When in doubt
180
- between this and the quick path, take this one.** The compact summary is the CI branch below.
180
+ between this and the quick path, take this one.** In CI, the same audit is iterion's
181
+ `rgaa-audit` bot (branch below).
181
182
  - **"Quick audit / first look / what does the engine find"** → `node scripts/ultra11y.mjs
182
183
  audit … --json`, then `report` (synthesis table + one **auditor conformance block** per NC
183
184
  criterion — same block `prd` and `tickets` use), then `check`; read
@@ -287,14 +288,11 @@ Domain knowledge first, then the tooling. Read the one that matches the question
287
288
  declared. Then `sample check` lints the coverage and `scan --sample` scans and snapshots it.
288
289
  A client-rendered SPA exposes no routes in its served HTML — use a sitemap there; read
289
290
  **`references/dynamic.md`**.
290
- - **"Audit these URLs page by page, in CI"** → the shipped Action takes `urls`, `sitemap`,
291
- `crawl` or `sample`, snapshots every page it visits and writes every criterion's status under
292
- every page both in the job summary and in `audits/pages-status.md`. Use
293
- `pages-report: compact` for that status-only package: the Markdown, page JSON, source audit
294
- and verdict ledger only (no adjudication worklists, remediation report, HTML or crops),
295
- or keep the default `true` for the detailed page dossiers too. Request a `pages`/`full` PR
296
- comment when the same grid is wanted on the pull request; read
297
- **`references/ci.md`**.
291
+ - **"Audit in CI" / "audit these URLs page by page, in CI"** → ultra11y ships no CI
292
+ integration of its own: run iterion's **`rgaa-audit` bot**
293
+ (https://github.com/SocialGouv/iterion/tree/main/bots/rgaa-audit). It installs this engine
294
+ pinned, renders the page sample, adjudicates and refutes with read-only agents, gates with
295
+ `check` and files one issue per non-conforming criterion. Read **`references/ci.md`**.
298
296
  - **"Nobody is here to rule on the judgment criteria"** → `judge --in audits/audit-latest.json
299
297
  --standard rgaa [--apply]` adjudicates them with a model, for a run with no coding agent in
300
298
  the loop (CI, an E2E run). It is a CALLER, not a second judge: same worklist,
@@ -22,6 +22,11 @@ The first two block on what a machine can decide. The third exists because most
22
22
  *judgment* — is this `alt` relevant, is this link's purpose clear — which no exit code
23
23
  settles. See below.
24
24
 
25
+ `init --ci` is a regression gate, not a CI audit: the adjudicated, refuted audit in CI is
26
+ iterion's [`rgaa-audit` bot](https://github.com/SocialGouv/iterion/tree/main/bots/rgaa-audit)
27
+ (`references/ci.md`). The workflow it writes runs the engine pinned to the version that
28
+ generated it (`npx -y ultra11y@<version>`) and annotates the new findings with `--format github`.
29
+
25
30
  ## The agent-harness hook — the agent review, unprompted
26
31
 
27
32
  Shipped by the plugin (`hooks/hooks.json` → `hooks/pre-tool-use.mjs` → `ultra11y hook