Automata from Agent Traces: Failure and Next-Step Prediction | AIChainDay