AI SY System Rationale Why your LLM agent fails at 3 AM (and how state machines fix it) Why your LLM agent fails at 3 AM (and how state machines fix it)