arXiv:2610.08622cs.NIOct 2026

Manuscript Offprint

arXiv:2610.08622

Agentic RCA for Internet-Scale Services Using Constrained Creativity

Sayan Sinha, Vipul Harsh, B. Aditya Prakash, Vyas Sekar, Hui Zhang

Abstract

System administrators of Internet-scale services need to resolve failure incidents to maintain reliability of such services. Ideally, we want a troubleshooting system to be: (1) expressive to known and unknown incidents with high accuracy; (2) cost efficient at scale; (3) explainable to provide actionable insights operators can act on; and (4) entail low effort from the operators. Unfortunately, most existing systems, including emerging LLM-assisted agentic workflows and structured frameworks for authoring diverse RCA algorithms fall short of achieving all four requirements. We present E4, a novel agentic system for troubleshooting for Internet-scale services. E4 embodies the paradigm of constrained creativity that combines the best of LLM-assisted automation and exploration with the explainability and efficiency of a structured approach. Instead of allowing an LLM agent to write arbitrary code or generate arbitrary responses, we provide the agent a restricted DSL to generate its response via simple loop-free data flow programs. This DSL, equipped with high level operators for troubleshooting, makes E4's output accurate, verifiable and explainable. On a mix of synthetic and real-world workloads, E4 achieves up to 62% better accuracy compared to state-of-the-art solutions, while providing more explainable responses at up to 12×12\times reduced cost.

1 Introduction

Modern Internet services handle millions of clients in diverse and heterogeneous Internet conditions today. Providers running such services care about key performance indicators or KPIs (e.g., web page load time, latency, buffering) affecting user experience. To this end, they constantly monitor and troubleshoot their systems to track and optimize these KPIs. Given the dynamic operating environment and heterogeneity of clients, drops in KPIs are the norm, not the exception. When such KPI-impacting incidents occur, operators need root cause analysis or troubleshooting workflows to identify what caused the incident and initiate mitigations.

Figure

Figure 1: E4 achieves higher diagnostic accuracy at lower cost than the evaluated agent-based RCA approaches across four datasets. Moreover, it produces more explainable analysis pipelines than the baselines.

While manually navigating dashboards and issuing queries may have sufficed in small deployments, at scale, automation of incident diagnosis is critical. In this regard, the community has responded with many solutions including specialized signature-based and ML algorithms (e.g., [17, 27, 46]) and high-level frameworks for enable analysts to express their hypothesis (e.g., [26, 41, 59]). More recently, there is significant interest in LLM-assisted agentic workflows (e.g., [12, 54, 66]).

Ideally, analysts want a root cause analysis system that is:

  • expressive to cover a wide range of known and unknown incidents with high accuracy.

  • efficient in terms of the cost to process and diagnose incidents at scale.

  • explainable so that they have actionable and understandable insights to act on the diagnosis; and

• entail low effort to use.

Unfortunately, existing solutions fail to simultaneously achieve all of these properties. Classical signature-based systems and ML algorithms can be efficient and explainable. However, they lack the expressivity over diverse and future incidents. Using a framework to author flexible data analysis workflows can in theory be expressive and explainable. However, it requires significant effort to design and for analysts to learn to write new capabilities. LLM-assisted agentic systems have the potential to be expressive given the code generation and in-built world knowledge. Unfortunately, they are also prone to inaccuracies, hallucinations, and unverified logic, and can produce answers that are not explainable. Furthermore, LLM-based workflows can be inefficient in terms of the number of steps/tokens taken and data processing costs.

We present E4, an agentic system for root causing incidents in Internet-scale services that demonstrates it is possible to simultaneously achieve all four requirements. Our work builds on constrained creativity [56], a recently proposed design paradigm for agents in systems operations. Instead of having an LLM generate arbitrary code or explore arbitrary hypotheses, we constrain the creativity of the LLM to only produce programs in a structured functional form using a specific DSL. Domain experts can provide an initial library of operators and diagnostic workflows expressed as dataflow DAGs for different kinds of incidents that may occur. The agentic system still has the freedom to reason when its library or playbooks are insufficient and dynamically create new operators and DAGs. Figure 1 previews our results: E4 combines higher average diagnostic accuracy with lower average cost than the evaluated baselines.

There are three key challenges to translate this high-level idea into practice( §§ 4): (1) bootstrapping the operator library for a new domain; (2) resolving a new incident efficiently and explainably; and (3) evolving the operator library to tackle future issues. For (1), rather than use a generic domain- and deployment-agnostic library, we develop an effective heuristic to agentically adapt to the available telemetry types and data fields in a new deployment. For (2), rather than use a naive spray-and-pray approach and launching multiple parallel agents, we employ a diagnostic approach that runs analysis via progressive stages of expressivity, moving to the next stage only if the previous stage was insufficient. Finally, for (3), rather than naively allowing the agent to arbitrarily extend the operator library, we explicitly gate the admission of new operators based on their demonstrable utility to explain novel incidents.

We develop a practical end-to-end prototype of E4. We develop an initial library of core operators and example playbooks for common incident types. We design a systematic methodology for hypothesis generation, pruning, and scoring. We evaluate this prototype on a mix of real-world and synthetic incidents based on data from a large application analytics provider, including a small pilot study on real incidents. We find that E4 can be up to 62% more accurate than the strongest baseline agentic system in terms of identifying the root causes within the top-3 suggested leads, and 5.4×5.4\times cheaper on average, and up to 12×12\times cheaper, in terms of total analysis cost. We run a number of factor analysis studies and find that the use of the abstraction in constrained creativity is

(3) Third party services: CDN, Host, DNS, Authenticator etc.

Figure

(1) Clients

Attributes: device, OS,

AppVersion, city, location etc.

(4) App backend

Attributes: url host, url path,

load balancer, microservices etc.

Figure 2: Internet-scale services entail complex interactions among clients, network-services, third party services, and backend components and can fail in various ways impacting user-experience.

the key contributor. We show that E4 can be effective even with lower reasoning models. We also demonstrate that E4 is flexible and that its effectiveness can be amplified via analyst hints and predefined playbooks.

References (64)