An engineer documented how an LLM reviewer assigned inconsistent scores to the same rendered output, and investigated why. The pipeline converts Figma designs to React components, renders them, and uses a vision model to compare the render against the design. The model scores four categories—layout, colors, typography, spacing—each up to 0.25, and the component passes when the total reaches at least 0.85 along with several hard checks. If the component fails, a refinement agent edits the code and the process repeats.

Inconsistent scoring on identical input

The first sign of trouble appeared when a button passed on one refinement attempt and failed on the next—four times in a row. The author hashed the Secondary variant's code from each attempt and found that in two of those four cases the code was byte-for-byte identical. The refiner's changes_made list confirmed it had not touched that block, yet the score dropped anyway.

To isolate the source, the author scored a single render eight times. Before each call the inputs were hashed and asserted identical, ruling out upstream changes. A fixed seed (42) was already in place and no temperature was set. The reviewer at that time was gpt-5.6-terra at medium reasoning effort. Seven of the eight runs cleared 0.85 and one landed at 0.82—the same code, same screenshot, same design both passed and failed depending on which call was examined. The yes-or-no fields the reviewer returns—whether the schema is valid, whether the structure is complete—were identical on all eight runs.

Scoring one component three times

The author also ran one component through the full pipeline three times with the same design and pipeline code each time. The results show how the gate behaves in practice:

| Run | Trajectory | Final | Verdict |
|---|---|---|---|
| 1 | 0.72 → 0.58 → 0.85 | 0.85 | pass |
| 2 | 0.00 → 0.49 → 0.68 → 0.83 | 0.83 | fail |
| 3 | 0.75 → 0.79 → 0.85 | 0.85 | pass |

The loop stops at the first attempt that clears the gate, so a passing score tends to sit right at 0.85, inside the band the reviewer wanders around in. Most comparisons in the author's build log were between scores 0.03 to 0.09 apart, including the four button regressions that started this investigation, and none of them could be distinguished from the reviewer disagreeing with itself.

Verdict computed in code still inherits model variance

In an earlier post the author Derived the verdict in code so the model never gets to decide it. The current version compares llm_review_score against a constant. Every line in that property held steady across eight runs except one—the llm_review_score itself is the model inventing a number on the spot, and the code compares it with a constant. The verdict really is computed in code and it still inherits all of the model's variance through that one comparison. The loop also picks which attempt to keep by sorting on (review.passed, review.llm_review_score), and the noise reaches both parts of that key. The author had picked 0.85 because above it the output mostly looked good, and it remains the gate today.

Newer model shows tighter scoring

Since then every agent in the pipeline moved to gpt-6.1-sol at high reasoning effort, so the author ran the eight-call study again with that model. This time the spread was much smaller: gpt-6.1-sol at high effort scored 0.92 to 0.96 on the closed header (all 8/8 passed) and 0.90 to 0.93 on the open panel (all 8/8 passed). The older gpt-5.6-terra model showed a wider spread—0.10 on the open panel, 0.04 on the closed header. The author changed both the model and the effort level together, so it is unclear which change narrowed the spread.

When the author presented the wrong design to compare against—closed header's render against a third version's design—the reviewer scored 0.46 to 0.54 and failed all three runs. The top row of the comparison image shows the design and render, which are very close, so a steady score at or above 0.90 was the right answer.

Planted defects reveal what the reviewer notices

The refinement loop mostly deals with cases between a perfect render and a completely broken one. The author planted small defects—one Tailwind class changed in the generated styles each time: font-semibold to font-normal on nav labels, px-4 to px-10 on rows, a hidden class on the menu button, and so on. Each defect was rendered in the same sandbox as the real thing and scored three times by the reviewer.

Freshly rendered and clean versions scored 0.93 to 0.95. The 30 defect runs scored 0.82 to 0.90. The table below shows each render and how many of three runs failed the 0.85 gate:

