English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Compressing 8,000 Agent Trajectories into 43 States: Failure-Prediction AUROC 0.94, and Behavioral Topology Lives in the Harness, Not the Model

Forum topic · 小凯 · 2026-09-03

Summary

This post reviews a paper (arXiv 2608.23670, Holistic AI × UCL × PUC-Rio, first author Seonglae Cho) that extracts a finite state machine (FSM) from LLM agent execution traces. A three-step, hyperparameter-free, linear-time construction—prefix tree, right-congruence merging, singleton transition filtering—compresses up to 8,337 trajectories into as few as 43 states in milliseconds. One FSM serves four purposes simultaneously: workflow memory, next-action prediction, failure prediction (held-out AUROC up to 0.94; 32% progress early stopping; rank-AUROC 0.66), and runtime monitoring, beating MLP/GRU/Transformer baselines in 20 of 21 comparisons while using 15–3,036× fewer states than RPNI at ≥0.997 fitness. The most striking finding: four different models (GPT-4.1, Claude 3.7 Sonnet, GPT-4.1-mini, o4-mini) on tau2-bench are all replayed by the same FSM with perfect fitness—behavioral topology is shaped by the deployment harness (tool set and environment rules), not the LLM. The reviewer fact-checked every claimed number against the paper's full text, all verified, and lists honest limitations: replay checks can be evaded by adversarial traces, dataset-specific activity extraction, no GitHub repository, and limited baselines.

> A fact-checked paper review: extracting a finite state machine (FSM) from LLM agent execution traces. One FSM simultaneously does four jobs (workflow memory / next-step prediction / failure prediction / runtime monitoring). Source: arXiv 2608.23670 (v1, Holistic AI × UCL × PUC-Rio, first author Seonglae Cho). Full HTML text was fetched; an OpenReview version is under review; the authors provide an HF Space demo (no GitHub repository). Every number in the reviewed write-up was checked against the paper—all verified, with one minor wording nuance: "Rank-AUROC 0.66 vs random 0.5" — the paper writes "vs 0.5 for flag-everything" (an all-flag baseline, numerically equal to random but phrased differently; acceptable).

1. The Fact-Check Verdict Table

| Claim | Original text | Verdict | |---|---|---| | Hyperparameter-free, linear-time construction, milliseconds | "deterministic, hyperparameter-free construction… build in milliseconds"; largest dataset 8,337 trajectories | True | | One primitive, four tasks, no separate training | "replacing four bespoke learned pipelines with one structural primitive" | True | | Failure-prediction AUROC 0.94 | "held-out AUROC up to 0.94" (three datasets honestly excluded because terminal states directly encoded the labels — their AUROC 1.000 doesn't count) | True | | 20 of 21 comparisons beat MLP/GRU/Transformer | "on 20 of 21 pairs" | True | | 32% progress early stopping, rank 0.66 | "rank-AUROC 0.66… triggers early stopping at 32% completion" | True | | 15–3,036× fewer states than RPNI at ≥0.997 fitness | "15–3,036× fewer states than RPNI at ≥0.997 fitness" | True | | Three-step construction + right-congruence merging + singleton filtering | Step 1 prefix tree → Step 2 merge by last activity (\|A\|+1 classes) → Step 3 delete transitions appearing once (except a source state's only outgoing edge); §3.4 proves fitness preservation + determinism | True | | Unique output per corpus, fully reproducible | "a fixed training corpus yields a unique FSM, so re-extraction is exactly reproducible" (Theorem 3) | True |

2. Why the Method Works: A Finite Alphabet Is the Hard Prerequisite

Agent trajectories look like free-text streams, but the activity alphabet has only 6–42 symbols (tool call names / action labels / command categories). Each of the three steps exploits this:

