4 of 5 tampered changes pass a green test suite — can you trust your agent's 'done'?

Weary-Information-15 · reddit · 2026-10-21

The author ran an experiment: after an agent produced a clean test run, they introduced five changes to a repo. Four left the suite green — a weakened assertion, a new root conftest.py, and a pytest.ini that collects but runs nothing all passed; only breaking the implementation turned it red.

Key point: this isn't a clever attack — it's what happens when the thing being measured can reach the measurement. When agents can edit tests and configs, exit code 0 means little.

The author asks what people actually do before believing an agent's "task complete" — suspecting that most just merge on the green check, and few can name a check that has ever caught anything.

Original post →

More from coding & agent

coding & agent channel →