ultra11y 5.50.1 → 5.51.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.50.1",
13
+ "version": "5.51.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.50.1",
4
+ "version": "5.51.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.50.1",
4
+ "version": "5.51.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.50.1";
30
+ const ULTRA11Y_PLUGIN_VERSION = "5.51.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 — 95 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 — 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:
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".
@@ -318,18 +318,18 @@ a test). See [`CONTRIBUTING.md`](CONTRIBUTING.md) and `skills/ultra11y/reference
318
318
 
319
319
  ### What RGAA automation actually covers
320
320
 
321
- The engine's 95 rules are not 95 RGAA criteria: several rules can evidence the same official
321
+ The engine's 96 rules are not 96 RGAA criteria: several rules can evidence the same official
322
322
  test, and a rule can detect a useful symptom without exhausting the criterion's alternatives,
323
323
  exceptions or relevance checks. The generated contract classifies all **258 official RGAA
324
324
  tests**:
325
325
 
326
- - **28 `static` tests across 20 criteria:** `1.1`, `2.1`, `5.7`, `5.8`, `6.1`, `6.2`, `7.1`,
327
- `8.2`, `8.3`, `8.4`, `8.5`, `8.10`, `9.3`, `10.1`, `10.12`, `11.1`, `11.5`,
326
+ - **29 `static` tests across 21 criteria:** `1.1`, `2.1`, `5.7`, `5.8`, `6.1`, `6.2`, `7.1`,
327
+ `8.2`, `8.3`, `8.4`, `8.5`, `8.10`, `9.3`, `10.1`, `10.12`, `11.1`, `11.2`, `11.5`,
328
328
  `11.6`, `11.8`, `11.9`.
329
329
  - **3 `rendered` tests across 3 criteria:** `1.1`, `8.1`, `10.7`.
330
- - Those two tiers cover **22 distinct criteria that can produce a deterministic `NC`**;
330
+ - Those two tiers cover **23 distinct criteria that can produce a deterministic `NC`**;
331
331
  `1.1` belongs to both.
332
- - **51 criteria receive a normative engine signal:** 22 have at least one decisive rule and
332
+ - **52 criteria receive a normative engine signal:** 23 have at least one decisive rule and
333
333
  42 receive candidate evidence, with overlap. One additional criterion receives only an
334
334
  advisory signal. A candidate is forwarded to adjudication and never changes a verdict by
335
335
  itself.
@@ -340,7 +340,7 @@ tests**:
340
340
  glossary names five, and covers “presentation built out of spaces” with two heuristics —
341
341
  every one of them a deliberate under-report, which is the safe direction for a finding and
342
342
  the wrong one for a conformity.
343
- - The remaining **227 `judgment` tests across 92 criteria** all enter the AI worklist,
343
+ - The remaining **226 `judgment` tests across 92 criteria** all enter the AI worklist,
344
344
  including an apparently absent subject whose `NA` still needs confirmation. Overall,
345
345
  **104 of 106 criteria require adjudication to earn `C`**.
346
346
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultra11y",
3
- "version": "5.50.1",
3
+ "version": "5.51.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",
@@ -151,6 +151,7 @@ const RULE_SC = {
151
151
  "skip-link-target-missing": ["2.4.1"], "bypass-blocks-missing": ["2.4.1"], "sortable-header-no-aria-sort": ["1.3.1"], "status-message-not-assertive": ["4.1.3"],
152
152
  "table-caption-missing": ["1.3.1"], "table-empty-data-cell": ["1.3.1"], "title-missing-empty": ["2.4.2"],
153
153
  "link-label-in-name-mismatch": ["2.5.3"],
154
+ "field-label-in-name-mismatch": ["2.5.3"],
154
155
  "invalid-aria-attr": ["4.1.2"], "invalid-aria-value": ["4.1.2"], "aria-required-attr": ["4.1.2"], "aria-prohibited-attr": ["4.1.2"],
155
156
  "dl-structure": ["1.3.1"], "on-input-context-change": ["3.2.2"],
156
157
  };
@@ -174,6 +175,10 @@ const JUDGMENT_CRITERIA = {
174
175
  "4.10": "« contrôlable par l’utilisateur » — l’arrêt/le réglage du son se constate au rendu, 1.4.2 ne prouve que l’absence d’autoplay détectable.",
175
176
  "8.4": "« le code de langue est-il pertinent ? » — 3.1.1 ne vérifie que la présence et la validité syntaxique de `lang`, pas sa cohérence avec la langue réelle du contenu.",
176
177
  "8.6": "« ce titre est-il pertinent ? » — 2.4.2 ne vérifie que la présence d’un `<title>` non vide.",
178
+ // One decisive rule now fails 11.2.5 (an aria-label that drops the visible <label>, #88), but
179
+ // that is a single condition of a single test: the criterion asks whether each label is
180
+ // PERTINENT, which no rule settles. It stays on the judgment side of the 11.1/11.2 split.
181
+ "11.2": "« chaque étiquette est-elle pertinente ? » — `field-label-in-name-mismatch` ne prouve que l’absence de l’intitulé visible dans un aria-label (11.2.5) ; la pertinence de l’étiquette se juge.",
177
182
  // Its tests are « static » because list-structure can PROVE a malformed list — but what they
178
183
  // ask about is « les informations regroupées VISUELLEMENT sous forme de liste », and the list
179
184
  // that fails them is the one drawn with no list markup at all. An absence of <ul> is not an
@@ -289,6 +294,8 @@ const RULE_TO_CRITERIA = {
289
294
  "radio-checkbox-group-ungrouped": ["11.5"], "date-fields-ungrouped": ["11.5"],
290
295
  "field-purpose-incomplete": ["11.1", "11.13"], "fieldset-legend-missing": ["11.6"], "form-button-empty-name": ["11.9"],
291
296
  "autocomplete-token-invalid": ["11.13"], "form-label-in-name-mismatch": ["11.9"],
297
+ // RGAA 11.2.5 condition 1: a field's aria-label must contain its visible <label> (#88).
298
+ "field-label-in-name-mismatch": ["11.2"],
292
299
  "error-not-associated": ["11.10"], "aria-invalid-no-description": ["11.10"],
293
300
  "axe:label": ["11.1"], "axe:form-field-multiple-labels": ["11.1"], "axe:select-name": ["11.1"], "axe:label-title-only": ["11.1"],
294
301
  // An ARIA field (role=textbox, combobox, checkbox, switch…) with no accessible name at all has
@@ -363,6 +370,7 @@ const DECISIVE_RULE_TESTS = {
363
370
  "11.1|axe:aria-toggle-field-name": ["1"],
364
371
  "11.6|fieldset-legend-missing": ["1"],
365
372
  "11.9|form-button-empty-name": ["1"],
373
+ "11.2|field-label-in-name-mismatch": ["5"],
366
374
  "11.9|form-label-in-name-mismatch": ["2"],
367
375
  "11.5|radio-checkbox-group-ungrouped": ["1"],
368
376
  "5.7|headers-attr-dangling": ["4"],
@@ -666,7 +666,7 @@ const RULE_SC_COVERAGE = {
666
666
  "2.4.3": ["positive-tabindex"],
667
667
  "2.4.7": ["rendered-focus-not-visible"],
668
668
  "2.4.4": ["link-empty-name", "icon-only-control-unnamed"],
669
- "2.5.3": ["label-in-name-mismatch", "form-label-in-name-mismatch", "link-label-in-name-mismatch"],
669
+ "2.5.3": ["label-in-name-mismatch", "form-label-in-name-mismatch", "link-label-in-name-mismatch", "field-label-in-name-mismatch"],
670
670
  "3.2.2": ["on-input-context-change"],
671
671
  "3.3.8": ["credential-entry-blocked"],
672
672
  "3.1.1": ["html-lang-missing", "document-language-missing", "html-lang-xml-lang-mismatch", "lang-invalid"],