Diagnosis-Driven Automatic Repair for Agentic Workflow via Symbolic Inference

πŸ“… 2026-07-02
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
This work addresses the unreliability of large language model (LLM)-driven agent workflows, which stems from output nondeterminism, complex node dependencies, and tool heterogeneity, and proposes FlowFixerβ€”a novel framework that introduces symbolic reasoning into automated workflow repair. FlowFixer models execution traces symbolically to generate behavioral specifications, enabling precise fault localization and root cause identification, and dynamically synthesizes targeted repair patches. To reduce verification overhead, it incorporates a multidimensional pre-evaluation mechanism. Experimental evaluation on Dify, Coze, and n8n platforms demonstrates that FlowFixer achieves a repair success rate of 71.3%, outperforming existing methods by 11.9%–27.6%, and improves root cause analysis accuracy by 15.3%–38.8%.
πŸ“ Abstract
Platform-orchestrated agentic workflows have become a popular paradigm for developing LLM-based applications. However, their reliability remains a major challenge due to the uncertainty of LLM outputs, complex inter-node dependencies, and heterogeneous tool interactions. Existing agentic workflow optimization and agent enhancement methods primarily rely on trajectory-level feedback. Without explicitly identifying the underlying failure root causes, their resulting repair plans are often insufficiently targeted. We propose FlowFixer, a diagnosis-driven automated repair framework for agentic workflows. FlowFixer first transforms workflow executions into unified symbolic traces and performs symbolic inference to derive executable behavioral specifications that capture node correctness, temporal dependencies, and causal relationships. Based on specification verification, it conducts failure attribution and root cause analysis, and then generates targeted repair patches. To reduce verification costs, FlowFixer further employs a multi-dimensional pre-execution assessment to filter infeasible repairs before dynamic verification. We evaluate FlowFixer on workflow failures collected from three popular development platforms: Dify, Coze and n8n. Results show that FlowFixer achieves a repair success rate of 71.3%, outperforming state-of-the-art baselines by 11.9% to 27.6%. It also improves failure attribution accuracy by 4.8% to 33.1% and root cause analysis accuracy by 15.3% to 38.8%. This work offers a new perspective on reliable diagnosis and repair of agentic workflows through symbolic modeling and inference.
Problem

Research questions and friction points this paper is trying to address.

agentic workflow
reliability
failure root cause
symbolic inference
automatic repair
Innovation

Methods, ideas, or system contributions that make the work stand out.

symbolic inference
agentic workflow
automatic repair
failure attribution
root cause analysis
X
Xuyan Ma
State Key Laboratory of Complex System Modeling and Simulation Technology, Institute of Software, Chinese Academy of Sciences, and University of Chinese Academy of Sciences, Beijing, China
Yawen Wang
Yawen Wang
The University of Texas at Arlington
Gear DynamicsNoise and Vibration
Junjie Wang
Junjie Wang
Institute of Software, Chinese Academy of Sciences
Software Engineering
Xiaofei Xie
Xiaofei Xie
Singapore Management University
Software EngineeringLoop AnalysisTestingDeep Learning
B
Boyu Wu
State Key Laboratory of Complex System Modeling and Simulation Technology, Institute of Software, Chinese Academy of Sciences, and University of Chinese Academy of Sciences, Beijing, China
Mingyang Li
Mingyang Li
Associate Professor, Industrial and Management Systems Engineering, The University of South Florida
data sciencereliability and qualitysystem informaticscomplex systems modeling and optimizationcomputational intelligence
D
Dandan Wang
State Key Laboratory of Complex System Modeling and Simulation Technology, Institute of Software, Chinese Academy of Sciences, and University of Chinese Academy of Sciences, Beijing, China
Qing Wang
Qing Wang
Institute of Software Chinese Academy of Sciences
Software engineering