Multi-Agent Collaboration for IT Incident Root Cause Analysis: Design and Practice

    This article explains how to build an AI-powered root cause analysis (RCA) system using multiple collaborating agents. It covers a layered architecture, evidence-driven data ingestion, agent roles and responsibilities, explainable reasoning workflows, interactive delivery through collaboration platforms, and practical engineering considerations for reducing MTTD and MTTR.

    Multi-Agent Collaboration for IT Incident Root Cause Analysis: Design and Practice

    1. Background and Goals

    As systems scale up, services are decomposed further, and deployment models diversify, root cause analysis for IT incidents has become increasingly difficult. A single user-facing alert may involve host resources, application processes, middleware, databases, network links, configuration changes, and traffic fluctuations simultaneously. Traditional approaches that rely on manual expertise and item-by-item investigation often suffer from scattered evidence, high collaboration costs, and non-reproducible conclusions, making it hard to continuously reduce mean time to detect (MTTD) and mean time to repair (MTTR).

    This article discusses a design approach for an AI system based on multi-agent collaboration: it simulates the way a team of expert engineers works. Root cause analysis is decomposed into phases such as planning, evidence collection, analysis, arbitration, and output. Different agents take on specific responsibilities and work in parallel on the same incident. Ultimately, the analysis process and conclusions are pushed to operations engineers through everyday collaboration platforms in an interactive, easy-to-understand format. The goal of the system is not to replace experts, but to turn the investigation methods of expert teams into an engineered, explainable, and reproducible process that shortens the time from alert to confirmed root cause.

    2. Overall Architecture

    The system should be built in layers to avoid coupling capabilities into a single model or a single workflow:

    1. Data ingestion layer: Uniformly ingests monitoring metrics, logs, distributed traces, change events, configuration topology, and other data. It handles time alignment, service identity normalization, noise reduction, and data masking.
    2. Evidence organization layer: Converts raw data into retrievable, citable, and traceable evidence entries, forming an evidence set around the incident.
    3. Agent collaboration layer: Multiple role-based agents execute tasks according to a plan, using a message bus to pass tasks, results, and status.
    4. Decision and output layer: Evaluates evidence for sufficiency, conflicts, and relevance, then generates structured root cause conclusions.
    5. Interaction and feedback layer: Pushes cards, summaries, timelines, evidence chains, and interactive buttons through collaboration platforms, supporting manual confirmation, additional information, and re-running analysis.

    The architecture should emphasize “evidence-driven” reasoning rather than “model guessing.” Every conclusion should be traceable back to specific metric fluctuations, log patterns, trace anomalies, or topology propagation relationships. This improves trust and adoption among operations staff.

    3. Data Ingestion and Evidence Transformation

    The quality of root cause analysis depends first on data quality. The system should ingest comprehensive operational data sources in real time or near real time, but the data must be transformed into evidence rather than simply stacked together.

    Monitoring metrics should cover system metrics such as CPU, memory, and disk I/O; application metrics such as request volume, response latency, and error rate; and business metrics such as order volume and payment success rate. Metric data should be enriched with service, instance, environment, and time-window dimensions to support baseline comparison, change-point detection, and correlation analysis.

    Logs: Application logs, system logs, and middleware logs should preserve error-level and alert-level information plus context. Log analysis must go beyond keyword matching to extract error patterns, exception stacks, repetition frequency, first occurrence time, and associated services, forming readable anomaly events.

    Distributed traces show the complete request path and latency across microservices. The system should focus on abnormal spans, latency spikes, error propagation, and upstream/downstream dependency changes to determine the fault origin and impact scope.

    Change events and configuration topology are equally critical. Many incidents are triggered by releases, configuration changes, scaling operations, or dependency changes. Without change context, root cause analysis tends to stay at surface symptoms. The data ingestion layer should also handle noise reduction, sampling, data masking, retention policies, and access auditing to ensure security and compliance.

    4. Agent Roles and Responsibilities

    Internally, the system is not a single AI model but an “operations team.” Each agent is given a specific role and expertise, performing its own duties while collaborating with others.

    Task planning agent: Plays the role of the “operations expert.” It receives alert events, understands the observed symptoms, and generates a clear investigation plan. It assigns metric searches, log retrieval, and topology analysis tasks to the corresponding agents. The plan includes task priorities, time windows, required evidence, and termination conditions.

    Metrics analysis agent: Specializes in time-series analysis. It detects abnormal fluctuations, change points, periodic deviations, and correlations between metrics. It should output a list of anomalous metrics, abnormal time windows, affected instances, and possible relationships—rather than just a single anomaly score.

    Log analysis agent: Excels at natural language processing and log pattern extraction. It quickly extracts error patterns, exception stacks, and key events from massive logs. It should distinguish noise from newly appeared anomalies, focusing on first occurrence, frequency spikes, and cross-service propagation.

    Topology-aware agent: Understands system architecture and service dependencies, and analyzes fault propagation paths. Combined with distributed traces and configuration topology, it determines whether an upstream anomaly caused downstream errors, and identifies the impact scope and critical paths.

    Analysis decision agent: Plays the role of the “shift lead.” It makes monitoring query results explicit through structured thinking and performs root cause judgment. It does not fetch new data or change state; it only appends thinking logs. When evidence is missing or conflicting, or when recent steps show no progress, it decides whether to request additional evidence, adjust a hypothesis, or terminate the analysis.

    Final output agent: Plays the role of the “operations specialist.” It summarizes the incident and evidence and produces structured output for operations staff: conclusions, evidence chains, impact scope, recommended actions, and items requiring confirmation.

    5. Collaboration Workflow and Explainable Reasoning

    A typical flow: when an alert fires, the task planning agent parses the event and generates an investigation plan; the metrics, logs, and topology agents collect evidence in parallel; the analysis decision agent reviews the evidence and judges whether the root cause hypothesis holds; if evidence is insufficient, it triggers additional tasks; finally, the output agent generates a report and pushes it.

    Pseudocode:

    1. plan = planner.analyze(alert)
    2. tasks = planner.assign(plan)
    3. evidence = []
    4. for task in tasks:
    5. result = bus.dispatch(task)
    6. evidence.append(result)
    7. decision = decision_agent.review(evidence)
    8. if decision.need_more:
    9. planner.replan(decision.gaps)
    10. continue_collect()
    11. report = output_agent.summarize(alert, evidence, decision.logs)
    12. push_to_collaboration_platform(report)

    During collaboration, the system should maintain evidence chains and thinking logs. Every conclusion should record its source, time window, confidence level, and conflict points so that humans can review it. The decision agent handles three situations: when evidence is missing, it initiates supplementary collection; when evidence conflicts, it compares data reliability and timing; when steps make no progress, it converges promptly to avoid infinite loops.

    6. Interaction, Feedback, and Engineering Delivery

    Analysis results and conclusions should be delivered through collaboration platforms as card messages, structured text, or interactive buttons. Cards can include the incident summary, impact scope, root cause hypothesis, evidence timeline, recommended actions, and confidence level. Buttons such as “View details,” “Confirm root cause,” “Add information,” and “Re-run analysis” allow operations staff to complete the loop within their daily collaboration workflow.

    Engineering implementation requires attention to permission control, data masking, audit trails, rate limiting, caching and reuse, and cost control. It is advisable to build a scenario library with offline replay evaluation, using historical incidents to validate root cause accuracy, evidence completeness, and false positive rates. Roll out gradually: first cover a subset of alert types in gray release, then expand. Measure success around MTTD, MTTR, root cause hit rate, manual acceptance rate, and average confirmation rounds, optimizing continuously.

    7. Conclusion

    A multi-agent collaborative RCA system essentially decomposes the investigation methods of an expert team into an orchestration-ready, explainable, and measurable agent workflow. Through unified data ingestion, role-based division of labor, evidence chain organization, and interactive delivery, the system helps operations teams detect anomalies faster, locate root causes more accurately, and complete remediation more efficiently—while accumulating reusable fault knowledge along the way.