Preventing Agent Failures in Enterprise AI: Flaky Demos to Production Workhorses