ultra11y 5.58.5 → 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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.opencode/plugins/ultra11y.js +1 -1
- package/README.md +33 -95
- package/package.json +1 -1
- package/scripts/sync-version.mjs +1 -6
- package/scripts/ultra11y.mjs +212 -88
- package/scripts/verify-skill-bundle.mjs +0 -12
- package/skills/review-a11y/SKILL.md +18 -8
- package/skills/review-a11y/scripts/ultra11y.mjs +212 -88
- package/skills/ultra11y/SKILL.md +53 -29
- package/skills/ultra11y/references/audit.md +9 -2
- package/skills/ultra11y/references/automation.md +5 -0
- package/skills/ultra11y/references/ci.md +96 -796
- package/skills/ultra11y/references/dynamic.md +2 -2
- package/skills/ultra11y/references/{claude-code-report.md → full-audit.md} +38 -10
- package/skills/ultra11y/references/harnesses.md +19 -8
- package/skills/ultra11y/references/judgment.md +6 -8
- package/skills/ultra11y/references/orchestration.md +54 -10
- package/skills/ultra11y/references/orchestrators.md +14 -12
- package/skills/ultra11y/references/pages.md +1 -1
- package/skills/ultra11y/references/runbook.md +2 -3
- package/skills/ultra11y/scripts/ultra11y.mjs +212 -88
- package/src/agent-cli.ts +4 -5
- package/src/check.ts +1 -1
- package/src/cli.ts +29 -20
- package/src/hook.ts +3 -2
- package/src/init.ts +28 -39
- package/src/orchestrate-templates.ts +86 -22
- package/src/orchestrate.ts +168 -27
- package/src/types.ts +1 -1
- package/skills/ultra11y/templates/gitlab-ci.yml +0 -109
|
@@ -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": "
|
|
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": "
|
|
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": "
|
|
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 = "
|
|
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
|
-
**
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
-
|
|
132
|
-
|
|
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
|
-
- **
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
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.
|
|
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 (`
|
|
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. `
|
|
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.
|
|
510
|
-
|
|
511
|
-
|
|
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
|
|
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
|
|
523
|
-
|
|
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
|
|
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
|
-
|
|
623
|
-
|
|
624
|
-
|
|
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
|
|
|
@@ -652,12 +593,12 @@ node scripts/ultra11y.mjs check --report audits/wcag-YYYY-MM-DD.md # integrity
|
|
|
652
593
|
|
|
653
594
|
### A report someone will actually open
|
|
654
595
|
|
|
655
|
-
There are two deliberate publication profiles. In an interactive Claude Code
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
596
|
+
There are two deliberate publication profiles. In an interactive audit — on Claude Code, Codex
|
|
597
|
+
or OpenCode alike, following `skills/ultra11y/references/full-audit.md` — the skill produces the
|
|
598
|
+
detailed deliverable: adjudicated Markdown, a printable single-file HTML 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.
|
|
661
602
|
|
|
662
603
|
`--html` turns the audit into a page: `audits/index.html` as the entry point, plus — from
|
|
663
604
|
`report` — a detachable single file that prints to PDF. Self-contained — no script, no
|
|
@@ -682,9 +623,6 @@ occurrence with no picture must never read as an occurrence with no defect. It d
|
|
|
682
623
|
an occurrence *folded* into another's picture from a distinct defect a limit *cut off*, because
|
|
683
624
|
only the second is a gap.
|
|
684
625
|
|
|
685
|
-
In the GitHub Action both are **on by default**, so the uploaded artifact has a front door
|
|
686
|
-
without changing a workflow. See `references/ci.md`.
|
|
687
|
-
|
|
688
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.
|
|
689
627
|
|
|
690
628
|
## Démo RGAA : le refuge
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultra11y",
|
|
3
|
-
"version": "
|
|
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",
|
package/scripts/sync-version.mjs
CHANGED
|
@@ -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
|
|
60
|
+
`sync-version: set ${version} in package.json, src/types.ts, both SKILL.md files and every plugin manifest`,
|
|
66
61
|
);
|