| Render | Production scores | Runs failed |
|---|---|---|
| Closed header, clean | 0.93, 0.95, 0.94 | 0/3 |
| Grey header background | 0.84, 0.87, 0.89 | 1/3 |
| Wider side padding | 0.83, 0.83, 0.82 | 3/3 |
| Menu button missing | 0.84, 0.84, 0.83 | 3/3 |
| Shorter header | 0.84, 0.83, 0.83 | 3/3 |
| Open panel, clean | 0.93, 0.94, 0.93 | 0/3 |
| Red nav labels | 0.86, 0.89, 0.84 | 1/3 |
| Regular-weight nav labels | 0.89, 0.90, 0.88 | 0/3 |
| Larger item titles | 0.86, 0.87, 0.84 | 1/3 |
| Wider icon gap | 0.84, 0.84, 0.84 | 3/3 |
| Wider row padding | 0.89, 0.87, 0.89 | 0/3 |
| All-posts link missing | 0.89, 0.88, 0.86 | 0/3 |

The reviewer noticed every defect in the sense that the score went down. The gate failed all three runs on only 4 of the 10 defects, and never failed the regular-weight labels, wider row padding, or the missing "All blog posts" link. A defect costs 0.04 to 0.11 in score, and how much it costs does not follow how visible it is—the regular-weight labels are obvious in the image and cost about 0.04. On these runs a gate at 0.91 would have separated every clean run from every defect run, though the author took that forward without noticing the eight-run study had already scored the same clean panel at 0.90 once.

Planting known defects to test a judge is not new. A 2024 EMNLP paper (Doddapaneni and others) built 2,400 perturbed text answers across 22 kinds of perturbation and found evaluator LLMs "failed to identify quality drops in over 50% of cases on average." The result looks similar—the 0.85 gate let about half of defect runs through—but the cause differs: their judges did not notice the drop, while the author's reviewer's score went down every time and the threshold let it through. Their paper also found judges did better with a reference answer to compare against, which is how this reviewer works.

Yes-or-no checks scored in code

After the first study the author decided to stop asking the reviewer for a number, because its yes-or-no fields held steady. The author wrote 15 checks across the same four dimensions—every element present, text colors match, font weights match, padding matches, and so on—and asked gpt-6.1-sol with the same settings to answer each one true or false with a sentence of evidence. The score was computed in code with each dimension still worth 0.25.

Over eight runs on the open panel it scored exactly 0.50 every time, failing the same 7 of 15 checks. On the closed header it moved between 0.646 and 0.792, with two checks flipping between runs. The open panel's failures point at differences that are real but small: the render uses neutral black and grey text where the reference uses dark navy and blue-grey. The instructions say a visible difference is a fail, and on a render this close the checks fail anyway on differences too small to matter. So it caught only 4 of the 10 defects, the ones whose check had passed on the clean render. Two of those four—the regular-weight labels and the missing link—are defects the 0.85 gate never failed.

Cloudflare Clef as a secondary classifier

The author tried Cloudflare's Clef next, because it is built for this kind of classification and it is fast. It takes the two images, a sentence naming the version, and the same 15 checks, and returns a probability of yes for each check in 0.7 to 2.7 seconds, with the same answers on every call. It does not get the code or the Figma data, and any image over 300,000 pixels has to be scaled down to fit its window, so it sees the open panel at a much lower resolution than the reviewer does.

On the nav Clef was sure about three defects: the grey background, the missing menu button, and the red labels, at 0.05 to 0.16, where the lowest answer it gave any clean render was 0.476. It missed the rest, and on the missing link it was confidently wrong, at 0.858.

Four more components and the veto idea

From one nav the author had two ideas: raise the gate to 0.91, and fail a render whenever Clef answers any check below 0.2—that would be the Clef veto. The author wrote both down, then took four more components from the same Untitled UI kit (a desktop FAQ, a desktop hero, a call-to-action strip from a homepage, and the open mobile menu of a different nav) and planted 27 defects of the same kinds in them. The reviewer scored each clean render five times and each defect three times, and Clef scored each render once. The veto held up, and 0.91 turned out to be too high.

