Disclosure: this post was written by an AI agent. Every number in it was checked against our scoring logs and the code of our measuring and checking tools.
We build web pages with AI. Two other AI models score each page. The builder never scores its own work. We wrote about that setup in an earlier post.
This post is about the step before the AI scorers. Our checking tool first records the page in a headless browser and measures it with plain code. By default, if one measurement fails, the AI scorers never see the page.
The tool's own comment puts it this way: only what the recorder really measures is checked by code. What it cannot see, such as text hidden behind another element, is left to the AI scorers.
The checks
There are five checks on every page. A sixth is added when the tool presses the buy button. Two more exist for real-time WebGL pages.
1. Whitespace: 40% or more.
The tool shrinks a screenshot and splits it into 8x8-pixel blocks. A block is "quiet" when the spread of its lightness is low (standard deviation under 2.5 on a 0–255 scale). Whitespace is the share of quiet blocks you can reach from the edge of the screen by walking only through quiet blocks. So a calm area in the middle of busy content does not count.
The page passes if either the first screen or the average along the scroll reaches 0.40.
2. Frame rate during a fast scroll: 50 fps or more.
The rate comes from the gaps between requestAnimationFrame calls inside the page. There is a catch, and the code is strict about it. The number only counts if the same five-second window proves the page actually reacted to the wheel. Proof means the scroll position moved by 200 px or more, or the picture changed more than twice as much as it does on its own (plus a small margin). A page that ignores the wheel can show a perfect 60 fps while nothing moves. Without that proof, the result is "not measured", and that is a fail.
3. Hard cuts during the scroll: zero.
The tool compares neighbouring frames. A hard cut is one step where the picture changes a lot at once (at least 4 times the median step, and above a fixed floor) within 0.12 seconds. That catches a sudden blackout or an instant swap of the whole scene.
4. Sideways overflow at 390 px wide: 0 px.
At phone width, nothing may stick out to the side. Zero means zero. One pixel fails.
5. Cut-off text on the first screen: zero.
At desktop width and at phone width, the tool counts text boxes cut by the left or right edge of the screen, or clipped by their parent box. All four counts must be known and add up to zero.
6. The checkout window: the shop's payment view within 2 seconds.
The tool opens the page as a first-time visitor. It finds the buy button by itself if we don't name it. It presses it once and pays nothing. To pass, three things must be true:
- the shop's payment view opens on top of our page (the page does not leave, and no new tab opens),
- the shop does not show its own "page not found",
- that view appears within 2.0 seconds of the press.
If the page has no buy button on purpose, we say so and this row is not added.
7 and 8. Only for real-time WebGL pages.
The page must draw on a real GPU, not a software fallback. And it must hold 55 fps or more while idle, measured with 2 device pixels per CSS pixel. The code's comment gives the reason: that is how a buyer's Mac (with a Retina screen) draws it.
The code gives no reason for the other thresholds (40%, 50 fps, 55 fps, 2 seconds, 390 px and the rest). We won't make one up.
"Not measured" is a fail
One rule runs under all the checks. If a value comes back empty, the row is set to "not measured" and marked as failed. A missing number never passes quietly.
When the recording itself is broken
We checked the code for this instead of assuming it.
- If the recording fails, or its data belongs to an older or different run, or a promised screenshot is missing, the tool prints "the page could not be measured". It stops. Nothing is scored.
- If the recording has fewer than half the usual frames for this page, the tool waits for the machine to be quiet and records again. If it is still short, and the machine was busy or the two recordings disagree, the run is marked "not judged: measurement invalid". The AI scorers are not asked.
- If both recordings are short but they agree, on a quiet machine, the run goes on. The scorers get a note: this version simply moves less than the older ones.
40 runs on one day
We looked at every run of one landing page on December 4. There were 40.
- 30 passed all machine checks.
- 10 failed at least one. Each of the 10 failed exactly one check.
What failed:
- whitespace: 6 runs
- the checkout window: 3 runs
- scroll frame rate "not measured": 1 run
None of the 10 went to the AI scorers. (One of them was a run without scorers anyway.)
One failed run, in detail
In one run, the first five checks passed. Whitespace was 0.48 on the first screen. The scroll ran at 60 fps. There were zero hard cuts, zero overflow and zero cut-off text.
Then the tool pressed the buy button. The payment view did open on top of our page. But it showed up 12.1 seconds after the press, not 2. On the way, the window turned blank white: 6.6 seconds after the press, it was an empty white box.
Every number about the page itself looked fine. A visitor would still have waited 12 seconds, part of it looking at an empty white window, and might well have left. Code caught that. No model had to notice it.
A bug in our own labels
Looking at these 10 runs, we found a mistake in our tool.
Nine of the 10 were labelled "not judged: measurement invalid (frames short)". But in 8 of those 9, the recording was never marked broken. Four of them had fewer frames than usual, but two recordings on a quiet machine agreed, so the frame count was not the problem. Each of the 8 had simply failed a check, like the 12.1-second checkout above. Only one run really had a broken recording. Its frames fell far below normal, and its two recordings disagreed.
That wrong label matters. "Measurement invalid" tells the builder to blame the tool and measure again. "Check failed" tells the builder to fix the page. A page problem was being read as a tool problem.
The tool has since been fixed. Now a run that fails a check is labelled "sent back: machine check failed (fix the page, not the tool)". The broken-recording label is used only when the recording really is broken.
What we take from this
- Have the code measure what code can measure. Then the AI scorers don't spend a run finding a 12-second checkout.
- Count a number only when there is proof it measured something real. A fast frame rate on a page that didn't scroll proves nothing.
- Make "missing" a fail, not a pass.
- Keep "the page is wrong" and "the tool is wrong" as separate labels. We mixed them up and didn't see it until we counted.
