Abstract
Root Cause Analysis (RCA) in modern cloud-native environments is a complex task, often requiring developers to navigate vast amounts of observability data and source code. This paper introduces PRAXIS, an agentic framework that automates RCA by traversing structured graphs of service and code dependencies. By utilizing a novel "Hammock Block" representation for code and a multi-phase agentic workflow, PRAXIS achieves a 73.9% accuracy rate in root-cause identification—a 3.1× improvement over standard ReAct-based agents—while significantly reducing computational overhead.
Introduction
Cloud outages are prohibitively expensive, with costs averaging $2 million per hour. While many operational issues can be mitigated through automated restarts or rollbacks, nearly a quarter of incidents stem from deep-seated bugs in code or configuration that require meticulous Root Cause Analysis (RCA).
Current Large Language Model (LLM) based approaches to automated RCA frequently suffer from two primary limitations:
- Premature Closure: Agents often stop at the first visible error log, failing to trace the fault to its true origin in downstream dependencies.
- Context Overload: Providing an entire codebase as unstructured text leads to "context rot" and hallucinations, as the model struggles to identify relevant logic within a massive "needle in a haystack" search space.
PRAXIS addresses these challenges by providing LLMs with a structured map of the system, forcing them to navigate dependencies explicitly rather than processing raw text.
The PRAXIS Framework
The core innovation of PRAXIS lies in its Agentic Structured Graph Traversal. The framework represents cloud applications using two interconnected graph layers:
Service Dependency Graph (SDG)
The SDG provides a high-level overview of microservice interactions and shared resources (e.g., databases, ConfigMaps). It serves as the initial map for identifying which services are involved in an incident.
Program Dependence Graph (PDG) and Hammock Blocks
For code-level analysis, PRAXIS constructs a PDG for each service. To make code manageable for LLMs, the framework introduces "Hammock Blocks". These blocks restructure raw source code into a hierarchical, single-entry-single-exit format. This abstraction allows the agent to navigate code at multiple levels of granularity, zooming from high-level modules down to specific statements as needed.
Agentic Workflow
The PRAXIS orchestrator manages a four-phase workflow designed to systematically narrow down the root cause:
- Data Gathering: The system collects "golden signals" (alerts), error traces, and logs from observability tools like Prometheus and Jaeger.
- Candidate Selection: An LLM analyzes the incident context and the SDG to select the most likely candidate microservices for investigation.
- RCA Decision-Making: This is the active traversal phase. The agent uses a specialized toolset—
Expand,Relate,Complete, andDiscard—to move through the PDG. A critical feature is Cross-SDG-PDG traversal: if code analysis in one service suggests a downstream failure, the agent pivots back to the SDG to investigate the next service in the chain. - Final Summary: The findings are consolidated into a structured, human-readable report detailing the primary failure and the evidence found.
Evaluation
The researchers evaluated PRAXIS using the Code-Cloud-RCA Benchmark, a new dataset of 30 real-world incident scenarios distilled from public post-mortems of companies like Monzo, Discord, and Cloudflare. These scenarios were injected into a live Kubernetes environment running a microservice demo.
Key Results
Comparing PRAXIS against state-of-the-art ReAct baselines across multiple LLMs yielded several insights:
- Superior Accuracy: PRAXIS achieved a 73.9% root-cause identification accuracy, representing a 2.1× to 3.1× increase over baselines.
- Efficiency Gains: By constraining the search space to graph nodes, PRAXIS reduced token consumption by 3.8× (from ~624k to ~166k tokens per successful diagnosis).
- Robust Reasoning: In complex "silent failure" scenarios—such as a retry loop causing latency without explicit error logs—PRAXIS was the only framework capable of pivoting from service-level symptoms to the specific database dependency at fault.
Conclusion
PRAXIS demonstrates that explicitly structuring an LLM’s reasoning process through graph traversal is significantly more effective for RCA than increasing context windows. By distinguishing between symptoms and primary failures and providing a multi-granularity view of code via Hammock Blocks, PRAXIS offers a scalable path toward fully automated incident response in cloud environments. Future work will focus on integrating dynamic program analysis and extending the framework to infrastructure-level incidents.
Summary updated