StepFly: Agentic Troubleshooting Guide Automation for Incident Diagnosis
Effective incident management in large-scale IT systems relies on troubleshooting guides (TSGs), but their manual execution is slow and error-prone. While recent advances in LLMs offer promise for automating incident management tasks, existing LLM-based solutions lack specialized support for several key challenges, including managing TSG quality issues, interpreting complex control flow, handling data-intensive queries, and exploiting execution parallelism. We first conducted an empirical study on 92 real-world TSGs, and, guided by our findings, we present , a novel end-to-end agentic framework for troubleshooting guide automation. Our approach features a three-stage workflow: the first stage provides a comprehensive guide together with a tool, TSG Mentor, to assist site reliability engineers (SREs) in improving TSG quality; the second stage performs offline preprocessing using LLMs to extract structured execution directed acyclic graphs (DAGs) from unstructured TSGs and to create dedicated Query Preparation Plugins (QPPs); and the third stage executes online using a DAG-guided scheduler-executor framework with a memory system to ensure correct workflow and support parallel execution of independent steps. Our empirical evaluation on a collection of real-world TSGs and incidents demonstrates that achieves a ∼94% success rate on GPT-4.1, outperforming baselines with less time and token consumption. Furthermore, it achieves a remarkable execution time reduction of 32.9% to 70.4% for parallelizable TSGs. Our code and sample data are publicly available at https://github.com/microsoft/StepFly.
Authors
- Shilin He (ORCID: https://orcid.org/0009-0004-9306-6865)
- S Khairou Khalid
- Yanjie Gao (ORCID: https://orcid.org/0000-0003-1899-8561)
- Saravan Rajmohan (ORCID: https://orcid.org/0000-0002-2019-213X)
- Si Qin (ORCID: https://orcid.org/0000-0002-0788-2099)
- Qingwei Lin (ORCID: https://orcid.org/0000-0003-2559-2383)
- Dongmei Zhang (ORCID: https://orcid.org/0000-0001-6302-0373)
- Sitaram Lanka
- Chaoyun Zhang
- Liqun Li
Institutions
- Microsoft (United States) (US)
- Microsoft Research Asia (China) (CN)
- Renmin University of China (CN)
- Tsinghua University (CN)
Publication Details
- Journal
- Proceedings of the ACM on software engineering.
- Published
- 2026-06-30
- DOI
- https://doi.org/10.1145/3808143
- Primary Topic
- Software System Performance and Reliability
- Type
- preprint
- Field-Weighted Citation Impact
- 0.00