<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Momil Seedat on Medium]]></title>
        <description><![CDATA[Stories by Momil Seedat on Medium]]></description>
        <link>https://medium.com/@momilseedat32?source=rss-7fe8dd64767c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3xGsTIMt8idkdNhY</url>
            <title>Stories by Momil Seedat on Medium</title>
            <link>https://medium.com/@momilseedat32?source=rss-7fe8dd64767c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:57:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@momilseedat32/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Keeping Humans in Sight: Does a human Need a Security Layer Between AI Decisions and Human Approval?]]></title>
            <link>https://medium.com/@momilseedat32/keeping-humans-in-sight-does-a-human-need-a-security-layer-between-ai-decisions-and-human-approval-8a4ecf48ae2a?source=rss-7fe8dd64767c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a4ecf48ae2a</guid>
            <category><![CDATA[ai-security]]></category>
            <category><![CDATA[ai-risk]]></category>
            <category><![CDATA[human-ai-interaction]]></category>
            <category><![CDATA[cognitive-bias]]></category>
            <dc:creator><![CDATA[Momil Seedat]]></dc:creator>
            <pubDate>Sun, 23 Aug 2026 00:13:03 GMT</pubDate>
            <atom:updated>2026-08-23T00:13:03.622Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently started building an evaluation suite for an LLM-based coding system.</p><p>I asked an LLM to help me create the evaluation framework: identify categories, generate test cases, extract patterns from different modules, define evaluation criteria, and suggest statistical metrics to compare different approaches.</p><p>It generated a lot.</p><p>It identified categories I had not explicitly considered, created test cases, added context from the codebase, and produced metrics.</p><p>At first, it looked very good. It bring the point that i have not think about.</p><p>The problem was that it looked <strong>too complete</strong>.</p><p>There was so much information that I could not immediately perceive the whole structure and determine whether it was actually correct. So after burning lot of tokens i realized that things are not correct. The stats part looked completely off that i was not able to reach to the conclusion that which approach is good.</p><p>So I started digging into individual cases.</p><p>I found that some criteria were not realistic. Some did not properly represent the requirements. Some metrics were measurable but had very little relevance to what I actually wanted to evaluate.</p><p>The problem wasn’t that the LLM couldn’t generate information.</p><p>The problem was that <strong>I could not easily verify the structure it had generated.</strong></p><p>And this made me think about how the human brain processes complex information.</p><h3>The brain doesn’t understand everything at once</h3><p>Imagine a teacher walks into a classroom and writes a large mathematical problem on the board.</p><p>The entire solution is already there:</p><pre>Equation<br>→ Transformation<br>→ Transformation<br>→ Intermediate result<br>→ Final result</pre><p>A student who has not practiced the underlying concepts may recognize the symbols, but still struggle to understand the relationships between them.</p><p>The teacher then starts from one equation and works through it step by step.</p><p>Now the student can gradually build a mental model.</p><p>The brain receives a manageable amount of information, connects it with existing knowledge, predicts what should happen next, and updates the model when the next step appears.</p><p>This is related to several well-studied cognitive processes:</p><ul><li><strong>Working memory</strong> has limited capacity.</li><li><strong>Attention</strong> determines which information receives deeper processing.</li><li><strong>Associative retrieval</strong> brings related concepts into mind.</li><li><strong>Schemas</strong> allow previously learned structures to organize new information.</li><li><strong>Prediction and error detection</strong> allow us to notice when something doesn’t match our expectations.</li><li><strong>Memory consolidation</strong> strengthens useful knowledge over time.</li></ul><p>This is why a student who has practiced factorization can sometimes immediately notice that a quadratic equation was solved incorrectly.</p><p>They don’t simply read the answer.</p><p>They have an internal model of what the answer should look like.</p><h3>Practice changes what the brain can perceive</h3><p>Consider two students.</p><p>Both attended the same class on quadratic equations.</p><p>One regularly solves problems.</p><p>The other mostly listened to the teacher and remembers the formulas.</p><p>Give both students a completed assignment.</p><p>The second student may see:</p><blockquote><em>“This looks like the method we learned.”</em></blockquote><p>The first student may start mentally reconstructing the calculation:</p><pre>factorization<br>→ roots<br>→ substitution<br>→ expected result</pre><p>If the supplied answer conflicts with that internal model, an error becomes visible.</p><p>This is important because <strong>knowledge is not just having information stored somewhere in memory</strong>.</p><p>The relationships between pieces of knowledge matter.</p><p>With practice, many individual concepts become connected:</p><pre>Quadratic equation<br> ├── factorization<br> ├── discriminant<br> ├── roots<br> ├── completing the square<br> └── quadratic formula</pre><p>Those connections allow the brain to make predictions.</p><p>And predictions make errors easier to detect.</p><h3>AI changes the scale of the problem</h3><p>Now give an LLM the same assignment.</p><p>It can produce the entire structure immediately.</p><pre>Requirements<br>    ↓<br>Design<br>    ↓<br>Implementation<br>    ↓<br>Tests<br>    ↓<br>Evaluation<br>    ↓<br>Documentation</pre><p>The human didn’t construct that structure gradually.</p><p>They received it.</p><p>They can read it.</p><p>They can recognize familiar patterns.</p><p>They can even understand many individual parts.</p><p>But they may not have constructed the same <strong>mental model</strong> connecting all those parts.</p><p>That creates a subtle problem.</p><p>The AI can generate more information than the human can meaningfully reconstruct and verify.</p><h3>Reading is not verification</h3><p>This distinction is becoming increasingly important.</p><p>When a developer reads AI-generated code, there are at least two possible processes.</p><h3>Recognition</h3><blockquote><em>“This looks like a reasonable implementation.”</em></blockquote><h3>Verification</h3><blockquote><em>“Let me independently reason about the requirement, trace the assumptions, predict the expected behavior, and compare it with what the AI produced.”</em></blockquote><p>The second process is much more expensive.</p><p>Humans naturally use cognitive shortcuts.</p><p>If something is:</p><ul><li>coherent</li><li>detailed</li><li>familiar</li><li>well formatted</li><li>consistent with expectations</li><li>produced by a trusted system</li></ul><p>we are more likely to accept it without completely reconstructing it.</p><p>This is not simply laziness.</p><p>The brain has limited cognitive resources, and independently verifying everything would be extremely expensive.</p><h3>This creates a new AI security problem</h3><p>We usually talk about <strong>human-in-the-loop</strong> systems.</p><p>The assumption is:</p><pre>AI → Human → Action</pre><p>Therefore, we assume the human provides the final safety layer.</p><p>But what if the human cannot realistically understand the entire output?</p><p>Then the real system may become:</p><pre>AI<br> ↓<br>large complex output<br> ↓<br>human recognition<br> ↓<br>&quot;looks reasonable&quot;<br> ↓<br>approval</pre><p>The human is technically in the loop.</p><p>But their <strong>mental model is not</strong>.</p><p>That is a very different form of control.</p><h3>This becomes more concerning when AI can act</h3><p>Consider an AI agent operating an engineering system.</p><p>It observes:</p><pre>Service failure<br>      ↓<br>Authentication problem<br>      ↓<br>Credential problem<br>      ↓<br>Configuration change<br>      ↓<br>Restart service</pre><p>Every individual step may look reasonable.</p><p>But the combined sequence could have consequences the human never anticipated.</p><p>The AI does not necessarily need to explicitly perform something malicious.</p><p>It could produce a sequence of individually plausible decisions that collectively create a harmful outcome.</p><p>And if humans become accustomed to approving AI-generated actions because the output looks reasonable, the human verification layer becomes weaker.</p><h3>Maybe we need a security layer between AI and human</h3><p>Instead of assuming that:</p><pre>AI → Human</pre><p>is sufficient, we could introduce an additional <strong>AI security / verification layer</strong>:</p><pre>AI<br>              ↓<br>       Security Layer<br>              ↓<br>   ┌──────────┼──────────┐<br>   ↓          ↓          ↓<br>Requirement  Risk      Consistency<br> checking    analysis    checking<br>   ↓          ↓          ↓<br>   └──────────┼──────────┘<br>              ↓<br>            Human<br>              ↓<br>            Action</pre><p>But this layer should do more than check whether the output is syntactically valid.</p><p>It should help answer:</p><ul><li>What is the AI trying to accomplish?</li><li>What assumptions is it making?</li><li>What evidence supports the decision?</li><li>Which requirements does it satisfy?</li><li>What could go wrong?</li><li>Which actions are irreversible?</li><li>Which parts require independent human verification?</li><li>Does the proposed action remain within the intended scope?</li></ul><p>Most importantly, it should help preserve the <strong>structure of understanding</strong> that the human needs.</p><p>Instead of showing a developer 500 lines of generated code and asking:</p><blockquote><em>“Approve?”</em></blockquote><p>the system could expose the important reasoning structure:</p><pre>Goal<br> ↓<br>Assumptions<br> ↓<br>Evidence<br> ↓<br>Decision<br> ↓<br>Potential consequences<br> ↓<br>Risk<br> ↓<br>What the human should verify</pre><p>The objective isn’t to make humans inspect everything.</p><p>It is to make sure humans don’t <strong>lose sight of what the AI is actually doing</strong>.</p><h3>Human control may depend on human cognition</h3><p>We often define AI safety around whether a human has the final button.</p><p>But perhaps that is too simplistic.</p><p>A human pressing “Approve” does not necessarily mean the human is exercising meaningful control.</p><p>Meaningful control may require:</p><blockquote><strong><em>The human can understand the important structure of the decision, identify its assumptions, and challenge it when necessary.</em></strong></blockquote><p>As AI systems become capable of generating increasingly large and complex outputs, this could become a major security problem.</p><p>The challenge may not be:</p><blockquote><em>“How do we keep humans in the loop?”</em></blockquote><p>It may be:</p><blockquote><strong><em>“How do we keep humans cognitively in control of the loop?”</em></strong></blockquote><p>AI should not only preserve the human’s ability to approve or reject an action.</p><p>It should preserve the human’s <strong>sight of what is happening</strong>.</p><p>That may require a dedicated security and verification layer between increasingly capable AI systems and the humans who ultimately trust them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a4ecf48ae2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 3: Synchronization Is Easy, Understanding Is Hard]]></title>
            <link>https://medium.com/@momilseedat32/synchronization-is-easy-understanding-is-hard-4d9c565faa8d?source=rss-7fe8dd64767c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d9c565faa8d</guid>
            <category><![CDATA[crdt]]></category>
            <category><![CDATA[synchronization]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[offline-first]]></category>
            <dc:creator><![CDATA[Momil Seedat]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 09:19:59 GMT</pubDate>
            <atom:updated>2026-07-25T11:12:39.192Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TzpGcj7gi5qxOYt5KII6jQ.png" /></figure><p>In the 1990s, software ran locally. Users edited documents or code offline and manually shared results later. Today, most applications treat the cloud as the indisputable “master copy,” forcing network round-trips for every keypress, save, or merge.</p><p>Modern protocols like <strong>Git, OT (Operational Transformation), and CRDTs (Conflict-free Replicated Data Types)</strong> have mathematically solved <em>how</em> to synchronize data across machines. But syncing bytes is only half the battle.</p><p>The hard, unsolved problem in distributed computing is <strong>why changes happen</strong>. Without understanding intent, automated merges risk silently breaking software or it starts to write critical context.</p><p>By combining local-first hardware, on-device vector indexing, and compact LLMs, our machines can begin exchanging <strong>semantic intent</strong> — <em>“Alice added Apple Pay support; Bob refactored the payment API”</em> — rather than raw, uninterpreted file diffs.</p><h3>From Offline Workflows to Cloud Dependence</h3><p>Before cloud computing dominated, systems were designed for disconnection.</p><p>In 1995, Xerox PARC developed <strong>Bayou</strong>, a database designed for mobile, occasionally-connected computers. Bayou allowed any device to read and write freely. When devices reconnected, Bayou used application-specific logic to resolve conflicts.</p><p>A finance application knew how to reconcile out-of-order budget entries. A calendar application knew how to handle overlapping appointments.</p><p>It used domain knowledge to merge changes. Today, most applications assume continuous internet access. If your connection drops, your software stops working, queues up operations, or downgrades to read-only.<br>Our devices have become powerful thin clients.</p><p>As researcher Martin Kleppmann observed in his work on local-first software: Your local copy should be the primary copy. Servers should exist only to assist your devices, not own your data.</p><p>The challenge is keeping collaborative convenience without losing local independence.</p><h3>The Limits of Modern Sync</h3><p>Over the last decade, computer science solved how to synchronize data state. We know how to make two machines agree on a file. What we haven’t solved is what that agreement actually means. Consider how modern tools handle collaboration:</p><h3>Git (Version Control)</h3><pre>Offline commits<br>↓<br>Manual text diffs<br>↓<br>No semantic awareness</pre><h3>Operational Transformation (Google Docs)</h3><pre>Real-time editing<br>↓<br>Algorithmic coordinate transforms<br>↓<br>No context awareness</pre><h3>CRDTs (Local-First Apps)</h3><pre>Offline-first sync<br>↓<br>Mathematical state merging<br>↓<br>No intent awareness</pre><p>Git treats files as uninterpreted lines of text. Operational Transformation adjusts character offsets so text doesn’t drift. CRDTs use commutative math so devices reach the exact same state without a central server.</p><p>All of these tools focus on <strong>data convergence</strong>. None of them focus on <strong>intent convergence</strong>.</p><p>Consider a shared budget spreadsheet.</p><p>Person A changes: Employee Salary = $5,000</p><p>Person B changes: Employee Salary = $5,500</p><p>A traditional system sees a conflict and picks one version. A CRDT mathematically resolves the state, but destroys the context.</p><p>Person A was recording an approved promotion. Person B was applying an inflation adjustment.</p><p>The math converged, but the human intent was lost.</p><h3>Syncing Meaning, Not Bytes</h3><p>Modern synchronization systems are remarkably good at copying data.</p><p>The next generation of collaboration may require something different: understanding <strong>why</strong> changes were made before deciding <strong>how</strong> to merge them.</p><pre>Traditional Sync<br>Byte Diff ──► Merge Algorithm ──► Conflict</pre><pre>Semantic Sync<br>Intent ──► AI Understanding ──► Suggested Merge</pre><p>Consider a software team working offline.</p><p>Alice implements Apple Pay support while Bob refactors the payment service. Traditional version control compares lines of code and may produce a complex merge conflict. An AI-assisted synchronization engine can look beyond the text and recognize that Alice introduced a new feature while Bob reorganized the internal implementation. Rather than presenting dozens of conflicting files, it can propose a merge based on the intent behind each change, leaving the final decision to the developers.</p><p>The same principle applies beyond software. In a shared spreadsheet, one employee updates salaries after approved promotions while another applies an annual cost-of-living adjustment. A traditional system only sees conflicting values. A semantic system understands that both edits describe different business events and can help preserve that context instead of simply choosing one value.</p><h3>AI as a Local Knowledge Layer</h3><p>This vision is becoming increasingly practical because modern devices are no longer just storage systems — they are capable of building searchable knowledge about the information they hold.</p><p>Smartphones and laptops now include dedicated AI hardware that can run compact language models and embedding models directly on the device. Combined with embedded databases, semantic indexes, and vector search, they can retrieve information based on meaning rather than filenames or keywords.</p><pre>Local Data<br>      │<br>      ▼<br>On-Device AI<br>      │<br>      ▼<br>Semantic Index<br>      │<br>      ▼<br>Relevant Knowledge</pre><p>Instead of downloading entire repositories or searching thousands of files, a device can quickly identify the information that matters. More importantly, this understanding stays on the device, reducing both latency and unnecessary exposure of private data.</p><h3>Beyond Synchronizing Files</h3><p>Today’s collaboration tools synchronize documents, database records, and source code.</p><p>Tomorrow’s systems may synchronize something richer: <strong>knowledge</strong>.</p><p>Rather than sending every modified file, an AI assistant could summarize the purpose of a change:</p><blockquote><em>“Recurring billing has been added. Three payment APIs were updated, invoice generation was extended, and new regression tests were created.”</em></blockquote><p>Another developer’s AI assistant can use that information to identify related work, highlight potential conflicts, and prepare a merge proposal. The goal isn’t to replace version control or distributed synchronization — it is to add a layer of understanding on top of them.</p><h3>A Different Kind of Collaboration</h3><p>This does not mean AI assistants replace developers.</p><p>Instead, they become collaborators.</p><p>Each developer works locally, with an AI assistant that understands the repository, project history, architecture, and ongoing work. When teammates synchronize, their assistants exchange context before exchanging changes. Instead of presenting a list of conflicting files, they explain how the work relates and where human attention is actually needed.</p><p>The next challenge is no longer copying data between devices.</p><p>It is enabling our devices to understand one another well enough to help us collaborate more effectively.</p><p><strong>## Continue Reading </strong><br><strong>← Previous:</strong> <a href="https://medium.com/@momilseedat32/what-if-your-laptop-was-the-server-rethinking-personal-computing-b02ca3cf6b85?sharedUserId=momilseedat32">Part 2 : What If Your Laptop Was the Server?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d9c565faa8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 2: What If Your Laptop Was the Server? Rethinking Personal Computing]]></title>
            <link>https://medium.com/@momilseedat32/what-if-your-laptop-was-the-server-rethinking-personal-computing-b02ca3cf6b85?source=rss-7fe8dd64767c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b02ca3cf6b85</guid>
            <category><![CDATA[distributed-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[future-technology]]></category>
            <category><![CDATA[localfirst]]></category>
            <dc:creator><![CDATA[Momil Seedat]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 23:39:59 GMT</pubDate>
            <atom:updated>2026-07-25T11:25:59.404Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BIdDHV-5zSRPYaQTE6sKSA.png" /><figcaption>Computing eras: From isolated machines to centralized cloud terminals, moving toward distributed local-first networks</figcaption></figure><p>For decades, we have been moving in one direction: <strong>more software moved away from our devices and into the cloud.</strong></p><p>At first, this looked like pure progress:</p><ul><li>We no longer needed to maintain physical servers.</li><li>We could access our files from anywhere on Earth.</li><li>Teams could collaborate in real time on a single document.</li><li>Companies could scale globally without buying expensive infrastructure.</li></ul><p>The cloud solved massive problems. But it also changed something fundamental about how we interact with technology: <strong>our devices became less independent.</strong></p><p>A modern laptop containing a blistering fast processor, gigabytes of high-speed memory, and terabytes of solid-state storage often behaves like little more than a glowing window into someone else’s computer.</p><pre>Your Device  ───►  Send Data  ───►  Cloud Processing  ───►  Receive Result</pre><p>The question is: <strong>What if our devices became active participants again?</strong> What if your laptop was not just a silent client of the cloud, but a small, capable server that worked together directly with your other devices?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v4x4zkx_AH3hDsMgwlfM-A.png" /><figcaption><em>Is your ultra-fast machine just a expensive terminal for someone else’s server?</em></figcaption></figure><h3>We Already Had Personal Computers</h3><p>Before cloud computing became dominant, computers were designed around a simple concept: <strong>ownership</strong>.</p><p>A personal computer meant:</p><ul><li>Your applications ran locally on your silicon.</li><li>Your files lived physically on your drive.</li><li>Your work continued seamlessly without an internet connection.</li></ul><p>A writer could write an entire book without being connected to anything. An engineer could design software without depending on an online service uptime. A researcher could analyze massive data sets stored directly on their workstation.</p><p><strong>The computer was the absolute center of your digital world.</strong> Then, the internet shifted the center of gravity.</p><h3>The Shift From Personal Computers to Cloud Terminals</h3><p>Today, modern software relies heavily on a centralized pattern:</p><pre>User Device  ───►  Cloud Service  ───►  Database  ───►  Application Logic</pre><p>Your powerful device becomes primarily an interface — a rendering engine for remote logic.</p><p>For many applications, this makes complete sense. Email, social networks, global collaboration platforms, and massive enterprise systems benefit enormously from centralized infrastructure.</p><p>However, we have started applying this cloud-first model to areas where it isn’t strictly necessary:</p><ul><li>A <strong>note-taking app</strong> doesn’t need a remote server in Virginia to display text you typed five seconds ago.</li><li>A <strong>photo app</strong> shouldn’t need to upload your entire life to a data center before organizing your albums.</li><li>A <strong>health app</strong> shouldn’t require years of private biometric data to live on an external server just to calculate your average heart rate.</li></ul><h3>Your Devices Are Already Powerful Enough</h3><p>Consider the hardware sitting within arm’s reach of you right now:</p><ul><li><strong>Smartphone</strong></li><li><strong>Laptop</strong></li><li><strong>Tablet</strong></li><li><strong>Desktop Computer</strong></li><li><strong>Home Server or NAS</strong></li></ul><p>Together, these devices represent a staggering amount of compute power and localized storage.</p><p>Instead of viewing them as isolated, disconnected objects, we can reframe them as a <strong>Personal Computing Network</strong>:</p><pre>Laptop<br>                   ↕<br>Phone  ────────► Home Server ────────► Tablet<br>                   ↕<br>                 Desktop</pre><ul><li><strong>Each device contributes</strong> computing power.</li><li><strong>Each device holds</strong> encrypted copies of your state.</li><li><strong>Each device performs</strong> local computation.</li></ul><p>In this model, the cloud becomes an <em>optional additional service</em> rather than the sole point of execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lkiHfg1pKlp2cys0PN3U4w.png" /><figcaption>How developer laptops can sync directly with each other during a cloud service outage</figcaption></figure><h3>A Personal Data Network in Practice</h3><p>Let’s examine how you manage photos.</p><h3>The Cloud-First Approach (Today)</h3><pre>Phone  ───►  Cloud Storage  ───►  Other Devices</pre><p><em>Your data leaves your possession immediately.</em></p><h3>The Local-First Alternative</h3><pre>Phone  ───►  Encrypted Local Storage  ───►  Laptop Backup  ───►  Home Server</pre><p>When your devices are near each other, they synchronize over local, high-speed Wi-Fi or peer-to-peer protocols. When internet is available, the cloud acts purely as an extra layer of encrypted disaster recovery or remote relay.</p><p><strong>The fundamental difference is ownership:</strong> Your data originates and stays on your devices first.</p><h3>Collaboration Without a Permanent Server</h3><p>This idea becomes even more compelling when applied to teams. Imagine a software engineering team during an internet service provider outage.</p><p><strong>Today:</strong></p><pre>GitHub Outage / Internet Down  ───►  Work Halts  ───►  Limited Collaboration</pre><p>Developers lose instant access to code repositories, internal documentation, issue trackers, and project history.</p><p><strong>What if every developer ran a local node?</strong></p><p>Each laptop already contains the source code, version history, docs, and search indexes. Developers on the same local network could exchange updates directly:</p><pre>Developer A Laptop  ◄────────►  Developer B Laptop  ◄────────►  Developer C Laptop</pre><p>The team keeps building. When global connectivity returns, the local network smoothly synchronizes its merged changes back to the enterprise cloud.</p><h3>The Hard Problem: Understanding Intent</h3><p>Moving bytes between devices over local networks is relatively easy. <strong>The real challenge is understanding context.</strong></p><p>Traditional sync algorithms ask a simple question:</p><blockquote>“Which files have different timestamps or checksums?”</blockquote><p>Humans care about a completely different question:</p><blockquote>“Why did this change happen, and how do we combine them intelligently?”</blockquote><p>Consider a shared budget spreadsheet where two users edit the same cell offline:</p><ul><li><strong>Person A sets:</strong> Salary = 5000</li><li><strong>Person B sets:</strong> Salary = 5500</li></ul><p>A naive system sees a conflict and forces you to pick one. But understanding context reveals the truth: <em>Person A recorded an approved promotion, while Person B applied a company-wide inflation adjustment.</em></p><p>The ultimate solution isn’t just picking file versions — it’s <strong>understanding intent</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNHD5PDfJL-22VqUY4ScWA.png" /><figcaption>Resolving data conflicts requires understanding intent, not just comparing raw file timestamps</figcaption></figure><h3>Why Security and Privacy Improve</h3><p>Centralized architectures offer convenience, but they create massive “honeypots.” A single cloud database storing data for 50 million users is an irresistible target for bad actors.</p><p>A local-first architecture dramatically minimizes central exposure.</p><h3>Example: Personal Health Metrics</h3><ul><li><strong>Current Cloud Approach:</strong></li><li>Wearable ───► Cloud Server ───► Remote Processing ───► Analytics Dashboard</li><li><em>Years of raw heart rate, sleep, and location data live on an external server.</em></li><li><strong>Local-First Approach:</strong></li><li>Wearable ───► Phone ───► Local Machine Learning Analysis</li></ul><p>Your phone processes the raw data locally and, if necessary, sends <em>only</em> the anonymized result:</p><blockquote><em>&quot;Average heart rate this month: 65 bpm&quot;</em></blockquote><p><strong>True security is not just protecting data after you collect it. Security is avoiding unnecessary data collection altogether.</strong></p><h3>The Cloud Isn’t Going Away</h3><p>This isn’t an argument for destroying cloud infrastructure. The cloud remains indispensable for:</p><ul><li>Global, multi-region routing and communication</li><li>Massive-scale compute workloads (training foundational AI models, rendering video)</li><li>Off-site disaster recovery</li><li>Public information distribution</li></ul><p>The question isn’t <em>“Cloud vs. No Cloud.”</em> The real question is: <strong>“What responsibilities belong to the cloud, and what responsibilities belong to our own silicon?”</strong></p><h3>The Next Generation of Personal Computing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pC2ZL6in0SAKBWuhNjXcbA.png" /><figcaption><strong>The Three Eras of Personal Computing:</strong> How architecture and data ownership have evolved from isolated PCs to central cloud servers, and toward distributed local-first mesh networks.</figcaption></figure><p>Looking back, we can map computing across three distinct eras:</p><p><strong>EraArchitectureData &amp; Compute Location</strong></p><ol><li><strong>The PC Era</strong>One Computer ─ One UserStored &amp; processed strictly locally</li><li><strong>The Cloud Era</strong>Many Users ─ Central ServersStored &amp; processed in remote data centers</li><li><strong>The Next Era</strong>Many Local Devices ─ Peer NetworkDistributed locally, backed up to optional cloud</li></ol><p>Your laptop, phone, and trusted local hardware can form a personal mesh ecosystem that owns, processes, and protects your digital life.</p><h3>The Emerging Horizon</h3><p>If our devices become independent computing partners, how will they seamlessly coordinate? How will they resolve complex state conflicts and understand human intent without constantly prompting us?</p><p>This brings us to the next fascinating evolution:</p><p><strong>What happens when every device hosts its own local AI agent capable of communicating, negotiating, and synchronizing context directly with other AI agents?</strong></p><p><em>That</em> is where computing is heading next.</p><h3>Continue Reading</h3><p>← <strong>Previous:</strong> <a href="https://medium.com/@momilseedat32/the-cloud-is-becoming-optional-rethinking-software-in-an-always-disconnected-world-59583eef342e?sharedUserId=momilseedat32"><em>Part 1: </em>The Cloud Is Becoming Optional</a><br> →<br> <strong>Next:</strong> <a href="https://medium.com/@momilseedat32/synchronization-is-easy-understanding-is-hard-4d9c565faa8d?sharedUserId=momilseedat32"><em>Part 3 : Why Synchronization Isn’t the Hard Problem Anymore</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b02ca3cf6b85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: The Cloud Is Becoming Optional: Rethinking Software in an Always-Disconnected World]]></title>
            <link>https://medium.com/@momilseedat32/the-cloud-is-becoming-optional-rethinking-software-in-an-always-disconnected-world-59583eef342e?source=rss-7fe8dd64767c------2</link>
            <guid isPermaLink="false">https://medium.com/p/59583eef342e</guid>
            <category><![CDATA[digital-privacy]]></category>
            <category><![CDATA[localfirst]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Momil Seedat]]></dc:creator>
            <pubDate>Sun, 19 Jul 2026 18:37:25 GMT</pubDate>
            <atom:updated>2026-07-25T11:24:40.819Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Cloud computing transformed software, but always-online assumptions are starting to show their limits. As our personal devices become more powerful, it’s time to rethink where our applications and our data really belong.</em></p><p>Imagine boarding a 14-hour flight.</p><p>You open your favorite note-taking app.</p><p>It refuses to load.</p><p>You try opening your project management tool.</p><p>It asks you to reconnect.</p><p>Even your smart home application cannot control devices because its cloud service is temporarily unavailable.</p><p>Somehow, in 2026, losing an Internet connection can make modern software feel less capable than applications we used thirty years ago.</p><p>That sounds backwards — but it happened gradually.</p><h3>When Software Didn’t Need the Internet</h3><p>Before cloud computing became mainstream, software was designed very differently.</p><p>During the 1980s and 1990s, most applications assumed one simple thing:</p><p><strong>Your computer was responsible for your work.</strong></p><p>Consider some familiar examples:</p><ul><li>Microsoft Word stored documents on your hard drive.</li><li>Lotus 1–2–3 spreadsheets lived on floppy disks and later local storage.</li><li>CAD software performed all computations on engineering workstations.</li><li>Office databases often ran entirely inside company networks.</li><li>Most games never contacted remote servers.</li></ul><p>Your files lived on your machine.</p><p>If your Internet connection disappeared, nothing really changed — because the Internet was never part of the workflow.</p><p>Ironically, these applications were <em>offline-capable</em> long before anyone started using terms like <em>offline-first</em> or <em>local-first</em>.</p><p>Of course, they weren’t perfect.</p><p>Sharing files often meant sending email attachments or carrying USB drives.</p><p>Collaboration was difficult.</p><p>Backups required manual effort.</p><p>But they had one remarkable characteristic:</p><blockquote><strong><em>They remained fully usable because they were independent of remote infrastructure.</em></strong></blockquote><h3>Then the Cloud Changed Everything</h3><p>Cloud computing solved many real problems.</p><p>Instead of emailing documents back and forth, teams collaborated simultaneously.</p><p>Instead of maintaining expensive servers, organizations rented infrastructure on demand.</p><p>Instead of manually backing up files, cloud platforms replicated data automatically.</p><p>Services like Google Docs, GitHub, Slack, Microsoft 365, and cloud storage fundamentally transformed how modern software works.</p><p>For many applications, this was exactly the right trade-off.</p><p>Cloud computing wasn’t a mistake. It was one of the biggest advances in software engineering. But every technological shift introduces new assumptions.</p><p>One assumption quietly became the foundation of almost every application:</p><blockquote><strong><em>The cloud is always available.</em></strong></blockquote><p>Most of the time, that assumption appears correct.</p><p>Until it isn’t.</p><h3>When the Assumption Breaks</h3><p>We rarely notice our dependence on the cloud until something goes wrong.</p><p>Maybe your Internet provider experiences an outage.</p><p>Perhaps an authentication service becomes unavailable.</p><p>A cloud region goes offline.</p><p>Your company’s VPN stops responding.</p><p>Suddenly:</p><ul><li>Documents stop synchronizing.</li><li>Project management tools become inaccessible.</li><li>Smart devices lose functionality.</li><li>Collaborative editing pauses.</li><li>AI assistants stop responding.</li></ul><p>None of these failures are caused by your laptop.</p><p>Your computer is perfectly capable of running software.</p><p>The problem is that the application has become dependent on infrastructure somewhere else.</p><p>Ironically, today’s computers are thousands of times more powerful than those from the 1990s, yet many applications become unusable the moment they lose access to a remote server.</p><h3>Powerful Computers Behaving Like Thin Clients</h3><p>Modern laptops and smartphones are extraordinary machines.</p><p>A typical personal computer now contains:</p><ul><li>Multi-core processors</li><li>Dedicated AI accelerators</li><li>SSDs</li><li>Powerful GPUs</li><li>Hundreds of gigabytes or even terabytes of storage</li></ul><p>These devices can edit videos, train machine learning models, compile massive software projects, and process operations every second.</p><p>Yet many applications use this hardware primarily as a window into cloud services.</p><p>In many cases, our computers behave more like thin clients than independent computing systems.</p><p>That raises an important architectural question:</p><blockquote><strong><em>Why are we continuously sending information to distant servers when our own devices are already capable of storing, processing, and protecting much of it?</em></strong></blockquote><h3>Privacy Is More Than Encryption</h3><p>When discussing privacy, conversations usually focus on encryption.</p><p>Encryption is essential But architecture matters just as much. Consider a smartwatch.</p><p>Today it continuously uploads information such as:</p><ul><li>Heart rate</li><li>Sleep patterns</li><li>Daily activity</li><li>Location history</li></ul><p>These records are often stored in cloud infrastructure where analytics are performed.</p><p>Now imagine a different design.</p><p>Your phone securely stores your complete health history.</p><p>Your laptop maintains an encrypted replica.</p><p>Your tablet keeps another synchronized copy.</p><p>Instead of uploading years of personal data, the cloud simply delivers an updated analysis algorithm.</p><p>Your phone performs the computation locally and returns only the result:</p><blockquote><strong><em>Average resting heart rate this month: 63 BPM</em></strong></blockquote><p>The cloud never needs access to your complete medical history.</p><p>Your sensitive information never leaves devices you already own.</p><p>Privacy, in this model, isn’t achieved only through stronger encryption.</p><p>It is strengthened because <strong>less data needs to leave your devices in the first place.</strong></p><h3>We Already Own a Distributed System</h3><p>Look around your home.</p><p>Many of us already own several computing devices:</p><ul><li>Laptop</li><li>Smartphone</li><li>Tablet</li><li>Desktop computer</li><li>Home server</li></ul><p>Collectively, these devices provide significant storage, processing power, and redundancy.</p><p>Yet they usually operate as isolated machines that synchronize through cloud providers.</p><p>What if they worked together directly?</p><p>Instead of depending on a remote service as the single source of truth, our own devices could securely replicate information among themselves.</p><p>The cloud would still have an important role.</p><p>It could act as:</p><ul><li>A secure backup</li><li>A synchronization relay</li><li>A coordination service for remote devices</li></ul><p>But it would no longer need to own every piece of our personal data.</p><h3>Computing Is Quietly Moving Back Toward the Edge</h3><p>Interestingly, many recent developments point in this direction.</p><p>We now see:</p><ul><li>AI models running directly on laptops and phones</li><li>Edge computing moving computation closer to users</li><li>Applications that continue working without constant connectivity</li><li>Better synchronization technologies for disconnected environments</li></ul><p>None of these trends eliminate the cloud.</p><p>Instead, they reduce unnecessary dependence on it.</p><p>The cloud becomes an enhancement rather than a requirement.</p><h3>A Different Question for the Next Decade</h3><p>For years, software engineering focused on one question:</p><blockquote><strong><em>“How can we move more software to the cloud?”</em></strong></blockquote><p>Perhaps the next decade will be defined by a different one:</p><blockquote><strong><em>“How much of the cloud do we actually need?”</em></strong></blockquote><p>Cloud computing remains incredibly valuable.</p><p>Global collaboration, large-scale infrastructure, disaster recovery, and shared services will continue to rely on it.</p><p>But not every application needs to assume that a remote server is available every second of every day.</p><p>As personal devices become increasingly capable, we have an opportunity to rethink software architecture.</p><p>Perhaps the future isn’t about abandoning the cloud.</p><p>Perhaps it’s about using it only where it genuinely adds value — while allowing our own devices to own our data, continue operating during outages, and collaborate directly with one another.</p><p>That would make software not only faster and more private, but also far more resilient.</p><h3>What’s Next?</h3><p>In the next article, we’ll explore a fascinating idea:</p><p><strong>What if your laptop, phone, tablet, and home server behaved like a personal distributed system?</strong></p><p>Instead of isolated devices that constantly depend on the cloud, they could synchronize directly, continue working offline, resolve conflicts automatically, and keep your applications running — even when the Internet disappears.</p><p>Because perhaps the future of computing isn’t about connecting everything to the cloud.</p><p>It’s about teaching our own devices to work together.</p><p><em>If you enjoyed this article, follow the series as we explore the future of software architecture from cloud dependency to resilient, device-centric computing, distributed synchronization, and the next generation of offline-capable applications. </em><a href="https://medium.com/@momilseedat32/what-if-your-laptop-was-the-server-rethinking-personal-computing-b02ca3cf6b85?sharedUserId=momilseedat32">what-if-your-laptop-was-the-server-rethinkin</a><br><br> <strong>Next </strong>→<br><a href="https://medium.com/@momilseedat32/what-if-your-laptop-was-the-server-rethinking-personal-computing-b02ca3cf6b85?sharedUserId=momilseedat32"><strong><em>Part 2: </em></strong><em>What If Your Laptop Was the Server?</em></a></p><p><a href="https://medium.com/@momilseedat32/synchronization-is-easy-understanding-is-hard-4d9c565faa8d?sharedUserId=momilseedat32"><strong><em>Part 3 :</em></strong><em> Why Synchronization Isn’t the Hard Problem Anymore</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59583eef342e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built an Agentic AI Monitoring Platform for Automated Root Cause Analysis]]></title>
            <link>https://medium.com/@momilseedat32/how-i-built-an-agentic-ai-monitoring-platform-for-automated-root-cause-analysis-640cb20d4056?source=rss-7fe8dd64767c------2</link>
            <guid isPermaLink="false">https://medium.com/p/640cb20d4056</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[aiops]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[logging-and-monitoring]]></category>
            <category><![CDATA[agentic-rag]]></category>
            <dc:creator><![CDATA[Momil Seedat]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 19:11:50 GMT</pubDate>
            <atom:updated>2026-06-20T19:27:49.826Z</atom:updated>
            <content:encoded><![CDATA[<p>Modern monitoring and observability tools are great at detecting symptoms. They can tell us when latency spikes, error rates increase, or a service becomes unavailable. But during a production incident, the most important question often remains unanswered:</p><p><strong><em>What exactly is broken, and why did it break?</em></strong></p><p>That frustration led me to build <strong>OpsCortex</strong>, an AI-powered monitoring and AIOps platform designed to go beyond dashboards and alerts. Instead of simply collecting logs, metrics, traces, and events, OpsCortex uses <strong>LLM agents, topology graphs, memory systems, and machine learning models</strong> to perform automated root cause analysis, understand service dependencies, learn from past incidents, and suggest remediation actions.</p><p>The goal is simple:</p><p><strong><em>Move from detecting problems to understanding them.</em></strong></p><p>In this article, I’ll walk through the architecture behind OpsCortex, how its agent framework works, and why technologies like Redis, Neo4j, vector databases, and AI agents play a critical role in building a monitoring system that can reason about production incidents like an engineer.</p><p><strong>GitHub Repository: </strong><a href="http://Modern monitoring and observability tools are great at detecting symptoms. They can tell us when latency spikes, error rates increase, or a service becomes unavailable. But during a production incident, the most important question often remains unanswered:  What exactly is broken, and why did it break?  That frustration led me to build OpsCortex, an AI-powered monitoring and AIOps platform designed to go beyond dashboards and alerts. Instead of simply collecting logs, metrics, traces, and events, OpsCortex uses LLM agents, topology graphs, memory systems, and machine learning models to perform automated root cause analysis, understand service dependencies, learn from past incidents, and suggest remediation actions.  The goal is simple:  Move from detecting problems to understanding them.  In this article, I&#39;ll walk through the architecture behind OpsCortex, how its agent framework works, and why technologies like Redis, Neo4j, vector databases, and AI agents play a critical role in building a monitoring system that can reason about production incidents like an engineer.  GitHub Repository: https://github.com/momil-seedat/ops-cortex">https://github.com/momil-seedat/ops-cortex</a></p><h3>1. What OpsCortex Is (in Simple Terms)</h3><p><strong>OpsCortex</strong> is an AI-powered monitoring and AIOps platform that analyzes logs, metrics, traces, and events to detect incidents, identify root causes, and recommend remediation actions.</p><p>Instead of simply generating alerts, it correlates signals across services, understands system dependencies, and uses AI agents to investigate what is actually happening inside a distributed system.</p><p>What makes OpsCortex different is its ability to learn from past incidents. Rather than treating every alert as a new problem, it recognizes recurring patterns and uses historical context to accelerate root cause analysis.</p><p>In simple terms, OpsCortex is designed to answer three critical questions:</p><ul><li><strong>What is failing?</strong></li><li><strong>Why is it failing?</strong></li><li><strong>What should we do next?</strong></li></ul><h3>2. The Big Idea Behind the Architecture</h3><p>The entire system is built on one belief:</p><blockquote><em>Real intelligence in infrastructure comes from memory + structure + reasoning working together.</em></blockquote><p>So I split the system into four layers:</p><ul><li><strong>Memory Layer</strong></li><li><strong>Intelligence Layer</strong></li><li><strong>Reasoning Layer</strong></li><li><strong>Action Layer</strong></li></ul><p>Each one does one job well.</p><h3>3. How Agents Actually Work Internally</h3><p>OpsCortex uses a set of <strong>AI agents for observability, incident detection, and automated root cause analysis</strong>, instead of relying on a single LLM call. This makes the system more scalable, modular, and production-ready for <strong>AIOps-based monitoring systems</strong>. The architecture is built around four core components topology agent, monitoring agent, diagnosis agent, llm analyzer</p><p>Together, they form an <strong>agentic AIOps pipeline for real-time monitoring and incident management</strong>.</p><h4>Monitoring Agent</h4><p>The monitoring agent is responsible for <strong>real-time observability</strong>.</p><ul><li>polls Prometheus every 10 seconds</li><li>collects service-level metrics</li><li>writes live data into Redis</li><li>triggers amber/red alert signals</li></ul><p>This layer ensures continuous <strong>system health monitoring and anomaly detection</strong>.</p><h4>Topology Agent</h4><p>The topology agent builds and maintains a <strong>live service dependency graph</strong>, which is critical for <strong>root cause analysis in distributed systems</strong>. It uses:</p><ul><li><strong>SQLite (persistent memory)</strong> → services, edges, baselines</li><li><strong>Redis (hot memory)</strong> → live metrics and state</li></ul><p>It also tracks service lifecycle:</p><ul><li>new services are automatically added</li><li>inactive services are marked offline</li><li>long-unused services are deprecated</li></ul><p>This gives OpsCortex full <strong>system topology awareness for observability and failure tracing</strong></p><h4>Diagnosis Agent</h4><p>The diagnosis agent converts alerts into structured incidents for <strong>AIOps-driven incident management</strong>.</p><ul><li>suppresses noisy alerts</li><li>batches related failures</li><li>groups incidents by service and metric</li><li>checks historical incident patterns before using an LLM</li></ul><p>This reduces cost and improves accuracy by reusing <strong>historical root cause knowledge</strong>.</p><h4>LLM Analyzer</h4><p>The LLM analyzer performs <strong>AI-powered root cause analysis (RCA)</strong> using structured system context.</p><p>It processes:</p><ul><li>inferred root cause</li><li>fault propagation path</li><li>anomaly detection scores (z-scores)</li><li>topology history</li><li>recent deployments or changes</li></ul><p>It returns structured output:</p><ul><li>root cause</li><li>contributing factors</li><li>confidence score</li><li>recommended fix</li><li>impact analysis</li></ul><h3>Step 1: An event arrives</h3><p>Something happens in production:</p><ul><li>latency spike</li><li>error surge</li><li>deployment change</li></ul><p>This is just raw signal.</p><h3>Step 2: Check Redis (What is happening right now)</h3><p>The agent first looks at Redis:</p><blockquote>Is this already part of an incident?</blockquote><blockquote>Are we seeing a spike or a trend?</blockquote><blockquote>What is the current live state?</blockquote><p><strong>Redis acts like: </strong><em>short-term working memory. </em>So the system doesn’t overreact to noise.</p><h3>Step 3: Expand context using Neo4j (How the system is connected)</h3><p>Now the agent asks:</p><blockquote><strong><em>“What is affected by this?”</em></strong></blockquote><p>Neo4j gives the topology:</p><ul><li>service dependencies</li><li>upstream/downstream flows</li><li>failure propagation paths</li></ul><p>Now the system sees structure, not just symptoms.</p><h3>Step 4: Search memory (Have we seen this before?)</h3><p>Next, the AI agent queries the <strong>vector database</strong>, which serves as OpsCortex’s long-term memory layer. It retrieves semantically similar incidents, historical root causes, previous remediation actions, and postmortem reports to provide context for the current investigation.</p><p>This is where <strong>AI-powered root cause analysis</strong> becomes more effective. Instead of analyzing an incident in isolation, the system compares it against past failures, identifies recurring patterns, and leverages historical knowledge to improve decision-making.</p><p>At this stage, OpsCortex is no longer just detecting anomalies .it is using memory and experience to understand them.</p><h3>Step 5: ML signals (What patterns are emerging)</h3><p>ML models continuously generate signals to understand system behavior:</p><ul><li>anomaly detection scores</li><li>clustering of similar incidents</li><li>statistical deviations</li></ul><p>This helps the system separate:</p><ul><li>noise vs real incidents</li><li>new issues vs recurring patterns</li></ul><h3>Step 6: Diagnosis + Reasoning Flow</h3><p>This is where <strong>incident understanding and root cause analysis begins</strong> in the AIOps pipeline. When an event arrives, the <strong>Diagnosis Agent</strong> takes control but it does not immediately call the LLM.</p><h4>Step 6.1: Check Memory First</h4><p>The Diagnosis Agent first checks active incidents, incident history, past similar failures, pattern matcher</p><p>If a match is found no LLM call required use past root cause</p><h4>Step 6.2: Build Full Context (If Unknown)</h4><p>If the issue is new, the agent collects full context from:</p><ul><li>Redis → current system state</li><li>Neo4j → service dependency graph</li><li>ML layer → anomaly + pattern signals</li><li>Memory → similar past incidents</li></ul><h4>Step 6.3: LLM Escalation</h4><p>Only if no match is found, the Diagnosis Agent sends a structured incident to the <strong>LLM Analyzer</strong>. The LLM then performs <strong>root cause analysis (RCA)</strong> using all signals and returns:</p><ul><li>root cause</li><li>contributing factors</li><li>confidence score</li><li>recommended fix</li><li>impact analysis</li></ul><h4>Key Idea</h4><p>The Diagnosis Agent first tries to solve incidents using memory and patterns. The LLM is only used when the system encounters a new or unclear failure.</p><p>Finally, the agent decides notify, escalate, suggest fix or trigger automation. Most Important Every incident is stored back into memory.<em> </em>So the system gets better over time.</p><h3>4. Memory Design</h3><p>One of the biggest design decisions in OpsCortex wa<em>s </em>to not trying to store everything in one database.<em> </em>Instead, memory is split into three layers.</p><h4>4.1 Redis → Short-Term Memory</h4><p>Redis handles:</p><ul><li>active incidents</li><li>live metric windows</li><li>alert deduplication</li><li>agent working context</li></ul><p>Think of it as what the system is thinking about right now<em>. </em>It is fast, temporary, and constantly changing.</p><h4>4.2 Neo4j → Structural Memory</h4><p>Neo4j stores relationships:</p><ul><li>services</li><li>dependencies</li><li>infrastructure graph</li><li>failure paths</li></ul><p>This is critical because incidents are not isolated they propagate. Without this, root cause analysis becomes guesswork.</p><p>Neo4j answers:</p><blockquote><em>“How does this failure spread?”</em></blockquote><h4>4.3 Vector DB → Semantic Memory</h4><p>This is where “experience” lives. It stores:</p><ul><li>past incidents</li><li>logs embeddings</li><li>resolution patterns</li><li>postmortems</li></ul><p>So instead of keyword matching the system understands similarity. This enables: “we’ve seen this before” or “this looks like a past outage”</p><h3>5. Architecture Diagram (How Everything Fits Together)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UaniCt9cJl4y-gqa19Yr-A.png" /></figure><h3>6. Why This Architecture Works</h3><p>Traditional monitoring and observability tools often struggle with <strong>root cause analysis</strong> because they treat alerts independently, lack awareness of service dependencies, forget historical incidents, and rely heavily on static thresholds.</p><p>OpsCortex takes a different approach. It combines <strong>Redis for real-time state management</strong>, <strong>Neo4j for topology and dependency mapping</strong>, <strong>vector databases for incident memory and semantic search</strong>, <strong>machine learning for anomaly detection</strong>, and <strong>AI agents for reasoning and investigation</strong>.</p><p>By bringing together observability, memory, topology awareness, and agentic AI, OpsCortex moves beyond alerting and provides a more intelligent approach to incident detection, root cause analysis, and automated operations.</p><h3>Final Thought</h3><p>If you reduce to one idea, it is this: <em>A system that doesn’t just observe infrastructure but learns how it behaves over time </em>not dashboards, not alerts. But <strong>memory + reasoning for production systems</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=640cb20d4056" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Modern Monitoring Still Doesn’t Tell Us What’s Wrong]]></title>
            <link>https://medium.com/@momilseedat32/why-modern-monitoring-still-doesnt-tell-us-what-s-wrong-d7197a0c8126?source=rss-7fe8dd64767c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7197a0c8126</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[ai-observability-tools]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[distributed-tracing]]></category>
            <category><![CDATA[aiops]]></category>
            <dc:creator><![CDATA[Momil Seedat]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 11:26:30 GMT</pubDate>
            <atom:updated>2026-06-20T19:30:31.795Z</atom:updated>
            <content:encoded><![CDATA[<h3>We have more telemetry than ever. So why is root cause analysis still mostly manual?</h3><p>A few years ago, the biggest challenge in operating distributed systems was visibility.</p><p>We didn’t have enough data.</p><p>Today, that problem has largely been solved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RuZEIH6T0T-BeywB885XoA.png" /></figure><p>Modern engineering teams collect metrics from every service, traces from every request path, logs from every application, and alerts for nearly every imaginable condition. Platforms like Prometheus, OpenTelemetry, Grafana, Datadog, New Relic, and countless others have transformed observability into one of the most mature areas of modern infrastructure.</p><p>Yet something interesting happens when production incidents occur.</p><p>Despite having unprecedented visibility, engineers still spend a significant amount of time answering a surprisingly basic question:</p><p><strong>What actually caused this?</strong></p><p>The information exists somewhere in the telemetry.</p><p>The challenge is turning that information into understanding.</p><p>After spending years working with distributed systems, I’ve come to believe that the next evolution of observability isn’t collecting more data.</p><p>It’s helping systems remember what that data means.</p><h3>The Observability Paradox</h3><p>Observability has never been more powerful.</p><p>A single request can generate:</p><ul><li>Metrics</li><li>Traces</li><li>Structured logs</li><li>Application events</li><li>Infrastructure events</li><li>Service dependency information</li></ul><p>In theory, this should make incident diagnosis easier than ever. In practice, incidents often follow the same pattern. An alert fires. Multiple services begin reporting problems. Dashboards light up. Engineers open traces. Teams gather in incident channels.</p><p>And eventually someone pieces together enough evidence to identify the root cause.The surprising part is that the root cause was usually present in the telemetry from the beginning.</p><p>What was missing wasn’t information. It was context.</p><p>Most observability systems tell us what changed. Very few tell us why.</p><h3>Why Humans Are Still Better Than Systems</h3><blockquote>When experienced engineers investigate incidents, they don’t rely solely on current telemetry. They rely on memory. They remember similar incidents. They remember which services depend on each other. They remember recurring failure patterns. They remember which alerts are usually noise and which deserve immediate attention.This accumulated knowledge becomes a form of operational intuition.</blockquote><p>It’s one of the reasons senior engineers can often identify problems faster than less experienced engineers despite looking at the same dashboards.</p><p>Monitoring platforms don’t have that advantage.</p><p>Most systems treat every incident as an independent event.</p><p>i). Metrics are collected.</p><p>ii). Alerts are generated.</p><p>iii). Incidents are resolved.</p><p>Then the system effectively forgets what it learned. The next incident starts from scratch. That feels like a missed opportunity.</p><h3>The Missing Layer: Operational Memory</h3><p>Imagine a monitoring platform that could remember.</p><p>Not just store logs or metrics.</p><p>Actually remember.</p><p>Imagine a system that knows:</p><ul><li>How services communicate</li><li>What normal behavior looks like</li><li>Which patterns occur repeatedly</li><li>Which incidents resemble previous incidents</li><li>Which alerts are likely symptoms rather than causes</li></ul><p>Instead of acting like a collection of dashboards, it begins acting more like an experienced operator.</p><p><strong>When an anomaly appears, it can ask:</strong></p><blockquote>“Have I seen something similar before?”</blockquote><p><strong>When an alert fires, it can ask:</strong></p><blockquote>“Is this genuinely unusual for this service at this time?”</blockquote><p><strong>When multiple services degrade simultaneously, it can ask:</strong></p><blockquote>“Which service showed signs of trouble first?”</blockquote><p>These questions sound simple. Yet they are rarely part of traditional monitoring systems.</p><h3>Why Alert Fatigue Happens</h3><p>One of the clearest examples of missing memory is alert fatigue.</p><p>Every engineering team experiences it. A warning appears every day.</p><p>Nothing breaks. The warning appears again tomorrow. And the day after that.Eventually people stop paying attention. The alert becomes background noise.</p><p>Then one day a real problem occurs behind that same signal. Now the team has a much bigger problem. The issue isn’t that the alert existed.</p><p>The issue is that the monitoring system never learned anything from its previous behavior. To the system, every occurrence looks identical. To a human operator, they’re obviously different.</p><p>A system with memory should be capable of making that distinction as well.</p><h3>Understanding Cause Versus Symptom</h3><p>Distributed systems create another challenge.</p><p>Failures rarely stay isolated.</p><p>A problem in one service often creates symptoms elsewhere.</p><ol><li><em>Error rates increase.</em></li><li><em>Latency rises.</em></li><li><em>Dependent services begin struggling.</em></li><li><em>Alerts start appearing across the environment.</em></li><li><em>The loudest alert is not necessarily the root cause.</em></li></ol><p>In many cases, it’s simply the most visible victim. Finding the actual source requires understanding relationships between services and examining how failures propagate through the system.This is where context becomes more valuable than raw telemetry.The answer isn’t more dashboards. The answer is reasoning.</p><h3>Can AI Solve This?</h3><p>The recent rise of large language models has created renewed interest in AI-powered operations. Many vendors now promise intelligent incident analysis and automated root-cause detection.</p><p><em>The opportunity is exciting.</em></p><p><em>The challenge is reliability.</em></p><p>AI is incredibly good at explaining information. It’s not always good at discovering truth from incomplete evidence. That distinction matters.</p><p>The most effective operational systems will likely combine deterministic reasoning with AI explanation. Algorithms identify likely causes. AI explains the findings. This creates a system that is both explainable and trustworthy.</p><h3>Building Toward a Different Future</h3><p>These observations eventually led me to build OpsCortex, an experimental AIOps platform based on a simple idea:</p><p>What if observability systems could learn from experience?</p><p>Instead of treating telemetry as isolated data points, the platform attempts to build operational memory over time.</p><p><strong><em>i). It learns service relationships.</em></strong></p><p><strong><em>ii). It learns behavioral baselines.</em></strong></p><p><strong><em>iii). It remembers incidents.</em></strong></p><p><strong><em>iv). It recognizes recurring patterns.</em></strong></p><p>And it uses that context to assist with diagnosis when new incidents occur.</p><p>The goal isn’t to replace engineers. The goal is to reduce the amount of time spent searching for information.Because during an outage, the most valuable thing a system can provide isn’t another graph.</p><p>It’s understanding.</p><h3>The Next Chapter</h3><p>Observability has done an incredible job solving the visibility problem.</p><p>The next challenge is solving the understanding problem.</p><p>That requires systems capable of retaining context, learning from history, and reasoning about relationships.</p><p>In short, it requires memory.</p><p>I believe the future of operations won’t be defined by who collects the most telemetry.</p><p>It will be defined by who can turn telemetry into knowledge.</p><p>And knowledge begins when systems stop merely recording information and start remembering it.</p><p>In my next article, I’ll walk through the architecture of OpsCortex and explain how I built a multi-agent system that combines observability, graph reasoning, machine learning, and large language models to perform autonomous root-cause analysis.<br>Please check next article -&gt; <a href="https://medium.com/@momilseedat32/how-i-built-an-agentic-ai-monitoring-platform-for-automated-root-cause-analysis-640cb20d4056">https://medium.com/@momilseedat32/how-i-built-an-agentic-ai-monitoring-platform-for-automated-root-cause-analysis-640cb20d4056</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7197a0c8126" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>