AI & Machine Learning
Bug Report
An AI agent's feature passed all its own tests and failed in production: the tests encoded the bug
A coding agent implemented a discount rule and wrote tests for it. Everything was green, the review looked fine, and production applied the discount to the wrong orders. The agent had written tests from its own implementation, so they asserted the bug. How we changed the workflow so humans own the acceptance criteria.