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

> Source: <https://dev.to/amit_spitzer/the-tests-passed-on-all-107-wrong-ai-changes-here-is-what-caught-86-of-them-145c>
> Published: 2026-11-23 11:54:44+00:00

**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 the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

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](https://github.com/apex-engine-dev/apex-verify/issues/new/choose) and I will add it to the benchmark and credit you. The repo: [https://github.com/apex-engine-dev/apex-verify](https://github.com/apex-engine-dev/apex-verify)
