让AI诊断微服务故障更可靠,自动定位并修复推理错误
STAR: A Stage-attributed Triage and Repair framework for RCA Agents in Microservices

- 将故障诊断流程拆分为四个阶段,精准定位出错环节
- 修复成功率超90%,多数错误在1~2次重试内纠正
- 适合需要高可靠性的生产环境AI运维系统使用
基于大语言模型的根因分析(RCA)代理已成为微服务AIOps中故障诊断的前沿范式。然而其可靠性仍较脆弱:早期证据收集、假设生成或因果分析中的错误会沿推理链传播,最终导致诊断失效。本文提出STAR框架——一种阶段可定位的诊断修复机制。STAR将RCA流程明确划分为四个结构化阶段:证据包(EP)、假设集(HS)、分析结构(AS)和决策报告(DR),将代理失败视为局部阶段性推理错误而非整体故障。基于LangGraph构建,实现阶段级审计、预算感知的快速/慢速路由、基于反事实候选评估的确定性阶段定位,以及阶段特异性修补与重播修复。在公开大规模基准和真实生产数据集上,使用两种RCA工作流和三种基础模型进行评估。结果表明,STAR在根因定位和故障类型分类上均持续优于强基线。此外,其能高精度识别关键错误阶段,在一到两次重播内修复大部分初始错误诊断,并显著受益于快速/慢速路由与反事实阶段评估。这些结果表明,显式建模故障发生位置是实现可调试、自修复的可信智能体系统的有效路径。
原文摘要 · Abstract (English)
LLM-based root cause analysis (RCA) agents have recently emerged as a promising paradigm for incident diagnosis in microservice AIOps. However, their reliability remains fragile: an error in early evidence collection, hypothesis formulation, or causal analysis can propagate through the reasoning trace and eventually corrupt the final diagnosis. In this paper, we present \textbf{STAR}, a \emph{Stage-attributed Triage and Repair} framework for repairing erroneous RCA traces. STAR explicitly decomposes an RCA workflow into four structured stages, namely \emph{Evidence Package} (EP), \emph{Hypothesis Set} (HS), \emph{Analysis Structure} (AS), and \emph{Decision Report} (DR), and treats agent failure as a stage-localizable reasoning bug rather than a monolithic end-to-end error. Built on top of LangGraph, STAR performs stage-wise auditing, budget-aware \emph{Fast/Slow Routing}, \emph{decisive stage localization via counterfactual candidate evaluation}, and stage-specific patch-and-replay repair. We evaluate STAR on a public large-scale benchmark and a real-world production dataset, using two RCA agent workflows and three foundation models. Experimental results show that STAR consistently improves both root cause localization and fault type classification over strong baselines. Moreover, STAR identifies the decisive faulty stage with high accuracy, repairs most initially incorrect traces within one or two replay rounds, and benefits substantially from both Fast/Slow Routing and counterfactual stage evaluation. These results suggest that explicitly modeling \emph{where} an RCA agent fails is an effective path toward reliable, debuggable, and self-repairing agentic RCA systems.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。