# Screenshots Made It Worse: a local model repair test

Qwen3.8 27B wrote 17 Three.js programs from two prompts, then tried to repair
its own bugs. This pack has every first draft, every final file, the run
summaries, the test runner, the blind scoring key and the raw scores.

Measured 2026-12-04 on a Mac Studio (Apple M3 Ultra, 96 GB), macOS 15.7.4.
Ollama 0.40.16, Qwen3.8 27B at NVFP4, thinking off. No API spend.

## The short version

- **17 first drafts:** 9 obelisk scenes and 8 3D bar charts.
- **59 repair runs**, up to 3 rounds each, 177 model calls in the main test, plus 48 calls in the six-chart split.
- **Runtime report:** best for the scenes. Blind visual score 8.00/12, from
  6.67; 124/141 automated checks; 8 of 9 scenes runtime-clean.
- **Spec tests:** best for the bar charts. 124/128 checks, 5 of 8 charts perfect.
- **Screenshots in the repair call:** worst. 5.44/12, 100/128 checks, 22 tests
  broken, 3 black pages.
- **Keep best:** returns the highest-scoring version. It recovered 21 of the
  22 checks the screenshot arm broke.
- **Stop when green:** ends the loop when every check passes. On the 16-test
  suite it needed 13 to 15 calls instead of 24 per chart group.
- **Find, then fix:** a screenshot critic found the giant labels and missing
  labels that a text critic missed. The text critic found dead hover handlers
  that the image missed. A combined critique would have found 9 of 12 known
  defects, against 6 for either alone. On the six charts, the split scored
  83/96 (85 with keep-best), against 92 for the runtime report and 92 for the
  spec tests. It is a detector, not a universal repair.

## What is in the pack

- `first-drafts/` — the 17 initial HTML files and their generation metadata.
- `runs/` — one folder per scene and feedback arm: the summary, the final HTML,
  the test report and the label test, where it ran.
- `findfix/` — the detection critiques and the text-only repair from the
  screenshot critic's list.
- `scores/` — the blind key, the 36 blind scores, the rubric, the aggregate
  results and the scene-check table.
- `harness/` — the browser test runner, the repair loop, the analysis scripts
  and the two small scripts used in the article.
- `screenshots/` — the design figure, blind heatmap, trajectory chart,
  detection matrix, gallery, cover and selected renders.

The full per-round screenshots are not included, to keep the download small.
Every score and final file is included, so the results can be checked.

## Method

Two prompts. The scene prompt asks for a floating obsidian obelisk over a
reflecting pool, with glyph rings, dunes, pyramids, two moons, bloom and an
orbit camera. The bar chart prompt asks for 12 months of data with exact bar
sizes, positions, colors, text labels, a hover tooltip, shadows, damping and a
resize handler.

Each first draft branches into four repair arms. Every arm starts from the same
file and gets up to three rounds:

- **A, review only:** the task and the file, no run information.
- **B, runtime report:** console errors and warnings, failed requests, short
  geometry attributes, non-finite transforms and blank canvas textures.
- **C, report plus screenshot:** B plus a three-view screenshot.
- **D, report plus spec tests:** B plus the failing tests. Bar chart only.

The model replies with a short problem list and the full corrected file, or
with NO_CHANGES. Every new file goes back through headless Chrome.

The bar chart is scored by 16 automated tests. A 17th test, added after the
run, measures the on-screen height of every text label (6 to 64 px). It fails
charts seed-03 and seed-04, which the 16 tests passed. The scene
is scored by 16 automated checks and a 12-item visual checklist, scored blind
from 36 randomized sheets. One rater. The key is in `scores/`.

## Limits

- One model and one 4-bit build, on one machine.
- 9 scenes and 8 charts, one prompt each. Descriptive counts, no significance
  test.
- The same model repaired itself.
- The visual scores are one rater's judgment. The black pages are objective.
- The tests only cover what I encoded. Charts seed-03 and seed-04 passed all
  16 original tests with labels over the 64 px limit; seed-04 was hundreds of
  pixels tall.
- The scene is art. The bar chart is a stand-in for a spec.

## Reproduce the test runner

The test runner needs Node, Puppeteer and Chrome:

```bash
cd harness
NODE_PATH=/path/to/node_modules node harness.js http://localhost:8000/scene.html out p2
```

The repair loop used `repair.py` and `findfix.py`; both call the Ollama API at
`http://localhost:11434`. The prompts and all settings are in `prompts/` and
`first-drafts/*.meta.json`.

No API key, personal data or local path is included in this pack.
