If the same agent that wrote the code also decides whether it is ready, the outcome is predictable: almost always approved. Not out of bad faith, by construction.
Whoever wrote it holds the mental model of what they meant to do. When reviewing, they compare the code against the intention, not the result. The question “does this work?” becomes “is this how I imagined it?”, and the answer is yes, because they wrote it.
Worse: the same model has an incentive to finish. Saying “done” closes the task; saying “not yet” opens more work. Without role separation, the short path wins.
SCORE=100.0 THRESHOLD=85.0 GATE=passed
SCORE=60.0 THRESHOLD=85.0 GATE=failed
GAPS=["pytest: exit code 1, expected 0"]
The same loop, the same code, two different answers because the second round had a deliberately broken test. The critic did not know that, it just measured.
See the AI Test Loop skill See all skills
Want this wired into your project? Guided setup from R$ 1.500, with the first cycle run together.
The 15 chapters of O agente que não mente (ebook) are these texts, in order: PDF in English and Portuguese, R$ 37,00, instant delivery.
Sent when I publish, together with the free skill used here. No spam, one-click unsubscribe.
I am also here: Portfolio · LifeLog (personal blog) · X