Deterministic checkers, not agent reviewers: 10 concurrency bugs caught in a week

No_Stay_2322 · reddit · 2026-12-02

The author tried the opposite of the common 'second agent reviews the first' setup on a small accounting app: agents can write anything, but approval is never an agent — it's a plain program that gives the same answer every run, since prompt rules are suggestions and stuck agents will tweak tests to go green.

The pipeline: a one-page plain-English spec (examples + rules) per feature, written by one agent and unchangeable by the coding agent; examples run as tests, rules go through a model checker and property tests; a mutation tool plants bugs on changed lines; complexity limits; and a counter of disabled checks that can't silently increase.

One week of results: 10 concurrency bugs found in already-reviewed code; 8 of 71 planted mistakes survived green merged agent changes; 3 changes shipped with nobody reading the code.

Limitation: checkers prove the code matches the spec, not that the spec is right.

Related event: Agentests: deterministic rule checking instead of AI reviewing AI(4 posts)→

Original post →

More from coding & agent

coding & agent channel →