<?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: Jyotiraditya Khuman</title>
    <description>The latest articles on DEV Community by Jyotiraditya Khuman (@jyotiraditya_khuman_02148).</description>
    <link>https://dev.to/jyotiraditya_khuman_02148</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%2F4232035%2F0b402e7a-81eb-4a6b-8d86-9276f05acd6f.png</url>
      <title>DEV Community: Jyotiraditya Khuman</title>
      <link>https://dev.to/jyotiraditya_khuman_02148</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jyotiraditya_khuman_02148"/>
    <language>en</language>
    <item>
      <title>Beyond Vector RAG: How We Built an Incident-Response Agent That Remembers Failed Fixes</title>
      <dc:creator>Jyotiraditya Khuman</dc:creator>
      <pubDate>Sat, 07 Nov 2026 12:23:10 +0000</pubDate>
      <link>https://dev.to/jyotiraditya_khuman_02148/beyond-vector-rag-how-we-built-an-incident-response-agent-that-remembers-failed-fixes-1d0m</link>
      <guid>https://dev.to/jyotiraditya_khuman_02148/beyond-vector-rag-how-we-built-an-incident-response-agent-that-remembers-failed-fixes-1d0m</guid>
      <description>&lt;p&gt;Author: Jyotiraditya Khuman (AI/ML Engineer, RecallOps)&lt;/p&gt;

&lt;p&gt;System: RecallOps Autonomous SRE Agent&lt;/p&gt;

&lt;p&gt;Hackathon: Hindsight AI Agents Hackathon&lt;/p&gt;

&lt;p&gt;It is 3:14 a.m. Your pager screams. payments-db is throwing HTTP 500 timeouts, checkout is stalling, and revenue is bleeding. A bleary-eyed engineer logs onto the bastion host, sees connection pool saturation, and runs the first command that comes to mind:&lt;/p&gt;

&lt;p&gt;docker restart payments-db&lt;/p&gt;

&lt;p&gt;Within sixty seconds, the outage turns catastrophic. Restarting flushed the shared buffer cache. Millions of read queries hit cold disks simultaneously, disk I/O hits 100%, and every dependent microservice collapses in an uncontrollable cascade.&lt;/p&gt;

&lt;p&gt;The worst part? &lt;strong&gt;The exact same mistake was made three weeks ago&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Tribal knowledge in SRE is fragile. Postmortems get buried in wikis. Shifts rotate. Engineers leave. When an outage strikes, on-call responders operate under intense pressure and repeatedly try intuitive "fixes" that have already proven harmful.&lt;/p&gt;

&lt;p&gt;When we built &lt;strong&gt;RecallOps&lt;/strong&gt; for the Hindsight AI Agents Hackathon, we knew that basic vector search over incident tickets was not enough. To truly assist SREs, an autonomous agent needs more than text retrieval—&lt;strong&gt;it needs institutional cognitive memory that remembers what failed&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Naive Vector RAG Fails in SRE
&lt;/h2&gt;

&lt;p&gt;Traditional Retrieval-Augmented Generation (RAG) treats all retrieved chunks as undifferentiated ground truth. If a postmortem states "We restarted PostgreSQL to clear stalled threads," naive semantic search retrieves that text and prompts the LLM to recommend restarting the container.&lt;/p&gt;

&lt;p&gt;Vector embeddings do not understand outcome semantics: they cannot distinguish between the remediation that saved the system and the five desperate attempts before it that made things worse.&lt;/p&gt;

&lt;p&gt;Furthermore, naive RAG lacks temporal grounding. Without structured retention, recency weighting, and namespace isolation, generic bots generate hallucinated runbooks that senior engineers cannot trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dual-Memory Architecture: Retain, Recall, and Reflect
&lt;/h2&gt;

&lt;p&gt;RecallOps solves this by leveraging &lt;strong&gt;Hindsight Cloud&lt;/strong&gt; to partition memory into isolated operational namespaces:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Shared Organizational Bank&lt;/strong&gt; (kartly-sre): Stores episodic incident postmortems (context: incident_postmortem) alongside discrete remediation outcomes (context: fix_outcome).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Personalized Engineer Banks&lt;/strong&gt; (engineer-{engineer_id}): Stores the operational preferences and communication styles of individual engineers (context: user_preference).&lt;/p&gt;

