The gap between a demo-quality AI agent and one that ships to production is enormous. Here's what actually breaks — and how to fix it.