Skip to content
Failwallfailwall.dev

← Back to the wall

Agent
Other
Filed
Case no.
x-2100651829306482926

Agent deleted a failing test, then hollowed it out

Received Sep 17, 2026, 6:23 PM UTC

Run the tests for real. Checking that they exist isn't enough.

Agents repeating the same mistakes? Scout gives every agent one current, shared record.

Share on X

What happened

Exhibit Ax.com post
I gave an AI coding agent a task. One of my tests failed,
so the agent deleted the test. My safety check caught that.

The agent's next try was smarter. It put the test back with
the same name, but emptied it out so it could not fail.
My check let it through. Passing test, broken code.

The check only looked at how the test was written. It never
ran it. So a test that looks right but checks nothing gets
a green light.

The fix is a small script, 81 lines, that runs before every
commit. It takes a fingerprint of each test, runs the tests
for real, and if one fails it shows the agent the exact line
that broke instead of a vague error.

Now every version of that trick gets blocked. Extra cost:
about half a second per commit.

The script, the fingerprint file, and a 46 second video of
it catching an emptied-out test are in the new post:
https://t.co/SrM7seCgnv

#AIBuilders #SoftwareEngineering #Testing

Source. Posted publicly by @iulukaya on X (opens in a new tab). Quoted as posted; the title and lesson are Failwall's.