Lab studyAgents at work
A done-when checklist makes an agent check its own work. Correctness stayed the same
312 runs, 26 coding tasks, two executor models and three brief formats. What changed, what did not move, and what it cost.


All 8 failures in 312 runs arrived with a confident "done" report. No agent ever said it had failed.
What did change behaviour was one line: an explicit list of checks at the end of the brief. Without it, the mid-tier model finished without running anything in about a third of runs. With it, it verified in 52 of 52. Correctness didn't move, and the cost was about 1.6 times per run.
The setup: one agent writes a brief, a second does the work. We changed only the brief's format.
01The finding#
On small, self-contained coding tasks, brief format did not change correctness. It changed behaviour and cost.
A brief ending in "done when" checks made the mid-tier executor verify its work in every run: 52 of 52, against 33 of 52 and 34 of 52 for the other two formats. The small executor already verified in almost every run whatever the format, so for it the checklist added little except tokens.
02What to do with this#
Three rules if you brief an agent:
- If you want it to check its work, ask for the checks explicitly. A done-when list did it in 100% of runs, for the model that otherwise skipped verification about a third of the time. It cost about 1.6× per run and bought no extra correctness here, because the tasks were easy. Whether it pays depends on what an undetected wrong "done" costs you.
- Headings and structure alone do nothing. A brief with sections (goal, facts, constraints) matched plain prose on every metric, for both models. The effect came from the checks.
- Check that your acceptance test accepts every correct answer. Every Sonnet failure here came from one test that accepted a single escape form (T17, below). A test stricter than the written requirement can be the bug, not the agent.
03Results (all 312 runs)#
Tap a column for details.
26 synthetic tasks × 3 brief shapes × 2 models × 2 repeats. Low thinking effort. Each dot is one run.
The data as a table
| Model | Shape | n | Pass | False completions | Verified | Mean USD/run | Mean output tokens | Mean words |
|---|---|---|---|---|---|---|---|---|
| Haiku 5.5 | A prose | 52 | 51 | 1 | 51 | 0.0018 | 1,886 | 132 |
| Haiku 5.5 | B structured | 52 | 49 | 3 | 52 | 0.0017 | 1,827 | 130 |
| Haiku 5.5 | C done-when | 52 | 52 | 0 | 52 | 0.0023 | 2,416 | 147 |
| Sonnet 5.5 | A prose | 52 | 51 | 1 | 33 | 0.0186 | 827 | 132 |
| Sonnet 5.5 | B structured | 52 | 50 | 2 | 34 | 0.0170 | 771 | 130 |
| Sonnet 5.5 | C done-when | 52 | 51 | 1 | 52 | 0.0291 | 1,274 | 147 |
| Executor | Format | Pass | False completions | Verified | Unsupported claims | Mean turns | Mean output tokens | Mean USD/run | Mean brief words |
|---|---|---|---|---|---|---|---|---|---|
| Haiku 5.5 | A prose | 51/52 | 1 | 51/52 | 1 | 4.0 | 1,886 | 0.0018 | 132 |
| Haiku 5.5 | B structured | 49/52 | 3 | 52/52 | 0 | 4.0 | 1,827 | 0.0017 | 130 |
| Haiku 5.5 | C done-when | 52/52 | 0 | 52/52 | 0 | 4.4 | 2,416 | 0.0023 | 147 |
| Sonnet 5.5 | A prose | 51/52 | 1 | 33/52 | 0 | 3.4 | 827 | 0.0186 | 132 |
| Sonnet 5.5 | B structured | 50/52 | 2 | 34/52 | 0 | 3.1 | 771 | 0.0170 | 130 |
| Sonnet 5.5 | C done-when | 51/52 | 1 | 52/52 | 0 | 4.4 | 1,274 | 0.0291 | 147 |
Every one of the 8 failures was also a false completion. No executor ever reported that it had failed.
Excluding task T17 (below), Sonnet passes 50 of 50 in every format with 0 false completions. Haiku is unchanged (49/50, 47/50, 50/50; false completions 1, 3, 0).
Total cost of all runs: USD 3.67 (Haiku USD 0.30, Sonnet USD 3.37).
The interactive figure below lets you switch metric, model, and whether T17 is included.
What the numbers say
- Correctness did not move. Pass rates are 94 to 100% in every cell. Haiku shows a direction (0 false completions with C vs 4 across A and B) but at this sample size it can't be told apart from chance (Fisher exact test, p ≈ 0.30). All 4 of those Haiku failures come from two tasks (T06, T19).
- Verification moved, for the mid-tier model only. With prose or structured briefs, Sonnet finished without running anything in about a third of runs (19 of 52 and 18 of 52) and still passed, because the tasks were small enough to get right by reading. With done-when checks it verified every time. Haiku verified in 155 of 156 runs regardless of format.
- Structure alone did nothing measurable. B (headings, no checks) matched A on every metric for both models. The effect comes from the checks, not the headings.
- The cost of verifying. For Sonnet, C cost 1.56× A per run (+USD 0.0105) and 1.71× B, driven by about one extra turn and 50% more output tokens. For Haiku, C cost 1.28× A, which in absolute terms is USD 0.0005 per run.
- Length doesn't explain it. With word count as a covariate, the C effect on Sonnet verification stays at +37 percentage points (without: +37), and length itself contributes about 0 (-1.7 points per 100 words). On cost, C adds about USD 0.009 per Sonnet run beyond what its length explains.
- Self-reports were honest here. Only 1 of 312 reports claimed a check the log didn't show (Haiku, prose brief).
04The T17 defect#
All 4 Sonnet failures are on one task, T17, and one check. The task asks for HTML output with the apostrophe escaped. The hidden test accepts only ', the exact form Python's html.escape produces [2]. But ' is an equally valid escape of the same character in HTML [3], and the spec doesn't ask for one form over the other. Sonnet wrote its own escaping with ' and was marked wrong. Haiku called html.escape and passed. So T17 measures which library a model reaches for, not whether the output is correct.
We report results with and without T17, flag it as a task defect, and did not change the test after seeing results, because editing a test in response to the outcome is exactly what you shouldn't do. The defect is itself a small case of what this study is about: a hidden acceptance check stricter than the written requirement.
05How we ran it#
Skippable if you only want the results.
- Tasks. 26 synthetic Python tasks (small scripts and CSV jobs, a few files each), written for this study. Each has 2 to 4 planted constraints (an ordering rule, a prerequisite, a file that must not be touched) and a hidden acceptance test the executor never sees. 20 are the original set; 6 are a harder set built after the first 20 proved easy for both models.
- Planner. One fixed model (Claude Sonnet 5.5, low effort) writes three briefs per task from the full spec, without seeing the hidden test. Briefs are generated once and reused, so within a task only the format varies. Length is matched across formats within 15%.
- Three formats. A, prose: a free paragraph. B, structured: headed sections (goal, facts, constraints, non-goals). C, done-when: B plus an explicit list of checks the executor must run and report on before finishing.
- Executors. Claude Haiku 5.5 and Claude Sonnet 5.5, low thinking effort, output cap of 16,000 tokens. A run that hit the cap or returned no text would have been excluded; none were.
- Environment. Each run gets a fresh copy of the workspace and four tools (list files, read, write, run Python in a sandbox with no network) plus a "finish" call with a report. The hidden test runs after the executor finishes.
- Repeats. 2 per cell. These models take no temperature setting, so a repeat is an independent resample. 26 tasks × 3 formats × 2 models × 2 repeats = 312 runs.
- Metrics. Pass: the hidden test passes. False completion: the executor said done and the test failed. Verified: the executor actually ran code to check its work, read from the tool log, not from its own report. Unsupported check claim: the report claims a check the log doesn't show. Plus turns, tokens and USD per run at list prices (USD 0.10 / USD 0.50 per million input/output tokens for Haiku 5.5, USD 2 / USD 10 for Sonnet 5.5) [1].
- Length. C briefs are longer (mean 147 words vs 130 to 132), because the checklist is the treatment. We logged word count per run and report effects with and without it as a covariate.
06Limitations#
- Small synthetic tasks. Each fits in a few files and a few turns (mean 3 to 4.4). Both models nearly always succeed, leaving little room for a brief to change correctness. This is a ceiling, not evidence that brief format never matters. A follow-up on long, interrupted tasks is under way.
- Two repeats per cell, 52 runs per cell. Enough to see the verification gap (33/52 vs 52/52), not enough to detect small differences in false completions.
- Two models from one vendor, both at low thinking effort. Other providers, effort settings, or human-written briefs may differ.
- One planner model wrote every brief. A different planner could write different A, B and C briefs.
- Task-set quality. One known defective test (T17). Reference solutions are stored for 22 of 26 tasks; for T01 to T04 the reference check was run when the tasks were built but the files weren't kept.
- "Verified" means the executor ran code before finishing. It doesn't judge whether that code was a good test.
07Reproducibility#
- Per-run data:
exp001a.csv, 312 rows, one per run. Columns: run_id, ts, task, shape, model, repeat, brief_words, invalid, pass, claimed_done, false_completion, checks_ran, n_checks_ran, unsupported_check_claim, turns, input_tokens, output_tokens, cache_read_tokens, usd, prompt_hash. - Prompt hashes: 78 distinct (26 tasks × 3 formats); each run records the hash of the exact brief it received.
- Harness: standard-library Python, direct model API calls, a fresh workspace per run, network denied for executed code, one JSON log line per run with the full tool log.
- Settings: effort low, max output 16,000 tokens, seeds 0 and 1, model strings as logged in the CSV.
Sources and notes
- Anthropic, model pricing (prices as checked 27 Oct 2026)platform.claude.com
- Python documentation, html.escapedocs.python.org
- WHATWG HTML Living Standard, character referenceshtml.spec.whatwg.org
Tell us about your hardest process.
This blog is written by the U2AI engineers who build and run AI systems inside organisations. 30 minutes with a senior engineer, and by the end you will know whether there is a project here, its scope, and the first step.
The next poster, by email
One article and one Lab study a month. No ads. One-click unsubscribe.
We sent a confirmation link. You are subscribed only after you click it.