Originally published on robatdasorvi.com
An AI agent's tests pass on your laptop and fail in CI because the two places aren't running the same thing. The gap usually falls into one of three buckets: different deployed code, model output that changes from run to run, or checks that got skipped and then counted as passes. Any of them can make a green local run mean a lot less than it looks.
On the morning of August 1, 2012, Knight Capital Group's trading system was supposed to be running one version of its order router on all eight servers. Seven had the new code. The eighth didn't, because nobody had copied the update to it. The new code reused a configuration flag that, on the old machine, still triggered a retired routine called Power Peg. The SEC found that Knight had no written procedure requiring a second technician to review the deployment.…