ultra11y 5.55.0 → 5.55.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.55.0",
13
+ "version": "5.55.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.55.0",
4
+ "version": "5.55.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.55.0",
4
+ "version": "5.55.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.55.0";
30
+ const ULTRA11Y_PLUGIN_VERSION = "5.55.1";
31
31
 
32
32
  const here = dirname(fileURLToPath(import.meta.url));
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultra11y",
3
- "version": "5.55.0",
3
+ "version": "5.55.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",
@@ -6,7 +6,7 @@ import { join as join54, relative as relative6, resolve as resolve18, sep as sep
6
6
  import { fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "url";
7
7
 
8
8
  // src/types.ts
9
- var VERSION = "5.55.0";
9
+ var VERSION = "5.55.1";
10
10
  var SCHEMA_VERSION = 2;
11
11
  function isAdjudicated(by) {
12
12
  return by === "agent" || by === "human";
@@ -63007,6 +63007,11 @@ var L5 = {
63007
63007
  // Task 5 — partial-audit advisory (owner decision: scan stays opt-in but strongly advised).
63008
63008
  // The list names ONLY the needs-rendering criteria still untested (real coverage).
63009
63009
  partialAudit: (list) => `Audit partiel \u2014 les crit\xE8res \xAB \xE0 restituer \xBB (${list}) n'ont pas \xE9t\xE9 test\xE9s. Lancez \`ultra11y scan --sample\` (Playwright + axe + sondes) sur l'\xE9chantillon, puis fusionnez avec \`scan --merge\`.`,
63010
+ // #100 — a browser pass DID run: re-advising `scan --sample` sends the reader in a circle.
63011
+ partialAuditScanned: (list, notes) => `Audit partiel \u2014 un passage navigateur a eu lieu, mais les crit\xE8res \xAB \xE0 restituer \xBB (${list}) n'y ont pas \xE9t\xE9 mesur\xE9s. ${notes}`,
63012
+ partialAuditLive: "R\xE9gions live : elles ne se mesurent qu'avec les interactions actives, qu'un scan authentifi\xE9 (`--storage-state`) ou `--no-interact` coupe \u2014 enregistrez ces pages avec la fixture Playwright (`checkA11y` / `sweepSample`) ou relancez `scan` avec les interactions.",
63013
+ partialAuditRendered: "Couleur, contraste et focus se mesurent sur les captures : chacune doit porter une empreinte de styles (`styles.json`) accept\xE9e par le moteur ; une capture dont l'empreinte est absente ou refus\xE9e ne mesure rien \u2014 recapturez-la avec une version \xE0 jour.",
63014
+ partialAuditProbes: "Zoom, reflow, espacement, survol, pi\xE8ge clavier et focus masqu\xE9 se mesurent par les sondes : relancez `scan --sample` (ou la fixture avec `probes: true`) sur les pages qui n'ont pas \xE9t\xE9 sond\xE9es.",
63010
63015
  // Task 5 — « Constats par page » (Ara-style per-sample-page synthesis).
63011
63016
  perPageTitle: "Constats par page",
63012
63017
  perPageNote: "Pour chaque page de l'\xE9chantillon : sa capture d'\xE9cran et les crit\xE8res non conformes relev\xE9s sur cette page.",
@@ -63206,6 +63211,10 @@ var L5 = {
63206
63211
  // Task 5 — partial-audit advisory (owner decision: scan stays opt-in but strongly advised).
63207
63212
  // The list names ONLY the needs-rendering criteria still untested (real coverage).
63208
63213
  partialAudit: (list) => `Partial audit \u2014 the needs-rendering criteria (${list}) were not tested. Run \`ultra11y scan --sample\` (Playwright + axe + probes) on the sample, then merge with \`scan --merge\`.`,
63214
+ partialAuditScanned: (list, notes) => `Partial audit \u2014 a browser pass ran, but the needs-rendering criteria (${list}) were not measured by it. ${notes}`,
63215
+ partialAuditLive: "Live regions: they are only measured with interactions on, which an authenticated scan (`--storage-state`) or `--no-interact` turns off \u2014 record those pages with the Playwright fixture (`checkA11y` / `sweepSample`) or re-run `scan` with interactions.",
63216
+ partialAuditRendered: "Colour, contrast and focus are measured on the captures: each needs a style digest (`styles.json`) the engine accepts; a capture whose digest is missing or refused measures nothing \u2014 recapture it with an up-to-date version.",
63217
+ partialAuditProbes: "Zoom, reflow, spacing, hover, keyboard trap and focus obscured are measured by the probes: re-run `scan --sample` (or the fixture with `probes: true`) on the pages that were not probed.",
63209
63218
  // Task 5 — « Findings per page » (Ara-style per-sample-page synthesis).
63210
63219
  perPageTitle: "Findings per page",
63211
63220
  perPageNote: "For each sample page: its screenshot and the criteria found non-conforming on that page.",
@@ -63350,10 +63359,23 @@ function establishedScs(derived) {
63350
63359
  }
63351
63360
  return out2;
63352
63361
  }
63353
- function partialAuditBanner(lang, untested = NEEDS_RENDERING.map((c2) => c2.sc)) {
63362
+ function partialAuditBanner(lang, untested = NEEDS_RENDERING.map((c2) => c2.sc), ctx = {}) {
63354
63363
  const set = new Set(untested);
63355
63364
  const labels = NEEDS_RENDERING.filter((c2) => set.has(c2.sc)).map((c2) => c2.label[lang]);
63356
- return L5[lang].partialAudit(labels.join(", "));
63365
+ if (!ctx.scanned) return L5[lang].partialAudit(labels.join(", "));
63366
+ const notes = [
63367
+ set.has("4.1.3") ? L5[lang].partialAuditLive : "",
63368
+ untested.some((sc) => RENDERED_TIER_SCS.has(sc)) ? L5[lang].partialAuditRendered : "",
63369
+ untested.some((sc) => sc !== "4.1.3" && !RENDERED_TIER_SCS.has(sc)) ? L5[lang].partialAuditProbes : ""
63370
+ ].filter(Boolean);
63371
+ return L5[lang].partialAuditScanned(labels.join(", "), notes.join(" "));
63372
+ }
63373
+ var RENDERED_TIER_SCS = /* @__PURE__ */ new Set(["1.3.4", "1.4.1", "1.4.3", "1.4.11", "2.4.7"]);
63374
+ function ranBrowser(r) {
63375
+ return (r.scope.scan?.testedScs?.length ?? 0) > 0 || (r.scope.captures?.files ?? 0) > 0 || (r.scope.pagesAudited?.length ?? 0) > 0;
63376
+ }
63377
+ function packPartialAudit(r, standard) {
63378
+ return untestedNeedsRendering(r, establishedScs(derivePackResults(r, standard)));
63357
63379
  }
63358
63380
  function tallyRows(rows) {
63359
63381
  return {
@@ -64033,7 +64055,7 @@ function render(r, lang, opts) {
64033
64055
  if (r.scope.dedup) ax.push(`- **${s.dedup}** : ${r.scope.dedup.canonicalFiles} ${s.canonical}, ${r.scope.dedup.duplicateFiles} ${s.duplicate}`);
64034
64056
  ax.push("");
64035
64057
  ax.push(`> \u26A0\uFE0F ${s.warn}`, "");
64036
- if (opts.partialAudit?.length) ax.push(`> \u{1F6A8} ${partialAuditBanner(lang, opts.partialAudit)}`, "");
64058
+ if (opts.partialAudit?.length) ax.push(`> \u{1F6A8} ${partialAuditBanner(lang, opts.partialAudit, { scanned: ranBrowser(r) })}`, "");
64037
64059
  if (!pageScope.length) ax.push(`> \u{1F9ED} ${s.noPagesNoteTech}`, "");
64038
64060
  if (opts.derivedOf) ax.push(`> \u21AA\uFE0F ${s.derived(opts.derivedOf)}`, "");
64039
64061
  if (r.scope.truncated) ax.push(`> \u2702\uFE0F ${s.truncated(r.scope.truncated.limit, r.scope.truncated.total, r.scope.truncated.skipped)}`, "");
@@ -79646,9 +79668,9 @@ async function cmdReport(p) {
79646
79668
  if (p.flags.html === true) {
79647
79669
  html = emitHtml(result, { outDir: out2, standard, lang, ...manifest ? { evidence: manifest } : {}, inlineBudget: budgetOf(p) });
79648
79670
  }
79649
- const untested = isCore(standard) ? [] : untestedNeedsRendering(result);
79671
+ const untested = isCore(standard) ? [] : packPartialAudit(result, standard);
79650
79672
  const partial = untested.length > 0;
79651
- if (partial && !p.flags.json) console.error(`\u{1F6A8} ${partialAuditBanner(lang, untested)}`);
79673
+ if (partial && !p.flags.json) console.error(`\u{1F6A8} ${partialAuditBanner(lang, untested, { scanned: ranBrowser(result) })}`);
79652
79674
  if (p.flags.json)
79653
79675
  console.log(
79654
79676
  JSON.stringify(
@@ -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.55.0
6
+ version: 5.55.1
7
7
  ---
8
8
 
9
9
  # review-a11y — accessibility review of changed code
@@ -6,7 +6,7 @@ import { join as join54, relative as relative6, resolve as resolve18, sep as sep
6
6
  import { fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "url";
7
7
 
8
8
  // src/types.ts
9
- var VERSION = "5.55.0";
9
+ var VERSION = "5.55.1";
10
10
  var SCHEMA_VERSION = 2;
11
11
  function isAdjudicated(by) {
12
12
  return by === "agent" || by === "human";
@@ -63007,6 +63007,11 @@ var L5 = {
63007
63007
  // Task 5 — partial-audit advisory (owner decision: scan stays opt-in but strongly advised).
63008
63008
  // The list names ONLY the needs-rendering criteria still untested (real coverage).
63009
63009
  partialAudit: (list) => `Audit partiel \u2014 les crit\xE8res \xAB \xE0 restituer \xBB (${list}) n'ont pas \xE9t\xE9 test\xE9s. Lancez \`ultra11y scan --sample\` (Playwright + axe + sondes) sur l'\xE9chantillon, puis fusionnez avec \`scan --merge\`.`,
63010
+ // #100 — a browser pass DID run: re-advising `scan --sample` sends the reader in a circle.
63011
+ partialAuditScanned: (list, notes) => `Audit partiel \u2014 un passage navigateur a eu lieu, mais les crit\xE8res \xAB \xE0 restituer \xBB (${list}) n'y ont pas \xE9t\xE9 mesur\xE9s. ${notes}`,
63012
+ partialAuditLive: "R\xE9gions live : elles ne se mesurent qu'avec les interactions actives, qu'un scan authentifi\xE9 (`--storage-state`) ou `--no-interact` coupe \u2014 enregistrez ces pages avec la fixture Playwright (`checkA11y` / `sweepSample`) ou relancez `scan` avec les interactions.",
63013
+ partialAuditRendered: "Couleur, contraste et focus se mesurent sur les captures : chacune doit porter une empreinte de styles (`styles.json`) accept\xE9e par le moteur ; une capture dont l'empreinte est absente ou refus\xE9e ne mesure rien \u2014 recapturez-la avec une version \xE0 jour.",
63014
+ partialAuditProbes: "Zoom, reflow, espacement, survol, pi\xE8ge clavier et focus masqu\xE9 se mesurent par les sondes : relancez `scan --sample` (ou la fixture avec `probes: true`) sur les pages qui n'ont pas \xE9t\xE9 sond\xE9es.",
63010
63015
  // Task 5 — « Constats par page » (Ara-style per-sample-page synthesis).
63011
63016
  perPageTitle: "Constats par page",
63012
63017
  perPageNote: "Pour chaque page de l'\xE9chantillon : sa capture d'\xE9cran et les crit\xE8res non conformes relev\xE9s sur cette page.",
@@ -63206,6 +63211,10 @@ var L5 = {
63206
63211
  // Task 5 — partial-audit advisory (owner decision: scan stays opt-in but strongly advised).
63207
63212
  // The list names ONLY the needs-rendering criteria still untested (real coverage).
63208
63213
  partialAudit: (list) => `Partial audit \u2014 the needs-rendering criteria (${list}) were not tested. Run \`ultra11y scan --sample\` (Playwright + axe + probes) on the sample, then merge with \`scan --merge\`.`,
63214
+ partialAuditScanned: (list, notes) => `Partial audit \u2014 a browser pass ran, but the needs-rendering criteria (${list}) were not measured by it. ${notes}`,
63215
+ partialAuditLive: "Live regions: they are only measured with interactions on, which an authenticated scan (`--storage-state`) or `--no-interact` turns off \u2014 record those pages with the Playwright fixture (`checkA11y` / `sweepSample`) or re-run `scan` with interactions.",
63216
+ partialAuditRendered: "Colour, contrast and focus are measured on the captures: each needs a style digest (`styles.json`) the engine accepts; a capture whose digest is missing or refused measures nothing \u2014 recapture it with an up-to-date version.",
63217
+ partialAuditProbes: "Zoom, reflow, spacing, hover, keyboard trap and focus obscured are measured by the probes: re-run `scan --sample` (or the fixture with `probes: true`) on the pages that were not probed.",
63209
63218
  // Task 5 — « Findings per page » (Ara-style per-sample-page synthesis).
63210
63219
  perPageTitle: "Findings per page",
63211
63220
  perPageNote: "For each sample page: its screenshot and the criteria found non-conforming on that page.",
@@ -63350,10 +63359,23 @@ function establishedScs(derived) {
63350
63359
  }
63351
63360
  return out2;
63352
63361
  }
63353
- function partialAuditBanner(lang, untested = NEEDS_RENDERING.map((c2) => c2.sc)) {
63362
+ function partialAuditBanner(lang, untested = NEEDS_RENDERING.map((c2) => c2.sc), ctx = {}) {
63354
63363
  const set = new Set(untested);
63355
63364
  const labels = NEEDS_RENDERING.filter((c2) => set.has(c2.sc)).map((c2) => c2.label[lang]);
63356
- return L5[lang].partialAudit(labels.join(", "));
63365
+ if (!ctx.scanned) return L5[lang].partialAudit(labels.join(", "));
63366
+ const notes = [
63367
+ set.has("4.1.3") ? L5[lang].partialAuditLive : "",
63368
+ untested.some((sc) => RENDERED_TIER_SCS.has(sc)) ? L5[lang].partialAuditRendered : "",
63369
+ untested.some((sc) => sc !== "4.1.3" && !RENDERED_TIER_SCS.has(sc)) ? L5[lang].partialAuditProbes : ""
63370
+ ].filter(Boolean);
63371
+ return L5[lang].partialAuditScanned(labels.join(", "), notes.join(" "));
63372
+ }
63373
+ var RENDERED_TIER_SCS = /* @__PURE__ */ new Set(["1.3.4", "1.4.1", "1.4.3", "1.4.11", "2.4.7"]);
63374
+ function ranBrowser(r) {
63375
+ return (r.scope.scan?.testedScs?.length ?? 0) > 0 || (r.scope.captures?.files ?? 0) > 0 || (r.scope.pagesAudited?.length ?? 0) > 0;
63376
+ }
63377
+ function packPartialAudit(r, standard) {
63378
+ return untestedNeedsRendering(r, establishedScs(derivePackResults(r, standard)));
63357
63379
  }
63358
63380
  function tallyRows(rows) {
63359
63381
  return {
@@ -64033,7 +64055,7 @@ function render(r, lang, opts) {
64033
64055
  if (r.scope.dedup) ax.push(`- **${s.dedup}** : ${r.scope.dedup.canonicalFiles} ${s.canonical}, ${r.scope.dedup.duplicateFiles} ${s.duplicate}`);
64034
64056
  ax.push("");
64035
64057
  ax.push(`> \u26A0\uFE0F ${s.warn}`, "");
64036
- if (opts.partialAudit?.length) ax.push(`> \u{1F6A8} ${partialAuditBanner(lang, opts.partialAudit)}`, "");
64058
+ if (opts.partialAudit?.length) ax.push(`> \u{1F6A8} ${partialAuditBanner(lang, opts.partialAudit, { scanned: ranBrowser(r) })}`, "");
64037
64059
  if (!pageScope.length) ax.push(`> \u{1F9ED} ${s.noPagesNoteTech}`, "");
64038
64060
  if (opts.derivedOf) ax.push(`> \u21AA\uFE0F ${s.derived(opts.derivedOf)}`, "");
64039
64061
  if (r.scope.truncated) ax.push(`> \u2702\uFE0F ${s.truncated(r.scope.truncated.limit, r.scope.truncated.total, r.scope.truncated.skipped)}`, "");
@@ -79646,9 +79668,9 @@ async function cmdReport(p) {
79646
79668
  if (p.flags.html === true) {
79647
79669
  html = emitHtml(result, { outDir: out2, standard, lang, ...manifest ? { evidence: manifest } : {}, inlineBudget: budgetOf(p) });
79648
79670
  }
79649
- const untested = isCore(standard) ? [] : untestedNeedsRendering(result);
79671
+ const untested = isCore(standard) ? [] : packPartialAudit(result, standard);
79650
79672
  const partial = untested.length > 0;
79651
- if (partial && !p.flags.json) console.error(`\u{1F6A8} ${partialAuditBanner(lang, untested)}`);
79673
+ if (partial && !p.flags.json) console.error(`\u{1F6A8} ${partialAuditBanner(lang, untested, { scanned: ranBrowser(result) })}`);
79652
79674
  if (p.flags.json)
79653
79675
  console.log(
79654
79676
  JSON.stringify(
@@ -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.55.0
6
+ version: 5.55.1
7
7
  ---
8
8
 
9
9
  # ultra11y — audit WCAG 2.2 AA and write accessible markup
@@ -6,7 +6,7 @@ import { join as join54, relative as relative6, resolve as resolve18, sep as sep
6
6
  import { fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "url";
7
7
 
8
8
  // src/types.ts
9
- var VERSION = "5.55.0";
9
+ var VERSION = "5.55.1";
10
10
  var SCHEMA_VERSION = 2;
11
11
  function isAdjudicated(by) {
12
12
  return by === "agent" || by === "human";
@@ -63007,6 +63007,11 @@ var L5 = {
63007
63007
  // Task 5 — partial-audit advisory (owner decision: scan stays opt-in but strongly advised).
63008
63008
  // The list names ONLY the needs-rendering criteria still untested (real coverage).
63009
63009
  partialAudit: (list) => `Audit partiel \u2014 les crit\xE8res \xAB \xE0 restituer \xBB (${list}) n'ont pas \xE9t\xE9 test\xE9s. Lancez \`ultra11y scan --sample\` (Playwright + axe + sondes) sur l'\xE9chantillon, puis fusionnez avec \`scan --merge\`.`,
63010
+ // #100 — a browser pass DID run: re-advising `scan --sample` sends the reader in a circle.
63011
+ partialAuditScanned: (list, notes) => `Audit partiel \u2014 un passage navigateur a eu lieu, mais les crit\xE8res \xAB \xE0 restituer \xBB (${list}) n'y ont pas \xE9t\xE9 mesur\xE9s. ${notes}`,
63012
+ partialAuditLive: "R\xE9gions live : elles ne se mesurent qu'avec les interactions actives, qu'un scan authentifi\xE9 (`--storage-state`) ou `--no-interact` coupe \u2014 enregistrez ces pages avec la fixture Playwright (`checkA11y` / `sweepSample`) ou relancez `scan` avec les interactions.",
63013
+ partialAuditRendered: "Couleur, contraste et focus se mesurent sur les captures : chacune doit porter une empreinte de styles (`styles.json`) accept\xE9e par le moteur ; une capture dont l'empreinte est absente ou refus\xE9e ne mesure rien \u2014 recapturez-la avec une version \xE0 jour.",
63014
+ partialAuditProbes: "Zoom, reflow, espacement, survol, pi\xE8ge clavier et focus masqu\xE9 se mesurent par les sondes : relancez `scan --sample` (ou la fixture avec `probes: true`) sur les pages qui n'ont pas \xE9t\xE9 sond\xE9es.",
63010
63015
  // Task 5 — « Constats par page » (Ara-style per-sample-page synthesis).
63011
63016
  perPageTitle: "Constats par page",
63012
63017
  perPageNote: "Pour chaque page de l'\xE9chantillon : sa capture d'\xE9cran et les crit\xE8res non conformes relev\xE9s sur cette page.",
@@ -63206,6 +63211,10 @@ var L5 = {
63206
63211
  // Task 5 — partial-audit advisory (owner decision: scan stays opt-in but strongly advised).
63207
63212
  // The list names ONLY the needs-rendering criteria still untested (real coverage).
63208
63213
  partialAudit: (list) => `Partial audit \u2014 the needs-rendering criteria (${list}) were not tested. Run \`ultra11y scan --sample\` (Playwright + axe + probes) on the sample, then merge with \`scan --merge\`.`,
63214
+ partialAuditScanned: (list, notes) => `Partial audit \u2014 a browser pass ran, but the needs-rendering criteria (${list}) were not measured by it. ${notes}`,
63215
+ partialAuditLive: "Live regions: they are only measured with interactions on, which an authenticated scan (`--storage-state`) or `--no-interact` turns off \u2014 record those pages with the Playwright fixture (`checkA11y` / `sweepSample`) or re-run `scan` with interactions.",
63216
+ partialAuditRendered: "Colour, contrast and focus are measured on the captures: each needs a style digest (`styles.json`) the engine accepts; a capture whose digest is missing or refused measures nothing \u2014 recapture it with an up-to-date version.",
63217
+ partialAuditProbes: "Zoom, reflow, spacing, hover, keyboard trap and focus obscured are measured by the probes: re-run `scan --sample` (or the fixture with `probes: true`) on the pages that were not probed.",
63209
63218
  // Task 5 — « Findings per page » (Ara-style per-sample-page synthesis).
63210
63219
  perPageTitle: "Findings per page",
63211
63220
  perPageNote: "For each sample page: its screenshot and the criteria found non-conforming on that page.",
@@ -63350,10 +63359,23 @@ function establishedScs(derived) {
63350
63359
  }
63351
63360
  return out2;
63352
63361
  }
63353
- function partialAuditBanner(lang, untested = NEEDS_RENDERING.map((c2) => c2.sc)) {
63362
+ function partialAuditBanner(lang, untested = NEEDS_RENDERING.map((c2) => c2.sc), ctx = {}) {
63354
63363
  const set = new Set(untested);
63355
63364
  const labels = NEEDS_RENDERING.filter((c2) => set.has(c2.sc)).map((c2) => c2.label[lang]);
63356
- return L5[lang].partialAudit(labels.join(", "));
63365
+ if (!ctx.scanned) return L5[lang].partialAudit(labels.join(", "));
63366
+ const notes = [
63367
+ set.has("4.1.3") ? L5[lang].partialAuditLive : "",
63368
+ untested.some((sc) => RENDERED_TIER_SCS.has(sc)) ? L5[lang].partialAuditRendered : "",
63369
+ untested.some((sc) => sc !== "4.1.3" && !RENDERED_TIER_SCS.has(sc)) ? L5[lang].partialAuditProbes : ""
63370
+ ].filter(Boolean);
63371
+ return L5[lang].partialAuditScanned(labels.join(", "), notes.join(" "));
63372
+ }
63373
+ var RENDERED_TIER_SCS = /* @__PURE__ */ new Set(["1.3.4", "1.4.1", "1.4.3", "1.4.11", "2.4.7"]);
63374
+ function ranBrowser(r) {
63375
+ return (r.scope.scan?.testedScs?.length ?? 0) > 0 || (r.scope.captures?.files ?? 0) > 0 || (r.scope.pagesAudited?.length ?? 0) > 0;
63376
+ }
63377
+ function packPartialAudit(r, standard) {
63378
+ return untestedNeedsRendering(r, establishedScs(derivePackResults(r, standard)));
63357
63379
  }
63358
63380
  function tallyRows(rows) {
63359
63381
  return {
@@ -64033,7 +64055,7 @@ function render(r, lang, opts) {
64033
64055
  if (r.scope.dedup) ax.push(`- **${s.dedup}** : ${r.scope.dedup.canonicalFiles} ${s.canonical}, ${r.scope.dedup.duplicateFiles} ${s.duplicate}`);
64034
64056
  ax.push("");
64035
64057
  ax.push(`> \u26A0\uFE0F ${s.warn}`, "");
64036
- if (opts.partialAudit?.length) ax.push(`> \u{1F6A8} ${partialAuditBanner(lang, opts.partialAudit)}`, "");
64058
+ if (opts.partialAudit?.length) ax.push(`> \u{1F6A8} ${partialAuditBanner(lang, opts.partialAudit, { scanned: ranBrowser(r) })}`, "");
64037
64059
  if (!pageScope.length) ax.push(`> \u{1F9ED} ${s.noPagesNoteTech}`, "");
64038
64060
  if (opts.derivedOf) ax.push(`> \u21AA\uFE0F ${s.derived(opts.derivedOf)}`, "");
64039
64061
  if (r.scope.truncated) ax.push(`> \u2702\uFE0F ${s.truncated(r.scope.truncated.limit, r.scope.truncated.total, r.scope.truncated.skipped)}`, "");
@@ -79646,9 +79668,9 @@ async function cmdReport(p) {
79646
79668
  if (p.flags.html === true) {
79647
79669
  html = emitHtml(result, { outDir: out2, standard, lang, ...manifest ? { evidence: manifest } : {}, inlineBudget: budgetOf(p) });
79648
79670
  }
79649
- const untested = isCore(standard) ? [] : untestedNeedsRendering(result);
79671
+ const untested = isCore(standard) ? [] : packPartialAudit(result, standard);
79650
79672
  const partial = untested.length > 0;
79651
- if (partial && !p.flags.json) console.error(`\u{1F6A8} ${partialAuditBanner(lang, untested)}`);
79673
+ if (partial && !p.flags.json) console.error(`\u{1F6A8} ${partialAuditBanner(lang, untested, { scanned: ranBrowser(result) })}`);
79652
79674
  if (p.flags.json)
79653
79675
  console.log(
79654
79676
  JSON.stringify(
@@ -27,7 +27,7 @@ variables:
27
27
  ULTRA11Y_LANG: en
28
28
  # Exact by default: a CI report must say which engine produced it. The release script keeps
29
29
  # this pin aligned with the package version; override only for a deliberate upgrade test.
30
- ULTRA11Y_VERSION: '5.55.0'
30
+ ULTRA11Y_VERSION: '5.55.1'
31
31
  # Batches of 8 amortise the prompt; each accepted verdict is checkpointed before the next
32
32
  # batch, and later passes receive only the residue.
33
33
  ULTRA11Y_GRAIN: batch
package/src/cli.ts CHANGED
@@ -22,8 +22,9 @@ import {
22
22
  averageRateLine,
23
23
  pageConformanceCell,
24
24
  writeReportFiles,
25
- untestedNeedsRendering,
25
+ packPartialAudit,
26
26
  partialAuditBanner,
27
+ ranBrowser,
27
28
  withReportAnnexes,
28
29
  } from "./report.js";
29
30
  import { writePrd, prdUnits, type PrdFormat } from "./prd.js";
@@ -2228,9 +2229,11 @@ async function cmdReport(p: ParsedArgs): Promise<number> {
2228
2229
  // leaves needs-rendering criteria untested — warn prominently on the CLI, naming exactly
2229
2230
  // which criteria lack a dynamic verdict (the report itself carries the matching banner).
2230
2231
  // Scan stays opt-in but strongly advised.
2231
- const untested = isCore(standard) ? [] : untestedNeedsRendering(result);
2232
+ // The SAME list the document prints (#100): before, the CLI ignored the verdicts the pack grid
2233
+ // rules on and contradicted the report it had just written.
2234
+ const untested = isCore(standard) ? [] : packPartialAudit(result, standard);
2232
2235
  const partial = untested.length > 0;
2233
- if (partial && !p.flags.json) console.error(`🚨 ${partialAuditBanner(lang, untested)}`);
2236
+ if (partial && !p.flags.json) console.error(`🚨 ${partialAuditBanner(lang, untested, { scanned: ranBrowser(result) })}`);
2234
2237
  if (p.flags.json)
2235
2238
  console.log(
2236
2239
  JSON.stringify(
package/src/report.ts CHANGED
@@ -178,6 +178,15 @@ const L = {
178
178
  // The list names ONLY the needs-rendering criteria still untested (real coverage).
179
179
  partialAudit: (list: string) =>
180
180
  `Audit partiel — les critères « à restituer » (${list}) n'ont pas été testés. Lancez \`ultra11y scan --sample\` (Playwright + axe + sondes) sur l'échantillon, puis fusionnez avec \`scan --merge\`.`,
181
+ // #100 — a browser pass DID run: re-advising `scan --sample` sends the reader in a circle.
182
+ partialAuditScanned: (list: string, notes: string) =>
183
+ `Audit partiel — un passage navigateur a eu lieu, mais les critères « à restituer » (${list}) n'y ont pas été mesurés. ${notes}`,
184
+ partialAuditLive:
185
+ "Régions live : elles ne se mesurent qu'avec les interactions actives, qu'un scan authentifié (`--storage-state`) ou `--no-interact` coupe — enregistrez ces pages avec la fixture Playwright (`checkA11y` / `sweepSample`) ou relancez `scan` avec les interactions.",
186
+ partialAuditRendered:
187
+ "Couleur, contraste et focus se mesurent sur les captures : chacune doit porter une empreinte de styles (`styles.json`) acceptée par le moteur ; une capture dont l'empreinte est absente ou refusée ne mesure rien — recapturez-la avec une version à jour.",
188
+ partialAuditProbes:
189
+ "Zoom, reflow, espacement, survol, piège clavier et focus masqué se mesurent par les sondes : relancez `scan --sample` (ou la fixture avec `probes: true`) sur les pages qui n'ont pas été sondées.",
181
190
  // Task 5 — « Constats par page » (Ara-style per-sample-page synthesis).
182
191
  perPageTitle: "Constats par page",
183
192
  perPageNote: "Pour chaque page de l'échantillon : sa capture d'écran et les critères non conformes relevés sur cette page.",
@@ -409,6 +418,14 @@ const L = {
409
418
  // The list names ONLY the needs-rendering criteria still untested (real coverage).
410
419
  partialAudit: (list: string) =>
411
420
  `Partial audit — the needs-rendering criteria (${list}) were not tested. Run \`ultra11y scan --sample\` (Playwright + axe + probes) on the sample, then merge with \`scan --merge\`.`,
421
+ partialAuditScanned: (list: string, notes: string) =>
422
+ `Partial audit — a browser pass ran, but the needs-rendering criteria (${list}) were not measured by it. ${notes}`,
423
+ partialAuditLive:
424
+ "Live regions: they are only measured with interactions on, which an authenticated scan (`--storage-state`) or `--no-interact` turns off — record those pages with the Playwright fixture (`checkA11y` / `sweepSample`) or re-run `scan` with interactions.",
425
+ partialAuditRendered:
426
+ "Colour, contrast and focus are measured on the captures: each needs a style digest (`styles.json`) the engine accepts; a capture whose digest is missing or refused measures nothing — recapture it with an up-to-date version.",
427
+ partialAuditProbes:
428
+ "Zoom, reflow, spacing, hover, keyboard trap and focus obscured are measured by the probes: re-run `scan --sample` (or the fixture with `probes: true`) on the pages that were not probed.",
412
429
  // Task 5 — « Findings per page » (Ara-style per-sample-page synthesis).
413
430
  perPageTitle: "Findings per page",
414
431
  perPageNote: "For each sample page: its screenshot and the criteria found non-conforming on that page.",
@@ -620,10 +637,34 @@ export function establishedScs(derived: readonly PackCriterionResult[]): Set<str
620
637
  /** The partial-audit advisory text (no leading `> `) — shared by the report banner and the
621
638
  * CLI warning (src/cli.ts cmdReport) so the two can never drift. Names ONLY the criteria
622
639
  * in `untested` (default: all of them — the no-scan-at-all case). */
623
- export function partialAuditBanner(lang: Lang, untested: string[] = NEEDS_RENDERING.map((c) => c.sc)): string {
640
+ export function partialAuditBanner(lang: Lang, untested: string[] = NEEDS_RENDERING.map((c) => c.sc), ctx: { scanned?: boolean } = {}): string {
624
641
  const set = new Set(untested);
625
642
  const labels = NEEDS_RENDERING.filter((c) => set.has(c.sc)).map((c) => c.label[lang]);
626
- return L[lang].partialAudit(labels.join(", "));
643
+ if (!ctx.scanned) return L[lang].partialAudit(labels.join(", "));
644
+ // A browser pass ran and still left these: name what closes each kind, not « scan again ».
645
+ const notes = [
646
+ set.has("4.1.3") ? L[lang].partialAuditLive : "",
647
+ untested.some((sc) => RENDERED_TIER_SCS.has(sc)) ? L[lang].partialAuditRendered : "",
648
+ untested.some((sc) => sc !== "4.1.3" && !RENDERED_TIER_SCS.has(sc)) ? L[lang].partialAuditProbes : "",
649
+ ].filter(Boolean);
650
+ return L[lang].partialAuditScanned(labels.join(", "), notes.join(" "));
651
+ }
652
+
653
+ // The needs-rendering SCs the RENDERED tier measures from a capture's style/stylesheet digest
654
+ // (src/rules/rendered.ts): text contrast, link colour, non-text contrast, orientation lock,
655
+ // focus visibility. The others come from the live probes, and 4.1.3 from the interactions.
656
+ const RENDERED_TIER_SCS = new Set(["1.3.4", "1.4.1", "1.4.3", "1.4.11", "2.4.7"]);
657
+
658
+ /** Did any browser pass contribute to this audit — a scan stamp, or audited captures? */
659
+ export function ranBrowser(r: AuditResult): boolean {
660
+ return (r.scope.scan?.testedScs?.length ?? 0) > 0 || (r.scope.captures?.files ?? 0) > 0 || (r.scope.pagesAudited?.length ?? 0) > 0;
661
+ }
662
+
663
+ /** THE pack report's partial-audit list — one definition for the document, the CLI warning and
664
+ * `report --json`, so they can never disagree again (#100): the needs-rendering SCs nothing
665
+ * measured AND the pack grid does not rule on. */
666
+ export function packPartialAudit(r: AuditResult, standard: string): string[] {
667
+ return untestedNeedsRendering(r, establishedScs(derivePackResults(r, standard)));
627
668
  }
628
669
 
629
670
  // A normalized row the renderer is agnostic about: one labelled criterion + its status/findings.
@@ -1812,7 +1853,7 @@ function render(r: AuditResult, lang: Lang, opts: RenderOpts): ReportDocuments {
1812
1853
  ax.push(`> ⚠️ ${s.warn}`, "");
1813
1854
  // Partial-audit advisory (owner decision): names EXACTLY the untested criteria, with the
1814
1855
  // command that tests them. Labels only — no criterion-shaped token, so `check` accepts it.
1815
- if (opts.partialAudit?.length) ax.push(`> 🚨 ${partialAuditBanner(lang, opts.partialAudit)}`, "");
1856
+ if (opts.partialAudit?.length) ax.push(`> 🚨 ${partialAuditBanner(lang, opts.partialAudit, { scanned: ranBrowser(r) })}`, "");
1816
1857
  if (!pageScope.length) ax.push(`> 🧭 ${s.noPagesNoteTech}`, "");
1817
1858
  if (opts.derivedOf) ax.push(`> ↪️ ${s.derived(opts.derivedOf)}`, "");
1818
1859
  if (r.scope.truncated) ax.push(`> ✂️ ${s.truncated(r.scope.truncated.limit, r.scope.truncated.total, r.scope.truncated.skipped)}`, "");
package/src/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Single source of truth for shared types + the embedded version. sync-version.mjs
2
2
  // rewrites VERSION at release time (kept in lockstep with package.json + SKILL.md).
3
- export const VERSION = "5.55.0";
3
+ export const VERSION = "5.55.1";
4
4
  export const SCHEMA_VERSION = 2;
5
5
 
6
6
  // Lang = the UI FRAME's language — the `L` localization tables each module (report,