Multi-Agent Collaboration for AIOps Root Cause Analysis: Architecture, Agent Roles, and Workflow
This article presents a practical approach to AIOps root cause analysis built on multi-agent collaboration. It covers the layered architecture (data ingestion, evidence governance, agent orchestration, interaction, and evaluation), the responsibilities of the planner, metrics, logs, topology, decision, and reporting agents, the end-to-end workflow from alert to conclusion, the main engineering challenges around noisy data, model hallucination, orchestration, security, cost, and explainability, plus pseudocode, rollout advice, and evaluation metrics. Readers will learn how to structure an auditable, explainable analysis loop that reduces MTTD and MTTR.
1. Background and Problem Definition
As enterprise digital transformation moves into deeper waters, the complexity of business systems keeps rising. Microservices, containerization, and cloud-native architectures improve agility and elasticity, but they also make internal dependencies far more intricate. A single user request may traverse dozens or even hundreds of services, generating massive volumes of observability data along the way: metrics, logs, and traces.
Traditional incident handling, which is driven by alerts and stitched together manually by engineers, increasingly struggles to collect evidence, scope the impact, and localize the root cause within a short window.
Against this backdrop, AIOps has shifted from a nice-to-have experiment to a load-bearing capability. Root cause analysis is one of its core scenarios: the system must not only detect anomalies, but also explain them, correlate evidence, form verifiable root cause hypotheses, and recommend remediation.
The practice described here builds an AI system based on multi-agent collaboration that mirrors how a human expert team works. It performs automated, intelligent root cause analysis on IT incidents and pushes the analysis process and conclusions to operations engineers in an interactive, easy-to-follow form through an enterprise messaging and office collaboration platform, ultimately reducing mean time to detect (MTTD) and mean time to repair (MTTR).
It is worth stressing that multi-agent collaboration is not simply chaining several models together. It splits expert collaboration stages — planning, evidence collection, analysis, arbitration, and output — into roles with clear responsibilities, and uses shared evidence plus state machine orchestration to form a traceable, explainable, and evaluable analysis loop.
2. Overall Architecture and Data Foundation
The system is divided into five layers: data ingestion, evidence governance, agent collaboration, interaction and feedback, and evaluation loop.
The data ingestion layer takes in operational data sources in real time or near real time: metrics, logs, and traces. Metrics cover system, application, and business indicators. Logs cover application, system, and middleware logs, with emphasis on errors, alert-level entries, and their context. Traces show the full path of a request across microservices, including latency and status.
The evidence governance layer determines analysis quality. Raw data typically suffers from inconsistent timestamps, non-uniform service identifiers, drifting instance names, and noisy logs. The system performs unified time alignment, entity normalization, alert deduplication and clustering, and correlation ID mapping. Each piece of evidence is then wrapped as a standardized object containing source, time window, service or instance identifier, metric name or log pattern, summary, confidence, and related alert IDs. The goal is to let downstream agents work on a set of evidence that is citable and verifiable, rather than improvising over unconstrained text.
The agent collaboration layer uses a shared blackboard or message bus to maintain task state and the evidence set. Task planning, specialized analysis, decision arbitration, and final output all operate on the same analysis context. The interaction and feedback layer pushes structured cards, rich-text summaries, and action buttons through the office collaboration platform, supporting confirmation, supplementation, handoff to humans, and feedback. The evaluation loop layer records the plan, tool calls, evidence chain, conclusion, and final human judgment for each analysis, enabling continuous evaluation and improvement.
3. Agent Roles and Responsibilities
The task planning agent acts as the operations expert. It parses alert semantics, identifies affected services and time windows, produces an explicit investigation plan, and assigns tasks such as metrics search, log retrieval, and topology analysis to the appropriate agents. It also controls the analysis budget — for example, bounding the time range, service scope, and maximum number of evidence collection rounds — to prevent the analysis from sprawling indefinitely.
The metrics analysis agent specializes in time-series analysis. It detects abnormal fluctuations, change points, periodic deviations, and correlations across multiple metrics. It should reason with baselines, period-over-period comparisons, and linked business metrics rather than relying on a single metric threshold.
The log analysis agent is skilled in natural language processing and pattern extraction. It rapidly extracts error patterns, exception stacks, key events, and high-frequency templates from massive log volumes, and aggregates log clusters along time and instance dimensions.
The topology-aware agent understands system architecture and service dependencies. It analyzes fault propagation paths, upstream and downstream impact scope, and fault domains, helping distinguish the root cause service from affected services.
The analysis decision agent acts as the shift lead. It performs root cause reasoning over existing evidence using structured thinking. It does not fetch new data or change system state; it only appends reasoning logs. When evidence is missing or conflicting, or when the latest step made no progress, it decides whether to collect more evidence, reorder hypotheses, or issue an interim conclusion.
The final output agent acts as the operations expert, summarizing the alert event and the analysis process into a structured output: symptom description, impact scope, timeline, evidence chain, root cause hypothesis, confidence, remediation recommendations, and validation steps.
4. Collaboration Workflow: From Alert to Conclusion
A complete analysis usually starts from an alert. The system first deduplicates and clusters alerts, then assembles context including affected services, instances, time window, recent change events, and related business metrics. The task planning agent then generates the analysis plan, specifying which evidence is needed, which roles execute it, and what the timeout and termination conditions are.
In the parallel evidence collection stage, the metrics, log, and topology agents execute their tasks and write evidence to the shared blackboard. Each piece of evidence carries its source and confidence so it can be cited later. During evidence fusion, the system generates and scores hypotheses against a candidate root cause list, factoring in temporal ordering, topology direction, intensity of metric anomalies, log error patterns, and change correlation.
The decision arbitration stage focuses on conflicts and gaps. When metrics are abnormal but logs show no errors, the system must judge whether this is a resource bottleneck or a traffic surge. When errors concentrate in one service but the topology shows it is a downstream dependency, the propagation direction must be determined. The analysis decision agent can request additional evidence or revise the plan, with a maximum round limit to prevent loops. Finally, the output agent organizes the conclusion into a readable report, pushes it through the office collaboration platform, and keeps human confirmation and feedback entry points.
5. Key Engineering Challenges and Mitigations
Data noise and heterogeneity are the first challenge. Mitigations include a unified evidence schema, entity normalization, time alignment, confidence annotation, and evidence deduplication.
Model hallucination risk is controlled through evidence constraints, citation of evidence IDs, a tool call allowlist, and output validation.
Task orchestration requires a state machine, timeouts, retries, idempotency, and budget control to avoid agents waiting on each other or duplicating evidence collection.
Security and compliance should follow least privilege, masking of sensitive fields, and end-to-end auditing.
Cost control can use tiered analysis, caching, sampling, and on-demand evidence collection.
Explainability requires retaining reasoning logs, the evidence chain, and confidence so conclusions remain reviewable.
6. Example Pseudocode
def diagnose(alert):context = build_context(alert)plan = planner.plan(alert, context)evidence = []for task in plan.tasks:agent = registry[task.agent]evidence.extend(agent.collect(task, context))hypothesis = decision.arbitrate(alert, plan, evidence)if hypothesis.need_more_evidence:plan = planner.revise(plan, hypothesis.missing)evidence.extend(run_tasks(plan, context))report = reporter.summarize(alert, evidence, hypothesis)notify_office_platform(report)return report
The core ideas in this pseudocode: planning drives evidence collection, evidence drives decisions, decisions can trigger additional collection, and output must be structured and open to feedback.
7. Rollout Advice and Benefits
Start with incident scenarios that are high frequency, have a clear impact scope, and have relatively complete evidence, and validate the multi-agent collaboration effect in small steps. Complete evidence standardization and observability work first, then gradually introduce more sophisticated arbitration strategies.
Evaluation metrics can include root cause hit rate, TopK hit rate, mean analysis duration, human takeover rate, false positive rate, evidence coverage, and MTTD/MTTR. Through human-machine collaboration and feedback write-back, the system continuously accumulates incident knowledge, reduces dependence on individual experts, and improves the transparency and consistency of incident handling.
