Submitted by Seonglae Cho 5 Automata from Agent Traces: Failure and Next-Step Prediction Holistic AI 2