Measuring the Unmeasurable: Markov Chain Reliability for LLM Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large language model (LLM) agents increasingly operate as sequential software systems, but their reliability is often summarized by scalar benchmark metrics. Metrics such as pass@k, passk, and the reliability decay curve (RDC) are useful summaries, but they do not identify the success-time distribution being estimated, test whether traces support that distribution, or quantify finite-trace uncertainty. We present textscTraceToChain, a reproducible pipeline that fits agent execution traces to an absorbing discrete-time Markov chain (DTMC), hat M=(hat Q,hat R_oplus,hat R_ominus), with explicit diagnostics and uncertainty. The pipeline builds an automatic cluster taxonomy, estimates transitions with Laplace-smoothed maximum-likelihood estimation (MLE), checks fit with a composite Akaike information criterion (AIC) and Kolmogorov--Smirnov (KS) goodness-of-fit certificate, and reports Dirichlet-posterior credible intervals and non-parametric bootstrap intervals. We adapt classical reliability mathematics (Kemeny--Snell~citekemenysnell, Cheung~citecheung1980, Goel--Okumoto~citegoelokt) to agent traces. The resulting first-passage view reconciles metrics usually reported separately: pass@k, passk, and the RDC are projections of one success-time distribution. On seven controlled MAST-style frameworks with a strict 50/50 fit/test protocol, held-out empirical RDCs overlay their analytic counterparts with max L_∞RDC = 0.053 (median 0.048). A two-sample KS test on the first-passage cumulative distribution function (CDF) accepts the fitted chain with p>0.05 on 7/7 frameworks (min p = 0.78), and per-entry 95% posterior and bootstrap intervals agree to ≈!0.01 at the median.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 18 of its 41 references that are in the map. First posted on arXiv 27 Apr 2026.
Builds on
18 of 41 references.
Closest ancestors · 2
Same direction, newest first
- 2026Beyond pass@1: A Reliability Science Framework for Long-Horizon LLM Agents31 Mar
- 2025Why Do Multi-Agent LLM Systems Fail?17 Mar
Other references · 16
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
- 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,402
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,267
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
4 more
- 2017A storm is Coming: A Modern Probabilistic Model Checkercited by 34
- 2025ProbGuard: Proactive Runtime Monitoring for LLM Agent Safety via Probabilistic Predictioncited by 28
- 2024ULTRA-MC: A Unified Approach to Learning Mixtures of Markov Chains via Hitting Timescited by 2
- 2026TriCEGAR: A Trace-Driven Abstraction Mechanism for Agentic AIcited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026MemRiskBench: Trace-Aware Risk-Preserving Evaluation for Long-Horizon LLM Agents
- 2025Quantitative Certification of Agentic Tool Selection
- 2026TraceLab: Characterizing Coding Agent Workloads for LLM Serving
- 2026UniACE: A Unified Framework for Evaluating LLM Agentic Capabilities
- 2026Repair or Resample? Rethinking Failure Debugging in LLM Multi-Agent Systems
- 2025How Do LLMs Fail In Agentic Scenarios? A Qualitative Analysis of Success and Failure Scenarios of Various LLMs in Agentic Simulations
- 2026ReliabilityBench: Evaluating LLM Agent Reliability Under Production-Like Stress Conditions
- 2026DynamicMCPBench: A Trace-Grounded, Effect-Scored Benchmark for LLM Agents over Live MCP Servers