🚀NEW COURSEVibe Coding AI Apps with Claude Code 🤖✨Enroll now
← All papers  /  Aug 27 – Aug 27, 2026
Agents · Data

Automata from agent traces

Free while signed in. Answers cite the passages they came from.

First page
Automata from agent traces
The curator’s take

Seonglae Cho and colleagues at Holistic AI collapse an entire corpus of agent traces into a single compact finite-state machine, then use that FSM as a substrate for both next-step and failure prediction.

Key points
01

One FSM per corpus, not per trace: Across twelve public datasets the induced machines are 7 to 43 states, replay held-out data at at least 0.997 fitness with near-identical topology across splits, and build in milliseconds.

02

Beats Agent Workflow Memory on next-step: FSM-state context outperforms AWM on every ground-truth-matched dataset, which is a direct hit on a well-known memory baseline.

03

Online failure monitoring from partial traces: Per-state behavioral features reach held-out AUROC up to 0.94, and a monitor ranks failing runs above passing ones early enough to trigger stopping before completion.

04

The harness shapes behavior more than the model: The headline claim for anyone doing agent engineering: behavioral topology is driven by the deployment harness, making this a model-agnostic structural primitive.

Abstract

LLM-based agents execute multi-step tasks, but their behavioral structure remains opaque: long unstructured traces resist the safety auditing and runtime monitoring that deployment requires. Existing approaches operate per-trace or success-only, so they miss the cross-run topology that links next-step and failure prediction. To recover that shared structure, we collapse an entire trace corpus into a single, compact finite-state machine (FSM) that serves as a structural substrate for the otherwise unpredictable behavior of LLM agents. Across twelve public datasets, the FSMs are compact (7-43 states), replay held-out data at >=0.997 fitness with near-identical topology across splits, and build in milliseconds. This substrate addresses both prediction goals. For next-step prediction, FSM-state context outperforms Agent Workflow Memory on every ground-truth-matched dataset. For failure prediction, per-state behavioral features reach held-out AUROC up to 0.94, and an online monitor ranks failing runs above passing ones from a partial trace, triggering early stopping well before completion. Behavioral topology thus appears shaped more by the deployment harness than by the LLM, providing a model-agnostic structural primitive for safety auditing and runtime monitoring.

Every Monday
Get next week’s papers.

The same picks and the same summaries, in your inbox. Free, and 176 issues deep.

Subscribe on Substack
Automata from agent traces | DAIR.AI Academy | DAIR.AI Academy