File size: 3,359 Bytes
8b99f6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
license: "mit"
language:
- en
pretty_name: "Accessibility Fix"
tags:
- benchmark
- llm-evaluation
- ai-benchmark
- model-evaluation
- evals
- grading
- accessibility
- a11y
- wcag
- openrouter
- openai
- mcp
- typescript
- agent-benchmark
task_categories:
- text-generation
size_categories:
- n<1K
configs:
- config_name: default
  data_files:
  - split: test
    path: data/tasks.jsonl
---

# Accessibility Fix

Fix a broken page so keyboard, screen-reader and contrast checks pass.

## What it measures

Whether a fixed HTML page really repairs injected keyboard, screen-reader, and contrast defects without deleting or hiding content.

Category: `coding`. Status: `alpha`.

## How to run

```console
$ npx benchmark-accessibility-fix list
$ npx benchmark-accessibility-fix run --model <model-id> --provider openrouter
$ npx benchmark-accessibility-fix score results.json
```

`--provider mock` runs the whole benchmark offline with no keys. Real models run
through OpenRouter (`OPENROUTER_API_KEY`) or any OpenAI-compatible base URL
(`OPENAI_BASE_URL`, `OPENAI_API_KEY`).

## Data fields

`data/tasks.jsonl` holds 40 tasks, one JSON object per line
(kinds: 40 single).

| field | type |
|---|---|
| `id` | string |
| `kind` | string |
| `prompt` | string |
| `expected` | string |
| `metadata` | object |

## Provenance

# Accessibility Fix provenance

This file is generated from the benchmark definition.

## Synthetic accessibility fixtures

- Kind: `synthetic`
- URL: https://github.com/pooriaarab/benchmark-accessibility-fix/blob/main/scripts/gen-tasks.mjs
- Licence: `MIT`
- Retrieved: 2026-10-16T00:00:00.000Z
- How to get it: Run `npm run generate:tasks` (or `node scripts/gen-tasks.mjs --seed 20261015` after `npm run build`) from the repository root. The generator grades every reference page with the built package and re-draws until it scores 1. A hidden split uses another seed: `node scripts/gen-tasks.mjs --seed <n> --split hidden --out <path>`; hidden files use a11yh- ids and stay out of git and npm.
- Contamination notes: Public tasks use seed 20261015. Treat them as possibly in training data; use a separately seeded hidden split for final comparisons.
- Refresh: Change the seed, run the generator, and review the JSONL diff.


## Grader

Deterministic static analysis of the fixed HTML: ten WCAG-cited checks score defects fixed, minus regressions, content loss, element removal, and hiding abuse. Model judging is off.

## Limitations

This dataset contains only the public task split (40 tasks).
Hidden evaluation splits use a private seed and are deliberately not part of
this dataset. Source kinds: synthetic. These are evaluation prompts
for the `benchmark-accessibility-fix` benchmark, not training data; scoring requires the package's
deterministic grader. See PROVENANCE.md for contamination notes.

## Citation

```bibtex
@misc{benchmark_accessibility_fix,
  author = {Pooria Arab},
  title = {Accessibility Fix task data},
  year = {2026},
  url = {https://github.com/pooriaarab/benchmark-accessibility-fix}
}
```

## Links

- npm: https://www.npmjs.com/package/benchmark-accessibility-fix
- GitHub: https://github.com/pooriaarab/benchmark-accessibility-fix
- Leaderboard: https://aibenchmarkindex.com/benchmarks/benchmark-accessibility-fix
- Dataset: https://huggingface.co/datasets/pooria/benchmark-accessibility-fix