ultra11y 5.53.0 → 5.54.1

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.53.0",
13
+ "version": "5.54.1",
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.53.0",
4
+ "version": "5.54.1",
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.53.0",
4
+ "version": "5.54.1",
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",
@@ -27,7 +27,7 @@ import { fileURLToPath } from "node:url";
27
27
  // Ownership marker: `ultra11y install --opencode` refuses to overwrite a plugin file that
28
28
  // does not carry it, so a user's own ultra11y.js is never clobbered.
29
29
  const ULTRA11Y_OPENCODE_PLUGIN = "ULTRA11Y_OPENCODE_PLUGIN";
30
- const ULTRA11Y_PLUGIN_VERSION = "5.53.0";
30
+ const ULTRA11Y_PLUGIN_VERSION = "5.54.1";
31
31
 
32
32
  const here = dirname(fileURLToPath(import.meta.url));
33
33
 
package/README.md CHANGED
@@ -27,7 +27,7 @@ Full details, thresholds and off-switches under [Install](#install).</sub>
27
27
 
28
28
  > Audit a site against **RGAA 4.1.2**, the French State's accessibility standard (*référentiel général d'amélioration de l'accessibilité*), on its **WCAG 2.2 AA** core: a dated conformance report, the 106-criterion grid, a backlog and tickets — or author/review accessible markup without regressions. It never declares conforming what it has not verified. A [skills.sh](https://skills.sh) agent skill: a deterministic, zero-dependency static engine **plus** the agent's judgment, with `check`/`verify` gates against hallucinated non-conformities. **The central deliverable is the auditor conformance block** — theme, criterion + official wording, test(s), WCAG mapping + level, finding, expected state, verification, `file:line` occurrences — rendered identically by the `report` (compliance doc), the `prd` backlog and the GitHub issues, in the active standard's vocabulary and **in your language** (`--lang auto` follows the conversation/repo). **RGAA ships first; WCAG is the worldwide core it maps onto, and other country standards are pluggable in-repo packs.**
29
29
 
30
- ultra11y is built around an honest **division of labour**. Automated tools only catch a fraction of accessibility problems, so the engine does the *mechanical* work — 96 machine-detectable static checks tied to the WCAG 2.2 success criteria — and is explicit about everything it can't decide statically. What it can't, the **AI agent adjudicates** (statically, from the evidence, gated by `verify`/`check`) — not a deferral to a human:
30
+ ultra11y is built around an honest **division of labour**. Automated tools only catch a fraction of accessibility problems, so the engine does the *mechanical* work — 97 machine-detectable static checks tied to the WCAG 2.2 success criteria — and is explicit about everything it can't decide statically. What it can't, the **AI agent adjudicates** (statically, from the evidence, gated by `verify`/`check`) — not a deferral to a human:
31
31
 
32
32
  - **Automatable (engine):** missing `alt`/`lang`/`title`, unlabeled fields, empty links/buttons, icon-only controls, iframes without title, tables without headers, heading-level skips, empty/dangling headings & labels, duplicate ids, invalid/broken ARIA, positive `tabindex`, autoplay/timed-refresh/`blink`/`marquee` media…
33
33
  - **Agent judgment (gated):** alt-text relevance, link purpose in context, reading/tab order, caption accuracy — the agent rules on these via `verify --manual` → `--apply`, each verdict carrying a justification (or a groundable NC), never a silent "conforming".
@@ -238,8 +238,10 @@ pinned when the tool list was built would reject a pack that is perfectly valid
238
238
  project being asked about. The handler validates against the registry and names what it knows.
239
239
 
240
240
  `--allow-write` additionally exposes `ultra11y_fix` (safe codemods, dry-run by
241
- default) and `ultra11y_init` (hook/CI/baseline) — the tools that change **your**
242
- project. `ultra11y_scan` is declared but declines over MCP: it drives a headless
241
+ default), `ultra11y_fold` (lands the verdicts you wrote on the `ultra11y_adjudicate`
242
+ worklist — `verify --apply` over MCP: same gate, partial by default with every refusal
243
+ listed, dry-run unless `write: true`, `ledger: true` to record the accepted verdicts) and
244
+ `ultra11y_init` (hook/CI/baseline) — the tools that change **your** project. `ultra11y_scan` is declared but declines over MCP: it drives a headless
243
245
  browser and may pull a Docker image, which is not a subprocess lifecycle a
