<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sharon Medithi</title>
    <description>The latest articles on DEV Community by Sharon Medithi (@sharonmedithi0304).</description>
    <link>https://dev.to/sharonmedithi0304</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4150358%2F3649a232-0822-4709-a2c6-f74266a55276.png</url>
      <title>DEV Community: Sharon Medithi</title>
      <link>https://dev.to/sharonmedithi0304</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sharonmedithi0304"/>
    <language>en</language>
    <item>
      <title>An Incident-Response Agent Should Remember What Failed</title>
      <dc:creator>Sharon Medithi</dc:creator>
      <pubDate>Tue, 29 Sep 2026 16:54:35 +0000</pubDate>
      <link>https://dev.to/sharonmedithi0304/an-incident-response-agent-should-remember-what-failed-5b2b</link>
      <guid>https://dev.to/sharonmedithi0304/an-incident-response-agent-should-remember-what-failed-5b2b</guid>
      <description>&lt;p&gt;Production incidents generate enormous amounts of organizational knowledge.&lt;/p&gt;

&lt;p&gt;The frustrating part is that this knowledge often gets trapped inside postmortems, tickets, Slack threads, and the memory of the engineer who handled the incident.&lt;/p&gt;

&lt;p&gt;An incident-response agent can retrieve logs, inspect metrics, and suggest troubleshooting steps. But one important question can still remain unanswered:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What did we try last time, what failed, and what should we avoid repeating?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's the problem we built around.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The Problem with One-Shot Incident Agents
&lt;/h2&gt;

&lt;p&gt;A typical incident-response workflow might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Current incident
      ↓
Logs + metrics + deployment information
      ↓
Generic troubleshooting plan
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An agent can reason about what it sees &lt;strong&gt;now&lt;/strong&gt;. But production engineering is rarely about the current incident alone.&lt;/p&gt;

&lt;p&gt;Organizations accumulate experience from previous incidents:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Incident
   ↓
Hypothesis
   ↓
Action
   ↓
Result
   ↓
Root cause
   ↓
Successful mitigation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That experience can contain something extremely valuable: not only what worked, but also what &lt;strong&gt;didn't&lt;/strong&gt; work.&lt;/p&gt;

&lt;p&gt;Without access to that experience, an agent may repeatedly investigate the same failed hypothesis or recommend an action that engineers have already tried unsuccessfully.&lt;/p&gt;

&lt;p&gt;The problem, therefore, isn't simply giving an agent more information.&lt;/p&gt;

&lt;p&gt;It's giving the agent access to &lt;strong&gt;organizational experience that can influence its next decision&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Memory Has to Change Decisions
&lt;/h2&gt;

&lt;p&gt;This is the central idea behind our system.&lt;/p&gt;

&lt;p&gt;Consider a historical incident: &lt;strong&gt;INC-1041&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Historical incident — INC-1041
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Checkout latency: &lt;strong&gt;4.8s&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Deployment: &lt;strong&gt;v3.8.2&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Initial hypothesis: &lt;strong&gt;database overload&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Action: &lt;strong&gt;increase database capacity&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Result: &lt;strong&gt;failed&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Actual cause: &lt;strong&gt;connection-pool exhaustion&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Successful mitigation: &lt;strong&gt;rollback pool configuration&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now consider a new incident.&lt;/p&gt;

&lt;h3&gt;
  
  
  Current incident — INC-1187
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Checkout latency: &lt;strong&gt;5.1s&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Deployment: &lt;strong&gt;v3.9.0&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Intermittent &lt;strong&gt;504s&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With &lt;strong&gt;Memory OFF&lt;/strong&gt;, the agent starts with generic database investigation and database scaling.&lt;/p&gt;

&lt;p&gt;With &lt;strong&gt;Memory ON&lt;/strong&gt;, Hindsight recalls INC-1041 and the investigation changes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CHECK CONNECTION POOL FIRST
          ↓
COMPARE POOL CONFIGURATION
          ↓
REVIEW DEPLOYMENT
          ↓
