Carbon to Diamond: An Incident Remediation Assistant System From Site Reliability Engineers' Conversations in Hybrid Cloud Operations

Suranjana Samanta, Ajay Gupta, Prateeti Mohapatra, Amar Prakash Azad

Introduction

In the high-stakes environment of hybrid cloud operations, service outages translate directly into significant financial and reputational costs. Site Reliability Engineers (SREs) are the frontline responders, typically collaborating in real-time via chat platforms like Slack or Microsoft Teams to diagnose and remediate these failures. While these conversations contain a wealth of technical knowledge, this information is often lost in messy message histories. This paper presents a framework designed to transform this "carbon" (raw chat logs) into "diamonds" (structured, actionable knowledge) by automatically disentangling conversations and extracting diagnostic steps to build a searchable "Issue Total View" database.

The Challenge of SRE Chat Data

Traditional incident management relies on formal tickets, but these are often written hastily after the fact, missing the nuanced technical exchanges that occur during the heat of a crisis. Conversely, raw chat logs present several challenges for standard Natural Language Processing (NLP) tools:

  1. Interleaving: Multiple issues are often discussed simultaneously in a single channel, creating overlapping threads.
  2. Domain-Specific Language: SREs use heavy technical jargon and acronyms (e.g., "PV" for Persistent Volume).
  3. Informality: Conversations are riddled with typos (e.g., "tekon" for "tekton") and semi-formal syntax that general-purpose models like vanilla BERT are not trained to handle.

Methodology: The Carbon-to-Diamond Pipeline

The authors propose a multi-stage pipeline to process and index these complex conversations into a structured knowledge base.

Overview of the incident remediation assistant system pipeline, from raw chat to similarity retrieval.

1. Conversation Disentanglement

To address interleaving, the system employs a heuristic approach. It uses temporal windows (grouping messages sent in close proximity) and user overlap analysis to identify which participants are engaged in specific problem-solving threads, effectively separating distinct incidents from the general channel noise.

2. Artifact Extraction and Semantic Role Labeling

The system identifies two primary artifacts: Diagnostics and Resolutions. Diagnostics are identified using a semi-supervised approach that combines lexical rules with a Naive Bayes classifier to catch both explicit and implicit queries. For resolutions, the system utilizes Semantic Role Labeling (SRL) to pinpoint "action-entity" pairs. By identifying specific operations (e.g., "Scale") performed on specific components (e.g., "Elasticsearch node"), the system can distinguish actual remediation steps from casual conversation.

3. Domain-Specific Embeddings

Rather than relying on general English models, the researchers trained a FastText model from scratch using a technical corpus of 2 million sentences from Red Hat and IBM Cloud manuals. FastText’s ability to handle sub-word information makes it uniquely resilient to the frequent typos found in SRE chats, while the domain-specific training ensures it understands the relationship between technical entities.

Entity-Verb Similarity Retrieval

When a new issue is reported, the system does not simply compare the entire text of the query to historical logs. Instead, it focuses on the extracted entities and action verbs. This "Action-Entity Anchor" reduces noise from common introductory phrases (e.g., "Hi team, I have a problem") and focuses the search on the technical core of the issue.

The similarity retrieval mechanism calculates scores based on weighted entity-verb pairs to find the most relevant historical solutions.

As shown in the figure above, the system calculates a similarity score by averaging the maximum cosine similarity of entity pairs between the new issue and historical records. This allows the system to retrieve relevant past solutions even when the phrasing differs, provided the underlying technical components and actions match.

Key Results and Performance

The proposed system, designated as FastText-M2, was evaluated against 848 real-world SRE conversations. It significantly outperformed established baselines, including Elasticsearch, Universal Sentence Encoder (USE), and BERT:

  • Retrieval Accuracy (A@5): The system achieved a score of 0.73, vastly outperforming BERT (0.18) and Elasticsearch (0.42).
  • Mean Average Precision (MAP): The system scored 0.31, more than doubling the performance of the BERT baseline (0.13).
  • Disentanglement Success: The module achieved an 83% recall rate, successfully grouping related messages despite interruptions from unrelated chatter.

Discussion and Future Work

The study demonstrates that domain-specific training and a focus on structured technical artifacts (actions and entities) are more effective for SRE support than general-purpose large language models. However, limitations remain. The system occasionally confuses general "change requests" (like adding a user to a cluster) with actual incidents. Future work will focus on incorporating a human-in-the-loop feedback mechanism, allowing SREs to rate retrieved results and refine the system's accuracy through reinforcement learning. Additionally, the researchers aim to test the framework's scalability in larger enterprise environments with higher message volumes.

Summary updated

BibTeX
@inproceedings{samanta2021carbon,
  author = {Suranjana Samanta and Ajay Gupta and Prateeti Mohapatra and Amar Prakash Azad},
  title = {{Carbon to Diamond: An Incident Remediation Assistant System From Site Reliability Engineers' Conversations in Hybrid Cloud Operations}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i17.17809},
}
Figure