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