&lt;p&gt;When an active alert arrives, RecallOps executes a &lt;strong&gt;Tripartite Retrieval Pipeline&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query 1 (Symptom &amp;amp; Service)&lt;/strong&gt;: Queries kartly-sre for historical postmortems matching the error signature.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query 2 (Deployment Patterns)&lt;/strong&gt;: Correlates active commit diffs with historical deployment regressions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query 3 (Negative Memory)&lt;/strong&gt;: Queries kartly-sre specifically for prior actions tagged with Outcome: FAILED.&lt;/p&gt;

&lt;h2&gt;
  
  
  Negative Memory: Eliminating Operational Anti-Patterns
&lt;/h2&gt;

&lt;p&gt;Negative memory is the core differentiator of RecallOps. When our ranking engine scores candidate hypotheses, it calculates:&lt;br&gt;
Final Score = (w_sim × s_sim) + (w_recency × s_recency) - Failure_Penalty&lt;br&gt;
If an action failed in the past, it receives an aggressive score penalty (-0.50). Crucially, the agent isolates that action from recommendations and injects it into a high-priority warning list:&lt;br&gt;
"failed_fixes_warning": [&lt;br&gt;
  "Do NOT restart payments-db: failed 2x in Sept during INC-1987 (wiped buffer cache and caused cold-start I/O storm)"&lt;br&gt;
]&lt;br&gt;
The system prompt strictly forbids the agent from prescribing actions listed in negative memory, mathematically eliminating the recurring blunder loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Empirical Proof: 40-Incident Chronological Replay
&lt;/h2&gt;

&lt;p&gt;To prove RecallOps learns over time, we evaluated the agent against &lt;strong&gt;40 held-out historical incidents (Incidents 71–110)&lt;/strong&gt; across 8 core microservices. We ran two complete sequential passes:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stateless Baseline (Memory OFF)&lt;/strong&gt;: Evaluated each alert with an empty memory bank, mimicking current state-of-the-art incident bots.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RecallOps (Memory ON)&lt;/strong&gt;: Evaluated incidents chronologically. After resolving each incident, verified postmortems and failed actions were retained into kartly-sre, allowing downstream incidents to learn from earlier ones.&lt;/p&gt;

&lt;p&gt;The results proved decisive:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Top-1 Diagnostic Accuracy&lt;/strong&gt;: Jumped from 32.5% without memory to &lt;strong&gt;80.0% **with memory (&lt;/strong&gt;+47.5% absolute jump**).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mean Time to Hypothesis (MTTR)&lt;/strong&gt;: Dropped from &lt;strong&gt;45.0&lt;/strong&gt; minutes down to &lt;strong&gt;21.1&lt;/strong&gt; minutes (&lt;strong&gt;53.1%&lt;/strong&gt; reduction in diagnostic time).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repeated Failed Fixes&lt;/strong&gt;: The baseline agent recommended known anti-patterns &lt;strong&gt;23&lt;/strong&gt; times. RecallOps with negative memory made &lt;strong&gt;0 repeated mistakes (100% avoidance)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh2rvxnz5shm5xjhkbspm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh2rvxnz5shm5xjhkbspm.png" alt=" " width="800" height="455"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Personalization: Adapting to the On-Call Engineer
&lt;/h2&gt;

&lt;p&gt;SRE teams are not homogenous. During an active Sev-1 outage, incident commander &lt;strong&gt;Priya&lt;/strong&gt; wants zero conversational pleasantries—she needs exact, copy-ready kubectl commands. Meanwhile, principal architect Rahul wants deep causal reasoning and rollback safety checks.&lt;/p&gt;

&lt;p&gt;By querying engineer-{engineer_id}, RecallOps dynamically shifts its output style:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For Priya&lt;/strong&gt; (engineer-priya): The agent strips narrative prose and formats recommended_action strictly as runnable bash commands.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For Rahul&lt;/strong&gt; (engineer-rahul): The agent outputs structured architectural breakdowns with validation gates.&lt;/p&gt;

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

&lt;p&gt;Incident response is not a search problem; it is a learning problem. By combining Hindsight's episodic retention with explicit negative memory and engineer personalization, RecallOps ensures that when production breaks at 3 a.m., your team never pays for the same mistake twice.&lt;/p&gt;

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