ultra11y 5.9.1 → 5.9.2
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/package.json +1 -1
- package/scripts/ultra11y.mjs +23 -3
- package/skills/review-a11y/SKILL.md +1 -1
- package/skills/review-a11y/scripts/ultra11y.mjs +23 -3
- package/skills/ultra11y/SKILL.md +1 -1
- package/skills/ultra11y/scripts/ultra11y.mjs +23 -3
- package/src/adjudicate-subjects.ts +21 -1
- package/src/adjudicate.ts +24 -3
- package/src/types.ts +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"name": "ultra11y",
|
|
11
11
|
"source": "./",
|
|
12
12
|
"description": "Automatic accessibility review of the code under change before every commit, push and pull request, plus full WCAG 2.2 AA / RGAA audits and conformance deliverables on demand.",
|
|
13
|
-
"version": "5.9.
|
|
13
|
+
"version": "5.9.2",
|
|
14
14
|
"author": { "name": "maxgfr" },
|
|
15
15
|
"homepage": "https://github.com/maxgfr/ultra11y",
|
|
16
16
|
"repository": "https://github.com/maxgfr/ultra11y",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultra11y",
|
|
3
3
|
"description": "Accessibility for WCAG 2.2 AA and country standards (RGAA…): an automatic review of the code under change before every commit, push and pull request, plus full audits and conformance deliverables on demand.",
|
|
4
|
-
"version": "5.9.
|
|
4
|
+
"version": "5.9.2",
|
|
5
5
|
"author": { "name": "maxgfr" },
|
|
6
6
|
"homepage": "https://github.com/maxgfr/ultra11y",
|
|
7
7
|
"repository": "https://github.com/maxgfr/ultra11y",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultra11y",
|
|
3
3
|
"description": "Accessibility for WCAG 2.2 AA and country standards (RGAA…): an automatic review of the code under change before every commit, push and pull request, plus full audits and conformance deliverables on demand.",
|
|
4
|
-
"version": "5.9.
|
|
4
|
+
"version": "5.9.2",
|
|
5
5
|
"author": { "name": "maxgfr", "url": "https://github.com/maxgfr" },
|
|
6
6
|
"homepage": "https://github.com/maxgfr/ultra11y",
|
|
7
7
|
"repository": "https://github.com/maxgfr/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.9.
|
|
30
|
+
const ULTRA11Y_PLUGIN_VERSION = "5.9.2";
|
|
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.9.
|
|
3
|
+
"version": "5.9.2",
|
|
4
4
|
"description": "Audit HTML/CSS/JSX against WCAG 2.2 AA and produce a dated compliance report, or author/review accessible markup (native-HTML-first). A skills.sh agent skill: an install-free static engine (bundled, no npm install) plus the agent's judgment, with check/verify gates against hallucinated non-conformities, and pluggable in-repo standards packs (RGAA France first; Section 508 & EN 301 549 next).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@10.33.0",
|
package/scripts/ultra11y.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { join as join51, relative as relative5, resolve as resolve16, sep as sep
|
|
|
6
6
|
import { fileURLToPath as fileURLToPath5, pathToFileURL as pathToFileURL3 } from "url";
|
|
7
7
|
|
|
8
8
|
// src/types.ts
|
|
9
|
-
var VERSION = "5.9.
|
|
9
|
+
var VERSION = "5.9.2";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
|
|
12
12
|
// src/audit.ts
|
|
@@ -39652,6 +39652,21 @@ var SUBJECTS = {
|
|
|
39652
39652
|
(e) => h(d, e, `<html lang="${attr(e, "lang") ?? ""}"> \u2014 is it present, valid, and the language of the content?`, `doclang|${attr(e, "lang") ?? ""}`)
|
|
39653
39653
|
)
|
|
39654
39654
|
),
|
|
39655
|
+
// Frames, and the title each one carries. RGAA theme 2 is about nothing else: 2.1 asks
|
|
39656
|
+
// whether every frame HAS a title, 2.2 whether that title is pertinent. Both used to inherit
|
|
39657
|
+
// `aria` from WCAG 4.1.2 and be handed every ARIA attribute in the application — measured on
|
|
39658
|
+
// a real run, the adjudicator answered `undecidable` on both, correctly, because nothing it
|
|
39659
|
+
// had been shown could settle a question about `<iframe title>`.
|
|
39660
|
+
frames: (docs) => docs.flatMap(
|
|
39661
|
+
(d) => elementsByTag(d, "iframe", "frame").map(
|
|
39662
|
+
(e) => h(
|
|
39663
|
+
d,
|
|
39664
|
+
e,
|
|
39665
|
+
`<${e.tag}> title="${attr(e, "title") ?? ""}" name="${attr(e, "name") ?? ""}" src="${(attr(e, "src") ?? "").slice(0, 60)}" \u2014 un titre de cadre est-il pr\xE9sent, et d\xE9crit-il le contenu du cadre ?`,
|
|
39666
|
+
`frame|${attr(e, "title") ?? ""}|${attr(e, "src") ?? ""}`
|
|
39667
|
+
)
|
|
39668
|
+
)
|
|
39669
|
+
),
|
|
39655
39670
|
// The document's title, with the page it belongs to, so "is it pertinent?" is answerable.
|
|
39656
39671
|
docTitle: (docs) => docs.flatMap(
|
|
39657
39672
|
(d) => elementsByTag(d, "title").map((e) => h(d, e, `page="${pageOfDoc(d.file) ?? "source"}" <title>${t(e, 80)}</title>`, `doctitle|${t(e, 80)}`))
|
|
@@ -39880,6 +39895,9 @@ var PACK_SUBJECTS = {
|
|
|
39880
39895
|
// Theme 6 — links.
|
|
39881
39896
|
"6.1": ["links"],
|
|
39882
39897
|
"6.2": ["links"],
|
|
39898
|
+
// Theme 2 — frames. Both criteria are about the frame and its title, and nothing else.
|
|
39899
|
+
"2.1": ["frames"],
|
|
39900
|
+
"2.2": ["frames"],
|
|
39883
39901
|
// Theme 8 — the document itself. 8.1 maps onto no WCAG 2.2 criterion at all, so the pack
|
|
39884
39902
|
// is the ONLY place its subject can be named.
|
|
39885
39903
|
"8.1": ["doctype"],
|
|
@@ -39960,7 +39978,7 @@ var PACK_SUBJECTS = {
|
|
|
39960
39978
|
"13.11": ["pointerHandlers"]
|
|
39961
39979
|
}
|
|
39962
39980
|
};
|
|
39963
|
-
var EXISTENCE_SUBJECTS = /* @__PURE__ */ new Set(["images", "tables", "lists", "links", "controls", "autocomplete", "errors"]);
|
|
39981
|
+
var EXISTENCE_SUBJECTS = /* @__PURE__ */ new Set(["images", "tables", "lists", "links", "controls", "autocomplete", "errors", "frames"]);
|
|
39964
39982
|
var subjectsForSc = (sc) => SC_SUBJECTS[sc] ?? [];
|
|
39965
39983
|
function subjectsForPackCriterion(standard, id, scs) {
|
|
39966
39984
|
const own = PACK_SUBJECTS[standard]?.[id];
|
|
@@ -58189,10 +58207,12 @@ function writeAdjudication(items, outDir, opts) {
|
|
|
58189
58207
|
}
|
|
58190
58208
|
return { todoPath, mdPath, verdictsPath, itemsDir, count: items.length };
|
|
58191
58209
|
}
|
|
58210
|
+
var PREFILLED_CITATIONS = 3;
|
|
58192
58211
|
function slimAdjudicationItems(items) {
|
|
58193
58212
|
return items.map((it) => {
|
|
58194
58213
|
const { evidence: _evidence, evidenceTruncated: _truncated, ...rest } = it;
|
|
58195
|
-
|
|
58214
|
+
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({ ...e }));
|
|
58215
|
+
return { ...rest, evidence: [], ...citations.length ? { citations } : {} };
|
|
58196
58216
|
});
|
|
58197
58217
|
}
|
|
58198
58218
|
function hydrateAdjudication(adj, audit2, opts = {}) {
|
|
@@ -5,7 +5,7 @@ when_to_use: "Invoke WITHOUT being asked whenever changed front-end code should
|
|
|
5
5
|
allowed-tools: Bash(node ${CLAUDE_SKILL_DIR}/scripts/ultra11y.mjs *), Read, Grep, Glob
|
|
6
6
|
license: MIT
|
|
7
7
|
metadata:
|
|
8
|
-
version: 5.9.
|
|
8
|
+
version: 5.9.2
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# review-a11y — accessibility review of changed code
|
|
@@ -6,7 +6,7 @@ import { join as join51, relative as relative5, resolve as resolve16, sep as sep
|
|
|
6
6
|
import { fileURLToPath as fileURLToPath5, pathToFileURL as pathToFileURL3 } from "url";
|
|
7
7
|
|
|
8
8
|
// src/types.ts
|
|
9
|
-
var VERSION = "5.9.
|
|
9
|
+
var VERSION = "5.9.2";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
|
|
12
12
|
// src/audit.ts
|
|
@@ -39652,6 +39652,21 @@ var SUBJECTS = {
|
|
|
39652
39652
|
(e) => h(d, e, `<html lang="${attr(e, "lang") ?? ""}"> \u2014 is it present, valid, and the language of the content?`, `doclang|${attr(e, "lang") ?? ""}`)
|
|
39653
39653
|
)
|
|
39654
39654
|
),
|
|
39655
|
+
// Frames, and the title each one carries. RGAA theme 2 is about nothing else: 2.1 asks
|
|
39656
|
+
// whether every frame HAS a title, 2.2 whether that title is pertinent. Both used to inherit
|
|
39657
|
+
// `aria` from WCAG 4.1.2 and be handed every ARIA attribute in the application — measured on
|
|
39658
|
+
// a real run, the adjudicator answered `undecidable` on both, correctly, because nothing it
|
|
39659
|
+
// had been shown could settle a question about `<iframe title>`.
|
|
39660
|
+
frames: (docs) => docs.flatMap(
|
|
39661
|
+
(d) => elementsByTag(d, "iframe", "frame").map(
|
|
39662
|
+
(e) => h(
|
|
39663
|
+
d,
|
|
39664
|
+
e,
|
|
39665
|
+
`<${e.tag}> title="${attr(e, "title") ?? ""}" name="${attr(e, "name") ?? ""}" src="${(attr(e, "src") ?? "").slice(0, 60)}" \u2014 un titre de cadre est-il pr\xE9sent, et d\xE9crit-il le contenu du cadre ?`,
|
|
39666
|
+
`frame|${attr(e, "title") ?? ""}|${attr(e, "src") ?? ""}`
|
|
39667
|
+
)
|
|
39668
|
+
)
|
|
39669
|
+
),
|
|
39655
39670
|
// The document's title, with the page it belongs to, so "is it pertinent?" is answerable.
|
|
39656
39671
|
docTitle: (docs) => docs.flatMap(
|
|
39657
39672
|
(d) => elementsByTag(d, "title").map((e) => h(d, e, `page="${pageOfDoc(d.file) ?? "source"}" <title>${t(e, 80)}</title>`, `doctitle|${t(e, 80)}`))
|
|
@@ -39880,6 +39895,9 @@ var PACK_SUBJECTS = {
|
|
|
39880
39895
|
// Theme 6 — links.
|
|
39881
39896
|
"6.1": ["links"],
|
|
39882
39897
|
"6.2": ["links"],
|
|
39898
|
+
// Theme 2 — frames. Both criteria are about the frame and its title, and nothing else.
|
|
39899
|
+
"2.1": ["frames"],
|
|
39900
|
+
"2.2": ["frames"],
|
|
39883
39901
|
// Theme 8 — the document itself. 8.1 maps onto no WCAG 2.2 criterion at all, so the pack
|
|
39884
39902
|
// is the ONLY place its subject can be named.
|
|
39885
39903
|
"8.1": ["doctype"],
|
|
@@ -39960,7 +39978,7 @@ var PACK_SUBJECTS = {
|
|
|
39960
39978
|
"13.11": ["pointerHandlers"]
|
|
39961
39979
|
}
|
|
39962
39980
|
};
|
|
39963
|
-
var EXISTENCE_SUBJECTS = /* @__PURE__ */ new Set(["images", "tables", "lists", "links", "controls", "autocomplete", "errors"]);
|
|
39981
|
+
var EXISTENCE_SUBJECTS = /* @__PURE__ */ new Set(["images", "tables", "lists", "links", "controls", "autocomplete", "errors", "frames"]);
|
|
39964
39982
|
var subjectsForSc = (sc) => SC_SUBJECTS[sc] ?? [];
|
|
39965
39983
|
function subjectsForPackCriterion(standard, id, scs) {
|
|
39966
39984
|
const own = PACK_SUBJECTS[standard]?.[id];
|
|
@@ -58189,10 +58207,12 @@ function writeAdjudication(items, outDir, opts) {
|
|
|
58189
58207
|
}
|
|
58190
58208
|
return { todoPath, mdPath, verdictsPath, itemsDir, count: items.length };
|
|
58191
58209
|
}
|
|
58210
|
+
var PREFILLED_CITATIONS = 3;
|
|
58192
58211
|
function slimAdjudicationItems(items) {
|
|
58193
58212
|
return items.map((it) => {
|
|
58194
58213
|
const { evidence: _evidence, evidenceTruncated: _truncated, ...rest } = it;
|
|
58195
|
-
|
|
58214
|
+
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({ ...e }));
|
|
58215
|
+
return { ...rest, evidence: [], ...citations.length ? { citations } : {} };
|
|
58196
58216
|
});
|
|
58197
58217
|
}
|
|
58198
58218
|
function hydrateAdjudication(adj, audit2, opts = {}) {
|
package/skills/ultra11y/SKILL.md
CHANGED
|
@@ -4,7 +4,7 @@ description: "Use to AUDIT existing HTML/CSS/JSX against WCAG 2.2 AA accessibili
|
|
|
4
4
|
when_to_use: "Invoke when the user asks for an accessibility AUDIT or a formal deliverable: audit a repo, site or page against WCAG 2.2 AA or a country standard (RGAA, Section 508, EN 301 549); produce a dated conformance report, a criterion grid, a PRD backlog, or tickets (GitHub/GitLab/Jira); author accessible markup from scratch; wire the repo gate (init --hook/--ci) or a rendered-DOM capture pipeline. For a review of the code UNDER CHANGE (diff, branch, PR), use the `review-a11y` skill instead."
|
|
5
5
|
license: MIT
|
|
6
6
|
metadata:
|
|
7
|
-
version: 5.9.
|
|
7
|
+
version: 5.9.2
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# ultra11y — audit WCAG 2.2 AA and write accessible markup
|
|
@@ -6,7 +6,7 @@ import { join as join51, relative as relative5, resolve as resolve16, sep as sep
|
|
|
6
6
|
import { fileURLToPath as fileURLToPath5, pathToFileURL as pathToFileURL3 } from "url";
|
|
7
7
|
|
|
8
8
|
// src/types.ts
|
|
9
|
-
var VERSION = "5.9.
|
|
9
|
+
var VERSION = "5.9.2";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
|
|
12
12
|
// src/audit.ts
|
|
@@ -39652,6 +39652,21 @@ var SUBJECTS = {
|
|
|
39652
39652
|
(e) => h(d, e, `<html lang="${attr(e, "lang") ?? ""}"> \u2014 is it present, valid, and the language of the content?`, `doclang|${attr(e, "lang") ?? ""}`)
|
|
39653
39653
|
)
|
|
39654
39654
|
),
|
|
39655
|
+
// Frames, and the title each one carries. RGAA theme 2 is about nothing else: 2.1 asks
|
|
39656
|
+
// whether every frame HAS a title, 2.2 whether that title is pertinent. Both used to inherit
|
|
39657
|
+
// `aria` from WCAG 4.1.2 and be handed every ARIA attribute in the application — measured on
|
|
39658
|
+
// a real run, the adjudicator answered `undecidable` on both, correctly, because nothing it
|
|
39659
|
+
// had been shown could settle a question about `<iframe title>`.
|
|
39660
|
+
frames: (docs) => docs.flatMap(
|
|
39661
|
+
(d) => elementsByTag(d, "iframe", "frame").map(
|
|
39662
|
+
(e) => h(
|
|
39663
|
+
d,
|
|
39664
|
+
e,
|
|
39665
|
+
`<${e.tag}> title="${attr(e, "title") ?? ""}" name="${attr(e, "name") ?? ""}" src="${(attr(e, "src") ?? "").slice(0, 60)}" \u2014 un titre de cadre est-il pr\xE9sent, et d\xE9crit-il le contenu du cadre ?`,
|
|
39666
|
+
`frame|${attr(e, "title") ?? ""}|${attr(e, "src") ?? ""}`
|
|
39667
|
+
)
|
|
39668
|
+
)
|
|
39669
|
+
),
|
|
39655
39670
|
// The document's title, with the page it belongs to, so "is it pertinent?" is answerable.
|
|
39656
39671
|
docTitle: (docs) => docs.flatMap(
|
|
39657
39672
|
(d) => elementsByTag(d, "title").map((e) => h(d, e, `page="${pageOfDoc(d.file) ?? "source"}" <title>${t(e, 80)}</title>`, `doctitle|${t(e, 80)}`))
|
|
@@ -39880,6 +39895,9 @@ var PACK_SUBJECTS = {
|
|
|
39880
39895
|
// Theme 6 — links.
|
|
39881
39896
|
"6.1": ["links"],
|
|
39882
39897
|
"6.2": ["links"],
|
|
39898
|
+
// Theme 2 — frames. Both criteria are about the frame and its title, and nothing else.
|
|
39899
|
+
"2.1": ["frames"],
|
|
39900
|
+
"2.2": ["frames"],
|
|
39883
39901
|
// Theme 8 — the document itself. 8.1 maps onto no WCAG 2.2 criterion at all, so the pack
|
|
39884
39902
|
// is the ONLY place its subject can be named.
|
|
39885
39903
|
"8.1": ["doctype"],
|
|
@@ -39960,7 +39978,7 @@ var PACK_SUBJECTS = {
|
|
|
39960
39978
|
"13.11": ["pointerHandlers"]
|
|
39961
39979
|
}
|
|
39962
39980
|
};
|
|
39963
|
-
var EXISTENCE_SUBJECTS = /* @__PURE__ */ new Set(["images", "tables", "lists", "links", "controls", "autocomplete", "errors"]);
|
|
39981
|
+
var EXISTENCE_SUBJECTS = /* @__PURE__ */ new Set(["images", "tables", "lists", "links", "controls", "autocomplete", "errors", "frames"]);
|
|
39964
39982
|
var subjectsForSc = (sc) => SC_SUBJECTS[sc] ?? [];
|
|
39965
39983
|
function subjectsForPackCriterion(standard, id, scs) {
|
|
39966
39984
|
const own = PACK_SUBJECTS[standard]?.[id];
|
|
@@ -58189,10 +58207,12 @@ function writeAdjudication(items, outDir, opts) {
|
|
|
58189
58207
|
}
|
|
58190
58208
|
return { todoPath, mdPath, verdictsPath, itemsDir, count: items.length };
|
|
58191
58209
|
}
|
|
58210
|
+
var PREFILLED_CITATIONS = 3;
|
|
58192
58211
|
function slimAdjudicationItems(items) {
|
|
58193
58212
|
return items.map((it) => {
|
|
58194
58213
|
const { evidence: _evidence, evidenceTruncated: _truncated, ...rest } = it;
|
|
58195
|
-
|
|
58214
|
+
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({ ...e }));
|
|
58215
|
+
return { ...rest, evidence: [], ...citations.length ? { citations } : {} };
|
|
58196
58216
|
});
|
|
58197
58217
|
}
|
|
58198
58218
|
function hydrateAdjudication(adj, audit2, opts = {}) {
|
|
@@ -496,6 +496,23 @@ export const SUBJECTS: Record<string, Subject> = {
|
|
|
496
496
|
),
|
|
497
497
|
),
|
|
498
498
|
|
|
499
|
+
// Frames, and the title each one carries. RGAA theme 2 is about nothing else: 2.1 asks
|
|
500
|
+
// whether every frame HAS a title, 2.2 whether that title is pertinent. Both used to inherit
|
|
501
|
+
// `aria` from WCAG 4.1.2 and be handed every ARIA attribute in the application — measured on
|
|
502
|
+
// a real run, the adjudicator answered `undecidable` on both, correctly, because nothing it
|
|
503
|
+
// had been shown could settle a question about `<iframe title>`.
|
|
504
|
+
frames: (docs) =>
|
|
505
|
+
docs.flatMap((d) =>
|
|
506
|
+
elementsByTag(d, "iframe", "frame").map((e) =>
|
|
507
|
+
h(
|
|
508
|
+
d,
|
|
509
|
+
e,
|
|
510
|
+
`<${e.tag}> title="${attr(e, "title") ?? ""}" name="${attr(e, "name") ?? ""}" src="${(attr(e, "src") ?? "").slice(0, 60)}" — un titre de cadre est-il présent, et décrit-il le contenu du cadre ?`,
|
|
511
|
+
`frame|${attr(e, "title") ?? ""}|${attr(e, "src") ?? ""}`,
|
|
512
|
+
),
|
|
513
|
+
),
|
|
514
|
+
),
|
|
515
|
+
|
|
499
516
|
// The document's title, with the page it belongs to, so "is it pertinent?" is answerable.
|
|
500
517
|
docTitle: (docs) =>
|
|
501
518
|
docs.flatMap((d) =>
|
|
@@ -790,6 +807,9 @@ export const PACK_SUBJECTS: Record<string, Record<string, string[]>> = {
|
|
|
790
807
|
// Theme 6 — links.
|
|
791
808
|
"6.1": ["links"],
|
|
792
809
|
"6.2": ["links"],
|
|
810
|
+
// Theme 2 — frames. Both criteria are about the frame and its title, and nothing else.
|
|
811
|
+
"2.1": ["frames"],
|
|
812
|
+
"2.2": ["frames"],
|
|
793
813
|
// Theme 8 — the document itself. 8.1 maps onto no WCAG 2.2 criterion at all, so the pack
|
|
794
814
|
// is the ONLY place its subject can be named.
|
|
795
815
|
"8.1": ["doctype"],
|
|
@@ -907,7 +927,7 @@ export const PACK_SUBJECTS: Record<string, Record<string, string[]>> = {
|
|
|
907
927
|
// hand-written applicability predicates in src/audit.ts, which are more careful than any
|
|
908
928
|
// subject here and which win outright where they exist. The pack criteria that map onto them
|
|
909
929
|
// inherit the NA through the derivation, so nothing is lost by leaving them out.
|
|
910
|
-
export const EXISTENCE_SUBJECTS: ReadonlySet<string> = new Set(["images", "tables", "lists", "links", "controls", "autocomplete", "errors"]);
|
|
930
|
+
export const EXISTENCE_SUBJECTS: ReadonlySet<string> = new Set(["images", "tables", "lists", "links", "controls", "autocomplete", "errors", "frames"]);
|
|
911
931
|
|
|
912
932
|
/** The subjects that decide a success criterion. Empty ⇒ the criterion has none declared,
|
|
913
933
|
* which `tests/harvest-coverage.test.ts` refuses for any criterion the engine hands over. */
|
package/src/adjudicate.ts
CHANGED
|
@@ -1446,12 +1446,33 @@ export function writeAdjudication(
|
|
|
1446
1446
|
* bulk it only has to READ. Every field the fold requires — verdict, justification, reason,
|
|
1447
1447
|
* findings, citations, recommendations — is kept, so a filled slim file carries a complete
|
|
1448
1448
|
* decision. The evidence comes back at fold time via `hydrateAdjudication`. */
|
|
1449
|
+
/** Representatives pre-cited in the skeleton. Three is enough to show the shape and to stand
|
|
1450
|
+
* for the population; the whole set is in the brief, and `occurrences` travels with each. */
|
|
1451
|
+
const PREFILLED_CITATIONS = 3;
|
|
1452
|
+
|
|
1449
1453
|
export function slimAdjudicationItems(items: AdjudicationItem[]): AdjudicationItem[] {
|
|
1450
1454
|
return items.map((it) => {
|
|
1451
1455
|
const { evidence: _evidence, evidenceTruncated: _truncated, ...rest } = it;
|
|
1452
|
-
//
|
|
1453
|
-
//
|
|
1454
|
-
|
|
1456
|
+
// THE CITATIONS ARRIVE FILLED IN.
|
|
1457
|
+
//
|
|
1458
|
+
// This file is the only one a CI adjudicator writes, and it used to arrive with no evidence
|
|
1459
|
+
// and no citations: clearing a criterion meant authoring
|
|
1460
|
+
// `citations: [{file, line, selector, snippet}]` from scratch, by hand, cross-referencing a
|
|
1461
|
+
// separate brief, once per criterion. Measured on a real run: thirty criteria came back `C`
|
|
1462
|
+
// with a considered justification and no citations at all, and the fold refused every one
|
|
1463
|
+
// — « a C verdict must cite at least one of the N evidence item(s) it was shown ». The
|
|
1464
|
+
// agent had read the evidence. It had simply not copied an anchor into a second file.
|
|
1465
|
+
//
|
|
1466
|
+
// Pre-filling decides nothing. The verdict and the justification are still the agent's, and
|
|
1467
|
+
// a `C` still has to survive grounding, the coverage check and the complete-evidence rule.
|
|
1468
|
+
// What it removes is a transcription step that was costing correct verdicts — the same
|
|
1469
|
+
// failure, one level up, as an adjudicator retyping a snippet instead of copying it.
|
|
1470
|
+
//
|
|
1471
|
+
// `population` and `evidenceComplete` are kept for the same reason they always were: they
|
|
1472
|
+
// are two numbers, not bulk, and they tell the adjudicator how much of the subject it is
|
|
1473
|
+
// actually looking at.
|
|
1474
|
+
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({ ...e }));
|
|
1475
|
+
return { ...rest, evidence: [], ...(citations.length ? { citations } : {}) } as AdjudicationItem;
|
|
1455
1476
|
});
|
|
1456
1477
|
}
|
|
1457
1478
|
|
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.9.
|
|
3
|
+
export const VERSION = "5.9.2";
|
|
4
4
|
export const SCHEMA_VERSION = 2;
|
|
5
5
|
|
|
6
6
|
// Lang = the UI FRAME's language — the `L` localization tables each module (report,
|