DEV Community

Cover image for I Planted 20 Bugs for Three AI Reviewers. Being Right Wasn't Enough.

I Planted 20 Bugs for Three AI Reviewers. Being Right Wasn't Enough.

Self-Correcting Systems on November 29, 2026

Reviewer Planted bugs caught (of 20) False alarms (of 20 clean functions) ChatGPT 20 0 Grok (possible contamination: same account as the k...
Collapse
 
iictp profile image
IICTP •

The get_nested example is the one that sold me on the evidence rule — DeepSeek's explanation was right, but the input it gave produced the same output from both versions, so there was nothing to catch. Scoring only the demonstrated input/output pair, and never the prose around it, is exactly the discipline that keeps a review honest. For round 2, with bugs that only show when two conditions meet, will a single demonstrating input still be enough, or will the scorer need a pair of inputs to pin the interaction down?

Collapse
 
kenielzep97 profile image
Self-Correcting Systems •

One input should still be enough, because the two conditions live inside the same input. Round 2 was built so many of the bugs need two conditions at once, and both still fit inside a single call. Where I think it breaks is code with state, where the bug only shows on the second call after the first one changed something. How would you score a catch that needs a sequence of calls instead of one input?

Collapse
 
sherotree profile image
Sherotree •

I'd keep llama3's "no answer" out of the catch-rate column. A local model that falls into swap and never returns is a harness failure, not 0/20 bugs caught, and folding it in makes a runtime problem look like weak review. Same for DeepSeek's unreadable row: that's a parse miss, which you already scored separately, and it should stay that way in the table. For round 2, I'd also be wary that one model planted every bug — the reviewers may be getting measured on that model's style of off-by-one, not on the ones a different author would write.

Collapse
 
kenielzep97 profile image
Self-Correcting Systems •

Agreed, and the table keeps it that way: llama3 shows "no answer," not 0 of 20, and DeepSeek's unreadable row was scored separately. The one planter worry is fair too. Round 2 has the same author, so it continues that author's column, and the next step is a test where a different model plants the bugs. Would you split a round between two authors, or give each author a round of their own?

Collapse
 
reidmarlow profile image
Reid Marlow •

For the input-domain gap, a useful next step would be to give each spec a small executable input validator and score a counterexample only if it passes that validator. Keep those validators separate from the planted fix: otherwise an overly narrow validator could hide a real bug by excluding the failing case.

Collapse
 
kenielzep97 profile image
Self-Correcting Systems •

That's the right fix for the gap I left open, and your warning is the part I'd have missed. If the same person writes the validator and the planted fix, they control what counts as a fair input. I'd want a different model to write the validators from the spec alone. Would you trust a validator written that way, or would you want people to review those too?

Collapse
 
reidmarlow profile image
Reid Marlow •

I'd have a person review the validator, especially the boundary cases. A second model may independently make the same assumption or narrow the domain in a different way. A small set of human-checked valid and invalid examples, including cases near each boundary, gives you something to test the validator against before it judges the reviewers.

Collapse
 
jaypateldev profile image
Jay Patel •

Really interesting experiment! It highlights an important point: catching bugs isn't enough if the reviewer can't explain why something is wrong. I'd argue confidence, context, and actionable feedback matter just as much as detection accuracy. AI code reviews need to build trust, not just flag issues.

Collapse
 
kenielzep97 profile image
Self-Correcting Systems •

Explanation matters for the person fixing the bug, I agree. The test is about the opposite risk though. DeepSeek explained get_nested perfectly and its own input still didn't show the bug, so a score that rewards explanation would have given it credit it didn't earn. How would you score explanations without rewarding the ones that sound right but aren't backed by anything?

Collapse
 
_komachi-jp profile image
Komachi | AI on a Budget •

Your rule that a catch has to be proven is the part I will steal first. I split my work so Claude Code writes and ChatGPT reviews with a short diff-only checklist, but my reviewer still mostly argues in words — your get_nested example, where DeepSeek's explanation was right and its test input still proved nothing, shows me exactly what to ask for instead: a failing input, not a paragraph. The local-model footnote hit home too: llama3 8B pushing an 8 GB MacBook Air into swap is a real data point as I shop for a used desktop to run a local model. Do you plan to keep the same 'prove it' scoring in round 2, or will longer functions force a different kind of evidence?

Collapse
 
kenielzep97 profile image
Self-Correcting Systems •

Same rule in round 2: a catch only counts if the failing input proves it, the functions just got longer. A failing input instead of a paragraph is exactly the ask, and it also makes your reviewer's answers cheaper to check. On the desktop, the swap was the lesson for me too, the model and everything else just didn't fit in 8 GB, so I'd want 16 GB or more. What are you hoping to run locally first?