The hero scored 0.73 to 0.78 with nothing planted in it. The cards are flipped and stacked the wrong way round, and the reviewer said so: "The illustration differs substantially: the purple card slopes upward instead of downward." The older reviewer had passed this render at exactly 0.85, the new one fails it every time, and Clef answered every check above 0.55. A broken render underneath says nothing about the defects planted on top of it, so the author left the hero out of the table.

The table below covers every clean run from the current reviewer except the hero's (37, across the nav's two versions and the clean FAQ, CTA and menu) and the 60 defect runs on the FAQ, CTA and menu:

| Rule | Clean runs passed | Defect runs failed |
|---|---|---|
| Score ≥ 0.85 (today) | 37/37 | 32/60 |
| Score ≥ 0.91 | 36/37 | 47/60 |
| Score ≥ 0.85, Clef veto | 37/37 | 42/60 |
| Score ≥ 0.91, Clef veto | 36/37 | 53/60 |
| Score ≥ 0.88, Clef veto, picked afterwards | 37/37 | 45/60 |

The 0.91 gate fails the 0.90 clean run from the eight-run study, which is a good render failing on noise. The veto never fired on a clean render and caught 10 more defect runs at 0.85. It fired on 7 of the 20 defects, mostly changed colors and missing elements, including a red subheading that only moved the reviewer's score from 0.99 to 0.95 or 0.96. It missed both grey backgrounds, the FAQ's missing description, two of the three padding changes, and every change to a size, weight, or gap.

These scores are the reviewer's alone. The experiment does not run the TypeScript compiler, so the reviewer guesses ts_compiles and the hard checks in passed are not the ones production would apply.

What would change

On the nav, FAQ, CTA and menu, every defect run scored below every fresh clean run of the render it was planted in, one by only 0.02—less than the 0.03 to 0.04 the score moved on one clean render scored eight times. So the score reacted to every defect, by amounts one fixed gate cannot separate from its own noise. Clef's veto caught 6 of the 8 color changes and 3 of the 5 missing elements, and never fired on a clean render. With the gate at 0.88, which the author picked after seeing these scores, the two together fail 45 of the 60 defect runs on the FAQ, CTA and menu and pass all 37 clean runs, which come from seven renders.

The recommended changes are:

  • Run Clef on every version next to the reviewer, and fail the version when any check comes back under 0.2. The check that failed goes to the refiner as an issue, so it knows, for example, that the text colors are wrong.
  • Raise VALIDATION_PASS_THRESHOLD from 0.85 to 0.88. The lowest clean run in 37 was 0.90, on a panel that averaged 0.915 with a standard deviation of 0.009, and 0.88 is the highest gate more than three deviations below that average. The author picked it after seeing the data.
  • Keep the reviewer as the main judge. Clef missed the hero's flipped illustration, and every size, weight and gap change on the FAQ, CTA and menu.
  • Rerun the planted defects whenever the reviewer model changes. The author set 0.85 by eye on earlier models, and on the same closed header the old reviewer scored 0.95 to 0.99 where the new one scores 0.92 to 0.96.

What gets through 0.88 with the veto is all on the FAQ and the menu: bolder questions, a larger heading, larger footer links, regular-weight rows, and two grey backgrounds. The clean FAQ scored 0.99 on all five runs and its bolder questions 0.92 to 0.94, so the reviewer saw that change. One absolute gate cannot sit right for a component that starts at 0.99 and one whose clean runs dip to 0.90. Gating on the drop from a component's own clean score would need a known-good render to compare with, and while the pipeline is generating a component it does not have one.

Comparing two images might work better than scoring one. In MLLM-as-a-Judge (Chen and others, ICML 2024), multimodal judges "demonstrate remarkable human-like discernment in Pair Comparison" while their scores diverge from people's. The loop already has two renders to compare whenever it picks which attempt to keep, and the author has not tried asking the reviewer which one is closer to the design.

The other limits: five components from one free kit, and 37 defects the author designed, 7 of them on the hero and left out of the rules table. The author has not measured what the higher gate costs in extra refinement attempts.