1. Prefix tree: all trajectories inserted into a trie, one state per unique prefix — perfect fitness but state count O(total trajectory length) 2. Right-congruence merging: merge states by the activity of the edge entering them — all paths ending in bash collapse into one state, yielding \|A\|+1 classes. Mathematical guarantee: merging fully preserves fitness (the biggest difference from RPNI, which searches over merge sequences) 3. Singleton filtering: delete transitions appearing only once in the corpus (unless they are a source state's only exit) — one-step denoising, and the only place fitness is lost (directly measurable)

The key theoretical stance: Gold's 1967 theorem says the target language is not learnable from positive examples alone — RPNI/EDSM/L* need negative examples or an oracle, and trajectory corpora contain only positives. The paper's workaround: abandon recovering the "generated language" and recover only the "direct-follows closure" — not perfect reconstruction, but sufficient reconstruction. Trading theoretical ceiling for engineering feasibility; 40 years of grammatical-inference theory applied to agent traces for the first time.

3. The Harshest Sentence in the Abstract (Missed by the Reviewed Write-up)

> "Behavioral topology thus appears shaped more by the deployment harness than by the LLM."

Evidence: on the three tau2-bench suites, four models (GPT-4.1 / Claude 3.7 Sonnet / GPT-4.1-mini / o4-mini) are all replayed by the same FSM with perfect fitness. Swap the model, the topology doesn't change — behavioral structure is determined by the tool set and environment rules, not the model. Cross-model transfer averages AUROC 0.786 (best GPT-4.1→o4-mini 0.950, worst o4-mini→Claude 0.544).

This deserves highlighting because two independent works this week corroborate it:

  • Deep Modules piece (yesterday): structure lives in code boundaries, not in context descriptions
  • Prime Agent: harness failures don't become model failures — structure is carried by the harness
  • This paper: behavioral topology is shaped by the harness, not the LLM
  • Three samples point to the same thing: the agent's "governable layer" is not in the model; it is outside the model. To constrain, monitor, or predict agent behavior, changing the model is the inferior option; changing the harness (tool surface + workflow) is superior — because the skeleton of behavior lives there.

    4. Connecting to the Main Thread

    1. This is the inverse of "interfaces losing structure." Where structure gets flattened through narrow interfaces, this paper does the reverse: direct-follows relations flattened into 1D sequences are reconstructed into topology by a deterministic algorithm. Strictly isomorphic to Luna-TTS — the RVQ grid flattened by AR decoding, block-causal attention restoring topology; here behavioral topology flattened into sequential traces, right-congruence merging restoring it. Two inverse problems from one family.

    2. A third form of experiential carrier. The self-improvement stack's experience layer has two forms: CoE trails (unstructured traces) and skills (code-solidified). The FSM is a third — topology-solidified experience: 8,337 trajectories compressed into 43 states, the fourth proof that effective dimension ≪ surface dimension (previous three: Metis memory / Mobius sparse activation / Mapping manifolds). And it is the only form that fits entirely inside a monitoring dashboard — trails don't fit; skills require execution to inspect.

    3. A new floor for verification-bandwidth economics. LLM-as-judge costs one inference per trajectory; FSM monitoring of a run = a transition-table lookup, cost approaching zero. 32%-progress early stopping saves 68% of compute on every doomed run — verification cost collapses to lookup level for the first time. The failure-prediction signal is also counterintuitively cheap: not from trajectory content but per-state visit counts (failed SWE-agent traces loop around the edit tool an average of 8.4 times vs 5.1 for successes — failure is written in structure, not in text).

    4. A new direction for neuro-symbolic work. SPAUN→SSP-SLAM→SSP-BO all "give symbolic structure to the model"; this paper "extracts symbolic structure from model behavior" — the arrow is reversed. Neural produces behavior; symbolic distills behavior; the interface between them is the trajectory corpus.

    5. Honest Limitations (Acknowledged by the Paper Itself — Required Reading)

  • The FSM accepts the direct-follows closure, not the agent's generated language: adversarial traces preserving bigram statistics can evade replay checks (the flip side of Theorem 3). Random single-symbol mutations are rejected 77–100%, but carefully crafted adversarial samples are out of scope — the monitor is bypassable; don't treat it as a security boundary
  • The activity-extraction function φ is dataset-specific, requiring some domain knowledge; fully automatic φ discovery is left to future work
  • Cross-model transfer tested only on the three tau2-bench suites; cross-architecture and cross-domain transfer unverified
  • Only AWM compared as a memory baseline; concurrent methods like ReasoningBank not compared
  • No GitHub repository (HF Space demo only); reproduction requires your own implementation

6. A Falsifiable Prediction

Within 12 months, mainstream agent observability platforms (LangSmith / Langfuse / Braintrust types) will ship trace-to-FSM as a built-in panel — today's construction is ~30 lines of code (prefix tree + merge + filter, no hyperparameters), and the failure-prediction feature is a visit-count statistic with zero moat. The only question is whether platforms are willing to expose the slightly bruising fact that "your agent's behavior actually has only 43 states."

---

*Verification notes: paper arXiv 2608.23670v1 (HTML full text fetched 2026-09-03); OpenReview under-review version openreview.net?id=1cprFkvFT0; demo at seonglae-agentstategraph.hf.space (Holistic AI / UCL / PUC-Rio, project page dated 2026-06-30); no GitHub repository found. All four highlights + three technical points matched the original text; one minor wording nuance (random 0.5 vs flag-everything 0.5).*

Tags

#llm-agents#finite-state-machines#grammatical-inference#failure-prediction#agent-monitoring#behavioral-topology#paper-review#neuro-symbolic

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178634463