{"slug": "the-tests-passed-on-all-107-wrong-ai-changes-here-is-what-caught-86-of-them", "title": "The tests passed on all 107 wrong AI changes. Here is what caught 86 of them", "summary": "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.", "body_md": "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\".\n\nI'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.\n\n```\nnpx --yes https://github.com/apex-engine-dev/apex-verify/releases/latest/download/apex-verify.tgz verify --demo\n```\n\nI 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.\n\n| 107 wrong changes | stopped | \n|---|---|\n| The project's tests + a cheating scan | **0** (the visible tests passed on every change) | \n| **Apex verify** (Gemini 3.1 Pro as the checker) | **86 (80%)** | \n\nOn 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.\n\n**It still misses things:** 14 of the 107 wrong changes were called `ready`. It is not a proof of correctness; it raises the bar.\n\n`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.\nApache-2.0, one maintainer, one run per change, Gemini-written changes only. Everything is rerunnable: `node benchmark/run-gate.mjs`.\n\nThe 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)", "url": "https://wpnews.pro/news/the-tests-passed-on-all-107-wrong-ai-changes-here-is-what-caught-86-of-them", "canonical_source": "https://dev.to/amit_spitzer/the-tests-passed-on-all-107-wrong-ai-changes-here-is-what-caught-86-of-them-145c", "published_at": "2026-11-23 11:54:44+00:00", "updated_at": "2026-11-23 12:12:13.529781+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-safety", "large-language-models"], "entities": ["Apex verify", "Gemini", "Gemini 3.1 Pro", "jshttp", "picomatch", "slugify", "HumanizeDuration", "GitHub"], "also_reported_by": [], "takeaway": "A separate checker model writing tests from the task text, validated to fail on the old code, stopped 86 of 107 wrong AI changes (80%) that all passed the projects' own visible tests, while wrongly flagging about 4 in 100 correct changes.", "recommendation": {"advice": "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.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/the-tests-passed-on-all-107-wrong-ai-changes-here-is-what-caught-86-of-them", "markdown": "https://wpnews.pro/news/the-tests-passed-on-all-107-wrong-ai-changes-here-is-what-caught-86-of-them.md", "text": "https://wpnews.pro/news/the-tests-passed-on-all-107-wrong-ai-changes-here-is-what-caught-86-of-them.txt", "jsonld": "https://wpnews.pro/news/the-tests-passed-on-all-107-wrong-ai-changes-here-is-what-caught-86-of-them.jsonld"}}