244
246
  long-lived server should own. It tells you to run it from the CLI and re-audit.
245
247
 
@@ -318,18 +320,18 @@ a test). See [`CONTRIBUTING.md`](CONTRIBUTING.md) and `skills/ultra11y/reference
318
320
 
319
321
  ### What RGAA automation actually covers
320
322
 
321
- The engine's 96 rules are not 96 RGAA criteria: several rules can evidence the same official
323
+ The engine's 97 rules are not 97 RGAA criteria: several rules can evidence the same official
322
324
  test, and a rule can detect a useful symptom without exhausting the criterion's alternatives,
323
325
  exceptions or relevance checks. The generated contract classifies all **258 official RGAA
324
326
  tests**:
325
327
 
326
- - **29 `static` tests across 21 criteria:** `1.1`, `2.1`, `5.7`, `5.8`, `6.1`, `6.2`, `7.1`,
328
+ - **30 `static` tests across 22 criteria:** `1.1`, `1.9`, `2.1`, `5.7`, `5.8`, `6.1`, `6.2`, `7.1`,
327
329
  `8.2`, `8.3`, `8.4`, `8.5`, `8.10`, `9.3`, `10.1`, `10.12`, `11.1`, `11.2`, `11.5`,
328
330
  `11.6`, `11.8`, `11.9`.
329
331
  - **3 `rendered` tests across 3 criteria:** `1.1`, `8.1`, `10.7`.
330
- - Those two tiers cover **23 distinct criteria that can produce a deterministic `NC`**;
332
+ - Those two tiers cover **24 distinct criteria that can produce a deterministic `NC`**;
331
333
  `1.1` belongs to both.
332
- - **52 criteria receive a normative engine signal:** 23 have at least one decisive rule and
334
+ - **53 criteria receive a normative engine signal:** 24 have at least one decisive rule and
333
335
  42 receive candidate evidence, with overlap. One additional criterion receives only an
334
336
  advisory signal. A candidate is forwarded to adjudication and never changes a verdict by
335
337
  itself.
@@ -340,7 +342,7 @@ tests**:
340
342
  glossary names five, and covers “presentation built out of spaces” with two heuristics —
341
343
  every one of them a deliberate under-report, which is the safe direction for a finding and
342
344
  the wrong one for a conformity.
343
- - The remaining **226 `judgment` tests across 92 criteria** all enter the AI worklist,
345
+ - The remaining **225 `judgment` tests across 92 criteria** all enter the AI worklist,
344
346
  including an apparently absent subject whose `NA` still needs confirmation. Overall,
345
347
  **104 of 106 criteria require adjudication to earn `C`**.
346
348
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultra11y",
3
- "version": "5.53.0",
3
+ "version": "5.54.1",
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",
@@ -126,7 +126,7 @@ const bareSc = (w) => String(w).trim().split(/\s+/)[0];
126
126
  const RULE_SC = {
127
127
  "aria-hidden-focusable": ["4.1.2"], "aria-invalid-no-description": ["3.3.1"], "aria-ref-missing-id": ["4.1.2"],
128
128
  "aria-required-children": ["4.1.2"], "autoplay-media": ["1.4.2", "2.2.2"], "blink-marquee": ["2.2.2"],
129
- "button-empty-name": ["4.1.2"], "canvas-fallback-missing": ["1.1.1"], "chart-no-accessible-name": ["1.1.1"],
129
+ "button-empty-name": ["4.1.2"], "canvas-fallback-missing": ["1.1.1"], "chart-no-accessible-name": ["1.1.1"], "figure-caption-unassociated": ["1.1.1"],
130
130
  "clickable-noninteractive": ["4.1.2", "2.1.1"], "contrast-literal": ["1.4.3"], "control-label-missing": ["4.1.2"],
131
131
  "rendered-contrast": ["1.4.3"], "rendered-contrast-pixel": ["1.4.3"], "rendered-link-colour-only": ["1.4.1"],
132
132
  "rendered-nontext-contrast": ["1.4.11"], "rendered-focus-not-visible": ["2.4.7"], "rendered-orientation-lock": ["1.3.4"],
@@ -195,6 +195,9 @@ const RULE_TO_CRITERIA = {
195
195
  // Theme 1 — images (1.1 informative alt, 1.2 decorative)
196
196
  "img-alt-missing": ["1.1"], "input-image-alt-missing": ["1.1"], "object-embed-no-name": ["1.1"],
197
197
  "chart-no-accessible-name": ["1.1"], "canvas-fallback-missing": ["1.1"], "axe:image-alt": ["1.1"],
198
+ // RGAA 1.9.1: a captioned <figure> carries role="figure"|"group" and an aria-label identical to
199
+ // its <figcaption> (#97). Advisory in the WCAG core, re-normativized by `overrides` below.
200
+ "figure-caption-unassociated": ["1.9"],
198
201
  "axe:input-image-alt": ["1.1"], "axe:area-alt": ["1.1"], "axe:role-img-alt": ["1.1"], "axe:svg-img-alt": ["1.1"],
199
202
  "axe:object-alt": ["1.1"], "decorative-alt-misuse": ["1.2"], "axe:image-redundant-alt": ["1.2"],
200
203
  "decorative-marked-exposed": ["1.2"],
@@ -329,6 +332,7 @@ const RULE_TO_CRITERIA = {
329
332
  // `candidate` below. This deliberately small table contains only failures whose observation
330
333
  // itself exhausts the cited numbered test.
331
334
  const DECISIVE_RULE_TESTS = {
335
+ "1.9|figure-caption-unassociated": ["1"],
332
336
  "1.1|axe:area-alt": ["2"],
333
337
  "1.1|axe:input-image-alt": ["3"],
334
338
  "1.1|input-image-alt-missing": ["3"],
@@ -690,6 +694,8 @@ const DOWNLOAD_EXT = "pdf|docx?|pptx?|xlsx?|odt|ods|odp|rtf|csv|zip|rar|7z|gz|ep
690
694
  if (!presentational) throw new Error("build-pack-rgaa: RGAA 10.1 is missing from the referential");
691
695
  presentational.appliesTo = { ruleIds: [...new Set([...presentational.appliesTo.ruleIds, ...PRESENTATIONAL_RULE_IDS])].sort() };
692
696
  const overrides = Object.fromEntries(PRESENTATIONAL_RULE_IDS.map((id) => [id, { advisory: false, severity: "majeur" }]));
697
+ // Same reason, second use: WCAG never asks a <figure> for role + aria-label, RGAA 1.9.1 does.
698
+ overrides["figure-caption-unassociated"] = { advisory: false, severity: "majeur" };
693
699
 
694
700
  // ---- Test-level automation matrix -------------------------------------------------
695
701
  // Start fail-closed: every one of DINUM's 258 tests is a judgment until a rule is
@@ -639,7 +639,7 @@ const NEEDS_RENDERING = new Set([
639
639
  // icon-only-control-unnamed) appear under BOTH their SCs so registry's bidirectional
640
640
  // rule↔dataset cross-check holds.
641
641
  const RULE_SC_COVERAGE = {
642
- "1.1.1": ["img-alt-missing", "canvas-fallback-missing", "decorative-alt-misuse", "decorative-marked-exposed", "input-image-alt-missing", "object-embed-no-name", "chart-no-accessible-name"],
642
+ "1.1.1": ["img-alt-missing", "canvas-fallback-missing", "decorative-alt-misuse", "decorative-marked-exposed", "input-image-alt-missing", "object-embed-no-name", "chart-no-accessible-name", "figure-caption-unassociated"],
643
643
  "1.2.2": ["media-no-track"],
644
644
  "1.3.1": [
645
645
  "fieldset-legend-missing", "data-table-no-headers", "table-caption-missing",