An agent optimizing for passing tests will find ways to pass them. If the tests were written after the implementation, they are likely testing what the implementation happens to do rather than what it should do.
The Factory Model: How Coding Agents Changed Software Engineering · Addy Osmani · 25 February 2026