Does it work?
This is the first run. We test Justified by Blackwood & Blake in three ways. Do agents build better with it? Does the review find the problems? And can we trust the measuring itself? A fuller run is planned, with two models and repeated runs. This page will be updated with it.
How we tested
Section titled “How we tested”Justified is built by AI agents, and so is this test. Each step below says which model or script did it.
Claude, working in Claude Code, wrote 20 everyday interface tasks: a sign-up form, a settings page, dialogs, a table, an upload, an undo, a command palette and more. It also wrote a list of 39 checks and the scripts that run the test. The list is based on WCAG 2.2 A and AA and on common usability sense, and it was written without looking at Justified’s rules.
A coding agent, Claude Sonnet in Claude Code, built each task five times, once in each setup, with no corrections:
- No guidance.
- shadcn alone.
- shadcn with a popular public set of agent guidelines.
- shadcn with Justified.
- shadcn with Justified’s theme and components too.
That makes 100 builds. Then four steps measured them:
- A browser script ran each build. It used the keyboard, opened dialogs, caused errors and set text to 200%, and saved screenshots and a record of what the browser saw.
- Browser tests used Justified’s own runtime helpers to decide what a browser can decide on its own: the page title, where focus goes in a dialog, status messages and where focus returns.
- Judge 1, Claude Opus, read each build’s code, the screenshots and the browser record, and marked the build against the 39 checks. It was not told which setup it was judging.
- Judge 2, Claude Fable, did the same with instructions of its own, written from the same list. After its verdicts it guessed which setup it had judged.
A script counts the checks the agent’s code broke, as judge 1 marked them. It only counts checks that every build of a task had to pass, so a setup that builds less is not rewarded.
Do agents build better with Justified?
Section titled “Do agents build better with Justified?”Yes, in this run. With Justified, agents broke fewer checks than in any other setup. Shadcn alone did not help: it did no better than no guidance. The agent also opened the Justified skill in all 40 builds that had it.
66%
fewer broken checks than with no guidance
69%
fewer than with shadcn alone
39%
fewer than with a popular public set of agent guidelines
15 of 20
tasks had fewer broken checks than with that public set (2 had more, 3 were equal)
| Setup | Checks broken |
|---|---|
| No guidance | 96 |
| shadcn alone | 107 |
| shadcn with a popular public set of agent guidelines | 54 |
| shadcn with Justified | 33 |
| shadcn with Justified's theme and components too | 33 |
It costs more. Builds with Justified used about twice as many input tokens as builds with the public set, and about 16% more money per build ($0.29 against $0.25, at API prices). We do not claim it saves cost.
The theme is measured on its own, because it is a property of the colours and not of the agent. With shadcn’s default theme, a field border against the page has a contrast of 1.26 to 1, and the text on a destructive button 3.97 to 1. With the Justified theme they are 3.7 to 1 and 6.57 to 1. WCAG asks for 3 to 1 for the borders of controls and 4.5 to 1 for text.
1.26 → 3.7
contrast of a field border against the page, default theme to Justified theme (WCAG asks for 3)
3.97 → 6.57
contrast of destructive button text, default theme to Justified theme (WCAG asks for 4.5)
The wording of the rules is tested too. Agents often read only a rule’s title, so Claude checked that every title still holds the condition the rule depends on, and sharpened the four that did not. Claude Opus also built four of the tasks with a shorter skill, with one line per rule. It broke as many checks as the full skill, 4 against 4. With the short skill the agent opened the full text of a rule more often (60 times against 11). It did not cost less: it cost about 14% more. Four tasks is a small test, so the fuller run will measure it again.
Details for the curious
- Each setup had 530 checks that applied to every build of a task. The broken counts are out of those 530.
- Against the public set, the sign test gives p = 0.002.
- Shadcn alone against no guidance is not a significant difference.
- The five setups were called A (no guidance), B (shadcn alone), C (shadcn and the public set), D (shadcn and the Justified skill) and D+ (D plus the theme and components).
- The two Justified setups both broke 33 checks, so the theme and components did not change the count in this run.
Does the review find the problems?
Section titled “Does the review find the problems?”Justified also has a review skill, justified-review, that reads code and points out what may break a rule. Claude Sonnet ran it on 44 of the builds. A script then compared what it said with the failures that both judges agreed on.
Where a Justified rule covers the problem, the review found 58% of the failures. Counting the times it pointed to a check you run in the app, it was 67%. Claude then sharpened the review skill, and Claude Sonnet ran it again on the same builds: 72%. That rise is small enough to be chance.
58%
of the failures that a rule covers were found by the review
72%
found, or pointed to a check you run in the app, with the sharpened review skill
The biggest misses are where no rule exists yet. One is where focus goes when the focused element is removed. The other is whether fields must be marked as required. These are now candidates for new rules. We publish the misses because they tell us what to write next.
Can we trust the measuring?
Section titled “Can we trust the measuring?”The failures are counted by an AI judge. If the judge is wrong, the numbers are worth nothing, so the judge is measured too, in two ways: against a second judge, and against the browser tests.
Judge 2, a different model with its own instructions, gave the same ranking of the setups and the same result on what was significant. The two judges agreed on 93.7% of the checks. The browser tests could try 172 of the checks. On those they agreed with judge 1 in 94% and with judge 2 in 93%.
93.7%
of checks where two different AI judges gave the same answer
94%
of 172 checks where the browser tests and judge 1 gave the same answer
96 of 100
builds where judge 2 guessed the setup right (chance is 25 in 100)
Two limits come with this. About 30% of single failures that one judge found were not found by the other, so compare setups, not single verdicts. And the judges can tell which setup they are reading. Judge 2 guessed right in 96 of 100 builds, from clues in the code itself, such as the style of the accessibility attributes. Renaming things does not hide them. A judge that knows the setup might judge it more kindly. That is why the browser tests matter: they cannot know the setup, and they still agree with the judges. They cover only what a browser can decide, so for the other checks this limit stands.
The browser tests also found a bug in Justified’s own page title helper, which missed the starter title “app”. It is fixed for the next release.
Details for the curious
- The agreement between the two judges is a Cohen’s kappa of 0.88. For the browser tests and judge 1 it is 0.87, and for the browser tests and judge 2 it is 0.84.
- The browser tests could not try 37 of 209 checks, because the check was not found on the page or the helper could not run on it.
- With judge 2’s counts the setups come in the same order, and the sign test against the public set gives p = 0.008.
- The share of single failures not shared by the second judge is about 30%.
- The review comparison used the 44 builds where the review had been run, and counts a failure only when both judges found it (120 failures).
What this does not show
Section titled “What this does not show”- It is one model, one run for each task, and 20 tasks. Another run could give other numbers.
- The judges read code, screenshots and a browser record. They do not use a screen reader or other assistive technology.
- Nothing here says a product is accessible or meets WCAG. It says how many of these checks the agent’s code broke.
A fuller run is planned, with two models and repeated runs. This page will be updated when it is done.
Automated checks find some problems, not all. Test with real people and assistive technology too.
More on the method: how each rule is tried, and how to use Justified with an AI agent.
Justified is an independent project. It is not affiliated with, sponsored or endorsed by the organisations whose guidance it cites. Read the full statement.
Apple is a trademark of Apple Inc., registered in the U.S. and other countries and regions.