@kinti/a11y-toolkit 5.25.2 → 5.26.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/a11y_toolkit/a11y.py +4 -0
- package/a11y_toolkit/a11yaudit.py +62 -5
- package/a11y_toolkit/a11ydom.py +26 -1
- package/a11y_toolkit/a11yen301549.py +95 -0
- package/a11y_toolkit/a11yevidence.py +103 -5
- package/a11y_toolkit/a11yopenacr.py +18 -4
- package/a11y_toolkit/a11ysarif.py +26 -4
- package/a11y_toolkit/a11yscope.py +244 -0
- package/a11y_toolkit/a11yvpat.py +20 -4
- package/a11y_toolkit/locales/en.json +45 -4
- package/a11y_toolkit/locales/es.json +45 -4
- package/a11y_toolkit/server.py +103 -14
- package/package.json +2 -2
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Applicability scope — the layer between the audit and the conformance claim.
|
|
3
|
+
|
|
4
|
+
Pattern learned from the Government of Canada CIO wizard (EN 301 549 V4.1.1):
|
|
5
|
+
conformance is not "run all 55", it is "answer what the product IS, then the
|
|
6
|
+
applicable clauses fall out". Their wizard asks 118 questions a human answers
|
|
7
|
+
by hand. This engine does the semi-automatic inverse: it reads what the
|
|
8
|
+
audit actually SAW (the features block: media elements, form controls) and
|
|
9
|
+
proposes the structural exclusions a human only needs to confirm.
|
|
10
|
+
|
|
11
|
+
The honesty rule is load-bearing, borrowed from the evidence pack:
|
|
12
|
+
- the machine PROPOSES ('proposed-excluded') from positive evidence —
|
|
13
|
+
zero <video> elements is evidence, "no 1.2.x finding fired" is NOT
|
|
14
|
+
(absence of signal ≠ absence of content);
|
|
15
|
+
- only a human answer turns a proposal into 'excluded';
|
|
16
|
+
- only 'excluded' rows may become not-applicable downstream (evidence
|
|
17
|
+
pack matrix, VPAT/OpenACR levels). A proposal never excludes anything.
|
|
18
|
+
|
|
19
|
+
With --standard en301549 every row carries its EN 301 549 V4.1.1 clause
|
|
20
|
+
(9.x web / 10.x documents / 11.x software — numbering identity verified
|
|
21
|
+
55/55 against the official wizard), and the EN-only families (5, 6, 7, 8,
|
|
22
|
+
12, 13) appear as honest applicability rows this engine does not evaluate.
|
|
23
|
+
|
|
24
|
+
CLI:
|
|
25
|
+
a11yscope.py audit.json [otro.json …] [--standard en301549] [--target web]
|
|
26
|
+
[--answers human.json] [--lang en] [-o scope.json]
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
import argparse
|
|
30
|
+
import hashlib
|
|
31
|
+
import json
|
|
32
|
+
import sys
|
|
33
|
+
from datetime import datetime, timezone
|
|
34
|
+
|
|
35
|
+
STANDARDS = ('wcag22', 'en301549')
|
|
36
|
+
STATUS_ORDER = ('in-scope', 'proposed-excluded', 'excluded')
|
|
37
|
+
|
|
38
|
+
# Criterios cuya aplicabilidad depende de un rasgo ESTRUCTURAL detectable:
|
|
39
|
+
# si el rasgo está AUSENTE en la muestra auditada, el criterio se propone
|
|
40
|
+
# excluido (el humano confirma). Fuera de estos dos grupos, nada se propone:
|
|
41
|
+
# la ausencia de señal no es evidencia de ausencia.
|
|
42
|
+
_MEDIA_CRITERIA = ('1.2.1', '1.2.2', '1.2.3', '1.2.4', '1.2.5', '1.4.2')
|
|
43
|
+
_FORM_CRITERIA = ('1.3.5', '3.3.1', '3.3.2', '3.3.3', '3.3.4', '3.3.7', '3.3.8',
|
|
44
|
+
'3.3.9')
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _canon(obj):
|
|
48
|
+
return json.dumps(obj, ensure_ascii=False, sort_keys=True, separators=(',', ':'))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _sha256(obj):
|
|
52
|
+
return hashlib.sha256(_canon(obj).encode('utf-8')).hexdigest()
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def collect_features(reports):
|
|
56
|
+
"""Suma el bloque features de todos los informes que lo lleven.
|
|
57
|
+
|
|
58
|
+
Devuelve (features, disponible): sin features (informes previos a la
|
|
59
|
+
versión que los introduce) NO hay propuestas — se dice, no se inventa.
|
|
60
|
+
"""
|
|
61
|
+
feats = {'video': 0, 'audio': 0, 'track': 0, 'embed': 0, 'iframe': 0,
|
|
62
|
+
'object': 0, 'form': 0, 'input': 0, 'select': 0, 'textarea': 0,
|
|
63
|
+
'table': 0}
|
|
64
|
+
seen = False
|
|
65
|
+
for rep in reports:
|
|
66
|
+
block = rep.get('features')
|
|
67
|
+
if not isinstance(block, dict):
|
|
68
|
+
continue
|
|
69
|
+
seen = True
|
|
70
|
+
for k in feats:
|
|
71
|
+
v = block.get(k)
|
|
72
|
+
if isinstance(v, int) and v > 0:
|
|
73
|
+
feats[k] += v
|
|
74
|
+
return feats, seen
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def _media_state(feats, findings_codes):
|
|
78
|
+
"""'present' | 'embedded' | 'absent'.
|
|
79
|
+
|
|
80
|
+
iframe/embed/object PUEDEN portar vídeo (YouTube embebido): si solo hay
|
|
81
|
+
embeds, los medios quedan 'embedded' — indeterminado, el criterio se
|
|
82
|
+
mantiene en alcance porque la exclusión exige ausencia estructural.
|
|
83
|
+
"""
|
|
84
|
+
if feats['video'] or feats['audio'] or feats['track']:
|
|
85
|
+
return 'present'
|
|
86
|
+
# respaldo positivo: un hallazgo 1.2.x SÓLO dispara si el parser vio
|
|
87
|
+
# medios — no es ausencia de señal, es contenido con problema
|
|
88
|
+
if any(c.startswith('1.2.') for c in findings_codes):
|
|
89
|
+
return 'present'
|
|
90
|
+
if feats['embed'] or feats['iframe'] or feats['object']:
|
|
91
|
+
return 'embedded'
|
|
92
|
+
return 'absent'
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def _forms_present(feats, findings_codes):
|
|
96
|
+
if feats['form'] or feats['input'] or feats['select'] or feats['textarea']:
|
|
97
|
+
return True
|
|
98
|
+
# señales 3.3.x/1.3.5: solo disparan sobre campos reales
|
|
99
|
+
return any(c.startswith('3.3.') or c == '1.3.5' for c in findings_codes)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def build_scope(reports, standard='wcag22', target='web', answers=None,
|
|
103
|
+
lang='en'):
|
|
104
|
+
"""Informes (lista de dicts) + respuestas humanas → alcance a11y-scope/1."""
|
|
105
|
+
if standard not in STANDARDS:
|
|
106
|
+
raise ValueError(f"standard must be one of {STANDARDS}, got {standard!r}")
|
|
107
|
+
from . import a11yen301549 as enstd
|
|
108
|
+
from .a11yi18n import pack
|
|
109
|
+
from .a11ycrit import _C
|
|
110
|
+
tx = pack(lang).get('scope', {}) or {}
|
|
111
|
+
|
|
112
|
+
reports = [r for r in reports if isinstance(r, dict)]
|
|
113
|
+
findings_codes = set()
|
|
114
|
+
for rep in reports:
|
|
115
|
+
raw = rep.get('findings')
|
|
116
|
+
if not isinstance(raw, list):
|
|
117
|
+
continue # informe malformado: sin hallazgos aprovechables
|
|
118
|
+
for h in raw:
|
|
119
|
+
if not isinstance(h, dict):
|
|
120
|
+
continue
|
|
121
|
+
crit = h.get('criterion')
|
|
122
|
+
if isinstance(crit, str) and crit:
|
|
123
|
+
findings_codes.add(crit.split(' ')[0])
|
|
124
|
+
|
|
125
|
+
feats, features_seen = collect_features(reports)
|
|
126
|
+
media = _media_state(feats, findings_codes) if features_seen else 'unknown'
|
|
127
|
+
forms = _forms_present(feats, findings_codes) if features_seen else None
|
|
128
|
+
|
|
129
|
+
answers = answers or {}
|
|
130
|
+
if not isinstance(answers, dict):
|
|
131
|
+
raise ValueError('answers must be an object keyed by criterion code')
|
|
132
|
+
|
|
133
|
+
codes_aa = sorted(k for k, v in _C.items() if v[0] in ('A', 'AA'))
|
|
134
|
+
criteria = []
|
|
135
|
+
for code in codes_aa:
|
|
136
|
+
name = (_C[code][1].get(lang) or _C[code][1]['en'])[0]
|
|
137
|
+
row = {'criterion': f'{code} {name}', 'level': _C[code][0]}
|
|
138
|
+
if standard == 'en301549':
|
|
139
|
+
row['clause'] = enstd.clause_for(code, target)
|
|
140
|
+
|
|
141
|
+
ans = answers.get(code)
|
|
142
|
+
if isinstance(ans, str): # abreviatura: "excluded"/"in-scope"
|
|
143
|
+
ans = {'status': ans}
|
|
144
|
+
if isinstance(ans, dict) and ans.get('status') in STATUS_ORDER:
|
|
145
|
+
row['status'] = ans['status']
|
|
146
|
+
row['evidence_source'] = 'human'
|
|
147
|
+
if ans.get('reason'):
|
|
148
|
+
row['reason'] = str(ans['reason'])[:500]
|
|
149
|
+
elif code in _MEDIA_CRITERIA and media == 'absent':
|
|
150
|
+
row['status'] = 'proposed-excluded'
|
|
151
|
+
row['evidence_source'] = 'machine:features'
|
|
152
|
+
row['evidence'] = tx.get('evidence_media_absent')
|
|
153
|
+
elif code in _MEDIA_CRITERIA and media == 'embedded':
|
|
154
|
+
# embeds pueden portar vídeo: indeterminado, queda en alcance
|
|
155
|
+
row['status'] = 'in-scope'
|
|
156
|
+
row['evidence'] = tx.get('evidence_media_embedded')
|
|
157
|
+
elif code == '1.2.4' and media == 'present':
|
|
158
|
+
# con medios presentes, en directo vs pregrabado no se distingue
|
|
159
|
+
# en estático: queda en alcance con nota de decisión humana
|
|
160
|
+
row['status'] = 'in-scope'
|
|
161
|
+
row['evidence'] = tx.get('evidence_live_human')
|
|
162
|
+
elif code in _FORM_CRITERIA and forms is False:
|
|
163
|
+
row['status'] = 'proposed-excluded'
|
|
164
|
+
row['evidence_source'] = 'machine:features'
|
|
165
|
+
row['evidence'] = tx.get('evidence_forms_absent')
|
|
166
|
+
else:
|
|
167
|
+
row['status'] = 'in-scope'
|
|
168
|
+
if code in _MEDIA_CRITERIA:
|
|
169
|
+
row['evidence'] = tx.get('evidence_media_present')
|
|
170
|
+
elif code in _FORM_CRITERIA:
|
|
171
|
+
row['evidence'] = tx.get('evidence_forms_present')
|
|
172
|
+
criteria.append(row)
|
|
173
|
+
|
|
174
|
+
counters = {
|
|
175
|
+
'criteria': len(criteria),
|
|
176
|
+
'in_scope': sum(1 for r in criteria if r['status'] == 'in-scope'),
|
|
177
|
+
'proposed_excluded': sum(1 for r in criteria if r['status'] == 'proposed-excluded'),
|
|
178
|
+
'excluded': sum(1 for r in criteria if r['status'] == 'excluded'),
|
|
179
|
+
}
|
|
180
|
+
if standard == 'en301549':
|
|
181
|
+
# el contador espejo del "Total Clauses" del wizard oficial: solo
|
|
182
|
+
# cuentan las cláusulas EN aplicables (en alcance o excluidas por
|
|
183
|
+
# humano — una propuesta no descuenta)
|
|
184
|
+
counters['en_clauses_applicable'] = counters['in_scope'] + counters['excluded']
|
|
185
|
+
|
|
186
|
+
scope = {
|
|
187
|
+
'format': 'a11y-scope/1',
|
|
188
|
+
'lang': lang,
|
|
189
|
+
'generated': datetime.now(timezone.utc).isoformat(timespec='seconds'),
|
|
190
|
+
'tool': 'a11y-toolkit (github.com/kinti/a11y-toolkit)',
|
|
191
|
+
'standard': enstd.STANDARD_NAME if standard == 'en301549' else 'WCAG 2.2 (A/AA)',
|
|
192
|
+
'target': target,
|
|
193
|
+
'features_observed': feats if features_seen else None,
|
|
194
|
+
'features_evidence': bool(features_seen),
|
|
195
|
+
'criteria': criteria,
|
|
196
|
+
'counters': counters,
|
|
197
|
+
'notice': tx.get('notice'),
|
|
198
|
+
}
|
|
199
|
+
if not features_seen:
|
|
200
|
+
scope['limitations'] = [tx.get('no_features_note')]
|
|
201
|
+
if standard == 'en301549':
|
|
202
|
+
fam_rows = []
|
|
203
|
+
for fam in enstd.family_rows(lang):
|
|
204
|
+
status = 'human-review'
|
|
205
|
+
if fam['family'] in ('6', '7', '8') and target == 'web':
|
|
206
|
+
# un producto web no lleva RTT/transmisión de vídeo/hardware:
|
|
207
|
+
# propuesta de la MISMA lógica que usa el wizard oficial
|
|
208
|
+
status = 'proposed-excluded'
|
|
209
|
+
if fam['family'] == '12':
|
|
210
|
+
status = 'in-scope'
|
|
211
|
+
fam_rows.append({**fam, 'status': status,
|
|
212
|
+
'evaluated_by_toolkit': False})
|
|
213
|
+
scope['en301549_families'] = fam_rows
|
|
214
|
+
# el sello excluye el reloj: re-emitir el mismo alcance → mismo sha
|
|
215
|
+
scope['sha256'] = _sha256({k: v for k, v in scope.items() if k != 'generated'})
|
|
216
|
+
return scope
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def main(argv):
|
|
220
|
+
from .a11yen301549 import TARGETS
|
|
221
|
+
ap = argparse.ArgumentParser(description='Applicability scope (semi-automatic)')
|
|
222
|
+
ap.add_argument('reports', nargs='+', help='audit report JSON files (any mode)')
|
|
223
|
+
ap.add_argument('--standard', choices=STANDARDS, default='wcag22',
|
|
224
|
+
help='en301549 adds EN 301 549 V4.1.1 clause refs + families')
|
|
225
|
+
ap.add_argument('--target', choices=TARGETS, default='web',
|
|
226
|
+
help='ICT target: web (9.x), documents (10.x), software (11.x)')
|
|
227
|
+
ap.add_argument('--answers', help='JSON file: human confirmations keyed by code '
|
|
228
|
+
'{"1.2.4": {"status": "excluded", "reason": "…"}}')
|
|
229
|
+
ap.add_argument('--lang', default='en', choices=('es', 'en'))
|
|
230
|
+
ap.add_argument('-o', '--out', default='scope.json')
|
|
231
|
+
a = ap.parse_args(argv)
|
|
232
|
+
reports = [json.load(open(f, encoding='utf-8')) for f in a.reports]
|
|
233
|
+
answers = json.load(open(a.answers, encoding='utf-8')) if a.answers else None
|
|
234
|
+
scope = build_scope(reports, standard=a.standard, target=a.target,
|
|
235
|
+
answers=answers, lang=a.lang)
|
|
236
|
+
with open(a.out, 'w', encoding='utf-8') as f:
|
|
237
|
+
json.dump(scope, f, ensure_ascii=False, indent=1)
|
|
238
|
+
print(json.dumps({'scope': a.out, 'sha256': scope['sha256'],
|
|
239
|
+
'counters': scope['counters']}, ensure_ascii=False))
|
|
240
|
+
return 0
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
if __name__ == '__main__':
|
|
244
|
+
sys.exit(main(sys.argv[1:]))
|
package/a11y_toolkit/a11yvpat.py
CHANGED
|
@@ -36,6 +36,8 @@ _STATUS_TO_LEVEL = {
|
|
|
36
36
|
'not-run': 'not_evaluated',
|
|
37
37
|
'manual-only': 'not_evaluated',
|
|
38
38
|
'agent-verified': 'not_evaluated',
|
|
39
|
+
# exclusión de aplicabilidad confirmada por humano (pack con scope)
|
|
40
|
+
'not-applicable': 'not_applicable',
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
TXT = a11yi18n.pair('vpat_txt') # locales/<lang>.json — community-editable
|
|
@@ -100,18 +102,29 @@ def _wcag_order(code):
|
|
|
100
102
|
def generate_vpat(pack=None, reports=None, product='', product_version=None,
|
|
101
103
|
report_date=None, description=None, contact=None, methods=None,
|
|
102
104
|
notes=None, overrides=None, reviewer=None, lang='en',
|
|
103
|
-
verified=None, output_path=None):
|
|
105
|
+
verified=None, scope=None, output_path=None):
|
|
104
106
|
"""Pack (o informes) → HTML VPAT 2.5 accesible + resumen.
|
|
105
107
|
|
|
106
108
|
overrides: {'1.1.1': 'supports', …} — niveles fijados por una persona
|
|
107
|
-
cualificada; ganan sobre la derivación automática
|
|
109
|
+
cualificada; ganan sobre la derivación automática (scope incluido:
|
|
110
|
+
una exclusion confirmada puede revertirse a mano si el humano lo decide).
|
|
111
|
+
|
|
112
|
+
scope: salida de a11y_scope — las exclusiones CONFIRMADAS por humano
|
|
113
|
+
salen como Not Applicable con su razón; las propuestas nunca."""
|
|
108
114
|
t = _t(lang)
|
|
109
115
|
if pack is None:
|
|
110
116
|
if not reports:
|
|
111
117
|
return {'error': t['error_no_pack']}
|
|
112
118
|
from .a11yevidence import build_pack
|
|
113
119
|
pack = build_pack(reports, verified=verified,
|
|
114
|
-
reviewer=reviewer)
|
|
120
|
+
reviewer=reviewer, scope=scope)
|
|
121
|
+
elif scope is not None:
|
|
122
|
+
# pack ya construido + scope: aplicar las exclusiones confirmadas
|
|
123
|
+
# (jamás silencio — el CLI lo promete)
|
|
124
|
+
if not isinstance(scope, dict):
|
|
125
|
+
return {'error': t['error_scope']}
|
|
126
|
+
from .a11yevidence import apply_scope
|
|
127
|
+
pack = apply_scope(pack, scope, lang=lang)
|
|
115
128
|
if not isinstance(pack, dict) or 'criteria' not in pack:
|
|
116
129
|
return {'error': t['error_no_pack']}
|
|
117
130
|
overrides = overrides or {}
|
|
@@ -215,16 +228,19 @@ def main(argv):
|
|
|
215
228
|
ap.add_argument('--notes', help='notes')
|
|
216
229
|
ap.add_argument('--overrides', help='JSON: {"1.1.1": "does_not_support", …}')
|
|
217
230
|
ap.add_argument('--reviewer', help='JSON: {"name":…, "credential":…, "review_date":…}')
|
|
231
|
+
ap.add_argument('--scope', help='a11y_scope output JSON: confirmed exclusions '
|
|
232
|
+
'become Not Applicable (proposals never)')
|
|
218
233
|
ap.add_argument('--lang', default='en', choices=['en', 'es'])
|
|
219
234
|
ap.add_argument('-o', '--out')
|
|
220
235
|
a = ap.parse_args(argv)
|
|
221
236
|
pack = json.load(open(a.pack, encoding='utf-8')) if a.pack else None
|
|
222
237
|
reports = [json.load(open(f, encoding='utf-8')) for f in a.reports] if a.reports else None
|
|
238
|
+
scope = json.load(open(a.scope, encoding='utf-8')) if a.scope else None
|
|
223
239
|
res = generate_vpat(pack=pack, reports=reports, product=a.product, report_date=a.report_date,
|
|
224
240
|
description=a.description, contact=a.contact, methods=a.methods,
|
|
225
241
|
notes=a.notes, overrides=json.loads(a.overrides) if a.overrides else None,
|
|
226
242
|
reviewer=json.loads(a.reviewer) if a.reviewer else None,
|
|
227
|
-
lang=a.lang, output_path=a.out)
|
|
243
|
+
scope=scope, lang=a.lang, output_path=a.out)
|
|
228
244
|
if 'error' in res:
|
|
229
245
|
print(res['error'])
|
|
230
246
|
return 1
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"reduced_motion_ignored_rem": "Wrap animations in @media (prefers-reduced-motion: reduce) { animation: none } — or pause via the Animation API. The user asked for less motion; honor it.",
|
|
243
243
|
"reflow_fail": "{n} elements overflow at {w}px width (horizontal scroll): {det}. With correct reflow there is no one-dimensional scroll at 320px (1.4.10).",
|
|
244
244
|
"reflow_fail_rem": "Use fluid layouts (flex/grid, max-width instead of fixed width) and media queries: content must reflow to 320px without horizontal scroll. Exceptions: data tables, maps, charts.",
|
|
245
|
-
"state_contrast": "{n} controls with insufficient :focus/:hover state contrast (
|
|
245
|
+
"state_contrast": "{n} controls with insufficient :focus/:hover state contrast (4.5:1 normal text, 3:1 large text/UI): {det}. Review.",
|
|
246
246
|
"state_contrast_rem": "The control text needs contrast when focused or hovered too (1.4.3); DISABLED controls are exempt under WCAG. Adjust the :focus and :hover colors.",
|
|
247
247
|
"target_small": "{n} controls with a touch area smaller than 24×24 px (WCAG 2.2 2.5.8): {det}.",
|
|
248
248
|
"target_small_rem": "Give controls at least 24×24 CSS px (44×44 is better) via padding or min-width/min-height. Exceptions: equivalent inline links and sufficient surrounding spacing."
|
|
@@ -253,7 +253,8 @@
|
|
|
253
253
|
"not_flagged": "not-flagged ≠ pass: no automated signal fired on this sample",
|
|
254
254
|
"notice": "This pack is evidence, not conformance: it says what machines found and what remains for a human. A conformance claim requires the signature block completed by a qualified person who reviewed the manual list.",
|
|
255
255
|
"reviewer_note": "any countersignature must reference pack.sha256 and state which criteria the human reviewed beyond the automated matrix",
|
|
256
|
-
"verified": "verified against this sample per the manual checklist protocol"
|
|
256
|
+
"verified": "verified against this sample per the manual checklist protocol",
|
|
257
|
+
"not_applicable_note": "Out of applicability scope: human-confirmed exclusion (see the scope artifact)."
|
|
257
258
|
},
|
|
258
259
|
"fix": {
|
|
259
260
|
"between": "Enter a number between %a and %b.",
|
|
@@ -443,7 +444,8 @@
|
|
|
443
444
|
"error_no_pack": "missing pack/reports: pass an a11y_evidence pack (or audit reports to build it here)",
|
|
444
445
|
"legal_disclaimer": "The information herein is provided in good faith based on the analysis at the time of the review and does not represent a legally-binding claim. Reported errors will be re-evaluated and corrected.",
|
|
445
446
|
"method_default": "Automated screening with the a11y-toolkit engine plus manual review where noted; automated testing covers only part of WCAG — the remarks cite the remaining human effort per criterion.",
|
|
446
|
-
"notes_draft": "DRAFT — adherence levels pending a qualified human; generated from a verifiable evidence pack."
|
|
447
|
+
"notes_draft": "DRAFT — adherence levels pending a qualified human; generated from a verifiable evidence pack.",
|
|
448
|
+
"error_scope": "scope must be an object (a11y-scope/1 JSON) — got something else"
|
|
447
449
|
},
|
|
448
450
|
"vpat_levels": {
|
|
449
451
|
"does_not_support": "Does Not Support",
|
|
@@ -498,7 +500,8 @@
|
|
|
498
500
|
"standards_section": "Applicable Standards/Guidelines",
|
|
499
501
|
"table_caption": "Table 1: WCAG 2.2 (A/AA) conformance criteria",
|
|
500
502
|
"title": "VPAT® 2.5 Accessibility Conformance Report — WCAG edition",
|
|
501
|
-
"version": "Version"
|
|
503
|
+
"version": "Version",
|
|
504
|
+
"error_scope": "scope must be an object (a11y-scope/1 JSON) — got something else"
|
|
502
505
|
},
|
|
503
506
|
"vtt": {
|
|
504
507
|
"limits": "Screening of caption CONTENT (1.2.2): not a substitute for human review of accuracy, speaker identification or audio description.",
|
|
@@ -521,5 +524,43 @@
|
|
|
521
524
|
"model_tags": "Core requirement tags in the draft: physical harm, risk, barrier and friction (per the W3C introduction; they qualify requirements, not findings).",
|
|
522
525
|
"model_tiers": "Reporting tiers 1-6, where tier 3 corresponds to conformance. Counts and thresholds are still to be determined by the W3C.",
|
|
523
526
|
"no_score": "No score, tier or conformance level is produced on purpose: the draft's tier thresholds are still to be determined by the W3C."
|
|
527
|
+
},
|
|
528
|
+
"scope": {
|
|
529
|
+
"notice": "Machine proposals are not exclusions: 'proposed-excluded' rows need a human answer before anything downstream (evidence pack, VPAT, OpenACR) may treat the criterion as not applicable.",
|
|
530
|
+
"mapping_note": "Clause numbers mirror WCAG 2.2 success-criterion numbering in clauses 9 (web), 10 (non-web documents) and 11 (non-web software) of EN 301 549 V4.1.1 (2026); verified 55/55 A/AA against the standard's official applicability wizard. AAA is not claimed.",
|
|
531
|
+
"evidence_media_absent": "No video, audio or track elements in the audited sample (embeds checked too) — confirm this holds for the whole product before excluding.",
|
|
532
|
+
"evidence_media_present": "Media elements present in the audited sample.",
|
|
533
|
+
"evidence_media_embedded": "Embedded content (iframe/embed/object) may carry media the static audit cannot see — media applicability needs a human call.",
|
|
534
|
+
"evidence_live_human": "Media is present; live vs prerecorded cannot be told statically — a human decides whether live captions apply.",
|
|
535
|
+
"evidence_forms_absent": "No form controls (input, select, textarea, form) in the audited sample — confirm this holds for the whole product before excluding.",
|
|
536
|
+
"evidence_forms_present": "Form controls present in the audited sample.",
|
|
537
|
+
"no_features_note": "These reports predate the features block, so no machine proposals were emitted: without positive evidence of what the audit saw, nothing is proposed.",
|
|
538
|
+
"not_applicable_note": "Out of applicability scope: human-confirmed exclusion (see the scope artifact).",
|
|
539
|
+
"families": {
|
|
540
|
+
"generic": {
|
|
541
|
+
"title": "Generic requirements",
|
|
542
|
+
"note": "Closed functionality, biometrics, conversion, tactile parts, toggles, key repeat — mostly non-web territory; a human answers whether any apply."
|
|
543
|
+
},
|
|
544
|
+
"rtt": {
|
|
545
|
+
"title": "ICT supporting real-time bidirectional communication",
|
|
546
|
+
"note": "Applies to products with real-time voice/text communication (RTT, relay, caller ID)."
|
|
547
|
+
},
|
|
548
|
+
"video_capabilities": {
|
|
549
|
+
"title": "ICT with video capabilities",
|
|
550
|
+
"note": "Applies to products that transmit, convert or record video with synchronized audio."
|
|
551
|
+
},
|
|
552
|
+
"hardware": {
|
|
553
|
+
"title": "Hardware",
|
|
554
|
+
"note": "Physical device requirements (reach, force, tactile parts, indicators)."
|
|
555
|
+
},
|
|
556
|
+
"products_info": {
|
|
557
|
+
"title": "Information about products and services",
|
|
558
|
+
"note": "Product and service information in digital form must be accessible — applies to any product with public documentation."
|
|
559
|
+
},
|
|
560
|
+
"relay_emergency": {
|
|
561
|
+
"title": "ICT providing relay or emergency service access",
|
|
562
|
+
"note": "Applies to relay services and emergency-communication ICT."
|
|
563
|
+
}
|
|
564
|
+
}
|
|
524
565
|
}
|
|
525
566
|
}
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"reduced_motion_ignored_rem": "Envuelve las animaciones en @media (prefers-reduced-motion: reduce) { animation: none } — o paúsala con la API Animation. El usuario pidió menos movimiento; respóndelo.",
|
|
243
243
|
"reflow_fail": "{n} elementos desbordan a {w}px de ancho (scroll horizontal): {det}. Con reflujo correcto, a 320px no hay scroll en una dimensión (1.4.10).",
|
|
244
244
|
"reflow_fail_rem": "Usa layouts fluidos (flex/grid, max-width en vez de width fija) y media queries: el contenido debe reflujo a 320px sin scroll horizontal. Los excepciones: tablas de datos, mapas, gráficos.",
|
|
245
|
-
"state_contrast": "{n} controles con contraste insuficiente en estado :focus/:hover (
|
|
245
|
+
"state_contrast": "{n} controles con contraste insuficiente en estado :focus/:hover (4.5:1 texto normal, 3:1 texto grande/UI): {det}. Revisar.",
|
|
246
246
|
"state_contrast_rem": "El texto del control también necesita contraste cuando está enfocado o con el puntero encima (1.4.3); los controles DESACTIVADOS están exentos por WCAG. Ajusta los colores de :focus y :hover.",
|
|
247
247
|
"target_small": "{n} controles con área de toque menor de 24×24 px (WCAG 2.2, 2.5.8): {det}.",
|
|
248
248
|
"target_small_rem": "Da a los controles al menos 24×24 px CSS (mejor 44×44) con padding o min-width/min-height. Excepciones: enlaces inline equivalentes y espaciado suficiente alrededor."
|
|
@@ -253,7 +253,8 @@
|
|
|
253
253
|
"not_flagged": "sin señal ≠ pasa: ninguna señal automática saltó en esta muestra",
|
|
254
254
|
"notice": "Este pack es evidencia, no conformidad: dice qué encontró la máquina y qué queda para una persona. Una declaración de conformidad requiere el bloque de firma completo, de una persona cualificada que haya revisado la lista manual.",
|
|
255
255
|
"reviewer_note": "cualquier contrafirma debe referenciar pack.sha256 e indicar qué criterios revisó la persona más allá de la matriz automática",
|
|
256
|
-
"verified": "verificado sobre esta muestra según el protocolo del checklist manual"
|
|
256
|
+
"verified": "verificado sobre esta muestra según el protocolo del checklist manual",
|
|
257
|
+
"not_applicable_note": "Fuera del alcance de aplicabilidad: exclusión confirmada por una persona (ver el artefacto de alcance)."
|
|
257
258
|
},
|
|
258
259
|
"fix": {
|
|
259
260
|
"between": "Escribe un número entre %a y %b.",
|
|
@@ -443,7 +444,8 @@
|
|
|
443
444
|
"error_no_pack": "falta pack/reports: pasa un pack de a11y_evidence (o informes de auditoría para construirlo aquí)",
|
|
444
445
|
"legal_disclaimer": "La información se facilita de buena fe según el análisis realizado en el momento de la revisión y no constituye una declaración vinculante. Los errores comunicados se reevaluarán y corregirán.",
|
|
445
446
|
"method_default": "Cribado automatizado con el motor a11y-toolkit más revisión manual donde se indica; los tests automáticos cubren solo una parte de WCAG — los remarks citan el esfuerzo humano restante por criterio.",
|
|
446
|
-
"notes_draft": "BORRADOR — niveles de adhesión pendientes de una persona cualificada; generado desde un pack de evidencia verificable."
|
|
447
|
+
"notes_draft": "BORRADOR — niveles de adhesión pendientes de una persona cualificada; generado desde un pack de evidencia verificable.",
|
|
448
|
+
"error_scope": "scope debe ser un objeto (JSON a11y-scope/1) — llegó otra cosa"
|
|
447
449
|
},
|
|
448
450
|
"vpat_levels": {
|
|
449
451
|
"does_not_support": "No lo soporta",
|
|
@@ -498,7 +500,8 @@
|
|
|
498
500
|
"standards_section": "Pautas/estándares aplicables",
|
|
499
501
|
"table_caption": "Tabla 1: Criterios de conformidad WCAG 2.2 (A/AA)",
|
|
500
502
|
"title": "Informe de conformidad de accesibilidad VPAT® 2.5 — edición WCAG",
|
|
501
|
-
"version": "Versión"
|
|
503
|
+
"version": "Versión",
|
|
504
|
+
"error_scope": "scope debe ser un objeto (JSON a11y-scope/1) — llegó otra cosa"
|
|
502
505
|
},
|
|
503
506
|
"vtt": {
|
|
504
507
|
"limits": "Cribado del CONTENIDO de los subtítulos (1.2.2): no sustituye la revisión humana de precisión, identificación de hablantes ni audiodescripción.",
|
|
@@ -521,5 +524,43 @@
|
|
|
521
524
|
"model_tags": "Etiquetas de los requisitos core del borrador: physical harm, risk, barrier y friction (según la introducción del W3C; califican requisitos, no hallazgos).",
|
|
522
525
|
"model_tiers": "Tiers de reporte 1-6, donde el tier 3 corresponde a la conformidad. Recuentos y umbrales están aún por determinar por el W3C.",
|
|
523
526
|
"no_score": "No se produce puntuación, tier ni nivel de conformidad a propósito: los umbrales de los tiers del borrador están aún por determinar por el W3C."
|
|
527
|
+
},
|
|
528
|
+
"scope": {
|
|
529
|
+
"notice": "Las propuestas de la máquina no son exclusiones: las filas 'proposed-excluded' necesitan respuesta humana antes de que algo aguas abajo (pack de evidencia, VPAT, OpenACR) pueda tratar el criterio como no aplicable.",
|
|
530
|
+
"mapping_note": "La numeración de cláusulas espeja la de los criterios WCAG 2.2 en las cláusulas 9 (web), 10 (documentos no web) y 11 (software no web) de EN 301 549 V4.1.1 (2026); verificado 55/55 A/AA contra el asistente oficial de aplicabilidad del estándar. No se reclama nada sobre AAA.",
|
|
531
|
+
"evidence_media_absent": "Ni vídeo, ni audio, ni track en la muestra auditada (embeds comprobados también) — confirma que aplica a todo el producto antes de excluir.",
|
|
532
|
+
"evidence_media_present": "Hay elementos de medios en la muestra auditada.",
|
|
533
|
+
"evidence_media_embedded": "Contenido embebido (iframe/embed/object) puede portar medios que la auditoría estática no ve — la aplicabilidad de medios requiere decisión humana.",
|
|
534
|
+
"evidence_live_human": "Hay medios; en directo vs pregrabado no se distingue en estático — una persona decide si aplican los subtítulos en directo.",
|
|
535
|
+
"evidence_forms_absent": "Sin controles de formulario (input, select, textarea, form) en la muestra auditada — confirma que aplica a todo el producto antes de excluir.",
|
|
536
|
+
"evidence_forms_present": "Hay controles de formulario en la muestra auditada.",
|
|
537
|
+
"no_features_note": "Estos informes son previos al bloque de rasgos, así que no se emitió ninguna propuesta: sin evidencia positiva de lo que la auditoría vio, no se propone nada.",
|
|
538
|
+
"not_applicable_note": "Fuera del alcance de aplicabilidad: exclusión confirmada por una persona (ver el artefacto de alcance).",
|
|
539
|
+
"families": {
|
|
540
|
+
"generic": {
|
|
541
|
+
"title": "Requisitos genéricos",
|
|
542
|
+
"note": "Funcionalidad cerrada, biometría, conversión, partes táctiles, conmutadores, repetición de teclas — mayormente territorio no web; una persona responde si alguno aplica."
|
|
543
|
+
},
|
|
544
|
+
"rtt": {
|
|
545
|
+
"title": "TIC que soporta comunicación bidireccional en tiempo real",
|
|
546
|
+
"note": "Aplica a productos con comunicación de voz/texto en tiempo real (RTT, relé, identificación de llamadas)."
|
|
547
|
+
},
|
|
548
|
+
"video_capabilities": {
|
|
549
|
+
"title": "TIC con capacidades de vídeo",
|
|
550
|
+
"note": "Aplica a productos que transmiten, convierten o graban vídeo con audio sincronizado."
|
|
551
|
+
},
|
|
552
|
+
"hardware": {
|
|
553
|
+
"title": "Hardware",
|
|
554
|
+
"note": "Requisitos de dispositivo físico (alcance, fuerza, partes táctiles, indicadores)."
|
|
555
|
+
},
|
|
556
|
+
"products_info": {
|
|
557
|
+
"title": "Información sobre productos y servicios",
|
|
558
|
+
"note": "La información de productos y servicios en forma digital debe ser accesible — aplica a cualquier producto con documentación pública."
|
|
559
|
+
},
|
|
560
|
+
"relay_emergency": {
|
|
561
|
+
"title": "TIC que proporciona acceso a servicios de relé o emergencias",
|
|
562
|
+
"note": "Aplica a servicios de relé y TIC de comunicación de emergencia."
|
|
563
|
+
}
|
|
564
|
+
}
|
|
524
565
|
}
|
|
525
566
|
}
|