cd /news/ai-agents/the-tests-passed-on-all-107-wrong-ai… · home › topics › ai-agents › article
[ARTICLE · art-174671] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

The tests passed on all 107 wrong AI changes. Here is what caught 86 of them

The maintainer of Apex verify, an open-source tool that checks AI-generated code changes against the original task text rather than the agent's own tests, released benchmark results showing it stopped 86 of 107 wrong changes (80%) that passed the projects' visible test suites. The tool has a separate model write checks from the task description, proves each check can fail on the old code, and scans for cheating such as deleted or skipped tests; on 93 correct changes it wrongly flagged 10 (11%), which the maintainer's manual audit reduced to roughly 4 in 100. The benchmark drew on 23 real open-source libraries with hidden upstream tests, and the maintainer notes 14 of the 107 wrong changes were still marked ready.

recommendation

Generate acceptance checks from the task text with a different model than the one that wrote the change, prove each check fails on the old code, and scan for deleted or skipped tests before trusting a green suite.

more in playbook: Evals and testing for LLM apps
by read2 min views2 publishedNov 23, 2026

An AI agent fixes a slug function. The project's own test passes. It says "done". It isn't: slugify("Hello, World!") comes back as hello-world!, and the task said "a clean URL slug".

I'm the maintainer of Apex verify, a small open-source tool for exactly this gap. You give it the change an AI made and the task you gave it. A different model writes checks from the task text (never from the agent's own tests), the tool proves each check can fail on the old code, then runs them next to your tests and a scan for cheating (deleted or skipped tests, a test script that cannot fail). The answer is ready, not ready or unknown, with the evidence, on a copy of your code.

npx --yes https://github.com/apex-engine-dev/apex-verify/releases/latest/download/apex-verify.tgz verify --demo

I built a benchmark from 23 real open-source libraries (jshttp, picomatch, slugify, HumanizeDuration and others). Each task is a real historical bug fix: the code before the fix, with the upstream test that the fix added kept hidden. Small Gemini models wrote 200 candidate changes, and I labelled each right or wrong with the hidden test.

107 wrong changes stopped
The project's tests + a cheating scan 0 (the visible tests passed on every change)
Apex verify (Gemini 3.1 Pro as the checker) 86 (80%)

On the good changes it wrongly stopped 10 of 93 (11%) by that hidden-test label. I then checked those 10 by hand: for 6, the change really did not do what the task text says (the upstream test was narrower than the task text), so the real checker-mistake rate is about 4 in 100. One reviewer did that audit, after seeing the numbers, so treat it as an estimate. The details and the evidence per change are in the repo. On 17 small projects the figures were about 65% stopped and 3% wrongly stopped.

It still misses things: 14 of the 107 wrong changes were called ready. It is not a proof of correctness; it raises the bar.

AfterAgent hook, run in a real session.cargo test and go test. Tests and checks run in a sandbox (macOS Seatbelt, Linux bubblewrap, Windows AppContainer), all tested in CI. Apache-2.0, one maintainer, one run per change, Gemini-written changes only. Everything is rerunnable: node benchmark/run-gate.mjs.

The most useful thing you can send me is a ready on a change that is wrong, or a not ready on one that is right. Open an issue and I will add it to the benchmark and credit you. The repo: https://github.com/apex-engine-dev/apex-verify

── more in #ai-agents 4 stories · sorted by recency
── more on @apex verify 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/the-tests-passed-on-…] indexed:0 read:2min 2026-11-23 · —