DATABASE SCALING DEMOTED
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important result isn't simply that the agent &lt;strong&gt;remembered INC-1041&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The important result is that the memory &lt;strong&gt;changed what the agent did next&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That distinction is fundamental.&lt;/p&gt;

&lt;p&gt;A memory system is much more useful when recalled information changes the current decision rather than simply appearing as additional context.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Why Failed Actions Are Valuable Memories
&lt;/h2&gt;

&lt;p&gt;Incident response has an unusual relationship with failure.&lt;/p&gt;

&lt;p&gt;A failed action during an outage isn't necessarily wasted effort. Once recorded, it becomes operational knowledge.&lt;/p&gt;

&lt;p&gt;Consider the historical experience:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Context:
Checkout latency increased

Hypothesis:
Database overload

Action:
Increase database capacity

Outcome:
No improvement

Root cause:
Connection-pool exhaustion

Mitigation:
Rollback pool configuration
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A future engineer shouldn't have to rediscover the same lesson during another outage.&lt;/p&gt;

&lt;p&gt;Most systems naturally encourage us to preserve successful procedures:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"What worked last time?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Incident response also needs to preserve another question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"What didn't work last time?"&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is why we treat an incident as an experience record rather than simply storing its transcript.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Context
   ↓
Hypothesis
   ↓
Action
   ↓
Outcome
   ↓
Root cause
   ↓
Mitigation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A transcript tells us what people said.&lt;/p&gt;

&lt;p&gt;An experience record tells us &lt;strong&gt;what happened when they acted&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That distinction matters because an unsuccessful action can be just as useful as a successful one when deciding what to investigate next.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Where Hindsight Fits
&lt;/h2&gt;

&lt;p&gt;Our application uses a FastAPI backend and a browser-based interface, with Hindsight providing persistent memory for incident experiences.&lt;/p&gt;

&lt;p&gt;The overall workflow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Current Incident
       ↓
Investigation
       ↓
Retain Incident Experience
       ↓
Hindsight
       ↓
Recall Relevant Experience
       ↓
Current Investigation
       ↓
Changed Priorities
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important design requirement is that memory should be &lt;strong&gt;causal to the changed investigation plan&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In other words, the system shouldn't merely retrieve a historical incident and display it to the engineer.&lt;/p&gt;

&lt;p&gt;The engineer—or the agent—should be able to answer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why did this investigation step move above another one?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The answer should be grounded in the recalled experience:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Because a previous incident with a similar pattern showed that the earlier approach failed, while connection-pool exhaustion was ultimately identified as the cause.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This creates a trace from:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Historical experience
        ↓
Recalled evidence
        ↓
Changed priority
        ↓
Current investigation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That connection is what makes memory operationally meaningful.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Why This Isn't Just RAG
&lt;/h2&gt;

&lt;p&gt;Retrieval-Augmented Generation can retrieve useful information.&lt;/p&gt;

&lt;p&gt;For example, a runbook might contain instructions such as:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Increase database capacity when database utilization is high.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's useful operational knowledge.&lt;/p&gt;

&lt;p&gt;But our problem is slightly different.&lt;/p&gt;

&lt;p&gt;We want to know:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What happened when this organization tried something before?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A runbook might tell an agent what to do.&lt;/p&gt;

&lt;p&gt;Incident memory can tell it what happened &lt;strong&gt;when someone did it&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Runbook:

High database load
        ↓
Consider increasing database capacity
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;versus:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Incident memory:

INC-1041
        ↓
Database capacity increased
        ↓
Incident persisted
        ↓
Actual cause: connection-pool exhaustion
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The distinction is important.&lt;/p&gt;

&lt;p&gt;The system isn't only retrieving instructions.&lt;/p&gt;

&lt;p&gt;It is retrieving &lt;strong&gt;experience, actions, and outcomes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;RAG can answer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"What does the documentation say we should try?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Incident memory can additionally answer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"What happened the last time we tried something similar?"&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Those are different questions, and both can be useful during incident response.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Evaluation
&lt;/h2&gt;

&lt;p&gt;We evaluated the system behaviorally rather than claiming a numerical performance improvement.&lt;/p&gt;

