Live planted-case evaluation

scripts/planted_benchmark.py --live ran three times on 2026-12-03 against Groq with qwen/qwen3.8-27b at reasoning effort low. Each run covers the 9 omission cases and the 6 repair cases of tests/data/planted/, with 5 runs per case, the real OCCT kernel and a 10 second pause between model runs. The committed offline run in evaluation.md uses scripted model replies and says nothing about a live model. These records say something about one model on cases that the repository author planted, and nothing about real designs.

RunFilesCodeModel requests
1report, recordmain before commit 0340206, repair prompt as first written205
2report, recordmain with the repair prompt changed (commit 0340206)177
3report, recordmain at commit 49eb312: the same repair prompt as run 2 and a changed omission prompt176

All three records stay. Run 1 is the first live result of the repair step, and it was poor.

Repair step

Run 1Run 2Run 3Optimizer, no modelNo AI
Proposals made0 of 2628 of 2828 of 2830 of 300 of 30
Hidden constraint met0 of 2624 of 28 [0.685, 0.943]22 of 28 [0.605, 0.897]20 of 30 [0.488, 0.807]0 of 30
Source case fixed on retest0 of 2617 of 28 [0.424, 0.764]21 of 28 [0.566, 0.873]30 of 30 [0.886, 1.000]0 of 30
Runs not scored4 (provider errors)2 (provider errors)2 (provider errors)00

In run 1, 25 of the 30 model runs ended as budget_exhausted after the 4 allowed model requests, 4 as provider errors and 1 as unsupported_claim. One traced run showed why. The model called describe_problem, whose content the first message already holds. It then wrote "0.8 mm" in its rationale. The number check accepts only numbers that appear in the cited stored results, and the stored gap reads 0.799999999999998, so the proposal was rejected and the retry found no request left. The check is unchanged.

The fix is in the prompt (src/tolerance_arena/agents/prompts/repair_proposer.md). It forbids describe_problem, asks for a rationale and a summary without any digit, and allows one corrected proposal inside the four requests. Eight RPP mutants pin each instruction.

Runs 2 and 3 used the same repair prompt, so the pair shows how much one prompt varies from run to run: the hidden constraint was met 24 and 22 times of 28, and the source case was fixed 17 and 21 times of 28. A difference of two to four runs of 28 is the size of the noise.

What runs 2 and 3 support:

  • Counts, as measured: 28 of 28 scored runs produced a proposal in each run. The hidden constraint was met in 24 and in 22 of them, and the source case was fixed in 17 and in 21.
  • No claim of a difference from the optimizer. The intervals for the hidden constraint overlap in both runs ([0.685, 0.943] and [0.605, 0.897] against [0.488, 0.807]).
  • The model fixes the source case less often than the optimizer (17 and 21 of 28 against 30 of 30). The design note asks for a small change, and the model follows it.

What they do not support:

  • Neither is a held-out measurement. Before run 2, versions of the new prompt ran 21 times live on the same six repair cases, so the prompt was tuned on the cases that runs 2 and 3 score.
  • They say nothing about designs that the repository author did not plant.

Omission analyst

The omission prompt changed once, between runs 2 and 3 (commit 49eb312): it now lists the summary words that the check rejects and says that a denial is rejected too. The check is unchanged. The code that parses and ranks the report did not change in any run.

Run 1Run 2Run 3RandomNo AI
Flipping contributor at rank 1 (variants)29 of 2929 of 29 [0.883, 1.000]28 of 28 [0.879, 1.000]15 of 30 [0.332, 0.668]0 of 30
Flip confirmed by the verifier (variants)18 of 2919 of 29 [0.473, 0.800]17 of 28 [0.424, 0.764]0 of 300 of 30
False alarm on negative cases0 of 150 of 15 [0.000, 0.203]0 of 14 [0.000, 0.215]15 of 150 of 15
Runs not scored113 (provider errors)00

On these 9 planted cases the model ranks the planted contributor first in every scored variant of all three runs, and random ranking does so in half. The prompt change left the rank-1 and false-alarm counts as they were. The verifier confirms the flip in about two thirds of the variants in each run. The model raises no false alarm on the negative cases, and random ranking raises one every time because it always names a contributor. The planted contributor is one of a short closed list, which makes rank 1 easier than it would be on an open problem.

Reproduce

GROQ_API_KEY=... .venv/bin/python scripts/planted_benchmark.py --live --max-calls 340 --pause-s 10 --kernel native

The command spends Groq quota (about 1 USD) and refuses to overwrite an existing record. The provider answers a Mullvad exit address with HTTP 403, so run it outside a VPN tunnel.