AI SRE System with Continuous Learning for Production Issue Investigation

cleric_ai · Tech · 2024 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Production incident investigation

Cleric needed its AI SRE agent to learn from live production incidents and compare multiple investigation strategies, even though production states disappear after resolution and customer-specific learnings may not safely generalize.

Constraints:

Architecture

Cleric’s AI SRE starts investigations automatically when alerts fire, using existing observability tools and read-only access to inspect database metrics, network traffic, logs, and system resources. LangSmith traces parallel investigation paths, compares strategies on the same incident, aggregates performance metrics, and ties Slack/ticket feedback directly to the traces. A continuous-learning layer stores investigation details and resolution patterns, anonymizes customer-specific data, promotes suitable patterns into generalized memories, and measures whether those memories improve future investigation success rates and resolution times.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  production-alert-source["production-alert-source"] --> cleric-investigation-agent["cleric-investigation-agent"]
  cleric-investigation-agent["cleric-investigation-agent"] --> observability-tool-stack["observability-tool-stack"]
  cleric-investigation-agent["cleric-investigation-agent"] --> langsmith-tracing["langsmith-tracing"]
  cleric-investigation-agent["cleric-investigation-agent"] --> engineer-feedback-channel["engineer-feedback-channel"]
  langsmith-tracing["langsmith-tracing"] --> strategy-comparison-dashboard["strategy-comparison-dashboard"]
  engineer-feedback-channel["engineer-feedback-channel"] --> feedback-api["feedback-api"]
  feedback-api["feedback-api"] --> langsmith-tracing["langsmith-tracing"]
  feedback-api["feedback-api"] --> customer-specific-knowledge-space["customer-specific-knowledge-space"]
  customer-specific-knowledge-space["customer-specific-knowledge-space"] --> privacy-anonymization-layer["privacy-anonymization-layer"]
  privacy-anonymization-layer["privacy-anonymization-layer"] --> generalized-memory-library["generalized-memory-library"]
  generalized-memory-library["generalized-memory-library"] --> cleric-investigation-agent["cleric-investigation-agent"]
  generalized-memory-library["generalized-memory-library"] --> strategy-comparison-dashboard["strategy-comparison-dashboard"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
production-alert-source Customer alert or production issue that triggers Cleric’s investigation. cleric-investigation-agent
cleric-investigation-agent Autonomous SRE agent that debugs production issues using observability tools and infrastructure access. production-alert-source, observability-tool-stack, langsmith-tracing, engineer-feedback-channel
observability-tool-stack Existing logs, metrics, traces, network, database, and system-resource tools accessed through read-only production permissions. cleric-investigation-agent
langsmith-tracing Records concurrent investigation traces, paths, strategy comparisons, metrics, and feedback links. cleric-investigation-agent, strategy-comparison-dashboard, feedback-api
strategy-comparison-dashboard Side-by-side analysis layer for approaches handling the same incident and metrics across concurrent traces. langsmith-tracing, generalized-memory-library
engineer-feedback-channel Normal Slack, ticketing, and other interaction surfaces where engineers provide positive or negative feedback. cleric-investigation-agent, feedback-api
feedback-api LangSmith feedback API that attaches engineer feedback to the exact investigation trace. engineer-feedback-channel, langsmith-tracing, customer-specific-knowledge-space
customer-specific-knowledge-space Stores local investigation details, procedures, and customer-specific context. feedback-api, privacy-anonymization-layer
privacy-anonymization-layer Removes customer-specific details, proprietary information, and identifiers before shared pattern analysis. customer-specific-knowledge-space, generalized-memory-library
generalized-memory-library Cross-deployment problem-solving patterns made selectively available to future investigations. privacy-anonymization-layer, cleric-investigation-agent, strategy-comparison-dashboard

Data flow

When an alert fires, Cleric begins parallel investigations across observability sources using different strategies. Each path is traced in LangSmith with the systems inspected, the strategy used, metrics, and engineer feedback. After the investigation, Cleric stores both specific investigation details and abstracted resolution patterns. Privacy controls remove customer-specific information before generalized memories are made selectively available in future deployments, where LangSmith tracks whether those memories improve success and resolution metrics.

4 supporting quotes
“When an alert fires, Cleric automatically begins investigating using existing observability tools and infrastructure.”article, stated
“This setup creates a complex matrix of concurrent investigations, as Cleric examines multiple systems using different investigation strategies.”article, stated
“This feedback is captured through LangSmith's feedback API and tied directly to the investigation trace.”article, stated
“These generalized memories are then made available selectively during new investigations across all deployments.”article, stated

Why this architecture

The system needs tracing because production incidents are ephemeral and multiple strategies must be compared while the incident still exists. LangSmith becomes the observability layer for agent behavior: it links traces, strategies, metrics, and human feedback. Separate local and generalized knowledge spaces are necessary because some operational learnings depend on customer-specific tooling or procedures, while others can benefit all deployments after anonymization and validation.

4 supporting quotes
“Once an issue is resolved, that exact system state is gone, along with the opportunity to learn from it.”article, stated
“LangSmith helped to address this problem by providing clear visibility into these parallel investigations and experiments.”article, stated
“The challenge is determining which learnings are specific to a team or company, and which represent broader patterns that could help all users.”article, stated
“This system allows Cleric to maintain separate knowledge spaces - customer specific context for unique environments and procedures”article, stated

Models used: Cleric AI SRE agent · LangSmith tracing · LangSmith feedback API · observability tools

Scale

Alternatives considered (roads not taken)

Rely on one successful investigation strategy as generally valid

Rejected because: The team needed data-driven validation because an approach that worked once might not generalize.

“relying on an approach that worked once isn’t enough to ensure it will be generalizable.”article, stated

Generalize all customer learnings directly

Rejected because: Some solutions depend on internal tools or processes absent in other environments, and privacy controls must strip sensitive details first.

“a solution that works in one environment might depend on specific internal tools or processes that don't exist elsewhere.”article, stated
“All customer specific details, proprietary information, and identifying data are stripped before any patterns are analyzed or shared.”article, stated

Force teams into a new incident tooling surface

Rejected because: Cleric communicates through Slack and existing observability stacks so engineers can use normal workflows.

“Cleric communicates with teams through Slack, sharing its findings and asking for guidance when needed.”article, stated

Patterns

observability-tracing (observability)

LangSmith traces concurrent investigation paths so the team can compare strategies and tie feedback to the exact trace.

“Track investigation paths across all systems”article, stated

agent-memory (state)

Investigation details and resolution patterns become customer-specific memories or anonymized generalized memories for future investigations.

“Cleric stores both the specific details of the investigation and the key patterns that led to its resolution.”article, stated

eval-driven-development (evaluation)

Different investigation strategies are compared side-by-side and measured against success rates, resolution times, and feedback.

“Perform direct comparisons of different approaches handling the same incident”article, stated

human-in-the-loop-gate (safety)

Engineer feedback through Slack and ticketing systems shapes which findings and memories are useful.

“engineers provide feedback through their normal interactions with Cleric (Slack, ticketing systems, etc.)”article, stated

privacy-preserving-processing (privacy)

Customer-specific details are anonymized before patterns are analyzed or shared across deployments.

“Before generalizing any learnings, Cleric employs strict privacy controls and data anonymization.”article, stated

Tradeoffs

Run multiple investigation strategies concurrently

Chose parallel strategy comparison over one fixed investigation path per incident.

Rationale: Concurrent investigations reveal which approaches work best for different issue types while the incident state still exists.

“The Cleric team needed to test different investigation approaches simultaneously.”article, stated

Separate local and generalized knowledge spaces

Chose customer-specific context plus generalized patterns over one shared global memory for all operational learnings.

Rationale: Some memories depend on local procedures, while anonymized generalized memories can benefit all users.

“customer specific context for unique environments and procedures, alongside a growing library of generalized problem solving patterns”article, stated

Gotchas (what bit them)

Production incidents are one-shot learning opportunities.

Root cause: After an issue is resolved, the exact stateful environment disappears.

Resolution: Trace concurrent investigations as they happen so the team can learn before the opportunity is gone.

“Production issues present unique learning opportunities that can't be reproduced later.”article, stated
“Once an issue is resolved, that exact system state is gone”article, stated

Parallel investigation strategies are hard to compare without trace-level observability.

Root cause: Multiple investigation paths inspect different systems and may run simultaneously on the same incident.

Resolution: Use LangSmith to compare strategies side-by-side, aggregate metrics, and tie user feedback to traces.

“How could the Cleric team monitor and compare the performance of different investigation strategies running simultaneously?”article, stated
“Compare different investigation strategies side-by-side”article, stated

A useful customer-specific memory can be unsafe or irrelevant elsewhere.

Root cause: The memory may rely on proprietary data, identifying details, or internal processes unavailable in other deployments.

Resolution: Strip customer details and determine whether the learning should stay local or become generalized.

“Some memories might only be useful within a specific team, while others provide value across all customer deployments.”article, stated
“All customer specific details, proprietary information, and identifying data are stripped”article, stated

Evaluation

Cleric evaluates investigation strategies by tracing concurrent paths, comparing approaches on the same incident, tying engineer feedback to traces, and measuring success rates, resolution times, and the impact of generalized memories before and after introduction.

Metrics: investigation success rates · resolution times · performance metrics for investigation approaches · user feedback tied to strategy · usage and impact of shared memories · thousands of concurrent traces

3 supporting quotes
“Aggregate performance metrics for different investigation approaches”article, stated
“compare investigation success rates, resolution times, and other key metrics before and after introducing new memories.”article, stated
“LangSmith helps track when and how these memories are used, and whether they improve investigation outcomes.”article, stated

Outcomes

The article reports analysis across thousands of concurrent traces and describes cross-team, cross-company, and cross-industry comparison for deciding whether memories should remain local or generalize.

“LangSmith's tracing capabilities enabled the Cleric team to analyze investigation patterns across thousands of concurrent traces”article, stated
“Each investigation helps Cleric learn and improve, moving their customers toward truly self-healing infrastructure.”article, stated