Research on AI agents · Self-reporting & confidence · Open
Does letting a model run its own tests fix false 'done'?
The question
If a coding model writes tests, sees them run, and gets one chance to revise, does its 'done' become more honest?
What was done
I compared these conditions:
- Turn 1: write the code and the tests, say done or not done.
- Turn 2: see its own tests run, revise once, say done or not done.
What changed between them: whether the model saw its own tests run and could revise.
What stayed the same: 40 new jobs (26 clear, 14 ambiguous), hidden tests, six models at fixed settings.
What was found
| Measured | Count | Out of | Test set in advance |
|---|---|---|---|
| Said done but failed, before seeing own tests | 53 of 240 | job-model pairs | yes |
| Said done but failed, after running own tests and revising | 47 of 240 | job-model pairs | yes |
| Said done and passed, before | 186 of 240 | job-model pairs | yes |
| Said done and passed, after | 182 of 240 | job-model pairs | yes |
| Share of 'done' claims still false after running own tests | 47 of 229 | 'done' claims | yes |
What it indicates
After running its own tests and revising once, a model that said 'done' was still wrong 47 times in 229.
False 'done' went from 53 to 47 of 240 and good work from 186 to 182 of 240, which indicates that self-testing with one revision is not, on its own, a reliable check.
What it does not show
One revision only; longer loops were not tested.
Low-cost open models only.
14 of the 40 jobs were written to be ambiguous; on those, tests the model writes encode its own reading of the job.
How to repeat it
Give each model a coding job and ask for code plus its own unit tests and a 'done' or 'not done'. Run its tests, show it the output, let it revise once and answer again. Grade both answers with hidden tests and compare the two turns on the same jobs.