An AI built exactly what we'd already ruled out in writing. How I decide when to fix the code, and when to start over.