&lt;p&gt;The key question was:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Does recalled experience change what the agent investigates first?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Memory OFF
&lt;/h3&gt;

&lt;p&gt;The current incident is investigated primarily from its present evidence.&lt;/p&gt;

&lt;p&gt;The agent can identify plausible causes and generate a generic investigation plan, including database-related investigation and scaling.&lt;/p&gt;

&lt;h3&gt;
  
  
  Memory ON
&lt;/h3&gt;

&lt;p&gt;The system recalls the relevant historical incident.&lt;/p&gt;

&lt;p&gt;The previous failed database-scaling attempt becomes part of the reasoning context, and connection-pool investigation is prioritized instead.&lt;/p&gt;

&lt;p&gt;The important observable difference is therefore:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Memory OFF

Current incident
      ↓
Generic investigation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;versus:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Memory ON

Current incident
      ↓
Historical experience recalled
      ↓
Previous failed action considered
      ↓
Investigation priorities change
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gives us a concrete behavioral test without inventing an accuracy percentage that the current demonstration cannot justify.&lt;/p&gt;

&lt;p&gt;The goal isn't to claim that memory automatically produces the correct diagnosis.&lt;/p&gt;

&lt;p&gt;The goal is to demonstrate that &lt;strong&gt;relevant experience can influence the investigation strategy&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Limitations
&lt;/h2&gt;

&lt;p&gt;There are several important limitations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Historical similarity is evidence, not proof
&lt;/h3&gt;

&lt;p&gt;Two incidents can look similar while having completely different root causes.&lt;/p&gt;

&lt;p&gt;A recalled incident should therefore influence investigation priorities, not be treated as definitive evidence of the current root cause.&lt;/p&gt;

&lt;h3&gt;
  
  
  Current telemetry still matters
&lt;/h3&gt;

&lt;p&gt;Historical experience cannot replace current logs, metrics, traces, deployment information, or other production evidence.&lt;/p&gt;

&lt;p&gt;The system still needs to validate historical lessons against what is happening now.&lt;/p&gt;

&lt;h3&gt;
  
  
  The system recommends rather than autonomously changing production
&lt;/h3&gt;

&lt;p&gt;The agent is intended to support incident investigation and decision-making rather than independently modifying production infrastructure.&lt;/p&gt;

&lt;p&gt;This keeps the human engineer in control of production actions.&lt;/p&gt;

&lt;h3&gt;
  
  
  The demonstration uses synthetic incident data
&lt;/h3&gt;

&lt;p&gt;The incidents used in the demonstration are synthetic.&lt;/p&gt;

&lt;p&gt;Therefore, the demo demonstrates the memory mechanism and its effect on investigation behavior, rather than establishing production-scale effectiveness.&lt;/p&gt;

&lt;h3&gt;
  
  
  Memory quality matters
&lt;/h3&gt;

&lt;p&gt;The usefulness of memory depends on the quality of the experiences being retained.&lt;/p&gt;

&lt;p&gt;Incomplete, incorrect, or poorly structured incident records can lead to less useful recollections.&lt;/p&gt;

&lt;p&gt;Memory is not automatically valuable simply because more of it exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The most interesting part of building this system wasn't making an agent remember more information.&lt;/p&gt;

&lt;p&gt;It was making memory affect &lt;strong&gt;what the agent did next&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;An incident isn't just a collection of logs.&lt;/p&gt;

&lt;p&gt;It is a record of hypotheses, failed decisions, successful mitigations, root causes, and lessons learned.&lt;/p&gt;

&lt;p&gt;A useful incident-response agent shouldn't have to rediscover those lessons every time a similar problem appears.&lt;/p&gt;

&lt;p&gt;The goal isn't simply to remember what happened.&lt;/p&gt;

&lt;p&gt;It is to preserve the experience of what happened—and use that experience when deciding what to investigate next.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not just what happened.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What we learned from it.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devops</category>
      <category>opensource</category>
      <category>sre</category>
    </item>
  </channel>
</rss>
