<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[The Glass Box]]></title><description><![CDATA[A transparent look at building production AI. No hype, no black boxes. Just code, architecture, and the journey of an AI Architect.]]></description><link>https://www.nudurupati.co</link><image><url>https://substackcdn.com/image/fetch/$s_!ysUW!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff412fd5b-35d5-42f6-803d-d66d82d2fa8b_1280x1280.png</url><title>The Glass Box</title><link>https://www.nudurupati.co</link></image><generator>Substack</generator><lastBuildDate>Sat, 05 Dec 2026 07:40:38 GMT</lastBuildDate><atom:link href="https://www.nudurupati.co/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Sreeram Nudurupati]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[nudurupati@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[nudurupati@substack.com]]></itunes:email><itunes:name><![CDATA[Sreeram Nudurupati]]></itunes:name></itunes:owner><itunes:author><![CDATA[Sreeram Nudurupati]]></itunes:author><googleplay:owner><![CDATA[nudurupati@substack.com]]></googleplay:owner><googleplay:email><![CDATA[nudurupati@substack.com]]></googleplay:email><googleplay:author><![CDATA[Sreeram Nudurupati]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[AI Glasses Are Here, Like It or Not. Now Where Did I Leave My Keys?]]></title><description><![CDATA[Why AI glasses are a data engineering problem before they're an AI problem.]]></description><link>https://www.nudurupati.co/p/ai-glasses-are-here-like-it-or-not</link><guid isPermaLink="false">https://www.nudurupati.co/p/ai-glasses-are-here-like-it-or-not</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Wed, 02 Dec 2026 15:36:53 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ysUW!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff412fd5b-35d5-42f6-803d-d66d82d2fa8b_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Steve Jobs was a visionary, macOS and Apple Silicon have changed the tech scene and our lives for the better. However, the iPhone was the worst invention for human sanity. That was my opinion a decade ago, and I still stand by it.</p><p>Then came generative AI on PCs and smartphones, and it is rapidly transforming our everyday life (for better or worse). Now Augmented Reality and AI glasses are poised to take that interaction to the next level with intelligent eyewear.</p><p>Get ready for ads on everything, everywhere, all at once, and hyper-personalized, surveillance pricing with ambient spatial promotions and real-time AR micro-offers. Says the cynic in me.</p><p>However, the technologist and optimist in me couldn&#8217;t be more excited at the prospect of a challenging yet rewarding frontier of egocentric, ambient, spatial computing. If we thought Big Data was big, egocentric computing will shatter all the 3Vs (volume, velocity, variety) of Big Data and beyond, turning every waking moment into a fluid, high-frequency stream of multi-modal telemetry.</p><p>Imagine all the novel use cases egocentric computing can unlock, especially for an absent-minded person like me, who always safely stores (forgets) the keys in the refrigerator. Now I can ask my favorite conversational AI: &#8220;Where did I leave my keys?&#8221;</p><p>While Big Tech is solving the challenge of compressing a spatial computer, sensor suite, and camera into a small form factor of a few thermal watts, I am more curious about the data aggregation, storage, and processing side of things. As a Data Engineer, I realize this is anything but trivial.</p><p>First, to answer the question I posed earlier, an 8-hour video stream recorded at around 2K+ 30fps (860K frames and tens of GB) needs to be parsed. This alone would require massive pre-processing split between edge and cloud computing, plus a lot of embarrassingly parallel processing shared between local NPUs and cloud-based GPUs.</p><p>Second, existing vision models focus on a third-person spectator view. However, augmented reality streams a fluid, first-person, egocentric view. The image corpora used to train existing vision models present a curated, third-person perspective. Egocentric video lacks curation and has a completely different perspective.</p><p>Third, first-person perception requires understanding the wearer&#8217;s surroundings, interpreting objects and actions in human context, and being attentive to human-object interactions and high-level social behaviors.</p><p>While I don&#8217;t have answers to any of the challenges presented yet, I am excited to find a few on this journey. My goal is to build an AI context engine for first-person egocentric data to help answer questions like what happened, where, and when, with evidence.</p><p>Existing literature assumes a knowledge graph for long-term memory systems. Given my previous work with GraphDBs for AI context, I think &#8220;<a href="https://www.nudurupati.co/p/enterprise-knowledge-graphs-cant">Enterprise Knowledge Graphs Can&#8217;t Work</a>&#8220;, so I don&#8217;t assume a graph is the default for this use case. The main question driving my quest is: when does a graph beat a state table vs. hybrid search (text + vector search)?</p><p>My ultimate goal is to answer these questions with measurements and evidence. And if it works, I will finally know which shelf of the refrigerator my keys are on.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Machines need a baseline of chaos to learn from the real world.]]></title><description><![CDATA[I tried to design a robot policy by hand and Physics said no.]]></description><link>https://www.nudurupati.co/p/machines-need-a-baseline-of-chaos</link><guid isPermaLink="false">https://www.nudurupati.co/p/machines-need-a-baseline-of-chaos</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 16 Nov 2026 14:42:18 GMT</pubDate><enclosure url="https://substackcdn.com/image/youtube/w_728,c_limit/llQBon3Yf8s" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div id="youtube2-llQBon3Yf8s" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;llQBon3Yf8s&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/llQBon3Yf8s?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p>&#8220;Unless you introduce stochasticity, randomness... you would not enable the machine to learn,&#8221; said Denis Noble in a lecture on biological intelligence, summarizing Alan Turing&#8217;s 1950 paper, which states, &#8220;It is probably wise to include a random element in a learning machine.&#8221;</p><p>I ignored both pieces of advice while designing a simple robotic policy last week, relying completely on a purely deterministic approach, and I failed miserably.</p><p>My goal was simple: design a simple, not completely random, policy to accomplish PushT. For the uninitiated, PushT is the &#8220;hello world&#8221; of robotics where a round pusher tries to push a T-shaped block onto a T-shaped outline. A policy, for the layman, is a function that takes the robot's current state and produces the next action.</p><p>I tried to leverage my knowledge of linear motion to design an equation that takes into account the current positions of the pusher and the block, as well as the final goal position, and moves the pusher close to the T-block, then pushes it toward the goal outline in a straight line. Simple linear algebra. I designed my policy as a function and ran the sim.</p><p>The end result was hilarious. The pusher, instead of pushing the block in a straight line, pivoted the block at the top and started rotating it in a circle like a cowboy trying to rope something. Thus, I called my policy the Cowboy.</p><p>Little did I know that Physics has its own mind, and my sim, while taking into consideration Newtonian mechanics, completely ignores simple real-world phenomena like gravity and friction. So I fell back on using a tried-and-tested policy to produce 1050 episodes (1000 random, 50 diffusion) of simulated data with success labels I can trust.</p><p>Key lessons learned:</p><ol><li><p>Include stochasticity in the learning process for machines.</p></li><li><p>A policy for a Data Engineer can be a black box: observation in, action out.</p></li><li><p>Plenty of community datasets and models available to use, though take their labels with a grain of salt.</p></li></ol><p>My full experiment and failures are recorded in the GitHub repo: <a href="https://github.com/snudurupati/physical-ai-data-architect/tree/main/weeks/week-03">physical-ai-data-architect</a></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Local AI FTW]]></title><description><![CDATA[Does The Harness Matter More Than the Model?]]></description><link>https://www.nudurupati.co/p/local-ai-ftw</link><guid isPermaLink="false">https://www.nudurupati.co/p/local-ai-ftw</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 09 Nov 2026 20:37:42 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ysUW!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff412fd5b-35d5-42f6-803d-d66d82d2fa8b_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Last week I <a href="https://www.nudurupati.co/p/i-asked-claude-to-build-my-local">asked Claude to build my local AI stack</a>, and it did. Qwen3-30B-A3B at 6-bit quantization, served by LM Studio, driven by Goose as the harness, about 63 tokens a second on my MacBook Pro with 48GB. It handled chat, coaching sessions, and everyday data engineering code just fine.</p><p>However, I ended that post with a failure, a long-horizon, unsupervised video-as-code workflow that my Claude setup handles overnight failed miserably on the MoE model. My guess was that I&#8217;d need a GPT-OSS-120B class model on a 128GB machine, or a different harness, and I said I wasn&#8217;t ready to splurge on beefier hardware yet.</p><p>Well, I lied. I spent about a week arguing with myself over a $7000 box first, and I bought it for CUDA. My first weekend with it proved that local AI, when paired with capable hardware, the right model for the task, and a suitable harness, negated the value prop of having a cloud AI subscription, at least for my specific use. Sorry Claude, you helped me set up my local AI, but Qwen and Deepseek Harness are my new besties, so it&#8217;s time to part ways. Though I promise to pick you right back up the day Anthropic decides to open source.</p><h2>The Budget</h2><p>I&#8217;m working on a <a href="https://github.com/snudurupati/physical-ai-data-architect">Physical AI &amp; Robotics</a> data project, which requires me to run MuJoCo sims, train ACT and diffusion policies to see how they work, and do LoRA fine-tuning for my own learning. My original plan was to keep my Claude subscription for the heavy lifting, and my existing MacBook for local AI. So I asked Claude to help me pick, and gave it my priorities in this order:</p><ol><li><p>Run frontier-class OSS LLMs, highest priority.</p></li><li><p>Run complex enough robotics sims.</p></li><li><p>Train robotics models, purely for experimentation. Least priority.</p></li><li><p>LoRA fine-tuning pipelines, somewhat of a priority.</p></li></ol><p>The total upfront cost came to about $8,000, which felt like a lot of sunk cost for a box I&#8217;d never get that money back on. So I went shopping down the price ladder.</p><p>The contenders were:</p><ul><li><p>Three 16GB VRAM gaming PCs: a $2,000 RTX 5060 Ti box (only 2 RAM slots, so I&#8217;d have to throw away the 32GB to upgrade), the ASUS ROG with an RTX 5080 at $3,799, and a PowerSpec G915 with a 9900X3D and 64GB at $3,700. Faster GPUs, same 16GB ceiling, but none of these can support a 120B-class model.</p></li><li><p>MicroCenter custom build for $5,584.88, and I was close to saying yes, but I don&#8217;t want to tweak hardware at all, and a custom tower is nothing but tweaking.</p></li><li><p>A Mac Studio with 128GB unified memory and M5 Max, ~600 GB/s memory bandwidth</p></li><li><p>NVIDIA DGX Spark with 128GB unified memory, 273 GB/s memory bandwidth, and 6144 sweet CUDA cores</p></li></ul><h2>Mac Studio vs DGX Spark</h2><p>I shortlisted two machines. The Mac Studio M5 Max with 128GB and 2TB costs $5,899, and the DGX Spark with 128GB and 4TB costs $6,950. Both in-store at MicroCenter.</p><p>The Mac wins on sheer memory bandwidth and tokens-per-second speed, and the M5 Max does about 614 GB/s versus roughly 273 GB/s on the Spark. The Mac is a general-purpose machine, with great resale value. If all I wanted was to chat with a big model quickly, I&#8217;d have bought it and been happy.</p><p>However, I kept asking whether I was missing anything big by not having CUDA. For LLM inference, nothing, but for the other half of my list, including ACT, diffusion policy, SmolVLA, GR00T, and Isaac Sim, all assume CUDA first. The Mac Studio I wanted was in stock at MicroCenter for $5,900 plus tax, with the Spark sitting at $6,950. The gap was $1,050, so I picked up the latter for CUDA, for Robotics sims and fine-tuning or training models. It took me less than an hour to unbox the DGX Spark, apply the mandatory updates, download the model, and generate the first token. I can&#8217;t say the same about my drive back from MicroCenter in Santa Clara to Berkeley, where I waited impatiently in my car, stuck in I-880 traffic.</p><h2>Setting up Qwen on the DGX Spark</h2><p>The plan was Qwen3.8 Flash-Next served by vLLM, using NVIDIA&#8217;s own playbook and NVIDIA Sync. The playbook has two pulls, and at first glance it looked redundant.</p><pre><code>docker pull eugr/spark-vllm-b12x:nightly-20261015</code></pre><p>hf download nvidia/Qwen3.8-Flash-Next-FP4-Local</p><p>The first is the server, the containerized vLLM, the second is the model it serves.</p><p>Then I waited. Memory crept up to 74 GiB and kept going, and settled around 108 GiB. The whole front and back of the box turned out to be vents, which made me weirdly happy, and the logs sat on lines like b12x compiling sequence.gdn_prefill: 8/209 ready for quite some time. Eventually:</p><pre><code>(APIServer pid=1) INFO: Started server process [1]</code></pre><p>Application startup complete.</p><p>My first prompt was a haiku, and it spent 430 of 450 tokens thinking before it wrote seventeen syllables. That&#8217;s the reasoning parser working as designed. It does mean tokens per second tells you very little about how long you wait for a haiku.</p><h2>The Network Setup</h2><p>My requirement was that the DGX Spark be accessible from my wife&#8217;s MacBook, her phone, and my Debian box. However, NVIDIA&#8217;s docs warn that binding to 0.0.0.0 exposes an unauthenticated API to the whole network. So I pulled out a spare TP-Link travel router to give the lab its own little network, and I added an API key to the launch script to prevent unauthorized access, even within my own network.</p><pre><code>PORT=8000
API_KEY=&#8221;&lt;redacted&gt;&#8221;

...

--host 0.0.0.0 \

--api-key &#8220;${API_KEY}&#8221; \</code></pre><p></p><p>Then I made a DHCP reservation so the Spark would stop wandering.</p><h2>The Deepseek Harness</h2><p>I tried my existing &#8220;video-as-code&#8221; pipeline via Goose and Qwen3-30B-A3B at 6-bit quant running on my B5 Pro MacBook last week, and the model couldn&#8217;t make heads or tails of my repo or successfully assimilate all the skills I have built over the past few months. The pipeline is a coding agent that cuts, grades, captions, and exports 4K video from a folder of raw clips and a brand file, and I suspected it was a harness problem, not necessarily a model problem. So I decided to try the recently hyped Deepseek harness to see if that could get the job done.</p><p>To be fair, I changed three things at once. The harness (Goose to Deepseek), the model (Qwen3-30B to Qwen3.8 Flash-Next), and the hardware (MacBook to Spark). So I can&#8217;t tell you the harness alone helped me with successful AI. I can tell you what I saw, and what my gut says.</p><p>Oh boy, and was I in for a surprise. First things first, Deepseek harness is a lot like Claude Desktop, if not for the blue what icon and lack of orange accents, you&#8217;d confuse Deepseek harness for a re-skinned Claude Desktop app. I am not insinuating anything here. I kicked off a &#8220;video-as-code&#8221; pipeline on my wife&#8217;s MacBook Neo (yes, a Neo with an A18 Pro and 8 gigs of memory), pointing the Deepseek Harness + Qwen3.8 Flash Next at my git repo. To be honest, the Neo did no thinking at all; it ran all the video-editing code via the Deepseek harness, while my DGX Spark sat in the basement doing all the thinking and reasoning.</p><h2>My Weekend Experiment</h2><p>The pipeline took 175 minutes of raw footage, a total of 11 parts filmed in separate sessions, and gave me this:</p><ul><li><p>A rough cut of 40 segments assembled in order and snapped to the beats of a piano track, down to 7:57.</p></li><li><p>19 graphics beats: a hook, nine steps, six notes, two stat cards, and an outro.</p></li><li><p>Music mixed at -18 LUFS with a -1.0 dB peak, plus a 1.5-second tail fade.</p></li><li><p>A 4K export at 3840 by 2160, never downscaled.</p></li></ul><p>The review loop ran separate local Qwen subagents, using no cloud APIs, and ran a technical QA pass and a composition pass on the result. The first pass found real problems: the subagents fixed them, then rechecked. The second pass flagged a few more blocking issues, which they fixed and rechecked too.</p><p>Then the harness identified seven rules from the whole process and wrote everything down as a Markdown file back to my repo, after my approval, of course. So my learned knowledge remains portable, platform-agnostic, and version-controlled, &#8220;knowledge-as-code&#8221;.</p><p>My second prominent use case is &#8220;AI-as-a-coach&#8221;. I spent time each day learning to build Robotics and Physical AI data pipelines, run local sims, and curate and profile robotics datasets, with AI as my guide and coach, without writing any code myself. Qwen&#8217;s English was exhausting to read at first, so I told it to write in ASD-STE100 Simplified Technical English, active voice, and we put that in AGENTS.md as a rule. It got easier to read; once the rule lived in a file, the same model, a few instructions later, was a much better coach.</p><h2>Key Takeaways</h2><p>The prominent use cases that I use Gen AI and agents for today- my &#8220;video-as-code&#8221; pipeline, AI as a coach to help me learn and explore new topics, and other sundry things are completely solvable using local AI, and at around ~40 tok/s, completely usable and frustration-free.<br>Yes, there seems to be an upfront investment in capable hardware, but I am sure it&#8217;s offset by the cost of building AI data centers, which come with a laundry list of environmental issues.</p><p>If there&#8217;s one key takeaway this weekend, it&#8217;s that the harness matters as much as, if not more than, the model. The model generates tests and does the reasoning, but the harness is akin to the eyes and arms of the model, which lets it see and sense things for better reasoning, so the model is not hallucinating and filling in any gaps. Goose was alright, but something about it was limiting my model, and switching to the DeepSeek harness made a night-and-day difference.</p><p>While I splurged on expensive hardware purely for academic and personal interests, you don&#8217;t need to. I strongly urge you to try out an open-source model and a suitable harness on the hardware you actually have. While I highly recommend the Deepseek harness, choose the right model for the task for the best experience. So go ahead, download Ollama or LM Studio on your machine and start your local AI journey today.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[I asked Claude to Build My Local AI Stack.]]></title><description><![CDATA[It&#8217;s Not Just Possible, It&#8217;s Practical.]]></description><link>https://www.nudurupati.co/p/i-asked-claude-to-build-my-local</link><guid isPermaLink="false">https://www.nudurupati.co/p/i-asked-claude-to-build-my-local</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 02 Nov 2026 15:02:05 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!7Zd4!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>It&#8217;s all about AI Sovereignty these days. My personal echo chamber is teeming with videos, posts, and blogs about running AI locally and building a home AI lab. Don&#8217;t worry, I won&#8217;t bore you with all the details of how I built an AI lab or the tedious details of how to choose the right model, which model server to use, the advantages of SGLang over LMStudio, quantization and GGUF, etc. Honestly, I didn&#8217;t bother with any of those details either. I cheated. I simply asked Claude Code (Opus 5.5) to &#8220;Figure out which AI model to locally host on my MacBook Pro (M5 Pro, 48GB). I need Claude Desktop-like functionality with Cowork with computer use. Choose the right model and model server for my hardware. Make no mistakes.&#8221; That&#8217;s it, and Claude Code figured out the entire stack for me and installed and configured everything.</p><p>The last time I used a local LLM was in 2024, with Ollama serving Llama 3 8B. Agentic AI and computer and tool use were either unheard of or very nascent, and my experience left a lot to be desired, so I fell back on the trusty GPT-4o. I never even considered local AI because the upfront cost and cognitive bandwidth required to set it up didn&#8217;t justify it. Recently, arguments about vendor lock-in, platform capture, and tech monopoly deemed it important enough to convince me to start taking steps toward sovereign AI infrastructure. However, I was pleasantly surprised by how far technology has progressed in the past two years. This includes both open-source AI models and local AI infrastructure. I have also realized that to accomplish anything tangible with AI models, using the right harness is equally, if not more, important than having access to the latest models.</p><p>My Claude-chosen stack consists of Qwen3-30B-A3B-Instruct-2507 with 6-bit quantization, served via LM Studio as an MLX model. This takes up about 23 GB of memory, plus up to 6.4 GB allocated for KV cache, leaving the rest of the 48 GB for macOS itself and any other apps. Context length set to 32K. The harness that Claude chose for me is called Goose, and it is fairly familiar to my beloved Claude Desktop. Goose provides tool use and computer use, so it can work within my local git repo and access my knowledge base in my local Obsidian vault. Goose also has a memory feature, so if I choose a different model in the future, my memories and preferences aren&#8217;t lost.</p><p>Claude measured my Mac&#8217;s memory bandwidth, then picked a mixture-of-experts model to get the knowledge of a big model at the speed of a small one. It chose LM Studio over Ollama because it&#8217;s faster on Apple Silicon, and Goose because it&#8217;s open source and keeps my memories on my side. It used 6-bit quantization for extra accuracy, which runs at 63 tokens/second. To put that in perspective, the big cloud models typically stream somewhere between 50 and 100. So my MacBook at 63 tokens/s feels instant enough with no noticeable lag on my part. My only gripe is that the model I chose, which is limited by my hardware, is equivalent to Claude 3.5 Sonnet, so I have to do some prompt engineering to make sure it clearly understands my intent. I have been spoiled by Claude 5.5-class models, which are excellent at understanding intent.</p><p>The tasks I have tried include general interactive chat across my MacBook, my Debian laptop, and my phone, with no noticeable lag. I use AI for learning new topics with AI role-playing as my coach, guiding me on topics, quizzing me, and verifying the code snippets, where Qwen3-30B was a pro; after tweaking a few initial instructions, it knew its role and assignment exactly. Finally, code generation was on par, at least on the Data Engineering tasks, with generating bits of code, reviewing and fixing bugs/erros. The only place my local AI has failed miserably so far is a long-horizon &#8220;video-as-a-code&#8221; job. My Claude Sonnet 5.5 has evolved into something of an expert video editor, using WhisperX, ffmpeg, and Hyperplanes to turn raw footage into a final cut. I can just give it my raw video clips and expect it to produce the final cut overnight, replete with motion graphics and music, working completely unsupervised. My local AI model didn&#8217;t even understand the assignment: how to use my tried, tested, and honed video-editor skills. Maybe this is where I will need a &#8220;GPT-OSS-120B&#8221; class of model running on a beefier 128GB machine (or maybe need a different harness for the workflow). But I am not ready to splurge on such a kind of infra yet, so safe to say I am not canceling my Claude subscription yet, just augmenting it with local AI for trivial enough tasks.</p><p>In conclusion, I was a local AI naysayer until recently. My argument was: why invest thousands of dollars in local infrastructure when a couple hundred dollars a month gets you all-you-can-eat tokens for a novice-to-medium user (not true for advanced users)? However, lately I am convinced that the cost per token we&#8217;re paying today is heavily subsidized by venture capital and isn&#8217;t the true cost per token. The bill is bound to come due for the frontier labs, data centers, and API providers, and when those costs trickle down to us, I don&#8217;t want to be in a &#8216;pay-up or get locked out&#8217; situation. A self-hosted AI platform, the tooling and workflows around it, and the skills to host, tune, and use it are my hedge against the inevitable trap of platform capture.</p><div><hr></div><h2>The Gory Details</h2><h3>How Claude chose the stack</h3><p>Before picking anything, Claude wrote a small C benchmark (STREAM style: copy, scale, add and triad over three 512 MB arrays) to measure my memory bandwidth. A single core pulled 128 GB/s, and all 18 cores peaked around 255 GB/s. Memory bandwidth matters more than anything else for local AI. Tokens per second is roughly bandwidth divided by how much of the model has to be read per token.</p><p>That&#8217;s why Claude chose a mixture-of-experts model over a dense one. Qwen3-30B-A3B has 30.5 billion parameters, but they&#8217;re split into 128 experts, and only 8 of them work on any given token, about 3.3 billion parameters in all (&#8220;A3B&#8221; literally means 3B active). A dense 32B model has to read every weight for every token, and Claude estimated that would land at 10 to 13 tokens/second on my machine. It also picked the Instruct-2507 version because it&#8217;s better at following instructions and making tool calls.</p><p>For the model server, Claude actually recommended Ollama first, because it runs identically on macOS and Debian. However, my plan was to make the MacBook the only server, and once I pointed that out, Claude switched to LM Studio. LM Studio runs models in Apple&#8217;s MLX format, which is faster on Apple Silicon than the GGUF format Ollama uses. SGLang and vLLM were ruled out because they&#8217;re built for NVIDIA GPUs.</p><h3>Why Goose</h3><p>Claude chose Goose as the harness because it&#8217;s open source, it has a desktop app and a CLI for both macOS and Debian, and it ships with a built-in LM Studio provider. Tools like shell access and file editing come in as MCP extensions, the same plug-in standard Claude uses. The important part for me is that Goose runs its tools on whichever machine Goose is on, while only the model runs on the Mac. So Goose on my Debian box edits Debian files, using my MacBook&#8217;s GPU as the brain. Memories live as plain files on the Goose side, so swapping the model later won&#8217;t cost me anything.</p><h3>Benchmarks: 4-bit vs 6-bit</h3><p>Then Claude benchmarked two quantizations of the same model, 4-bit and 6-bit, head to head. It wrote a small Python test that hits the server over my LAN.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7Zd4!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7Zd4!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png 424w, https://substackcdn.com/image/fetch/$s_!7Zd4!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png 848w, https://substackcdn.com/image/fetch/$s_!7Zd4!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png 1272w, https://substackcdn.com/image/fetch/$s_!7Zd4!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!7Zd4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png" width="956" height="684" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:684,&quot;width&quot;:956,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;3cd058ac-bb4a-4435-93e1-7918bd4a339e_956x684.png&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="3cd058ac-bb4a-4435-93e1-7918bd4a339e_956x684.png" title="3cd058ac-bb4a-4435-93e1-7918bd4a339e_956x684.png" srcset="https://substackcdn.com/image/fetch/$s_!7Zd4!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png 424w, https://substackcdn.com/image/fetch/$s_!7Zd4!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png 848w, https://substackcdn.com/image/fetch/$s_!7Zd4!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png 1272w, https://substackcdn.com/image/fetch/$s_!7Zd4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F856cc002-63cd-4dd2-8e09-a05096cb0bc3_956x684.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The 6-bit is about 15% slower, and my human cognition couldn&#8217;t tell them apart. I went with 6-bit anyway, because quantization is supposed to matter for long multi-step work, and 63 tokens/second is still faster than I can read.</p><h3>How to replicate this on your machine</h3><p>You don&#8217;t need my hardware or follow my choices. Just copy the prompt below into Claude Code (or your choice of AI Agent) on the machine you want to use as your AI server. It measures your hardware first, then asks you a handful of questions. If you don&#8217;t know an answer, pick the one marked &#8220;(Recommended)&#8221; and move on.</p><pre><code>Set up a local, self-hosted AI stack on this machine for me, end to end: model, model server and agent harness. Pick everything based on my actual hardware, not on general advice.

Step 1. Inspect the hardware. Report the CPU, GPU(s) and VRAM, total RAM (and whether it's unified memory), free disk space and OS version. Then write and run a small STREAM-style memory bandwidth benchmark (copy, scale, add, triad over arrays far larger than cache) at a few thread counts and report the peak GB/s. On a machine with a discrete GPU, also note the GPU's memory bandwidth. Explain in two or three sentences what these numbers mean for token generation speed.

Step 2. Ask me about my preferences before choosing anything. Ask in small batches, give each question a recommended default, and if I say "I don't know" or skip a question, use the default:
  1. Main use: general chat and writing, coding, or both? (Recommended: both)
  2. Priority: fastest responses, best quality, or balanced? (Recommended: balanced, at least 30 tokens/second)
  3. Will other devices on my network use this machine as their AI server? If yes, which OS are they? (Recommended: just this machine for now)
  4. Agent harness: Goose, or let you suggest one? I want something like Claude Desktop with tool use, file access and memory that lives on my side, not the model's. (Recommended: Goose)
  5. Model server: let you choose based on my hardware, or do I have a preference such as Ollama or LM Studio? (Recommended: let you choose)
  6. Context length: 32K, 64K or 128K? (Recommended: 32K, raise it later only if memory allows)
  7. Disk space you may use for model downloads? (Recommended: up to 40 GB)
  8. Start the server automatically at login, or start it myself with one command? (Recommended: start it myself)
  9. Access from outside my home network? (Recommended: no, LAN only. If yes, use Tailscale, never open ports on the router)
  10. Where should the setup guide and test scripts go? (Recommended: a folder named local-llm-setup in my home directory)

Step 3. Recommend a stack. Choose the model (and which quantization), the model server and the harness. Prefer mixture-of-experts models when memory allows, since they read far less of the model per token. Estimate tokens/second as memory bandwidth divided by the bytes read per token, and show your math. Check that the model plus a full KV cache fits in the memory the GPU can actually use. Name one realistic alternative for each choice and say in a line why you didn't pick it. Wait for my go-ahead before installing anything.

Step 4. Install and configure. Use the platform's normal package manager where possible. Keep the model loaded permanently (no idle unload), set the context length I chose, and if other devices will connect, bind the server to the LAN and give each client its own KV cache slot. Rules: do not quit or restart the model server while a download is running. Verify every downloaded model file's size against the source before loading it. Ask me before making any persistent system change (login items, services, power or firewall settings). Never expose the server to the internet.

Step 5. Benchmark and verify. Write a small test script that calls the server's API (over the LAN address if other devices will use it) and measures: generation speed in tokens/second, tool calling (offer the model a couple of tools, ask 5 times for something that needs one, count the valid tool calls), and prompt caching (a long prompt of roughly 15K tokens, then a follow-up in the same conversation, comparing the two times). Add a short accuracy quiz of 8 to 10 questions with exact answers, run at temperature 0. If two quantizations of the same model fit, benchmark both and show the results side by side in a table. Then run one real end-to-end task through the harness (for example, have it use a shell tool and report the result).

Step 6. Write it all up. Save a markdown setup guide in the folder I chose: how to start and stop the server, how to set up any client devices, where memories, sessions and config files live, what the KV cache settings are, how to keep the machine awake, the benchmark results, and a troubleshooting section. Put the test scripts in the same folder. Be plain about anything you couldn't test.</code></pre><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Modern Robotics is a Data Engineering Problem]]></title><description><![CDATA[*Week 1 of AI-Assisted Data Engineering for Robotics*]]></description><link>https://www.nudurupati.co/p/modern-robotics-is-a-data-engineering</link><guid isPermaLink="false">https://www.nudurupati.co/p/modern-robotics-is-a-data-engineering</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 19 Oct 2026 14:41:04 GMT</pubDate><enclosure url="https://substackcdn.com/image/youtube/w_728,c_limit/l39jyk14hJA" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div id="youtube2-l39jyk14hJA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;l39jyk14hJA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/l39jyk14hJA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p>Modern robotics is no longer about mathematical models or rule-based control, sensing, planning, and acting. It increasingly relies on learning patterns directly from data rather than requiring explicit mathematical models.</p><p>So it&#8217;s not incorrect to say that modern robotics is as much about manipulation, locomotion, and whole-body control as it is about collecting, storing, and manipulating a large corpus of multimodal, time-series data. Thus, I can confidently say that modern robotics is a data engineering problem.</p><p>When I first joined Databricks back in the fall of 2017, our motto was &#8220;Make Big Data Simple.&#8221; It was even our WiFi password. Fast forward almost a decade, and Databricks and the ensuing cloud-based distributed data-processing technologies have indeed solved almost all enterprise data problems. So where is the next frontier of the world&#8217;s toughest data problems?</p><p>I think it&#8217;s robotics. And hear me out why.</p><p>Classical robotics works beautifully in a factory, where the same part shows up at the same place tens of thousands of times. But it falls apart at home, where neither you nor your kids put the same item in the same place twice. So modern robotics has learned a new approach. Instead of writing down the rules, you show the robot what to do repeatedly, and it learns the pattern.</p><p>Over the past decade, as data-driven robotics techniques have been adopted more widely, robotics data has flooded in. Hugging Face hosts about 80,000 LeRobot datasets, up from just 1,100 at the end of 2024. The largest academic robotics datasets, like AgiBot World, have crossed a million trajectories from over 100 robots. And that&#8217;s before you count all the teleoperation logs, fleet telemetry, and other metadata that streams continuously from a fleet of robots. So robotics data is indeed big data, maybe even bigger.</p><p>However, the challenges robotics companies and fleet managers face are entirely different from those of enterprise data, the web text large language models are trained on, or even industrial IoT data. Physical telemetry is highly multi-modal and high-dimensional. A single moment in a robot&#8217;s life contains camera frames, sensorimotor data from all the joints, the commands it was issued, and a timestamp for each, all captured by different sensors.</p><p>The primary challenge shifts from simple storage and processing to high-throughput streaming and downsampling. And if the streams drift out of sync, even by a single frame, nothing in the robot crashes. The robot just learns the wrong thing, quietly. That&#8217;s what makes robotics data the next frontier of data engineering.</p><h2>The series</h2><p>That&#8217;s exactly what I want to focus on in my next series on AI-assisted modern data engineering.</p><p>Over the next 13 weeks, I&#8217;ll build a robot data platform in public. Not a robot, but the engine behind it. Along the way, I&#8217;ll cover data engineering and the modern data stack, plus applied AI, using a cool robot arm as our prop and data source.</p><p>Zero robotics background is assumed or required here, because honestly, I&#8217;m just a humble data engineer, and I have no robotics background either.</p><h2>Meet Yantra</h2><p>To get started, I invested in a pair of robotic arms, a leader and a follower: the LeRobot SO-ARM101 Pro. I&#8217;ve named it Yantra, which means machine in Sanskrit.</p><p>The black one is the leader and the white one is the follower. The follower follows every move the leader makes, in real time.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!lIZ2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!lIZ2!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png 424w, https://substackcdn.com/image/fetch/$s_!lIZ2!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png 848w, https://substackcdn.com/image/fetch/$s_!lIZ2!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png 1272w, https://substackcdn.com/image/fetch/$s_!lIZ2!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!lIZ2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png" width="1200" height="1600" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1600,&quot;width&quot;:1200,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1687530,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/220998484?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!lIZ2!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png 424w, https://substackcdn.com/image/fetch/$s_!lIZ2!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png 848w, https://substackcdn.com/image/fetch/$s_!lIZ2!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png 1272w, https://substackcdn.com/image/fetch/$s_!lIZ2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a11daf4-7822-4a04-a56e-6637090479e2_1200x1600.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>This is how you teach a robot using data. Every time I move the leader to accomplish a task, the system records two things: what the robot saw and what it was told to do. That pair, repeated thousands of times, is your robot training data.</p><p>The follower has two cameras. One is mounted on the wrist, which gives it a point of view of what it&#8217;s doing. The other stands on the sidelines, observing the big picture. Two views, like our eyes and our hands: one for the big picture and one for the finer details. And the pair together is how the robot learns</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!3dw7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!3dw7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png 424w, https://substackcdn.com/image/fetch/$s_!3dw7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png 848w, https://substackcdn.com/image/fetch/$s_!3dw7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png 1272w, https://substackcdn.com/image/fetch/$s_!3dw7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!3dw7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png" width="1200" height="1600" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1600,&quot;width&quot;:1200,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1830695,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/220998484?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!3dw7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png 424w, https://substackcdn.com/image/fetch/$s_!3dw7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png 848w, https://substackcdn.com/image/fetch/$s_!3dw7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png 1272w, https://substackcdn.com/image/fetch/$s_!3dw7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd011d1c1-da92-4424-a21c-ccb1003c9e84_1200x1600.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>But the arm isn&#8217;t today&#8217;s star. The data is.</p><h2>Hello World, robotics edition</h2><p>If you&#8217;re getting started with programming, or a new programming language, you would run a Hello World program, right? A dataset, or simulation, called PushT is the equivalent of Hello World in robotics.</p><p>As usual, everything is in the GitHub repo for this series, in the <a href="https://github.com/snudurupati/physical-ai-data-architect/tree/main/weeks/week-01">week 1 module</a>. I cloned it with Claude Code, my favorite AI assistant, into <code>~/Projects/paida-wk01</code>.</p><p>Then I downloaded the PushT LeRobot dataset from Hugging Face and opened its first episode in a visualization tool called Rerun:</p><pre><code><code>uv run lerobot-dataset-viz --repo-id lerobot/pusht --episode-index 0</code></code></pre><p>The blue dot is a simulated robot, and its task is to push the T onto the T outline. In this episode, it does it perfectly. But this is just one episode. A human did this 206 times, and a robot learns from all those attempts. Each attempt is called an episode.</p><p>An episode has many frames, and a frame is just a moment in time. At any given moment, a few things are recorded. The state is the robot&#8217;s state: its x and y coordinates. In Rerun, the 0 graph is x and the 1 graph is y, so at any moment I have a timestamp, an x, and a y. Then there&#8217;s the action: what the robot was told to do next to accomplish the task, also recorded as an x and a y.</p><p>If you look at the state and action graphs, they&#8217;re almost identical. But at certain timestamps, they deviate slightly because of simulated real-world physics. When a robot pushes on an object, the object also pushes back. So we issue a command, but the robot may not accomplish it exactly. That&#8217;s how the physical world works.</p><p>In Rerun, everything comes together seamlessly. When I press play or click a point, everything moves together: the state, the action, and the actual camera. But in reality, different sensors capture all of these. In data engineering terms, they&#8217;re disparate data sources, and stitching them together without missing a frame is where the skill and the challenge go.</p><h2>Inside a LeRobot dataset</h2><p>So let&#8217;s open up the dataset and see what it actually looks like. It&#8217;s stored in a format called the LeRobot dataset, developed by Hugging Face, and it&#8217;s structured into three distinct parts:</p><ol><li><p><strong>Metadata:</strong> <code>meta/info.json</code> and <code>meta/stats.json</code>. What the structure of the data is, what it&#8217;s about, what format it&#8217;s in, and where things are stored.</p></li><li><p><strong>Tabular data:</strong> all the machine states, the joint states, and the sensorimotor data, stored in Parquet under <code>data/</code>.</p></li><li><p><strong>Visual data:</strong> the actual camera frames, stored as MP4 under <code>videos/</code>.</p></li></ol><p>The metadata says the robot type is unknown because it ran in simulation. There are 206 episodes in total, 206 different experiments, if I may call them that, and 25,650 frames recorded at 10 frames per second, all accomplishing a single task: pushing the T object onto the T outline.</p><p>Then the features, or what columns: the observation image, the observation state, the action, the episode index, the frame index, the timestamp, the reward, and the success flag. These are the things we saw stitched together in Rerun to get a single unified view of the robot&#8217;s state at each moment.</p><p>You could use Apache or some other framework to query the parquet data, but I&#8217;m using DuckDB because it&#8217;s lightweight.</p><pre><code><code>DESCRIBE SELECT * FROM 'data/*/*.parquet';</code></code></pre><p>It has all those features: state, action, episode index, frame index, timestamp, reward, success. But something is conspicuously missing: the observation image. Which makes sense, right? We typically don&#8217;t store MP4 data in Parquet files. That&#8217;s why it&#8217;s stored separately.</p><p>This query shows each episode&#8217;s first and last timestamp:</p><pre><code><code>SELECT episode_index,
       MIN(timestamp) AS first_ts,
       MAX(timestamp) AS last_ts,
       COUNT(*)       AS frames
FROM 'data/*/*.parquet'
GROUP BY episode_index
ORDER BY episode_index
LIMIT 5;</code></code></pre><p>The first timestamp is always 0.0. It&#8217;s time since the episode started, not time in the video.</p><p>The videos, meanwhile, are one big uber MP4 file with many episodes packed into it. The episode metadata tells me, for each episode, where its clip starts and ends inside that file:</p><pre><code><code>SELECT episode_index,
       "videos/observation.image/from_timestamp" AS v_from,
       "videos/observation.image/to_timestamp"   AS v_to
FROM 'meta/episodes/*/*.parquet'
ORDER BY episode_index
LIMIT 5;</code></code></pre><p>The metadata is relational, helping to join the visual and tabular data together and giving the location of the clip for each frame:</p><pre><code><code>SELECT d.episode_index,
       d.frame_index,
       d.timestamp,
       e."videos/observation.image/from_timestamp" + d.timestamp AS video_position
FROM 'data/*/*.parquet' d
JOIN 'meta/episodes/*/*.parquet' e USING (episode_index)
WHERE d.episode_index = 1
LIMIT 5;</code></code></pre><p>PushT is just a small, simulated, and perfect dataset. A real robot training dataset has many more episodes and tasks, and it grows very fast.</p><h2>Why it matters</h2><p>I started off by saying that robotics is the next frontier of data engineering, and this is a glimpse of why. The data is complex, multimodal, and high-dimensional, and it comes from different sources that must be stitched together without missing a single frame.</p><p>If I have to use an analogy, it&#8217;s like recording and editing videos. You have multiple cameras and multiple clips, and everything has to be stitched together at exactly the same time, or it won&#8217;t be in sync. If your video editing is out of sync, it&#8217;s obvious, right? Your lips move, but the voice comes from elsewhere. But with a robot, nothing fails. Nothing is obvious. The robot just learns the wrong thing, and in real-world applications, it won&#8217;t be able to do its job. We won&#8217;t know until it&#8217;s too late.</p><p>So data engineering becomes very important in data-driven robot training.</p><h2>Three takeaways</h2><ol><li><p>Modern robots learn from data, not from handwritten rules. That makes robotics a data problem.</p></li><li><p>A robot dataset has three parts: metadata, tabular data with numerical sensorimotor joint states, and camera frames in MP4.</p></li><li><p>The hardest part of robotics data isn&#8217;t storing it; it&#8217;s stitching it together so all the timestamps match, and the training isn&#8217;t misguided. And it all depends on a bit of arithmetic on a set of timestamps.</p></li></ol><h2>Where I am, and what&#8217;s next</h2><p>So that&#8217;s where I&#8217;m starting. Two weeks in, I can take a robot dataset apart down to the row and stitch it back together so the frames match. But I&#8217;m not going to pretend that I&#8217;m a roboticist, which I&#8217;m not. I&#8217;m just a data engineer delving into a new domain, exploring new data-engineering challenges through robotics, with you as my witness.</p><p>Next week, I&#8217;ll go from a simulated dataset to a real robot dataset that the community recorded on Hugging Face, and take it apart. That&#8217;s where things get complex. In simulated data, things are perfect: once you join, everything matches seamlessly. But in real-world robotics, things aren&#8217;t perfect, because the physical world isn&#8217;t. So let&#8217;s see what challenges I face as I take apart and stitch together a real-world robot dataset. See you then.</p><p><strong>Sources:</strong> <a href="https://huggingface.co/datasets?other=LeRobot">Hugging Face LeRobot datasets</a> &#183; <a href="https://www.techtimes.com/articles/317129/20260525/open-source-robotics-ai-reaches-inflection-point-lerobot-hub-surpasses-58000-datasets-one-year.htm">TechTimes on LeRobot Hub growth</a> &#183; <a href="https://www.therobotreport.com/agibot-releases-humanoid-manipulation-dataset-to-enable-large-scale-learning/">AgiBot World (The Robot Report)</a></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[How to Build a Data Pipeline With an Agent Swarm]]></title><description><![CDATA[They talk and negotiate.]]></description><link>https://www.nudurupati.co/p/how-to-build-a-data-pipeline-with</link><guid isPermaLink="false">https://www.nudurupati.co/p/how-to-build-a-data-pipeline-with</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Thu, 01 Oct 2026 15:56:24 GMT</pubDate><enclosure url="https://substackcdn.com/image/youtube/w_728,c_limit/S8J4Z9RiUqQ" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div id="youtube2-S8J4Z9RiUqQ" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;S8J4Z9RiUqQ&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/S8J4Z9RiUqQ?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p>Agents think like humans. The longer they think, the better their responses.</p><p>Imagine you&#8217;re taking the GRE or the GMAT and you only had 30 minutes to finish all the sections. You wouldn&#8217;t fare well. With three hours, you would ace the exam. But we can&#8217;t let our agent mull things over for three hours. The latency is not practical.</p><p>So we divide and conquer. Give each section of the exam to a different agent and let each one use the full 30 minutes (not saying we should let AI Agents take our SATs and GREs now). That&#8217;s the exact concept of distributed processing we use in Apache Spark, now applied to AI agents. That&#8217;s an agent swarm, and within Claude Code, it&#8217;s called an agent team.</p><p>In the <a href="https://youtu.be/g_mDDsdYVvA">previous episode</a>, we built an end-to-end data pipeline using a single agent. This time, the same task, from data ingestion all the way to building data marts, but using a team of agents.</p><h2>The setup</h2><p>A typical dbt project, with context in three files: CONVENTIONS.md for business rules, STANDARDS for data engineering standards, and REQUIREMENTS for the data mart.</p><p>You all heard of the OpenAI hacking Hugging Face incident. There, the swarm of agents unintentionally built a message board where they exchanged messages. Claude Code lets you have a message board on purpose.</p><p>Agent teams are still experimental, so they&#8217;re off by default, and Claude uses tmux to start each agent in a different terminal. The prompt asks the same thing as last time, but this time it tells it to use an agent team, create a plan with tasks, and exchange messages on a message board.</p><h2>The team and the plan</h2><p>The parent agent builds the whole plan first, then spawns four teammates, one each for a data source: ERP, e-commerce, CRM, and POS. A fifth agent, for the data marts, stays on standby until all four source pipelines are built to staging.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!mQsT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!mQsT!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!mQsT!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!mQsT!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!mQsT!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!mQsT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1026174,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/218360118?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!mQsT!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!mQsT!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!mQsT!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!mQsT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9aec193-673c-4a4e-8c14-fb40b338db0d_1920x1080.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-nxj3kw" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-nxj3kw" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Six agents in total, each with defined task ownership. The lead owns the project YAML, profiles, macros, and reports. Each teammate gets a source. The task list is divided into 10 tasks, each assigned to a teammate.</p><p>We typically use fancy project management tools and Gantt charts, etc. But for agents that work in a terminal and that read and think in text, project planning via markdown files is the best possible way.</p><h2>The message board</h2><p>I&#8217;m glad the agents decided to communicate in English, and not some newly invented language, or in binary, or in tokens.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!tbvf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!tbvf!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!tbvf!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!tbvf!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!tbvf!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!tbvf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:890296,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/218360118?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!tbvf!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!tbvf!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!tbvf!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!tbvf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0050d9d7-08ca-40aa-b385-64fdb51ed035_1920x1080.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-nxj3kw" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-nxj3kw" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The ECOM teammate proposes a few things to the CRM teammate, as points one to six. The CRM agent responds: it agrees on points one, three, four, five, and six, but it has its own opinion on point two and pushes back. Finally, the ECOM agent concedes, saying, &#8220;Agreed on point number two; we&#8217;ll do it as you&#8217;re proposing it.&#8221;</p><p>It's brilliant to watch agents communicate as people do. They propose things; they push back; they collaborate and negotiate. It&#8217;s the first time I&#8217;ve seen a swarm of agents communicate, and it&#8217;s beautiful! I am impressed.</p><p>I&#8217;m just glad I&#8217;m alive today watching agents communicate.</p><h2>The results</h2><p>All tasks done. Eight sources, five intermediate models, six marts, and 149 tests, in 11 minutes and 7 seconds. A single agent took about 20 minutes end-to-end. Is this of any consequence? That&#8217;s yet to be seen.</p><p>The sanity check: 2.19 million in revenue from the source files, and the data mart matches to the cent.</p><h2>To what use?</h2><p>One agent is already bad, as in bad for humans. I started off this series asking, am I still a data engineer if Claude does all the work? Now it&#8217;s six teammates doing the job. So am I still relevant?</p><p>One agent or a swarm: they still don&#8217;t understand business context unless I provide it. That business experience, those years of building data pipelines, is still relevant. Even then, someone always has to spot-check things to make sure they&#8217;re not completely haywire.  </p><p>Agent swarms can do things faster and more efficiently, debatable. Maybe it&#8217;ll cost you more in tokens. However, here are a few use cases from my career where I can see myself making use of a team of agents:</p><ol><li><p><strong>Migrations.</strong> More often than not, they are time-bound. We can&#8217;t have a migration going on for three whole years. Business depends on the new system going live. The agent can get us ~ 60 to 80% code completion and accuracy, so our human teammates preserve their cognitive bandwidth for mission-critical work and don&#8217;t burn out. </p></li><li><p><strong>Niche skills.</strong> I once had to migrate 10,000 PL/SQL files, and I couldn&#8217;t find anyone who graduated in the last 10 years who even understood PL/SQL. An agent swarm can help you fill that talent gap.</p></li><li><p><strong>Time to value.</strong> Any mission-critical project where the enterprise is losing money because we can&#8217;t deliver the data, the report, or the feature soon enough.</p></li></ol><p>I&#8217;m not saying agent teams can replace humans. Not yet. And I&#8217;m not saying they&#8217;re more economical or more efficient than a team of data engineers. All I&#8217;m saying is this feature is available; I could find a few use cases for it, and I was excited to see the agents in action.</p><p>Let me know in the comments what you think of agent teammates, and whether you are already using agent swarms in your modern data stack.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Enterprise Knowledge Graphs Can’t Work.]]></title><description><![CDATA[Not Saying Knowledge Graphs Don&#8217;t Work.]]></description><link>https://www.nudurupati.co/p/enterprise-knowledge-graphs-cant</link><guid isPermaLink="false">https://www.nudurupati.co/p/enterprise-knowledge-graphs-cant</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 21 Sep 2026 14:55:35 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ysUW!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff412fd5b-35d5-42f6-803d-d66d82d2fa8b_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Enterprise knowledge graphs as a substrate to help minimize LLM hallucinations in Data Analytics can&#8217;t work. If you are into software development and use loop engineering/graph engineering, this post isn&#8217;t for you.</p><p>The LLM naysaying never stops.</p><blockquote><p><code>'They will become the tech bro mob ruling class'</code>, &#8216;<code>LLM outputs have always been unreliable by default.'</code> , &#8216;<code>The age of harness, Jev and GenAI bros sudden discovery and pivot to ML.'</code> , <code>'We are back to square Zero, after wasting trillions of $$ and a decade of time...'</code></p></blockquote><p>The same set of characters, every day, in my professional-social network feed (LinkedIn, if you didn&#8217;t catch my drift), always naysaying LLMs. At first I chalked them up to sour grapes, folks who couldn&#8217;t get funding for their own cool little ML project. But their perseverance got me thinking: are they pure sour grapes, or do they have a viable alternative, or is it just altruism? So I dug deeper, and most, if not all, of them are selling some form of knowledge-engineering product or an ontology-driven solution to the unreliable LLM output.</p><p>Context engineering via knowledge graphs and ontologies has been one of the hot topics of 2026. Enough hype that I spent a good chunk of the year working with two different graph companies: one classic graph provider and another neo-modern one meant for the AI world, and I have seen job titles like &#8216;Cognitive AI Architect&#8221;, &#8220;Enterprise Knowledge Engineer,&#8221; etc. pop up.</p><p>My conclusion is that enterprise knowledge graphs can&#8217;t help solve AI hallucinations in enterprise data. Not because the technology doesn&#8217;t work; it does, brilliantly, much better than using naive RAG or some other variation that turbopuffer or LlamaIndex is selling you. Even knowledge retrieval speed can be solved with a fusion technique combining semantic retrieval + Graph retrieval with full-text search, plus our good old and trusty caching. Here, enterprise means a single source of truth: one knowledge graph or ontology for the entire enterprise. However, if we look at our history, circa 2015, the Big Data era, when Knowledge Graphs and Ontologies were hot, and products like Databricks&#8217; GraphX and GraphFrames and Apache Giraph, etc were emerging. But they didn&#8217;t take off, and I predict Knowledge Graphs and Ontologies won&#8217;t gain traction this time around either, for the following reasons.</p><ol><li><p><strong>Ontology building is a hard problem.</strong> It takes a centralized committee and a few hard-to-find experts to build the first version. An even harder task is keeping the ontology updated: the approval and vetting process required to keep it current. A committee needs to approve every small change before it can be merged into production, and it has to be a committee because no single entity, person, or department can be responsible for the entire living, breathing, ever-changing enterprise. The human element makes it far too slow to match the speed of AI decision-making. Which means your AI agents still hallucinate or make decisions on stale data, making the knowledge graph an oxymoron.</p><p></p><p>Yes, AI agents could solve ontology-updating speed. But two questions arise: how many autonomous enterprise-wide AI agents have we seen in production or otherwise, and do we really trust the LLM-based AI agents to retrieve and update our knowledge graph, especially when their hallucinations are what we are trying to solve in the first place? Establishing enough guardrails to make sure agents don&#8217;t turn the knowledge graph into a <a href="https://www.nudurupati.co/p/the-ghost-node-pattern?r=5d6obe">data swamp</a> isn&#8217;t easy either. I have seen a few players like Databricks&#8217; Genie Ontology, which tries to vote in the most popular metric definition: &#8220;<em><strong>Using an approach similar to PageRank, Genie Ontology weighs where a definition came from, the relative authority of that source&#8217;s author, how often people rely on it.</strong></em>&#8221; However, a wrong KPI doesn&#8217;t become right just because 8 out of 10 users like it.</p></li><li><p><strong>Cost centers for knowledge graphs don&#8217;t exist</strong> within the enterprise, and they couldn&#8217;t be established during the Big Data Ontology era either. This is one reason the ontology and knowledge graph wave faded, despite having its moment a decade ago. Business pays for Business Intelligence and Data Warehousing because they get a tangible report at their desk every day, and it&#8217;s explainable enough for business to question the report, the underlying data, and the process.</p><p><br>In my time building and selling Knowledge Graph based products in the AI era, I didn&#8217;t find selling the concept difficult at all, and a Naive RAG vs. a Graph RAG demo or POC fetches an easy enough technical win in a carefully controlled environment with a pristine Ontology built on clean data. What I found far more difficult was finding the Economic Buyer, the person or department within the enterprise who would own this and pay for this. I had an even harder time prospecting for (not discounting the fact that I am possibly the worst SDR there is) the right team to reach because everyone could benefit from an enterprise knowledge graph, but no one was willing to own, build, maintain, and pay for one.</p></li><li><p><strong>Zero Trust in LLM output.</strong> LLMs and agentic systems are not easily explainable, and there&#8217;s enough doom around them for hallucinating the wrong metric that there is zero trust to begin with. A Knowledge graph does build trust, and graph traversal can make LLM output more explainable. However, my concern is about using LLMs to hydrate our knowledge graph and keep it updated. Central IT and business communication is super disconnected and asynchronous. Now, taking on the task of building an ontology by central IT would not only be difficult but perilous because of the zero-trust beginnings, and central IT and business would need to be joined at the hips to build and maintain a knowledge graph, and BUs don&#8217;t have that kind of time and luxury while they are busy trying to gauge and react to market conditions.</p></li></ol><p>One might say there are too many AI naysayers on LinkedIn (substitute with your favorite professional social network) these days. Let&#8217;s assume ontologies and knowledge graphs can&#8217;t work; what alternative am I offering? Well, I found that a set of simple markdown files documenting my project and business requirements goes a long way compared to building a full-blown ontology. One might call this a lightweight ontology, one that's decentralized, puts the ownership into the team building it, solves slow governance, and is a part of the owning team's budget, while still solving the core problem of unreliable LLM output. This circumvents or avoids the single-source-of-truth question altogether; however, in the real world, metrics and KPIs don't have a single version of truth. Sales and Revenue have slightly different definitions for marketing vs. sales departments.</p><p>There's a whole class of semantic layers being pushed by companies like Fivetran and Snowflake and the Open Semantic Interchange, but I don&#8217;t know much about that work, as I am not an AI researcher but a lowly solutions engineer trying to find a practical solution for a practical problem. If you are interested  in what I am proposing here, you can browse my series on &#8220;AI-Assisted Modern Data Analytics&#8221; (apologies for the shameless self-promotion, but isn&#8217;t that what professional social networks are for). In the next installment, I show you how I build a full end-to-end data pipeline from a single prompt and a long-horizon agentic job. Keep watching this space.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Knowledge Elicitation]]></title><description><![CDATA[The model already knew all the facts, it just did not know that those were applicable.]]></description><link>https://www.nudurupati.co/p/knowledge-elicitation</link><guid isPermaLink="false">https://www.nudurupati.co/p/knowledge-elicitation</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Thu, 10 Sep 2026 15:57:56 GMT</pubDate><enclosure url="https://substackcdn.com/image/youtube/w_728,c_limit/WV7ZYC3gYOc" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div id="youtube2-WV7ZYC3gYOc" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;WV7ZYC3gYOc&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/WV7ZYC3gYOc?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><h2>Why do so many production AI use cases fail?</h2><p>Your AI demos look brilliant, and POCs work great; then why do your AI projects fail in production?</p><p>The answer is simple: production data is messy, and the model doesn&#8217;t have enough context about your business and your tacit knowledge.</p><p>But the real answer is more nuanced. I discovered a pattern where my AI model kept repeating the same mistakes, and codifying the business context and design standards into two simple markdown files quickly made it more efficient and more accurate. You can implement this in your own messy production environment without hand-writing all the rules yourself; just ask your AI what&#8217;s missing.</p><h2>Production data is messy</h2><p>LLMs have come a long way and can achieve long-horizon tasks with minimal prompting. I set out to test this in data analytics, build an end-to-end data pipeline from a single prompt, and quickly observed that Data Engineering is not the same as Software Engineering. Data Engineering involves much more than standard algorithms and design patterns; pipelines must encode real-world business rules and operating procedures, and handle ambiguity around messy data, varying data formats, vendor format changes, and nuances in KPI interpretation that vary by department within the same org.</p><h2>AI needs your tacit knowledge</h2><p>During my initial runs, my model kept making the same mistakes over and over again. Telling it how the data behaved, what the business rule was, or how I would do things quickly set the model right, and that gave me the idea to codify those rules as <a href="http://CONVENTIONS.md"><span>CONVENTIONS.md</span></a> and <a href="http://STANDARDS.md"><span>STANDARDS.md</span></a>.</p><p>So I ran two experiments: one where I provided my agent with the basic required information, and another where I provided my model with the two documents mentioned above.</p><h3>Run A, just a bare-bones repo</h3><p>Run A is a bare-bones repo where I give it sample data, some basic requirements, and then ask it to build the source and staging models. It only has two files, <a href="http://AGENTS.md"><span>AGENTS.md</span></a> and <a href="http://README.md"><span>README.md</span></a>, two standard files, basic requirements, nothing more than that.</p><p>I tell Claude Code here to read <a href="http://AGENTS.md"><span>AGENTS.md</span></a> and then create the source and staging models only for the CRM accounts. I expected it to use a `UNION ALL`, but it didn&#8217;t. A seasoned data engineer would also introduce a SURROGATE KEY and a few other audit columns, which Claude Code did not.</p><p>Then there was the biggest miss. Storing history is a data warehouse&#8217;s cardinal principle; however, Claude Code overwrote old data with new incoming data, wiping out any history.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Vq6R!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Vq6R!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png 424w, https://substackcdn.com/image/fetch/$s_!Vq6R!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png 848w, https://substackcdn.com/image/fetch/$s_!Vq6R!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png 1272w, https://substackcdn.com/image/fetch/$s_!Vq6R!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!Vq6R!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png" width="1400" height="981" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:981,&quot;width&quot;:1400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:324927,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/215062216?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Vq6R!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png 424w, https://substackcdn.com/image/fetch/$s_!Vq6R!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png 848w, https://substackcdn.com/image/fetch/$s_!Vq6R!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png 1272w, https://substackcdn.com/image/fetch/$s_!Vq6R!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97cb8569-507f-47a4-a703-87c7c3fc1599_1400x981.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In all fairness, I didn't give my AI agent any ground rules or business knowledge, so that&#8217;s what I'll do in my next experiment.</p><h3>In Run B, I specifically give it my business rules and design standards</h3><p>The two experiments are almost identical, except the new repo has <a href="http://CONVENTIONS.md"><span>CONVENTIONS.md</span></a> and <a href="http://STANDARDS.md"><span>STANDARDS.md</span></a>.</p><p>CONVENTIONS has my business rules. If data arrives late, how late is it, etc. All the tacit knowledge is codified in conventions. STANDARDS.md codifies business standards, naming conventions, how we define a surrogate key, audit-column requirements, etc.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!MllN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!MllN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png 424w, https://substackcdn.com/image/fetch/$s_!MllN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png 848w, https://substackcdn.com/image/fetch/$s_!MllN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png 1272w, https://substackcdn.com/image/fetch/$s_!MllN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!MllN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png" width="1400" height="1198" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1198,&quot;width&quot;:1400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:451674,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/215062216?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!MllN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png 424w, https://substackcdn.com/image/fetch/$s_!MllN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png 848w, https://substackcdn.com/image/fetch/$s_!MllN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png 1272w, https://substackcdn.com/image/fetch/$s_!MllN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c51d100-8572-4c45-a672-8b79785a3046_1400x1198.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Last time the agent skipped the history entirely, but this time, after the standards were clearly conveyed, it knew this was a data warehouse; we&#8217;re getting daily snapshots; and if a row is missing, it means it&#8217;s deleted. It understood, as a data engineer would, that we are storing history; it did a diff operation, marked anything deleted as isDeleted, stored the full history, and added the audit columns, the surrogate key, pretty much everything that was missed in the previous experiment.</p><h2>What are my takeaways from this experiment?</h2><ol><li><p>Demos and POCs run on a clean subset of data; however, your production environment is messy.</p></li><li><p>Your AI model doesn&#8217;t know your specific context or your business rules.</p></li><li><p>AI models are smart and trained on a wide corpus of code and best practices, but they tend to forget the specifics and predict the most probable outcome. They fill in the gap when they see it.</p></li><li><p>When you ask the model to generate code or fix a bug, it tends to produce generic results without specific context about your environment.</p></li><li><p>The model needs to know your specific business rules and standards; it needs an SOP for your business.</p></li></ol><h2>An AI model already knows its blind spots.</h2><p><strong><span>But how do I create these SOPs for my business because they are tribal knowledge?</span></strong></p><p>Just ask the model what&#8217;s missing from your environment that the model can not determine without external input, because it knows its own blind spots.</p><pre><code>List the facts about this business that you cannot determine from this repository.</code></pre><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!gmp3!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!gmp3!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png 424w, https://substackcdn.com/image/fetch/$s_!gmp3!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png 848w, https://substackcdn.com/image/fetch/$s_!gmp3!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png 1272w, https://substackcdn.com/image/fetch/$s_!gmp3!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!gmp3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png" width="1400" height="842" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:842,&quot;width&quot;:1400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:378218,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/215062216?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!gmp3!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png 424w, https://substackcdn.com/image/fetch/$s_!gmp3!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png 848w, https://substackcdn.com/image/fetch/$s_!gmp3!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png 1272w, https://substackcdn.com/image/fetch/$s_!gmp3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd2136cf2-5d6b-4be3-85e9-e2f1d7078461_1400x842.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><strong><span>How does the model already know its blind spots?</span></strong></p><p>The model doesn&#8217;t really know its blind spots, not in the truest sense. The model was trained on tens of thousands of data engineering and ETL projects, standards, and best practices. Thus, it knows that in a typical data engineering project, artifacts like data dictionaries, ETL mapping documents, specifications and runbooks, schema descriptions, and data model docs exist. The model knows its Kimball and Inmon, understands grain, SCDs, and late-arriving data, and public style guides and handbooks.</p><p>So when we ask it what&#8217;s missing from my repo, it can compare against its own training distribution and tell us exactly what&#8217;s missing.</p><p><strong><span>Why doesn&#8217;t it produce slop in the first place? Why wait until we actually ask it?</span></strong></p><p>The AI model we use is generative and probabilistic, so when we ask it to build and it hits a gap, it naturally fills it in with the most probable answer. The model has no way to know a fact is missing unless we tell it what the facts or rules are.</p><p><strong><span>But we are not just using a model; we are using an Agent with a harness, with security and guardrails. Why don&#8217;t they prevent the model from producing an incorrect answer?</span></strong></p><ul><li><p>None of these guardrails are about code correctness; the harness sets the blast radius and the agent loop if the build was green. No error message said the model discarded the entire history.</p></li><li><p>Preserving history is a cardinal rule of data warehousing. However, it&#8217;s not a universal software engineering or data-modeling rule, so a general-purpose agentic harness doesn&#8217;t necessarily implement that guardrail.</p></li><li><p>Unlike software code, data engineering code isn&#8217;t openly available, so the training data available for frontier models on data engineering is sparse and may not encompass every implicit rule we data engineers have learned over our careers.</p></li></ul><p>However, the fix is simple. Just tell the model what you already know, the way you would tell a fellow data engineer who is new to your specific environment. Even better, give it the rules and standards and let it discover what&#8217;s missing.</p><p>The two-document format one for business rules and the other for design standards is completely my own invention in lieu of having to point the model to a bunch of Confluence pages with all the standards and rules, only for the model to gloss over them. This two-document setup distills all the SPOs for the model into a starting point, and it can still refer to other docs, with the two Markdown files as a guide.</p><p>Frustrating as it is, there is a name for this phenomenon: <strong><span>Knowledge Elicitation</span></strong>. Getting the tacit knowledge out of experts is a hard problem- what we call tribal knowledge- and it seems that the same problem exists with AI models too.</p><p>The model already knew all the facts; it just didn&#8217;t know they were applicable in this case. It under-elicited. Just asking the AI model what&#8217;s missing helps.</p><p>Everything in this post is in the repo: <a href="https://github.com/snudurupati/agentic-data-analytics/tree/main/episodes/03-project-context"><span>github.com/snudurupati/agentic-data-analytics</span></a>. Clone it, start from <span>ep03-baseline</span> for the run without the two documents and <span>ep03-baseline-context</span> for the run with them, and paste the same prompts I used.</p><p>I opened this post complaining about demos and POCs, and then showed you a toy example myself. So next week we build the real thing. The full pipeline, ingestion all the way through to the data marts, end-to-end in a single shot. We&#8217;ll see how far <a href="http://CONVENTIONS.md"><span>CONVENTIONS.md</span></a> and <a href="http://STANDARDS.md"><span>STANDARDS.md</span></a> take us, and where they need to evolve. Come back and check this space.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[From ChatGPT to a Coding Agent ]]></title><description><![CDATA[I use AI agents for a good chunk of what I typically do on my computer. From end-to-end video editing to vibe-code a nice UI, from building an entire app to building an end-to-end data engineering pipeline. That&#8217;s exactly what I want to demo this time.]]></description><link>https://www.nudurupati.co/p/from-chatgpt-to-a-coding-agent</link><guid isPermaLink="false">https://www.nudurupati.co/p/from-chatgpt-to-a-coding-agent</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Tue, 01 Sep 2026 13:34:19 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!PXYR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div id="youtube2-OetKrVpByKw" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;OetKrVpByKw&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/OetKrVpByKw?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p>Since I first got introduced to Generative AI, working with it meant firing up my favorite Chat app and interacting with my favorite model in a Q&amp;A fashion. Everything changed in the past year when I discovered the power of Agentic AI. Now I use AI agents for a good chunk of things I typically do on my computer.</p><p>From market research to competitive analysis, from scouring the web to LinkedIn, Reddit, and Twitter, I don&#8217;t have to waste my precious time or mental bandwidth; I can have my agent compile deep research and even summarize it for me to review. I use AI agents to curate vacation ideas and find flights and hotels that suit my particular needs. Though I don&#8217;t trust it with my credit card yet, and I didn&#8217;t jump on the whole OpenClaw bandwagon either. AI Agents even help me edit my videos end-to-end, complete with titles and motion graphics; vibe-code a nice UI or an entire app; or build an end-to-end data engineering pipeline.</p><p>That&#8217;s exactly what I want to demo this time. How to graduate from debugging arbitrary SQL and dbt code using ChatGPT interactively and copying/pasting code between my codebase and the chat app to building your first AI agent that can accomplish a bounded task end-to-end by making use of certain tools that I have made available to the agent. So let&#8217;s get started.</p><h3>Debugging with ChatGPT</h3><p>In the previous post, I used Claude Code to build source and staging dbt layers for a retail distributor by providing conventions and standards that informed Claude of the business rules and coding standards. This time, let&#8217;s begin by asking Codex (just switching up to show that once you have the basics defined, you can use any frontier model or switch models midstream without losing any context) to clone the repo: <a href="https://github.com/snudurupati/agentic-data-analytics/tree/main/episodes/02-first-agent"><span>github.com/snudurupati/agentic-data-analytics</span></a> and set up the local environment.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kFed!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kFed!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png 424w, https://substackcdn.com/image/fetch/$s_!kFed!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png 848w, https://substackcdn.com/image/fetch/$s_!kFed!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png 1272w, https://substackcdn.com/image/fetch/$s_!kFed!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kFed!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png" width="1456" height="661" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:661,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;image.png&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="image.png" title="image.png" srcset="https://substackcdn.com/image/fetch/$s_!kFed!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png 424w, https://substackcdn.com/image/fetch/$s_!kFed!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png 848w, https://substackcdn.com/image/fetch/$s_!kFed!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png 1272w, https://substackcdn.com/image/fetch/$s_!kFed!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c929a06-be90-47f8-89b1-c0ae1f42ecac_1640x744.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>As you can see in the screenshot above, Codex cloned the repo and set upet up the local environment, including the required Python, DuckDB, and dbt-duckdb versions. It also ran dbt debug and reports that it ran 5 tests and that all passed. However, conventions clearly state that <span>Transaction IDs are not unique across branches.</span> But the dbt source of POS transaction data adds a uniqueness test on <span>transaction_id</span> alone, even though the grain is actually the combination of <span>branch_id</span> and <span>transaction_id</span>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Mze8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Mze8!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png 424w, https://substackcdn.com/image/fetch/$s_!Mze8!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png 848w, https://substackcdn.com/image/fetch/$s_!Mze8!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png 1272w, https://substackcdn.com/image/fetch/$s_!Mze8!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Mze8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png" width="1456" height="413" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/aedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:413,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;image.png&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="image.png" title="image.png" srcset="https://substackcdn.com/image/fetch/$s_!Mze8!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png 424w, https://substackcdn.com/image/fetch/$s_!Mze8!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png 848w, https://substackcdn.com/image/fetch/$s_!Mze8!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png 1272w, https://substackcdn.com/image/fetch/$s_!Mze8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faedb80a1-e872-46c9-ac9d-a02b23b014fc_1920x544.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The sample data doesn&#8217;t contain the values that expose this mistake, so the test passes this time. This is a classic example of silent failures in data engineering pipelines. The fix is to add a uniqueness test on the two columns</p><p>Typically, one would fire up their favorite AI chat app and type in a prompt as shown below.</p><blockquote><p>In a dbt staging model, transaction IDs can repeat across branches.<br>The grain is branch_id and transaction_id together.<br>Show me the YAML tests I should write.</p></blockquote><p>The chatbot gives me some YAML code in response; however, it doesn&#8217;t understand my project, the conventions, my coding standards, which tables and columns are involved, etc. So the response is pretty generic, and it&#8217;s up to me, as the data engineer, to retrofit the chatbot response into my codebase and make sure everything works properly.</p><p>However, there&#8217;s a better and more efficient way to use the same GenAI model to achieve this bounded task, from reading my existing codebase to editing the YAML file to running tests to make sure the test actually works to ensuring nothing else is broken in the process. A better way would be to use an AI agent to achieve the end-to-end task in a bounded manner. Before I show you how to create your first Agentic AI task, let me first make the distinction between a chatbot and an AI agent.</p><h3>Chatbot vs. AI Agent.</h3><p>Let&#8217;s take an analogy: think of a chatbot as a brain in a jar connected to a terminal where one can ask questions and the brain responds. You can copy your code or questions into the UI and copy the brain&#8217;s responses back into your codebase. Though the brain is pretty smart and very capable of solving problems, it is limited by its inability to see or interact with the real world, or in this case, your codebase. So the brain is only as smart as your ability to ask the right question or provide sufficient context. In a way, the brain is limited by your prompt engineering skills.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!PXYR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!PXYR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png 424w, https://substackcdn.com/image/fetch/$s_!PXYR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png 848w, https://substackcdn.com/image/fetch/$s_!PXYR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png 1272w, https://substackcdn.com/image/fetch/$s_!PXYR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!PXYR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png" width="1456" height="978" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:978,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Screenshot 2026-08-31 at 9.28.18&#8239;PM.png&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Screenshot 2026-08-31 at 9.28.18&#8239;PM.png" title="Screenshot 2026-08-31 at 9.28.18&#8239;PM.png" srcset="https://substackcdn.com/image/fetch/$s_!PXYR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png 424w, https://substackcdn.com/image/fetch/$s_!PXYR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png 848w, https://substackcdn.com/image/fetch/$s_!PXYR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png 1272w, https://substackcdn.com/image/fetch/$s_!PXYR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90548a3a-2006-4ba0-b140-b48281e5ce70_2418x1624.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Now imagine you can give the brain-in-a-jar limbs, a memory system, and a central nervous system to coordinate and control the limbs, plus a personality that defines what the agent primarily does and its boundaries. This turns the brain into a perceiving agent capable of completing multi-step tasks until either the goal is achieved or a failure condition is met. Here, the limbs have access to various tools, the central nervous system is called a harness, and <a href="http://AGENTS.md"><span>AGENTS.md</span></a> (or <a href="http://CLAUDE.md"><span>CLAUDE.md</span></a>) imparts the personality.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ga5Z!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ga5Z!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png 424w, https://substackcdn.com/image/fetch/$s_!ga5Z!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png 848w, https://substackcdn.com/image/fetch/$s_!ga5Z!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png 1272w, https://substackcdn.com/image/fetch/$s_!ga5Z!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!ga5Z!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png" width="1456" height="1504" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1504,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Screenshot 2026-08-31 at 9.29.00&#8239;PM.png&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Screenshot 2026-08-31 at 9.29.00&#8239;PM.png" title="Screenshot 2026-08-31 at 9.29.00&#8239;PM.png" srcset="https://substackcdn.com/image/fetch/$s_!ga5Z!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png 424w, https://substackcdn.com/image/fetch/$s_!ga5Z!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png 848w, https://substackcdn.com/image/fetch/$s_!ga5Z!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png 1272w, https://substackcdn.com/image/fetch/$s_!ga5Z!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F06f46d48-9f15-4cb4-9446-72de8cd7b5db_2712x2802.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><strong><span>Harness </span></strong>is the software infrastructure surrounding the Large Language Model that turns it into an agent that can perform multi-step actions within a defined boundary by using the tools made available to it. The agent operates in an agent loop that provides tool access, maintains persistent memory between tasks and sessions, and includes guardrails and middleware to prevent the agent from going off track or entering an infinite loop.</p><p><strong><span>Agent-Loops</span></strong><br>The harness orchestrates the model in an <span>INSPECT</span> -&gt; <span>ACT</span> -&gt; <span>OBSERVE</span> -&gt; <span>DECIDE</span> loop so the model works continuously: picking a tool, performing an action, reviewing the result, deciding the next step, and finally knowing when the task has finished, or a boundary condition has been met.</p><p><strong><span>Tools</span></strong> are interfaces that let the model interact with its environment via the terminal or filesystem, or access external data via a database connection, web search, or other software system required to accomplish the task at hand.</p><p><strong><a href="http://AGENTS.md"><span>AGENTS.md</span></a></strong> is a repository-level configuration file that provides instructions for an AI agent acting within the repository, serves as persistent memory, and defines guidelines and security and execution boundaries.</p><p>Now that we&#8217;ve defined the difference between a chatbot and an agent, let&#8217;s fix the testing bug we identified earlier using an AI agent.</p><h3>Running The First Agentic Task</h3><p>When you cloned the repo earlier, it already contained an <span>AGENTS.md</span> at the repo root,, and I&#8217;m using ChatGPT&#8217;s <strong><span>Codex</span></strong> as the harness and <strong><span>Sol 5.6</span></strong> as my model of choice. Codex asks me to pick a project, and I choose the previously cloned local repo as the project root and choose permission as <em><span>Approve for me</span></em>, which lets it run terminal commands, browse and edit files via the filesystem, but it still checks with me for certain actions which are deemed destructive, such as deleting a file. With this setup, I give my agent the following first instruction.</p><pre><code>Read AGENTS.md, CONVENTIONS.md, and STANDARDS.md first.</code></pre><p>Fix the declared grain tests for stg_pos__transactions.</p><p>The grain is branch_id and transaction_id together.</p><p>Test both columns for null values.</p><p>Test the two columns together for uniqueness.</p><p>Change only models/staging/_staging.yml.</p><p>Do not add a package or a file.</p><p>Run dbt build only for stg_pos__transactions.</p><p>Do not stage or commit any change.</p><p>The instructions tell the agent to change exactly one file, test two columns for null values, define a uniqueness test on both columns together, build one specific model, and not commit anything to the repository. The agent-loop kicks in.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!rFjG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!rFjG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png 424w, https://substackcdn.com/image/fetch/$s_!rFjG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png 848w, https://substackcdn.com/image/fetch/$s_!rFjG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png 1272w, https://substackcdn.com/image/fetch/$s_!rFjG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!rFjG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png" width="1456" height="560" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:560,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;image.png&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="image.png" title="image.png" srcset="https://substackcdn.com/image/fetch/$s_!rFjG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png 424w, https://substackcdn.com/image/fetch/$s_!rFjG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png 848w, https://substackcdn.com/image/fetch/$s_!rFjG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png 1272w, https://substackcdn.com/image/fetch/$s_!rFjG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a34c680-ed0d-4e88-83c2-1dd208295745_1668x642.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The agent loop starts with <span>INSPECT</span> by reading the existing files first. Then it <span>OBSERVES</span> that the conventions do state that transactions are not unique across branches and concludes that the current data test is incorrect.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!vUyB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!vUyB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png 424w, https://substackcdn.com/image/fetch/$s_!vUyB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png 848w, https://substackcdn.com/image/fetch/$s_!vUyB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png 1272w, https://substackcdn.com/image/fetch/$s_!vUyB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!vUyB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png" width="1456" height="388" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:388,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;image.png&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="image.png" title="image.png" srcset="https://substackcdn.com/image/fetch/$s_!vUyB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png 424w, https://substackcdn.com/image/fetch/$s_!vUyB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png 848w, https://substackcdn.com/image/fetch/$s_!vUyB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png 1272w, https://substackcdn.com/image/fetch/$s_!vUyB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f0d2007-6355-402d-8495-686e6f9e8bb5_1718x458.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>It <span>ACTS</span> by editing the YAML file and writing the NULL and UNIQUENESS test for the correct columns. It then runs a git diff to confirm the blast radius is limited to this one file, as instructed.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!iEWK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f167823-06a2-43f9-a069-70497be05710_1738x454.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!iEWK!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f167823-06a2-43f9-a069-70497be05710_1738x454.png 424w, https://substackcdn.com/image/fetch/$s_!iEWK!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f167823-06a2-43f9-a069-70497be05710_1738x454.png 848w, https://substackcdn.com/image/fetch/$s_!iEWK!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f167823-06a2-43f9-a069-70497be05710_1738x454.png 1272w, https://substackcdn.com/image/fetch/$s_!iEWK!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f167823-06a2-43f9-a069-70497be05710_1738x454.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!iEWK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f167823-06a2-43f9-a069-70497be05710_1738x454.png" width="1456" height="380" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5f167823-06a2-43f9-a069-70497be05710_1738x454.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:380,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;image.png&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="image.png" title="image.png" srcset="https://substackcdn.com/image/fetch/$s_!iEWK!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f167823-06a2-43f9-a069-70497be05710_1738x454.png 424w, https://substackcdn.com/image/fetch/$s_!iEWK!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f167823-06a2-43f9-a069-70497be05710_1738x454.png 848w, https://substackcdn.com/image/fetch/$s_!iEWK!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f167823-06a2-43f9-a069-70497be05710_1738x454.png 1272w, https://substackcdn.com/image/fetch/$s_!iEWK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f167823-06a2-43f9-a069-70497be05710_1738x454.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>It runs a verification step by running a dbt build test only on the changed model, verifies that nothing has been committed to git, and then <span>DECIDES</span> that the task is finished. Thus, the agent loop concludes and successfully completes the provided bounded task end-to-end.</p><h3>Conclusion</h3><p>You have successfully graduated from using a Large Language Model to debug your code to leveraging the power of agentic AI to execute a complete bounded task without copying/pasting between apps. By leveraging a harness (Codex in this case) and tool access (filesystem and dbt, git access via terminal) and making use of agent-loops, you were successfully able to turn the same LLM with the same level of effort from a chatbot that would produce arbitrary code to an agent that not only understands your codebase but also makes use of tools to complete tasks on your behalf.</p><p>I highly recommend cloning the <a href="https://github.com/snudurupati/agentic-data-analytics/tree/main/episodes/02-first-agent">repo</a> and trying the exercise yourself. I have recorded this entire demo and discussion as a handy <a href="https://youtu.be/OetKrVpByKw"><span>video</span></a> you can watch and follow along. After trying out the demo, if you are wondering why it looked great but isn&#8217;t useful on my repo, that&#8217;s exactly what I address in the next post in this series, so keep watching this space.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Am I still a data engineer if Claude does the work? ]]></title><description><![CDATA[I&#8217;d say very much yes!]]></description><link>https://www.nudurupati.co/p/am-i-still-a-data-engineer-if-claude</link><guid isPermaLink="false">https://www.nudurupati.co/p/am-i-still-a-data-engineer-if-claude</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Tue, 25 Aug 2026 14:47:13 GMT</pubDate><enclosure url="https://substackcdn.com/image/youtube/w_728,c_limit/NygDalOra34" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div id="youtube2-NygDalOra34" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;NygDalOra34&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/NygDalOra34?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><h2>Setting the Stage</h2><p>When Opus 5 came out, I saw tweets and posts that touted how good it was at one-shot, long-horizon agentic tasks. Someone tweeted how they were able to build a full video game, replete with high-fidelity graphics and sound, with just one prompt using Opus 5. This got me thinking, &#8220;<em>What can Opus 5 or an equivalent model achieve in the data analytics space?</em>&#8221;</p><p>This past year, I have been heads-down working on context engineering, especially leveraging Ontologies and Graph databases to provide LLMs context as they reason about and process data across a few different startups. I will write about what I learned in a separate post, maybe.</p><p>Agentic AI in software engineering has come a long way, and one-shot, long-horizon tasks in the Software SDLC are definitely possible today. I don&#8217;t claim to be a software engineer beyond vibe coding, but agentic SDLC is achievable because a software&#8217;s requirements are set, and if something is broken, it can be tested, and it throws an error instead of silently failing. But data is hard because of the myriad business rules and the tribal knowledge involved, which the data or the schema cannot fully answer. Data and schema failures are seldom loud; they're frequently silent. I set out to test my hunch with an experiment.</p><h2>My Experiments with Claude and Data</h2><h3>The Setup</h3><p>I chose the wholesale distribution sector because it's complex enough to model real data problems and familiar enough to understand easily. A sale can happen via a salesperson/ERP, a web order via the e-commerce portal, or at any of the branches. Source systems include a CRM, an ERP, e-commerce, and POS. Data from each source system arrives either via an ingestion tool from a source table as a Change Data Capture feed complete with an ingestion timestamp, as daily snapshot tables via API, or as daily sales data from every POS till per branch.</p><p>I chose dbt as a data processing system and DuckDB as a data warehouse because they're common in the Modern Data Stack, mostly vendor-neutral, and easy to set up and use without a cloud setup, a trial signup, or a paywall.</p><p>I set out to build all phases of the Modern Data Stack, including data ingestion, cleansing &amp; transformation, storage, reverse ETL, and activation, in an AI-assisted manner. Where I provide the prompt, required context, and instructions, Claude Opus 5 does everything from setting up the reusable environment to writing the code and tests.</p><p>However, I collected enough data points during the ingestion and staging phase to represent the full data lifecycle, so I didn&#8217;t feel the need to demonstrate the whole lifecycle in this experiment. I do intend to complete the rest of the lifecycle and present any variations in the results presented here in a subsequent post.</p><p>Data was completely generated in an AI-assisted way; all data generation scripts are presented in the accompanying GitHub repo along with the prompts, context, and instructions used in this experiment here - <a href="https://github.com/snudurupati/agentic-data-analytics/tree/main/episodes/01-still-a-data-engineer">snudurupati/agentic-data-analytics</a></p><h3>Experiment 1: Setting up the dbt sources</h3><p>The first thing I tell Claude is to read the <code>CONVENTIONS.md</code> and the <code>STANDARDS.md</code>, and that should inform you on how things are done in this org. Then I tell it it has four source systems, where the files land, what the source systems are, and that we run a nightly ETL schedule, so we get new data every night. Everything else it needs is in the two markdown files.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!aAl7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png 424w, https://substackcdn.com/image/fetch/$s_!aAl7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png 848w, https://substackcdn.com/image/fetch/$s_!aAl7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png 1272w, https://substackcdn.com/image/fetch/$s_!aAl7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!aAl7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png" width="1456" height="198" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:198,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:146188,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/212660535?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!aAl7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png 424w, https://substackcdn.com/image/fetch/$s_!aAl7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png 848w, https://substackcdn.com/image/fetch/$s_!aAl7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png 1272w, https://substackcdn.com/image/fetch/$s_!aAl7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc17b4a67-8797-4f5c-baba-e6a31cadd527_2400x326.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div></div></div></div></figure></div><p>Just a personal pet peeve that I have a hard time reading the way Claude Opus 5 writes. So I also specifically instructed it to use <strong>Simplified Technical English</strong> and avoid any flowery language. Whether it follows that instruction is its own little experiment.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!floU!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png 424w, https://substackcdn.com/image/fetch/$s_!floU!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png 848w, https://substackcdn.com/image/fetch/$s_!floU!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png 1272w, https://substackcdn.com/image/fetch/$s_!floU!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!floU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png" width="1456" height="226" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:226,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:218504,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/212660535?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!floU!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png 424w, https://substackcdn.com/image/fetch/$s_!floU!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png 848w, https://substackcdn.com/image/fetch/$s_!floU!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png 1272w, https://substackcdn.com/image/fetch/$s_!floU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc43b8b90-97c4-440a-9e71-d9ca974cd6c3_2400x372.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div></div></div></div></figure></div><p>Claude came back, and it had set up four new sources for the ECOM, CRM, ERP, and Point-of-Sale sources and wrote 40 tests to, unprompted. It is reading the files with a wildcard, which is expected. Typically, I would use an ingestion tool to load from object storage directly into the cloud warehouse. But to keep the demo simple, I have asked Claude to use DBT for ingestion, and it used DuckDB&#8217;s file blob reader for the purpose.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!eONC!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png 424w, https://substackcdn.com/image/fetch/$s_!eONC!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png 848w, https://substackcdn.com/image/fetch/$s_!eONC!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png 1272w, https://substackcdn.com/image/fetch/$s_!eONC!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!eONC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png" width="1456" height="346" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:346,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:332323,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/212660535?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!eONC!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png 424w, https://substackcdn.com/image/fetch/$s_!eONC!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png 848w, https://substackcdn.com/image/fetch/$s_!eONC!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png 1272w, https://substackcdn.com/image/fetch/$s_!eONC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd77abcfc-6f45-44ca-861a-37a858418fd8_2400x570.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div></div></div></div></figure></div><p>It used <code>union_by_name</code>, which is smart, and I would not have expected from a junior data engineer, which is smart. What that does is, in the future, if my upstream sends me a file with a missing column, or a differently named column, or the reordered columns, the reader either handles it or fails loudly. Then it is also doing <code>all_varchar</code> on the sources, which is what the standards tell it to do, and Claude made a point of noting it and implementing it. It also added the file name as a source column, which is also smart, because I can find a use for it in staging or further downstream.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!AW19!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png 424w, https://substackcdn.com/image/fetch/$s_!AW19!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png 848w, https://substackcdn.com/image/fetch/$s_!AW19!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png 1272w, https://substackcdn.com/image/fetch/$s_!AW19!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!AW19!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png" width="1456" height="189" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:189,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:352644,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/212660535?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!AW19!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png 424w, https://substackcdn.com/image/fetch/$s_!AW19!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png 848w, https://substackcdn.com/image/fetch/$s_!AW19!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png 1272w, https://substackcdn.com/image/fetch/$s_!AW19!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5519db22-0757-46e4-8c66-5e2493b18def_2400x312.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div></div></div></div></figure></div><p>It also wrote a freshness check unprompted, and it is not in my standards or my conventions either. It did the right thing anyway, and then found two places where the data and the conventions do not agree, and instead of guessing, it came back and asked me, which is exactly what I would expect from a junior developer. It tells me the website says web sales have no timezone and no city, but the data looks like it has both, and asks me how to handle those.</p><p>There was one thing I still wanted to be sure about, so I asked it: if all the branches arrive except one, will the freshness check tell me? The conventions do say a branch can sometimes be delayed, but delayed doesn't mean I am not concerned. If a branch didn't send today&#8217;s sales, my sales dashboard is stale or incomplete, and that could skew someone&#8217;s decision-making. I would want to warn the relevant department or person so they are at least aware. Claude, instead of just speculating, ran a simulation to see what actually happens in that scenario, which I liked.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!-0sD!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png 424w, https://substackcdn.com/image/fetch/$s_!-0sD!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png 848w, https://substackcdn.com/image/fetch/$s_!-0sD!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png 1272w, https://substackcdn.com/image/fetch/$s_!-0sD!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!-0sD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png" width="1456" height="266" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:266,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:385052,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/212660535?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!-0sD!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png 424w, https://substackcdn.com/image/fetch/$s_!-0sD!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png 848w, https://substackcdn.com/image/fetch/$s_!-0sD!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png 1272w, https://substackcdn.com/image/fetch/$s_!-0sD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7872a0bc-e4b3-4dce-9c2d-620bf510142a_2400x438.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div></div></div></div></figure></div><p>And this is where it goes on tangents and starts arguing a few things, asking me where the list of expected branches should come from, offering me options. There is a much easier way to fix this. In the warehouse, I already have all the branches I have so far. I can take those branches, test them against the files that arrived, and see whether a branch is missing from today&#8217;s feed. That is a sound enough test to tell me a branch did not arrive. This is where I had to nudge and course-correct Claude, tell it how I would do it, and ask it to implement that test.</p><p>Claude Opus 5 took my direction and built it the way I asked. It did that part well: it implemented the test, simulated the scenario, and made sure the test actually catches it. It also wrote a test instead of failing the whole job, which is smart, because if one branch is missing, the job should keep loading whatever is available; we don't want a backlog. It warns instead, and I can take that warning into an observability dashboard and build a workflow that tells the concerned team their sales data is stale. In this case, it took some nudging from me to steer Claude in the right direction.</p><h3>Experiment 2: Building the staging layer</h3><p>Now that the sources were built, I moved on to staging and asked it to build everything incrementally. Honestly, POS is the tricky one here because we are not getting incremental data or snapshots from it; we are getting a file per till, per branch, per night.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!AvYO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!AvYO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png 424w, https://substackcdn.com/image/fetch/$s_!AvYO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png 848w, https://substackcdn.com/image/fetch/$s_!AvYO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png 1272w, https://substackcdn.com/image/fetch/$s_!AvYO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!AvYO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png" width="1456" height="728" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:728,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:935598,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/212660535?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!AvYO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png 424w, https://substackcdn.com/image/fetch/$s_!AvYO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png 848w, https://substackcdn.com/image/fetch/$s_!AvYO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png 1272w, https://substackcdn.com/image/fetch/$s_!AvYO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9f69f24-ac7a-4bbb-a021-9676175be39d_2400x1200.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>It built eight staging models and 119 tests. It says the feed type decides incremental, which makes sense. For the ERP, the conventions say the feed only sends changes, so every row is kept and it decides whether the row is an insert, an update, or marked as deleted. CRM and ECOM send a full dump every night, so it does a hash diff to work out the new rows, and if a record stops appearing, which means it was deleted, it records that row as <code>isDeleted = true</code>. This way the data warehouse always records all the history and every change.</p><p>Regarding POS, Claude told me it has no feed ingestion timestamp, so there is no column to hold the watermark, which makes sense because we only ever send new sales data. That new sales data also includes refunds, exchanges, and voids, and that is what I wanted to stress.</p><p>So I asked it. If it implemented incremental, how did it identify new rows? It told me it identifies a new file, not a new row. Then it told me why it cannot use the other datetime columns, with reasons that all check out. But I was still curious how it handled refunds and exchanges, and Claude dumped a whole bunch of prose on me. The summary is that, per the conventions, refunds and exchanges carry a new transaction ID, so they are handled as new rows, and the downstream job decides how to attribute them back to a branch or calculate metrics based on business logic, which is fair enough. But I still wanted to know what happens to voids, because a void usually carries the same transaction ID as the original, and that could throw things off.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fI5W!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png 424w, https://substackcdn.com/image/fetch/$s_!fI5W!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png 848w, https://substackcdn.com/image/fetch/$s_!fI5W!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png 1272w, https://substackcdn.com/image/fetch/$s_!fI5W!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!fI5W!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png" width="1456" height="133" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:133,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:181668,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/212660535?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!fI5W!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png 424w, https://substackcdn.com/image/fetch/$s_!fI5W!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png 848w, https://substackcdn.com/image/fetch/$s_!fI5W!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png 1272w, https://substackcdn.com/image/fetch/$s_!fI5W!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b512bb3-a703-4681-8968-ba6936cfc1e6_2400x220.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div></div></div></div></figure></div><p>Claude came back with a few things. It said nothing actually breaks right now because we don't have a mart yet; there are no fact or dimension tables; nothing is being reported, so there is no false revenue. That is true. However, a few of its other statements were not so true.</p><p>First, it says the conventions state that every till numbers its own sales, a branch runs more than one till, and therefore two tills could produce the same transaction ID. That is incorrect. I wrote the conventions, and they say transactions may repeat across branches, but they say nothing about two tills within the same branch producing the same transaction ID. Claude Code is confidently stating that it is true, and that is the kind of thing you can only catch when you go through everything that Claude says and cross-check everything that Claude Code is building. That's why I asked the question in the first place.</p><p>Here is what <code>CONVENTIONS.md</code> actually says on the subject:</p><blockquote><p><strong>The branches do not run the same till software.</strong> Tills are from various vendors over 15 years. There is no shared specification, no shared version and no central upgrade. Each till numbers its own sales, and nothing coordinates one branch with another.</p><p><strong>Transaction IDs are not unique across branches.</strong></p></blockquote><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!rBVN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png 424w, https://substackcdn.com/image/fetch/$s_!rBVN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png 848w, https://substackcdn.com/image/fetch/$s_!rBVN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png 1272w, https://substackcdn.com/image/fetch/$s_!rBVN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!rBVN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png" width="1456" height="283" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:283,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:284856,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/212660535?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!rBVN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png 424w, https://substackcdn.com/image/fetch/$s_!rBVN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png 848w, https://substackcdn.com/image/fetch/$s_!rBVN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png 1272w, https://substackcdn.com/image/fetch/$s_!rBVN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ada51da-abdb-42a7-a50f-34a566b2cc97_2400x466.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div></div></div></div></figure></div><p>The second thing I caught is that it is building the surrogate key off the grain, a composite key of sorts. That is not right, because it means the surrogate key is only as good as the grain. In this case, if transactions collide, the surrogate key will also collide. Normally, I'd identify a void by seeing the same transaction arrive twice with two separate surrogate keys, which tells me it is a possible void, not a duplicate transaction. Here, because the surrogate key is the same, I can't tell which is the original and which is the void or duplicate. That is a mistake Claude Code clearly made, and as a senior data engineer fact-checking what Claude is building, I could catch it. If I had not, it could have led to silent failures initially and incorrect results, and incorrect decision-making downstream.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!0hA8!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png 424w, https://substackcdn.com/image/fetch/$s_!0hA8!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png 848w, https://substackcdn.com/image/fetch/$s_!0hA8!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png 1272w, https://substackcdn.com/image/fetch/$s_!0hA8!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!0hA8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png" width="1456" height="153" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:153,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:308415,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/212660535?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!0hA8!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png 424w, https://substackcdn.com/image/fetch/$s_!0hA8!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png 848w, https://substackcdn.com/image/fetch/$s_!0hA8!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png 1272w, https://substackcdn.com/image/fetch/$s_!0hA8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe452c678-4f94-4019-9ab8-7afbc6cb069c_2400x252.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div></div></div></div></figure></div><p>One last thing I wanted to check was the immutability of the landing zone, as stated in the conventions and standards. In a landing zone, we keep appending data, and a data engineer should be smart enough to read only the relevant files. Say, I have three years of history; I shouldn't read all three years every day. There is usually a late arrival cutoff, and in this case the conventions clearly say 14 days. Claude didn&#8217;t mention implementing any such logic in the ingestion process, so I went ahead and asked it.</p><p><code>Three years from now the landing zone holds tens of thousands of POS files, and in prod the files land on object storage, so is that going to be a problem?</code></p><p>It ran a bunch of measurements on the local file system, which is completely unnecessary. I clearly told it the files land on an object store, and an object store does not behave like a regular local file system, so those measurements were moot. It tells me 10,000 files is roughly 57 seconds, which is purely useless information and a sheer waste of tokens. It does come back and say this scenario has key failure modes on object storage, and that is the important part.</p><p>However, it gets the problem right, but the fix is all wrong. It says this is a file count problem, not a data-volume problem. Three years of point-of-sale is roughly a million rows, which is nothing. Ten thousand small files are the real problem, and object storage handles small files worst. At least it knows that, which is good.</p><p>But then it offers me three fixes, and one is to partition the files into date-wise Hive-like partitioning. If Claude Opus 5 had ever worked on cloud storage, it would know that hierarchical partitioning on object storage is very inefficient; it kills throughput, and AWS, or any object store, will start rate limiting you. If listing files on object storage is bad, listing hierarchical folders is even worse. Anybody who has done any work in the cloud knows that. Claude, in this case, clearly hasn't run anything in the cloud, so it doesn't know.</p><p>Then it tells me to compact my files and convert them to Parquet, which has the same problem, because even converted I still have to read the history. Or add one more stage where I take the landing files and write them to raw Parquet, which is completely unnecessary. The conventions doc clearly states that the late-arrival cutoff is 14 days, so a simple solution is not to read any data older than 14 days during ingestion. I mention this to Claude Opus 5, and it agrees and finally implements the fix. </p><p>If it isn&#8217;t already clear from the narrative, experiment 2 is where Claude&#8217;s performance visibly starts to degrade. Starting from staging, the business rules get progressively complex, and implementing them requires a mix of business process acumen, tribal knowledge from prior experience, and an understanding of possible failure modes; codifying them into a neat, machine-readable context document is no easy feat.</p><h2>My Key Takeaways</h2><p><span>My conclusion to the question&nbsp;</span><strong>&#8216;Am I a data engineer if Claude does the work?&#8217;</strong><span>&nbsp;is &#8220;</span><strong>VERY MUCH YES!</strong><span>&#8220;.</span> Claude or another equivalent model like Codex Sol 5.6 is only as good as the data engineer wielding it, because the person here becomes the guide, the architect, the context vault (though much of it can be codified using markdown as demo&#8217;ed in experiments), the architect and the quality reviewer.</p><p>Across roughly 10 runs, every run produced a brilliant finding as well as a stupid miss. However, the model was consistent across runs on things it could deduce from the data, general data engineering best practices, or context provided in the included standards and conventions documents. The variance between runs was either because the knowledge or business process wasn&#8217;t codified in the provided context, or because it was personal experience gained after debugging pipelines over several years.<br>The former can be easily rectified by codifying it and documenting it for the model to access; the latter can&#8217;t be passed to a model through context documents alone.</p><p>So the pattern I saw is threefold.</p><ol><li><p><strong>Good conventions and standards give Claude a head start, but Markdown may not be the right medium.</strong> It knows your business, it knows your coding standards, and it does a good job of catching edge cases and writing the tests for them. At the same time, even though I provided those standards, Claude still made mistakes, and that is a miss. Can we have a better memory system? I don&#8217;t know. Does an ontology and a graph database solve it? I don&#8217;t know either, though I have a hunch it doesn&#8217;t and that it just complicates things.</p></li><li><p><strong>A better model tomorrow probably does improve some of this.</strong> When it built the surrogate key off the grain, that is simply not a best practice. The more data engineering standards the next model trains on, the less likely Claude Opus 6, or whatever it ends up being called, is to make that particular mistake.</p></li><li><p><strong>Tribal knowledge cannot be easily codified, and the models cannot be trained on it either.</strong> The distinction where I am still required, as a data engineer, as an architect, as someone who cross-checks facts, only comes from years of debugging data pipelines. It is personal experience gained. Can that be codified for the model? We just saw that putting it into a markdown file is not practical, and even if you do, if the file gets too large, Claude will probably gloss over it, exactly like it did in this fairly simple example. So can we train a model on that kind of data instead? Maybe. But each enterprise is a snowflake, with its own standards and its own way of doing business, and unlike software engineering code, that code is not open-sourced, because those standards inherently carry my business knowledge and my business metadata. It is not customary to open source it. That means the training data to teach Claude, OpenAI, or Gemini isn't available today.</p></li></ol><p>And that&#8217;s where this tweet that someone wrote comes into play.</p><blockquote><p>AI won&#8217;t replace slow data engineers, it&#8217;ll replace engineers who don&#8217;t understand the data well enough to catch when AI gets it wrong. Speed without judgment is just faster failure. What&#8217;s the worst thing an AI tool confidently broke in your pipeline?</p><p>Saeed Anwar, <a href="https://x.com/saen_dev">@saen_dev</a></p></blockquote><p>The skill that I bring to the table, the years of experience, is not writing code or making Claude write code, but spotting those mistakes where Claude confidently says that it did the right thing, but from experience I know it did not. And that&#8217;s where my expertise as a seasoned data engineer, who has debugged numerous data pipelines, comes into play.</p><p><span>A picture, or these days a&nbsp;</span>video,<span>&nbsp;is better than a thousand words, and honestly I didn&#8217;t want to cram 100 screenshots and words into a single blog and still lose some precious context, so I have recorded my experiment as a&nbsp;</span><a href="https://www.youtube.com/watch?v=NygDalOra34">video</a><span>.</span> I tried to keep the experiment honest and tried to follow the process that I would personally follow while building a new pipeline from scratch, or rather, the process that I&#8217;d have a junior data engineer follow. However, let me know if I should have taken a different approach, or better yet, if you already follow a process that helps you minimize AI errors, please let me know in the comments.</p><p>So let me ask you what Saeed asked: what is the worst thing an AI tool confidently broke in your pipeline?</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Companionship in Feeling]]></title><description><![CDATA[Finding Catharsis through Music]]></description><link>https://www.nudurupati.co/p/companionship-in-feeling</link><guid isPermaLink="false">https://www.nudurupati.co/p/companionship-in-feeling</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Sat, 06 Jun 2026 22:38:09 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!V4pj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>The Glas Box usually talks about the world of AI and infrastructure; this one doesn&#8217;t. Bear with me.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!V4pj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!V4pj!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg 424w, https://substackcdn.com/image/fetch/$s_!V4pj!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg 848w, https://substackcdn.com/image/fetch/$s_!V4pj!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!V4pj!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!V4pj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg" width="1456" height="1057" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1057,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1230427,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/200945262?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!V4pj!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg 424w, https://substackcdn.com/image/fetch/$s_!V4pj!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg 848w, https://substackcdn.com/image/fetch/$s_!V4pj!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!V4pj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F07cfd5da-78b6-4e54-9752-cb733def900c_3507x2547.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Siya, age 5, drew our Saturday morning. She drew the music as a rainbow at our feet.</em></figcaption></figure></div><p>It is Saturday morning, and it&#8217;s my tradition to have freshly brewed coffee from freshly ground beans sourced from a local roaster while listening to my favorite music track of the week on repeat through my pair of KEF LSX IIs. Next to me, in my wife&#8217;s lap, is our 5-month-old, wiggling and whining from discomfort caused by a bout of allergies and a cold he contracted from his elementary-going big sister. He is in discomfort and doesn&#8217;t yet have the language to communicate it, nor the cognitive ability to know the discomfort is only temporary. Just then I start playing this melancholy number, and he stops wiggling and whining and gives the song his full attention. He is visibly comforted and soothed by this sad song.</p><p>Immediately, my brain starts firing on all cylinders with questions like, &#8220;Can an infant&#8217;s brain, still forming the required cognitive pathways, already understand and empathize with music?&#8221;, and &#8220;How can melancholy soothe discomfort?&#8221; So, I start digging into the questions and go deep down the rabbit hole. That&#8217;s when I stumble upon the concept of &#8220;companionship in feeling,&#8221; and I have an epiphany. Mind you, I am not claiming to have coined the phrase or discovered the concept for the first time; rather, I am claiming to have understood it, to have realized what it really means to find catharsis through music, through a personal experience.</p><p>Music moves us emotionally; this has always been known to us, unless one lacks the empathy to feel it. Every time I listen to &#8220;Simple Man&#8221; by Lynyrd Skynyrd, or Fleetwood Mac chant &#8220;don&#8217;t stop thinking about tomorrow,&#8221; or hear Shinedown sing &#8220;sometimes goodbye is a second chance&#8221; in a gritty voice, something stirs inside me; I am elevated to a different emotional plane. But how can an infant even begin to comprehend music&#8217;s emotion? It seems they can, because the pathways for emotional response to sound are the oldest in the brain, far older than language, cognition, or even conscious memory. In summary, the part of the brain responsible for emotions is functional at birth and responsive to sound even before birth. So my infant is Jack London&#8217;s Martin Eden standing in Ruth&#8217;s parlor, perceiving the beauty of everything around him and moved by things he can&#8217;t yet articulate.</p><p>How does melancholic music soothe discomfort caused by sickness? It seems rather counterintuitive. That&#8217;s exactly the concept of &#8220;companionship in feeling.&#8221; See, the infant is in discomfort and the music, instead of trying to shift his emotional state to something cheerful, sits beside him, like an old friend with arms around his shoulder, saying, &#8220;I know you are sad and so am I; let&#8217;s be friends and be sad together.&#8221; It&#8217;s simply beautiful. I&#8217;ve heard music transcends culture, creed, skin color, etc.; however, here I am witnessing music transcend language, or the lack thereof, and even bypass basic cognition.  I think I now understand when Aldous Huxley said, &#8220;After silence, that which comes nearest to expressing the inexpressible is music.&#8221;</p>]]></content:encoded></item><item><title><![CDATA[Agent Orchestration Without Internal Representation]]></title><description><![CDATA[How stigmergy could drive coordination through the environment.]]></description><link>https://www.nudurupati.co/p/agent-orchestration-without-internal</link><guid isPermaLink="false">https://www.nudurupati.co/p/agent-orchestration-without-internal</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 25 May 2026 18:37:10 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ysUW!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff412fd5b-35d5-42f6-803d-d66d82d2fa8b_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Present-day Agent Frameworks, whether based on a rigid state graph (LangChain) or a flexible group chat (AutoGen), share a universal truth: agents are constrained processing units that transform input representations into output representations. Representation is a common phenomenon, whether pooled in a central database or routed through distributed service queues.</p><h2>Subsumption Architecture</h2><p>Inspired by Rodney A Brooks&#8217; influential 1991 paper &#8220;Intelligence without Representation&#8221; [1], I argue that today&#8217;s agent frameworks like LangGraph and AutoGen repeat a similar misstep made by the classical AI community decades ago: they decompose systems into functional modules (perception, planning, execution) bound to an explicit textual representation.</p><p>In his paper, Brooks argues that Classical AI researchers decomposed an intelligent system into individual information-processing units, each building its own world model (representation) and exchanging representations with one another. Modern agent frameworks, LangGraph and AutoGen, have adopted a similar approach: they force every agent to generate a text representation, read another agent's representation, and reason over it. This creates an architectural bottleneck in which agents are treated as finite-state machines with a beginning and an end, tightly coupled to one another through generating, parsing, and exchanging world models (the chat history or state), rather than interacting with the actual environment.</p><p>As an alternative, Rodney proposes a &#8220;<em>Subsumption Architecture</em>&#8221;: &#8220;<em>the intelligent system is decomposed into independent and parallel activity producers that interface directly with the world through perception and action, rather than interface to each other particularly much.</em>&#8221;[1]</p><p>With this in mind, the goal of this series is to build a new agent framework using Brooks&#8217; &#8220;Subsumption Architecture&#8221; as a blueprint. In this model, each agent acts as a parallel activity producer, operating on a shared substrate instead of communicating directly with other agents. Each agent would form a tight, reactive loop, converting input directly into action and modifying the shared substrate. Other agents could then observe and act on the new world state independently, avoiding an intermediate &#8220;thinking&#8221; layer. By doing this, we are eliminating internal, siloed representation and message-passing between agents. </p><p>The fundamental idea of Brooks&#8217; <em><strong>Subsumption Architecture</strong></em> is the decomposition of task-achieving behaviors into layers. Each layer is combined with other layers, in which an upper layer can suppress or inhibit a lower layer. My observation is that this could lead to a factorial expansion of layer combinations and is practically unscalable. And Brooks&#8217; paper itself states that the highest number of layers they achieved was 3 in the physical experiment and 6 in simulation, with the rest slated for future work.</p><p>Brooks solves the representation problem but introduces the wiring problem, and directed graphs solve the wiring problem but reintroduce the representation problem; neither scalable nor practical for AI Agents.</p><p>This is where I look to Heylighen&#8217;s Stigmergy to implement Brooks&#8217; &#8220;Intelligence without Representation&#8221; [1], at scale for AI Agents.</p><h2>Stigmergy as a coordination mechanism</h2><p>As defined by Francis Heylighen, &#8220;Stigmergy is an indirect, mediated mechanism of coordination between actions, in which the trace of an action left on a medium stimulates the performance of a subsequent action.&#8221; [2]</p><p>Stigmergy enables complex, coordinated activity without any need for planning, control, communication, simultaneous presence, or mutual awareness. Mediation via the environment ensures that tasks are executed in the correct order, without the need for planning, control, or direct interaction between agents.</p><p>Applying stigmergy to the agentic paradigm is not a brand-new concept. According to Heylighen, it is already being used in the fields of computer simulation and swarm intelligence, to solve the notorious traveling salesman problem, and in communications networks for optimal packet routing. [2]</p><p>The stigmergic process can be imagined as a feedback loop in which an agent leaves a trace that, in turn, leads to subsequent actions. This mechanism is not limited to coordinating actions performed by a swarm of agents but also fits well for coordinating multiple actions performed by a single agent.</p><p>This concept of Stigmergy, applied to AI Agents, solves the biggest bottleneck in Brooks&#8217; &#8220;Subsumption Architecture,&#8221; which required combining layers through suppressive and inhibitive mechanisms. Stigmergy negates that requirement by having agents communicate solely through a common substrate, without awareness of one another or of the need to coordinate or interface. Because agents hold no state, the shared substrate instead serves as the physical environment on which they leave traces and to which they react.</p><p>Coordination through stigmergy requires an environment that can durably record traces without being corrupted by competing agents. Omnigraph fits this perfectly, as I have argued in detail in my&nbsp;<a href="https://www.nudurupati.co/p/context-graphs">previous article</a>, not just because it is a graph database, but because its Git-style branching and versioning act as an immutable log of concurrent agent traces.</p><h2>Conclusion</h2><p>A directed graph with an internal representation is the wrong model for agentic orchestration. Brooks established why representation fails, and Heylighen showed how coherent coordination can be achieved without needing planning, control, mutual communication, or awareness. The intellectual case is made.</p><p>But an intellectual case is not a framework. In the next installment, I will propose an architecture and an agent framework with Omnigraph as the substrate, without a central planner, a shared representation, a directed graph, or direct message-passing among agents.</p><p>This framework does raise a few hard questions that I don&#8217;t yet have answers to.</p><ul><li><p>Does stigmergic coordination always lead to the right answer, or just an answer? What are the failure modes?</p></li><li><p>LangGraph failures are visible and debuggable. How does one debug traces left by contradicting and competing agents?</p></li><li><p>Does Stigmergy assume a level of homogeneity that probabilistic language models powering AI agents, with baked-in biases and failure modes, cannot guarantee?</p></li></ul><p>These are the questions that the implementation phase will have to answer.</p><p><strong>References</strong></p><p>[1] Brooks, R.A. (1991). Intelligence Without Representation. <em>Artificial Intelligence</em>, 47(1-3), 139-159.</p><p>[2] Heylighen, F. (2016). Stigmergy as a Universal Coordination Mechanism I: Definition and Components. <em>Cognitive Systems Research</em>, 38, 4-13.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Context Graphs]]></title><description><![CDATA[My journey in context graphs started to solve the AI hallucination problem by grounding it in context. Here I am now, experiencing an agent-centric paradigm shift first-hand.]]></description><link>https://www.nudurupati.co/p/context-graphs</link><guid isPermaLink="false">https://www.nudurupati.co/p/context-graphs</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 04 May 2026 19:33:32 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ysUW!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff412fd5b-35d5-42f6-803d-d66d82d2fa8b_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h4>Have you ever seen a database centered on AI-Agents?</h4><p>A few weeks ago, I wrote about the &#8220;dumb storage, smart index&#8221; pattern, which I traced across seemingly independent technologies like Delta Lake for data lakes, MCAP for Physical AI, and turbopuffer for object-storage based vector search.</p><p>In my search for this pattern extending to graph databases, I have encountered the old guard like Neo4J, which just slapped a vector database and text-search engine onto a graph database, a disjointed system lacking a unified query planner where results are orchestrated at the application layer. I&#8217;ve also encountered neo-modern graph databases like ArangoDB, which is natively multi-modal, has a unified query planner and DSL, but is very human-centered, and treats AI like an afterthought. Where AI Agents have to learn to use a query language designed for humans.</p><p>I came to the conclusion that traditional databases have been designed around humans in the loop. People design the schema, people write the queries, people manage state, and finally decide what to persist. The human-in-the-loop assumption is baked into every layer of the database, and that is the real limitation we are imposing on AI agents. Thus, I had given up my search and set out on building my own reference architecture for an &#8220;autonomous-context-fabric&#8221; with Memgraph as my graph substrate, until I was introduced to Omnigraph recently.</p><h4>Enter Omnigraph</h4><p>Omnigraph is a versioned property graph database built on Lance, designed to be read from and written to by AI agents rather than humans. It treats typed graph data like code with branch, commit and merge semantics. So I set out to replace Memgraph in my reference architecture with Omnigraph, and the first thing I noticed was a sheer lack of a Python SDK or fully documented API docs. What I found instead in its GitHub repo was a project structure recommendation with a CLAUDE.md file and two agentic skills to get started with. This is an architectural shift away from people-centric SDKs to AI Agents synthesizing their own SDK based on the existing schema.</p><p>This is a fundamental paradigm shift. Omnigraph is designed from the ground up with an &#8220;Agent-centric&#8221; approach. Omnigraph assumes an AI in the loop and is designed for AI agents to read the schema, understand the graph topology, and synthesize their own query language dynamically.</p><p>My retrofit of Omnigraph with Memgraph was fairly easy once I enabled the published skills in my AI Agent (Gemini CLI) and let it design the schema and the queries by itself. Once the swap was complete and I ran the latency numbers, they couldn&#8217;t match for Memgraph&#8217;s purely in-memory engine, but were completely acceptable considering the trade-offs of S3-native persistence and agentic AI-centered paradigm. Though I am told by a source very close to Omnigraph that tiered storage is in the works to help with the latency numbers.</p><p>However, given my years of experience in the enterprise data space, what I really wanted to understand was whether this architecture scales and finds enterprise adoption. So I looked deeper into Omnigraph&#8217;s design philosophy, especially two of the core principles on which Omnigraph was built.</p><h4>The Central Planning Problem [1]</h4><p>SaaS sprawl, tools that don&#8217;t talk to each other, each fragments enterprise knowledge, and each locks a version of the schema. This is a problem that enterprises have been grappling with for decades now, and the one solution which really tried to solve this is Master Data Management or MDM. MDM tried to create a single version of enterprise truth, the &#8220;golden record for its core business data, which was bloated and failed miserably.</p><p>MDM failed for a few reasons:</p><ul><li><p>MDM required humans to agree on a schema before anything could be written. Omnigraph&#8217;s schema evolution doesn&#8217;t require committee approval because there&#8217;s no human-written client code that breaks when the schema changes. With Omnigraph, agents synthesize their own queries against whatever schema exists.</p></li><li><p>MDM had no way to handle conflicting writes gracefully except to block everything until the conflict was resolved. This is where Omnigraph&#8217;s Git-style branching comes to the rescue by sending any conflicting writes to a new branch and merging them when a confidence threshold is met.</p></li><li><p>MDM hubs were on-prem servers with their own operational burden. Omnigraph is S3-native and headless. The &#8220;dumb storage, smart index&#8221; pattern means the complexity lives in the query layer and not in an always-on process.</p></li><li><p>The MDM schema was determined by people who decided what gets persisted via ETL pipelines. Omnigraph can overcome this trap if its agents are allowed to evolve the schema and are the ones hydrating and maintaining the context graph.</p></li></ul><h4>Of Stigmergy and Ontologies</h4><p>Stigmergy is the indirect coordination of AI agents through environment modification. Agents writing to the context graph modify the ontology that other agents read from.</p><p>Oh, the dreaded ontologies, they were popular circa 2015 during the last knowledge graph wave. They went into oblivion yet again, not because the graph engines of the era weren&#8217;t good, nor because the DSL wasn&#8217;t expressive enough, nor because of the formats. What killed them was the Ontology design process as a strict prerequisite before deriving any value out of them, and those ontology engineers were a scarce and expensive resource.</p><p><em>&#8220;Ontologies define the fitness landscape over which AI agents optimize. When the ontology is clear, agents make clear decisions, when unclear they provide garbage.&#8221;[1]</em></p><p>But who makes the ontology clear? Based on what I know so far, I can formulate a thesis.</p><p>Since Omnigraph is agent-centric, AI agents infer and evolve the schema from the data itself. Ontology drift is handled by schema branching, where an agent can propose a change to the ontology on a new branch, validate it against real queries, and merge only when a certain confidence threshold is met.</p><p>I put the first part of the thesis in practice in my &#8220;<a href="https://github.com/snudurupati/autonomous-knowledge-fabric">autonomous-context-fabric</a>&#8221; reference architecture, where my AI agent (Gemini CLI), given its existing knowledge of my problem domain, was successfully able to synthesize the relevant schema. In future iterations, I fully intend to test ontology drift using my planned agent swarm.</p><h4>Conclusion</h4><p>We have seen compute become ephemeral over the last decade owing to durable cloud storage. The team at Omnigraph envisions a future where enterprise software becomes thinner, and the context becomes thicker [1].</p><p>My journey in Context graphs started off to solve the AI hallucination problem by trying to ground it in context. But here I am now, experiencing an agent-centric paradigm shift first-hand and completely onboard with Omnigraph&#8217;s vision: <strong>&#8220;The beginning of Infinity&#8221;</strong> [1], where the durable system of record of an AI-native organization becomes a governed context graph, and enterprise applications become increasingly transient.</p><h4>Next Steps</h4><p>While the team at Omnigraph is busy executing their vision, my mission is to build the application layer, the &#8220;<a href="https://github.com/snudurupati/autonomous-knowledge-fabric">autonomous-context-fabric</a>&#8221;, and watch it grow ever so thin as Omnigraph matures.</p><h5>References: <a href="https://modernrelay.com/manifesto">The Knowledge-Coordination Manifesto [1]</a></h5><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Ghost Node Pattern]]></title><description><![CDATA[Why I Built a "Waiting Room" for Enterprise AI Data]]></description><link>https://www.nudurupati.co/p/the-ghost-node-pattern</link><guid isPermaLink="false">https://www.nudurupati.co/p/the-ghost-node-pattern</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Tue, 21 Apr 2026 14:14:36 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Slgd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In my <a href="https://www.nudurupati.co/p/i-measured-my-ai-pipeline-the-number">last post</a>, I broke down the latency metrics of my streaming graph pipeline. Hitting a sub-15ms P95 ingestion time felt like a massive win for the architecture, until I actually looked at the topology of what I was ingesting. I had successfully built a high-speed pipe, but I quickly realized I was using it to build a data swamp.</p><p>When building standard data pipelines over the last 18 years, the primary goal has almost always been throughput: get the data from Source A to Destination B as fast as possible. But when building an AI Context Engine, a hyper-eager pipeline is actively dangerous.</p><p>If you connect a firehose of enterprise events directly to Memgraph, the pipeline&#8217;s eagerness becomes its biggest liability. Imagine a sales rep fat-fingering a Salesforce update for &#8220;Microsft&#8221; instead of &#8220;Microsoft.&#8221; A naive streaming pipeline instantly writes a brand new, isolated node into the graph for that typo. Your AI agent now has fractured context and is reasoning over hallucinated entities.</p><p>It&#8217;s the <strong>Bootstrap Problem</strong>: how do you start building a graph from a firehose of noisy events without instantly turning it into a hallucination factory?</p><h3>The Architecture: Building the GhostNodeManager</h3><p>To solve this, I had to fundamentally change how data moves in Sprint 14.</p><p>Before this sprint, the ingestion scripts (<code>sec_ingestion.py</code> and <code>synthetic_crm.py</code>) were taking events and throwing them straight over the wall into the resolution engine, and then directly into Memgraph. I needed a bouncer at the door.</p><p>I built the <code>GhostNodeManager</code> into the routing layer (<code>pipelines/routing.py</code>). Instead of acting as a pure passthrough, it uses Pathway&#8217;s stateful stream processing capabilities to hold events in a temporary memory buffer. These buffered events are called <strong>&#8220;Ghost Nodes&#8221;</strong> because they exist in the stream&#8217;s state, but they are strictly forbidden from materializing in the graph database yet.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Slgd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Slgd!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png 424w, https://substackcdn.com/image/fetch/$s_!Slgd!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png 848w, https://substackcdn.com/image/fetch/$s_!Slgd!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png 1272w, https://substackcdn.com/image/fetch/$s_!Slgd!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Slgd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png" width="1456" height="2421" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:2421,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:779153,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/194918420?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Slgd!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png 424w, https://substackcdn.com/image/fetch/$s_!Slgd!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png 848w, https://substackcdn.com/image/fetch/$s_!Slgd!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png 1272w, https://substackcdn.com/image/fetch/$s_!Slgd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30f93dc5-1887-40ca-ba4a-7e2cb254f919_3331x5539.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3>The Code Logic: Eagerness vs. Skepticism</h3><p>When a new <code>AccountEvent</code> arrives, the <code>GhostNodeManager</code> runs it through an evidence checklist before allowing it to touch the graph. Here is exactly what the logic is doing under the hood:</p><ul><li><p><strong>The &#8220;Strong Signal&#8221; Fast-Track:</strong> The code checks the event for definitive identifiers. Does this event have a verified <code>cik_number</code>, an exact <code>company_domain</code>, or a hard <code>account_id</code>? <em>If Yes:</em> The event skips the waiting room. It is instantly promoted, sent through the resolvers, and written to Memgraph.</p></li><li><p><strong>The &#8220;Corroboration&#8221; Waiting Room:</strong> If the event only has a fuzzy text string (like <code>company_name = "Globel Corp"</code>), the code parks it in the stateful buffer and starts a time window. It waits to see if <em>another</em> distinct event arrives with that same fuzzy name. <em>If 2+ events accumulate:</em> The code decides this isn&#8217;t a one-off typo; it&#8217;s a real (if poorly named) entity. The threshold is met, and the batch of events is flushed out of the buffer and promoted to Memgraph. <em>If no other events arrive:</em> The ghost node eventually expires and is dropped entirely, saving the graph from permanent pollution.</p></li></ul><h3>Skepticism at the Ingestion Layer</h3><p>The biggest lesson from this architectural pivot is shifting the mindset from standard data engineering to context engineering.</p><p>In traditional pipelines, the goal is pure throughput. But when we are feeding an LLM, real-time context is completely useless if the underlying graph is flooded with noise. The only way an LLM agent can reason accurately is if the graph it queries has been aggressively defended against bad data at the ingestion layer.</p><p>We need to teach our context engineering pipelines to be skeptical rather than mere dumb pipes.</p><p><em>See you next week.</em></p><div><hr></div><p><strong>The repository:</strong> <a href="https://github.com/snudurupati/autonomous-knowledge-fabric">github.com/snudurupati/autonomous-knowledge-fabric</a></p><div><hr></div><p><strong>Sreeram Nudurupati</strong> | <a href="https://www.linkedin.com/in/snudurupati">LinkedIn</a></p><p><em>AI Architect | Building the Autonomous Knowledge Fabric in public: 90 days, no hand-waving.</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Why Object Storage is Eating the Database World]]></title><description><![CDATA[When you scrub a YouTube video to 2:16, your browser doesn&#8217;t download the entire video file from the beginning. Instead, it sends an HTTP request with a Range header telling the server, &#8220;give me bytes 10, 230,000 to 10, 432, 000. The server only returns that slice.]]></description><link>https://www.nudurupati.co/p/why-object-storage-is-eating-the</link><guid isPermaLink="false">https://www.nudurupati.co/p/why-object-storage-is-eating-the</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 13 Apr 2026 06:15:16 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ysUW!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff412fd5b-35d5-42f6-803d-d66d82d2fa8b_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>The Pattern</h2><p>Dumb storage coupled with a smart index and a ranged GET request is what made the decoupling of compute and storage in the modern cloud era. This pattern was first invented and made possible by the <em><strong>HTTP range header</strong></em>, making HTTPS requests formatted as Range: bytes=X-Y. A standard HTTP feature since 1999.</p><p>When you scrub a YouTube video to 2:16, your browser doesn&#8217;t download the entire video file from the beginning. Instead, it sends an HTTP request with a Range header telling the server, <em>&#8220;give me bytes 10, 230,000 to 10, 432, 000&#8221;</em>. The server only returns that slice. Any modern object store, whether it be AWS S3, Google Cloud Storage, or Azure ADLS, supports the same HTTP ranged request natively. So instead of downloading 10 GBs worth of parquet files and reading like 6 row groups out of it, you can ask S3 for exactly the byte ranges of those row groups, provided you have a smart index that can tell you which byte range those 6 row groups are in. S3 doesn&#8217;t care what&#8217;s in those bytes; it just serves it up as long as the intelligence to ask which bytes to ask for lives in your index.</p><p>That&#8217;s the exact <strong>&#8220;dumb storage, smart index&#8221;</strong> pattern I explore in this post, across three distinct domains: Data Lakes, Physical AI and Robotics, and now applied to Vector Search at scale.</p><p>You might ask, if the technology has existed since 1999, why has the primitive only now caught on? The answer is a few recent advancements that have made the idea possible for data architectures, owing to a few notable advancements in the last decade.</p><h3>The Latency Layer: NVMe in Cloud (2017)</h3><p>NVMe killed the SATA bottleneck. For high-performance systems like Databricks or Snowflake, or turbopuffer, this is the essential &#8220;hot/cold&#8221; divide: <strong>hot data stays on local NVMe</strong>, while cold data sits on S3. This local SSD caching is exactly what makes sub-10ms latency possible; without it, S3 round-trips would destroy performance.</p><h3>S3 Strong Consistency (2020)</h3><p>Before 2020, S3 was &#8220;eventually consistent,&#8221; making it a nightmare for databases to perform immediate reads after writes. The shift to <strong>strong consistency</strong> was the &#8220;floodgate&#8221; moment. It transformed object storage from a simple dumping ground into a viable transactional substrate, ending the era of complex workarounds.</p><h3>The Concurrency Fix: S3 Compare-and-Swap (2024)</h3><p>Compare-and-swap (CAS) was the final piece of the puzzle. Until late 2024, S3 lacked this fundamental concurrency primitive, without which two concurrent writers could corrupt shared state. Forcing architects to use external coordinators like DynamoDB to safely create a metadata layer where multiple concurrent writers could safely update the same state. Now that S3 supports atomic updates, the entire metadata layer can live on object storage.</p><p>So now that all the technology advancements have brought us to this point in time, let me show you how the <strong>&#8220;dumb storage, smart index&#8221;</strong> pattern is already being implemented across 3 distinct domains.</p><h2>Why Now?</h2><p>This week, AWS announced S3 Files: S3 buckets accessible as POSIX file systems. Legacy file-based applications can now read and write S3 directly without code changes. Object storage isn&#8217;t just eating databases anymore. It&#8217;s set to eat file systems too.</p><h2>Part 1 - Delta Lake (or your favorite kind of lettuce)</h2><p>Delta Lake (or Iceberg or Hudi) implements a transaction log that acts as a metadata-based index, speeding up query performance through file-level statistics, partition pruning, and file pruning. The transaction log helps a reader/writer get to the exact files required for the current operation over an object storage like S3. This is a common &#8220;dumb storage, smart index&#8221; pattern developed by Databricks over the last decade that has significantly eaten into legacy data warehouse revenues (RIP Teradata and Netezza), and forced proprietary data warehouses like Snowflake to reluctantly adopt open formats like Iceberg.</p><h2>Part 2 - Physical AI and MCAP</h2><p>Most engineers don&#8217;t know this one. MCAP is an open standard much like Apache Parquet, designed by Foxglove to efficiently store and retrieve Robotics telemetry data. Follows a similar pattern where each MCAP file contains a Summary section (transaction log) and Chunk offsets (Parquet row groups). Where a reader could fetch the exact data required using three ranged GETs instead of one full download.</p><p>The Summary section at the end of every MCAP file is a chunk index: it records the byte offset and length of every chunk in the file, along with which topics it contains.</p><p>Three ranged GETs to retrieve only what you need:</p><ol><li><p><strong>Footer</strong> (28 bytes) - where does the Summary section start?</p></li><li><p><strong>Summary section</strong> - which chunks contain <code>/robot/status</code>, at what offsets?</p></li><li><p><strong>Only those chunks</strong> - everything else is never touched.</p></li></ol><p>In production, MCAP files span hours of multi-robot telemetry, and this pattern skips gigabytes of unrelated sensor data.</p><h2>Part 3 - Vector Search (turbopuffer and LanceDB)</h2><p>Vector Search and Vector Databases are the backbone of every production AI application. However, we seem to be repeating the same pattern that we adopted in the legacy data warehouse world, i.e., use proprietary databases (Pinecone, Weaviate). With the cost of LLM token consumption spiralling, it doesn&#8217;t make any economic sense to add yet another proprietary black-box database to the mix. So how can we implement the same &#8220;dumb storage, smart index&#8221; pattern in the vector search world? That&#8217;s exactly what I have tried to implement in the demo codebase I built for this post.</p><p>My approach was to store embeddings in an object store, which solves the storage cost problem. Then my approach was to download all the vectors onto my system memory and perform a local cosine-similarity search. This works well with my demo dataset of around a thousand vector embeddings. However, I have scaled enough data pipelines in my career to know that my approach is pretty naive and would break as soon as I hit just GBs of vector embeddings.</p><p>The scalable, production solution is the same 3-step GET sequence as MCAP. A small index on S3 first (HNSW/IVF), ranged GET to find which embedding clusters match your query vector, and then ranged GET only those clusters.</p><p>I realized during building this demo that implementing a smart vector index is not a trivial problem to solve over a weekend. Thankfully, we have the likes of turbopuffer and LanceDB already solving for this.</p><h2>Why Should I Care?</h2><p>The <strong>&#8220;Dumb Storage, Smart Index&#8221;</strong> architecture is the strategic pivot that separates AI POCs from production-grade solutions.</p><p>Cursor pioneered this playbook. They were storing billions of vectors across millions of codebases, every index kept in memory, leading to astronomical costs. Moving to turbopuffer&#8217;s object-storage-native architecture cut their costs by 95%. But here&#8217;s the more interesting part: they didn&#8217;t just save money, they immediately started creating more vectors per user than before.</p><p>When infrastructure costs shrink, product ambition expands. Features that were shelved come back. That&#8217;s the real &#8220;so what&#8221; of this pattern. If you&#8217;re building on Pinecone, Weaviate, or Elasticsearch today, the question isn&#8217;t whether to move; it&#8217;s when. The architectural shift has already happened. The teams that adopt this pattern first build features that their competition can&#8217;t afford to build.</p><p>If you want to see the full pattern implemented across all three domains, Delta Lake, MCAP, and Vector Search, running against a local MinIO object store, the code is here: <a href="https://github.com/snudurupati/vectors-at-rest">github.com/snudurupati/vectors-at-rest</a></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[98% Less Physical AI Data. Zero loss of operational context.]]></title><description><![CDATA[How I implemented 'delta-keyframe-heartbeat' pattern to Robotics data.]]></description><link>https://www.nudurupati.co/p/98-less-physical-ai-data-zero-loss</link><guid isPermaLink="false">https://www.nudurupati.co/p/98-less-physical-ai-data-zero-loss</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 30 Mar 2026 18:50:22 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!E-th!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I was simulating a robot fleet to generate meaningful data for my &#8220;Physical Context Fabric,&#8221; the ChatGPT moment for Physical AI, and I realized that a simulated Turtlebot3 running at 10 HZ, even if I collected every 10<sup>th</sup> event, generates approximately 1 event/second. That&#8217;s 28K events in 8 hours just for one robot, just for odometry and command velocity data. This is already unmanageable for my Knowledge Graph because the signal-to-noise ratio is way too high.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!E-th!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!E-th!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png 424w, https://substackcdn.com/image/fetch/$s_!E-th!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png 848w, https://substackcdn.com/image/fetch/$s_!E-th!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png 1272w, https://substackcdn.com/image/fetch/$s_!E-th!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!E-th!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png" width="1456" height="1272" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1272,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:3779589,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/192643345?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!E-th!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png 424w, https://substackcdn.com/image/fetch/$s_!E-th!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png 848w, https://substackcdn.com/image/fetch/$s_!E-th!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png 1272w, https://substackcdn.com/image/fetch/$s_!E-th!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc6fcfa8-0bd1-475f-a1ed-d3914c4bf804_1724x1506.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: center;"><em>Turtlebot3 simulation after 20 minutes, 20,000+ Event nodes, signal-to-noise ratio unusable.</em></p><p>Imagine the fate of some large-scale Robot fleet operators like Serve Robotics or Waymo who operate hundreds of autonomous robots per day and have to store and process not just odometry data but also LIDAR point cloud, IMU, image/ video, RADAR/SONAR, etc. data. That&#8217;s terabytes of data stored on the robot SSDs, waiting to be bulk uploaded when the robot is back at the dock. And by the time the data scientist gets a CSV dump 8 hours later, the trail is already cold, making it difficult to reconstruct what happened, if not impossible.</p><p>So the problem with bulk Physical AI data uploads that I see is:</p><ul><li><p><strong>Staleness</strong> &#8211; batch uploads that you are always looking backward.</p></li><li><p><strong>Upload costs</strong> &#8211; TB dumps over spotty connections fail, corrupt, out of order.</p></li><li><p><strong>Context loss</strong> &#8211; even when the full data arrives, raw sensor replay answers the &#8220;what&#8221;, not the &#8220;why&#8221;.</p></li></ul><p>However, this is not a new or novel problem. This is a decades-old data engineering problem that I have already seen and solved in my 18 years of data career. So I set out to solve the Physical AI data problem, the same way I have solved the Industrial IOT data problem using the tried and tested &#8220;Delta-Keyframe-Heartbeat&#8221; pattern. In this pattern, we make the Edge IoT, or in this case, the Robot Gateway, intelligent by introducing logic to send only the deltas (change in velocity or direction), periodic key frames that contain the full data state and robot health status as infrequent heartbeats. The delta ensures we conserve bandwidth, the periodic keyframes ensure we don&#8217;t lose the robot state in case of connection loss, and the heartbeat keeps us informed that the robot is active and operational.</p><p>To be specific about what each frame type in the &#8220;delta-keyframe-heartbeat&#8221; patterns does.</p><ul><li><p><strong>Delta</strong> &#8211; Is any kind of change in telemetry data, like position moved or velocity shifted significantly, or robot state changed from moving to stopped, etc. This delta is detected and calculated by the edge gateway and written only when something meaningful changes.</p></li><li><p><strong>Keyframe</strong> &#8211; A keyframe is a full state snapshot written periodically (say every 30 seconds), which serves as a ground truth of the robot state.</p></li><li><p><strong>Heartbeat</strong> &#8211; An alive ping every 60 seconds or so when there is no delta being generated to communicate the robot&#8217;s health, without sharing any real data.</p></li></ul><p>I implemented the same pattern in my own simulation, running a fleet of 3 Turtlebot3 robots over 24 hours. The gateway received <strong>233,353 raw telemetry events</strong> and <strong>wrote only 522</strong> to the knowledge graph, <strong>204 anomalies</strong>, <strong>114 keyframe snapshots</strong>, and <strong>3 robot identity nodes</strong>. That is a <strong>99.8% reduction</strong>. Every single anomaly was captured.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Vn1H!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Vn1H!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png 424w, https://substackcdn.com/image/fetch/$s_!Vn1H!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png 848w, https://substackcdn.com/image/fetch/$s_!Vn1H!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png 1272w, https://substackcdn.com/image/fetch/$s_!Vn1H!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!Vn1H!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png" width="406" height="686.7446808510638" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1590,&quot;width&quot;:940,&quot;resizeWidth&quot;:406,&quot;bytes&quot;:711704,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/192643345?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Vn1H!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png 424w, https://substackcdn.com/image/fetch/$s_!Vn1H!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png 848w, https://substackcdn.com/image/fetch/$s_!Vn1H!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png 1272w, https://substackcdn.com/image/fetch/$s_!Vn1H!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ec076d5-7cbb-4385-8505-aa781ea59fd1_940x1590.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: center;"><em>Every meaningful event is captured in the Redis Event Stream.</em></p><p>This is what the knowledge graph looks like after 25 hours of fleet operation. Three robots, each with its own anomaly history and position context, queryable in real time. Still compressed and manageable, and with zero context loss.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!AI-z!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!AI-z!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png 424w, https://substackcdn.com/image/fetch/$s_!AI-z!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png 848w, https://substackcdn.com/image/fetch/$s_!AI-z!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png 1272w, https://substackcdn.com/image/fetch/$s_!AI-z!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!AI-z!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png" width="1456" height="1290" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1290,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:938661,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/192643345?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!AI-z!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png 424w, https://substackcdn.com/image/fetch/$s_!AI-z!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png 848w, https://substackcdn.com/image/fetch/$s_!AI-z!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png 1272w, https://substackcdn.com/image/fetch/$s_!AI-z!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fb01d99-662b-455a-850c-790d320f8403_2734x2422.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: center;"><em>24 hours of fleet telemetry: 3 robots, 204 anomalies, geographic clusters visible.</em></p><p>And because every anomaly carries a position, you can ask questions that raw replay can never answer. robot_001 kept stopping in two specific map regions. robot_002 stopped less frequently but in a tighter cluster. That is not a replay result; that is an operational context.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CIhV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CIhV!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png 424w, https://substackcdn.com/image/fetch/$s_!CIhV!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png 848w, https://substackcdn.com/image/fetch/$s_!CIhV!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png 1272w, https://substackcdn.com/image/fetch/$s_!CIhV!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!CIhV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png" width="936" height="358" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:358,&quot;width&quot;:936,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:41328,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/192643345?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CIhV!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png 424w, https://substackcdn.com/image/fetch/$s_!CIhV!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png 848w, https://substackcdn.com/image/fetch/$s_!CIhV!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png 1272w, https://substackcdn.com/image/fetch/$s_!CIhV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7f5dd68-3f10-41b0-ac6a-5938c3bf298f_936x358.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: center;"><em>Geographic anomaly clustering across 3 robots, robot_001 has two distinct hotspot regions.</em></p><p>The hardware problem in physical AI is largely solved. Tools like Foxglove let you replay exactly what the robot saw. But a reply only answers the &#8220;what&#8221;. Nobody is answering the &#8220;why&#8221;. The gap between raw telemetry and operational understanding is where I think the real infrastructure work needs to happen and frankly where I am spending my time.</p><p>The delta-keyframe-heartbeat pattern itself is not new or novel. I have seen and solved this exact problem across 18 years of data engineering in Industrial IoT. What is new is bringing this thinking to Physical AI, combining it with a streaming pipeline and a knowledge graph, and making the robot&#8217;s edge compute node intelligent enough to decide what matters before it ever hits the network.</p><p>This is Series 2 of my Physical Context Fabric open-source project. Series 1 covered standing up ROS2 natively on a Raspberry Pi 5 and connecting it to Foxglove during GTC week. The next post covers the part I am most excited about, a natural language Q&amp;A interface on top of the knowledge graph. Ask it why robot_001 kept stopping in the top left quadrant. Get an answer grounded entirely in what the robot actually did. No hallucination. No speculation. Purely context-driven.</p><p>If you are building a physical AI data infrastructure or just curious about the stack, the repo is fully open source and runs on a Raspberry Pi 5 and a MacBook Air. Come build with me.</p><p><a href="https://github.com/snudurupati/physical-context-fabric">Physical Context Fabric on GitHub</a></p><p>[<a href="https://www.nudurupati.co/p/the-chatgpt-moment-of-robotics-has">Series 1 &#8212; The ChatGPT Moment of Robotics Has Arrived</a>]</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The ChatGPT Moment of Robotics Has Arrived]]></title><description><![CDATA[Spatial replay tells you what a robot did. Here is how to build the operational context to know why it did it.]]></description><link>https://www.nudurupati.co/p/the-chatgpt-moment-of-robotics-has</link><guid isPermaLink="false">https://www.nudurupati.co/p/the-chatgpt-moment-of-robotics-has</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Wed, 18 Mar 2026 04:46:01 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!RBQO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!RBQO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!RBQO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png 424w, https://substackcdn.com/image/fetch/$s_!RBQO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png 848w, https://substackcdn.com/image/fetch/$s_!RBQO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!RBQO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!RBQO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png" width="1456" height="794" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:794,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:7887113,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/191332352?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!RBQO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png 424w, https://substackcdn.com/image/fetch/$s_!RBQO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png 848w, https://substackcdn.com/image/fetch/$s_!RBQO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!RBQO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F132f11dc-3123-46b8-8de9-c0a8b270887a_2816x1536.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-nxj3kw" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-nxj3kw" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3>Jensen Huang just announced the &#8220;ChatGPT moment&#8221; for robotics. But nobody is talking about what happens to the telemetry after the demo.</h3><div><hr></div><p>Yesterday, Jensen Huang walked onto the stage at the SAP Center and declared that the ChatGPT moment for autonomous physical AI has arrived.</p><p>There were 110 robots on the show floor. Humanoids, robo-taxis, autonomous factory arms. The hardware story for Physical AI is no longer a theoretical question&#8212;it is a shipping product roadmap.</p><p>But the slide that stopped me wasn&#8217;t the Vera Rubin architecture announcement. It was quieter than that. Huang put up what he called his most important slide of the keynote: <em>&#8220;Structured data is the foundation of trustworthy AI.&#8221;</em> And then: <em>&#8220;Unstructured data is the context of AI.&#8221;</em></p><p>He was talking about enterprise software agents. I kept thinking about fleets of robots.</p><div><hr></div><h3>What Physical AI Actually Generates</h3><p>A ROS2 robot: the software standard that runs on everything from a student&#8217;s TurtleBot3 to Boston Dynamics&#8217; Spot publishes a continuous, relentless stream of structured telemetry. Every movement, every sensor reading, every velocity command.</p><p>Here is what raw odometry from a simulated TurtleBot3 looks like at rest:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_e72!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_e72!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png 424w, https://substackcdn.com/image/fetch/$s_!_e72!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png 848w, https://substackcdn.com/image/fetch/$s_!_e72!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png 1272w, https://substackcdn.com/image/fetch/$s_!_e72!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!_e72!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png" width="364" height="480.48" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e925784f-d127-4bc1-bd11-e2876393b279_600x792.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:792,&quot;width&quot;:600,&quot;resizeWidth&quot;:364,&quot;bytes&quot;:150503,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/191332352?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_e72!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png 424w, https://substackcdn.com/image/fetch/$s_!_e72!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png 848w, https://substackcdn.com/image/fetch/$s_!_e72!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png 1272w, https://substackcdn.com/image/fetch/$s_!_e72!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe925784f-d127-4bc1-bd11-e2876393b279_600x792.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-nxj3kw" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-nxj3kw" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: center;"><em>ROS2 topic echo /odom &#8212; stationary robot, all zeros</em></p><p>And here is that same robot the moment you publish a velocity command (linear 0.2, angular 0.5), sending it into a circle:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!zlsT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!zlsT!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png 424w, https://substackcdn.com/image/fetch/$s_!zlsT!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png 848w, https://substackcdn.com/image/fetch/$s_!zlsT!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png 1272w, https://substackcdn.com/image/fetch/$s_!zlsT!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!zlsT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png" width="378" height="473.98119122257054" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:800,&quot;width&quot;:638,&quot;resizeWidth&quot;:378,&quot;bytes&quot;:91588,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/191332352?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!zlsT!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png 424w, https://substackcdn.com/image/fetch/$s_!zlsT!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png 848w, https://substackcdn.com/image/fetch/$s_!zlsT!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png 1272w, https://substackcdn.com/image/fetch/$s_!zlsT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F489093b8-1b20-40cc-bb64-95419fff2b40_638x800.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-nxj3kw" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-nxj3kw" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: center;"><em>ROS2 topic echo /odom &#8212; moving robot, x/y/orientation updating</em></p><p>The position updates 10 times per second. The orientation quaternion spins. This is kinematic state, continuously broadcast. Now realize that a real deployment robot generates this, plus LiDAR point clouds, camera feeds, IMU data, battery states, and nav stack outputs all,  simultaneously.</p><div><hr></div><h3>The King of the Replay Buffer: Foxglove</h3><p>If you want to visualize this firehose of data, <strong>Foxglove Studio</strong> is the best tool in the physical AI ecosystem.</p><p>It is genuinely excellent. You connect it to a live robot or a recorded MCAP file, and you get a beautiful, real-time visualization of every single topic. Here is what that looks like when connected to my TurtleBot3 sim, tracking position <code>x</code> plotted over time as the robot drives in a circle:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Pf8F!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Pf8F!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png 424w, https://substackcdn.com/image/fetch/$s_!Pf8F!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png 848w, https://substackcdn.com/image/fetch/$s_!Pf8F!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png 1272w, https://substackcdn.com/image/fetch/$s_!Pf8F!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!Pf8F!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png" width="575" height="452.18063186813185" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1145,&quot;width&quot;:1456,&quot;resizeWidth&quot;:575,&quot;bytes&quot;:260052,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/191332352?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Pf8F!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png 424w, https://substackcdn.com/image/fetch/$s_!Pf8F!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png 848w, https://substackcdn.com/image/fetch/$s_!Pf8F!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png 1272w, https://substackcdn.com/image/fetch/$s_!Pf8F!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6b098109-b43b-474d-ab11-859f4f17fcbb_1800x1416.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-nxj3kw" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-nxj3kw" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: center;"><em>Foxglove Studio sine wave plot - /odom.pose.pose.position.x</em></p><p>That sinusoidal curve is the robot&#8217;s x-coordinate oscillating as it traces its path. Meanwhile, the 3D panel shows the robot&#8217;s coordinate frame updating in real-time against the world:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Pthi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Pthi!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png 424w, https://substackcdn.com/image/fetch/$s_!Pthi!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png 848w, https://substackcdn.com/image/fetch/$s_!Pthi!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png 1272w, https://substackcdn.com/image/fetch/$s_!Pthi!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!Pthi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png" width="606" height="421.6195054945055" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/db71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1013,&quot;width&quot;:1456,&quot;resizeWidth&quot;:606,&quot;bytes&quot;:507583,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/191332352?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Pthi!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png 424w, https://substackcdn.com/image/fetch/$s_!Pthi!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png 848w, https://substackcdn.com/image/fetch/$s_!Pthi!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png 1272w, https://substackcdn.com/image/fetch/$s_!Pthi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb71e49e-466f-4c53-a21c-6c69a73a85f6_3750x2608.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-nxj3kw" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-nxj3kw" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: center;"><em>Foxglove Studio 3D panel - robot frame in sim</em></p><p>If you need to inspect a system or replay an event, Foxglove is the undisputed answer. It handles the spatial and temporal reality of the robot perfectly.</p><p><strong>It answers the critical question: </strong><em><strong>What did the robot do?</strong></em></p><div><hr></div><h3>The Question Nobody is Answering</h3><p>But Foxglove and the visualization ecosystem at large are essentially a world-class replay buffer.</p><p>It does not answer: <em>Why did the robot stop unexpectedly at 14:32:07? What was it doing in the 30 seconds before that stop? Has it stopped in this specific map region before? Does this failure pattern correlate with a particular task type or a degrading battery level?</em></p><p>These are operational questions, and answering them requires more than just a sensor stream. It requires <strong>context</strong>. It requires understanding the relationship between discrete events, the history of a robot&#8217;s behavior in a specific environment, and the anomaly patterns across 50 deployments, not just one recording.</p><p>This is the operational context problem. And right now, nobody has built the data infrastructure layer to solve it.</p><div><hr></div><h3>Building the Physical Context Fabric</h3><p>I am open-sourcing a project to build that exact layer. I call it the <strong>Physical Context Fabric</strong>.</p><p>The architecture is a real-time streaming pipeline sitting directly above ROS2, feeding into a live knowledge graph.</p><blockquote><p><strong>The Pipeline:</strong> ROS2 topics &#8594; Pathway (Stream Processor) &#8594; Memgraph (Knowledge Graph)</p></blockquote><p>The schema is designed to connect the relational dots that raw telemetry leaves behind: <code>Robot &#8594; Task &#8594; Event &#8594; Anomaly &#8594; Environment_State</code></p><p>The Pathway layer watches the telemetry stream in real-time and detects anomalies. For example: a velocity drop below a specific threshold, held for <em>N</em> seconds, becomes an <code>unexpected_stop</code> event. That event is enriched with its full context window and written directly to Memgraph.</p><p>Suddenly, the queries that become possible aren&#8217;t just plotting lines on a graph. They look like this:</p><ul><li><p><em>&#8220;What specific events preceded the last 5 unexpected stops across the fleet?&#8221;</em></p></li><li><p><em>&#8220;Which map region has the highest historical anomaly rate?&#8221;</em></p></li><li><p><em>&#8220;How long do tasks of type X typically take before a hardware failure occurs?&#8221;</em></p></li></ul><p>Here is the first version of the context bridge in action, a Python node that reads <code>/odom</code> and <code>/cmd_vel</code> and emits structured JSON events in real-time:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!rzE9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!rzE9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png 424w, https://substackcdn.com/image/fetch/$s_!rzE9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png 848w, https://substackcdn.com/image/fetch/$s_!rzE9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png 1272w, https://substackcdn.com/image/fetch/$s_!rzE9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!rzE9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png" width="728" height="306" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:612,&quot;width&quot;:1456,&quot;resizeWidth&quot;:728,&quot;bytes&quot;:1328769,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/191332352?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!rzE9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png 424w, https://substackcdn.com/image/fetch/$s_!rzE9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png 848w, https://substackcdn.com/image/fetch/$s_!rzE9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png 1272w, https://substackcdn.com/image/fetch/$s_!rzE9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a189bae-e852-4153-815d-3d8dd4e3493c_2256x948.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-nxj3kw" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-nxj3kw" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: center;"><em>odom_subscriber.py JSON output streaming - timestamp, position, velocity, event_type: moving_and_turning</em></p><p>Each event carries a timestamp, position, velocity, commanded velocity, and an inferred event type. This is the raw material the knowledge graph ingests. <strong>This is what turns a sensor replay into operational context.</strong></p><div><hr></div><h3>Why This Matters Right Now</h3><p>Jensen Huang said it plainly on that stage: structured data is the ground truth of the AI era.</p><p>The Physical AI world is about to experience a massive scale-up. We are going to see a lot more robots, a lot more deployments, and a lot more fleet operators asking <em>why</em> their robots behaved the way they did.</p><p>The hardware roadmap is clear. The visualization tooling (thanks to teams like Foxglove) is elite. The glaring gap is the data infrastructure layer between raw telemetry and operational understanding.</p><p>That gap is what the <strong><a href="https://github.com/snudurupati/physical-context-fabric">Physical Context Fabric</a></strong> is built to fill.</p><div><hr></div><p><strong>The repository is live here:</strong> <a href="https://github.com/snudurupati/physical-context-fabric">github.com/snudurupati/physical-context-fabric</a></p><p>This is Post 1 of a series documenting the build in public. The full stack, including the Pathway anomaly detection engine and the Memgraph knowledge graph integration, is coming in the posts ahead.</p><p>If you are building in physical AI infrastructure or dealing with fleet-scale telemetry, I&#8217;d love to hear from you.</p><div><hr></div><p><strong>Sreeram Nudurupati</strong> | <a href="https://www.linkedin.com/in/snudurupati">LinkedIn</a> <em>Sreeram writes about context engineering and AI data infrastructure at <a href="https://www.nudurupati.co/">nudurupati.co</a>. He is also building <a href="https://texon.ai/">TexonAI</a>: context engineering for enterprise B2B.</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[I Measured My AI Pipeline. The Number Changed Everything.]]></title><description><![CDATA[How real-time instrumentation exposed a 12.8ms result and what it means for enterprise AI context.]]></description><link>https://www.nudurupati.co/p/i-measured-my-ai-pipeline-the-number</link><guid isPermaLink="false">https://www.nudurupati.co/p/i-measured-my-ai-pipeline-the-number</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 16 Mar 2026 14:32:25 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!nt6C!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I set out to prove my AI pipeline could deliver context in under 60 seconds. The instrumentation told a different story. The real number was 12.8 milliseconds.</p><p>But getting to that number required three runs, two wrong measurements, and one architectural insight that changes how I think about real-time AI systems entirely.</p><div><hr></div><blockquote><p><strong>New here?</strong> This is Week 2 of a 90-day build-in-public project called the <strong>Autonomous Knowledge Fabric</strong> &#8212; a reference architecture that replaces stale batch RAG pipelines with a live knowledge graph fed by real-time event streams. The core problem: enterprise AI agents are failing in production not because the models are bad, but because the context they reason over is hours old. I&#8217;m building the fix in public, one sprint at a time.</p><p><strong>Week 1 recap:</strong> I introduced <em>Context Debt</em> &#8212; the gap between what your agent believes and what is actually true &#8212; and shipped a live SEC EDGAR ingestion pipeline using Pathway and Memgraph. <a href="https://www.nudurupati.co/p/context-debt-why-enterprise-rag-is">Read Week 1 here.</a></p></blockquote><div><hr></div><p>Last week, I introduced <strong>Context Debt</strong>, the growing gap between what your AI agent believes and what is actually true. I made a claim: the Autonomous Knowledge Fabric would deliver sub-60-second context freshness from live SEC filings to a queryable knowledge graph.</p><p>This week, I built the instrumentation to prove it.</p><p>The number I got back wasn&#8217;t what I expected. It was significantly better. And understanding <em>why</em> it was better taught me more about real-time AI architecture than any benchmark paper I&#8217;ve read.</p><div><hr></div><h2>The Graph Is Alive</h2><p>Before we get to the latency numbers, let me show you what two weeks of streaming data looks like.</p><p>This is the Autonomous Knowledge Fabric&#8217;s knowledge graph after 48 hours of ingesting live SEC 8-K filings:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!nt6C!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!nt6C!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png 424w, https://substackcdn.com/image/fetch/$s_!nt6C!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png 848w, https://substackcdn.com/image/fetch/$s_!nt6C!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png 1272w, https://substackcdn.com/image/fetch/$s_!nt6C!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!nt6C!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png" width="1456" height="779" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/eb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:779,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:461838,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/191128313?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!nt6C!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png 424w, https://substackcdn.com/image/fetch/$s_!nt6C!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png 848w, https://substackcdn.com/image/fetch/$s_!nt6C!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png 1272w, https://substackcdn.com/image/fetch/$s_!nt6C!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb54f1b1-1c89-45da-820e-2363cb3e0df8_2694x1442.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Account nodes in red, Event nodes in orange, hub-and-spoke relationships</em></p><p><strong>186 nodes. 129 relationships.</strong> Zero manual curation. Every node a real company. Every edge a real SEC filing event.</p><p>The hub-and-spoke pattern tells the story immediately: Account nodes at the center, Event nodes radiating outward. The larger the hub, the more actively a company is filing. The graph isn&#8217;t just storing data. It&#8217;s already revealing structure.</p><p>The first company to emerge as the most active filer? <strong>Carbonite</strong>, with 14 events, all from 2016. Which brings me to the first lesson of Week 2.</p><div><hr></div><h2>When the Pipeline Is Right But the Data Is Wrong</h2><p>Carbonite was acquired by OpenText in 2019. It hasn&#8217;t filed independently since. Our pipeline found it because the initial SEC feed URL was returning historical filings, not current ones.</p><p>The pipeline was technically correct. It found the most active filer in its dataset. The dataset was wrong.</p><p>This is <strong>Context Debt in reverse</strong>, garbage-in, confident-wrong-out. And here&#8217;s the uncomfortable truth: a naive RAG system would have served those 2016 filings to an agent with full confidence, because the agent has no concept of &#8220;this data is from a different era.&#8221; The vector similarity score would be fine. The context would be a decade stale.</p><p>The fix was a feed URL update and a User-Agent header. The lesson was more durable: <strong>observability surfaces problems you didn&#8217;t know to look for.</strong> We only caught the 2016 dates because we were instrumenting every event with a timestamp. Without that, Carbonite would have quietly sat in our graph as a &#8220;high-risk account&#8221; based on decade-old filings.</p><p>After the fix, the feed returned companies like <strong>Applied Digital Corp</strong> (Item 5.02 - executive departure signal), <strong>MultiSensor AI Holdings</strong> (Item 1.01 - material agreement), and <strong>Azitra Inc</strong> (Item 3.01 - delisting notice). All 2026. All real. All actionable.</p><div><hr></div><h2>The Latency Investigation</h2><p>This is the part I want to linger on, because the journey from &#8220;810ms&#8221; to &#8220;12.8ms&#8221; is a microcosm of how production AI systems fail in ways that look like performance problems but are actually measurement problems.</p><p><strong>Run 1: 810ms P50</strong></p><p>The first latency reading showed 810ms end-to-end. Plausible. Disappointing. I&#8217;d hoped for faster. But something didn&#8217;t add up. The Bolt write to Memgraph was clocking at <strong>1ms warm</strong>. Where were the other 809ms going?</p><p><strong>Run 2: 2,434ms P50</strong></p><p>After a longer run, the number got <em>worse</em>; P50 jumped to 2.4 seconds. That&#8217;s when the measurement was clearly wrong, not the pipeline. </p><p>The diagnosis: <code>record_event_received()</code> was being called at <em>poll-cycle start</em>, the moment the RSS fetch began, rather than <em>per-entry-detected</em>. This meant we were measuring &#8220;time since we started fetching the feed,&#8221; not &#8220;time to process and write this specific event.&#8221; A 40-entry batch with a 30-second poll interval meant average measured latency included up to 30 seconds of queue wait time that had nothing to do with our processing speed.</p><p><strong>Run 3: 12.8ms P50</strong></p><p>After fixing the instrumentation and moving <code>record_event_received()</code> to fire per-entry, after title parsing, the real numbers emerged:</p><pre><code><code>&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;
AUTONOMOUS KNOWLEDGE FABRIC &#8212; LIVE STATS
&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;
Timestamp:       2026-03-15 19:04:31 UTC
Events tracked:  39
P50 latency:     12.8ms
P95 latency:     14.1ms
P99 latency:     157.8ms
Min latency:     7.1ms
Max latency:     245.8ms
Mean latency:    17.8ms
Context freshness: RECENT
&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;
</code></code></pre><p><strong>P50 of 12.8ms. P95 of 14.1ms.</strong> Not sub-60 seconds. Sub-15 milliseconds for 95% of events.</p><div><hr></div><h2>What 12.8ms Actually Means</h2><p>For CXOs and architects who&#8217;ve been sold &#8220;real-time&#8221; by vendors who mean &#8220;hourly micro-batch&#8221;, let me put this in context:</p><pre><code><code>&#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
&#9474; System                        &#9474; Latency from event to queryable context        &#9474;
&#9500;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9508;
&#9474; Nightly batch RAG             &#9474; 8&#8211;24 hours                                     &#9474;
&#9474; Hourly micro-batch            &#9474; 30&#8211;60 minutes                                  &#9474;
&#9474; "Real-time" vector sync       &#9474; 5&#8211;15 minutes                                   &#9474;
&#9474; AUTONOMOUS KNOWLEDGE FABRIC   &#9474; 12.8ms (processing) + ~15s (poll interval)     &#9474;
&#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;</code></code></pre><p>The poll interval, how often we check the SEC feed, is 30 seconds and fully configurable. In a production deployment with webhook-based ingestion (Salesforce, Zendesk firing events directly), that 30-second floor disappears entirely. You&#8217;re left with 12.8ms.</p><p>For the QBR scenario: a hostile takeover filing hits the SEC wire. Your agent knows about it in under a second. The Sales Director walking into that meeting has context that&#8217;s 14 milliseconds old, not 8 hours.</p><p>That&#8217;s not an incremental improvement. That&#8217;s a different category of system.</p><div><hr></div><h2>The Breakdown That Explains Everything</h2><p>Here&#8217;s the latency decomposition for three real events that ran through the pipeline this week:</p><pre><code><code>&#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
&#9474; Event &#9474;   Company    &#9474; fetch_ms &#9474; parse_ms &#9474; write_ms &#9474; total_ms &#9474;
&#9500;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9508;
&#9474;  #1   &#9474; ispecimen    &#9474; 233.4ms  &#9474;  0.1ms   &#9474; 217.3ms  &#9474; 217.4ms  &#9474;
&#9474;  #2   &#9474; evolus       &#9474; 451.4ms  &#9474;  0.1ms   &#9474;   2.2ms  &#9474;   2.2ms  &#9474;
&#9474;  #3   &#9474; (subsequent) &#9474;    &#8212;     &#9474;  0.1ms   &#9474;   1.6ms  &#9474;   1.7ms  &#9474;
&#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;
</code></code></pre><p>Three things jump out immediately:</p><ul><li><p><strong>Parse time is 0.1ms.</strong> The Pydantic schema validation, SEC item code extraction, risk signal classification all run in a tenth of a millisecond. This is the Rust core of Pathway doing what it was designed to do.</p></li><li><p><strong>Event #1 Bolt write is 217ms.</strong> This is the cold connection establishment, Memgraph&#8217;s first handshake. Every subsequent write is 1&#8211;2ms. The cold-start cost is a one-time tax, not a recurring one.</p></li><li><p><strong>The RSS fetch (233&#8211;451ms) is intentionally excluded</strong> from our latency measurement. That&#8217;s network time to SEC EDGAR&#8217;s servers, outside our control, not part of our processing cost.</p></li></ul><p>This decomposition is what I mean when I say observability is not optional. Without it, we&#8217;d have reported 800ms and moved on. With it, we know exactly where every millisecond goes.</p><div><hr></div><h2>What the Agent Actually Sees</h2><p>After all the instrumentation, here&#8217;s what your Sales Director&#8217;s agent receives when it calls <code>get_agent_context("carbonite")</code> on a live account:</p><p>JSON</p><pre><code><code>ACCOUNT INTELLIGENCE REPORT
Company: carbonite
Last Updated: 2026-03-15T17:21:17 (14 seconds ago)
Risk Signals: executive_departure, takeover_bid
Recent Events (13 total):
- Carbonite Inc filed 8-K on 2026-03-15. Item 2.05: 
  Departure of Directors or Certain Officers
- Carbonite Inc filed 8-K on 2026-03-15. Item 2.01: 
  Completion of Acquisition or Disposition of Assets
- Carbonite Inc filed 8-K on 2026-03-15. Item 1.01: 
  Entry into a Material Definitive Agreement
Context Freshness: LIVE
</code></code></pre><p>That string, formatted, structured, timestamped, and freshness-labeled, is injected directly into the LLM prompt as context. No vector search. No embedding lookup. No stale index. Just the current state of the account, 14 seconds after the last filing.</p><p>Compare that to what a batch RAG system injects: the same paragraph from a document that was last embedded at 2 am.</p><p>The model is identical in both cases. The context is not.</p><div><hr></div><h2>The Architecture Decision That Made This Possible</h2><p>I want to address something I&#8217;ve been asked several times since Week 1: <em>&#8220;Why Pathway? Why not just use Spark Structured Streaming, especially with the new Real-Time Mode (RTM)?&#8221;</em></p><p>I have five years of production experience with Kafka and Spark. I know the incumbent stack well enough to know exactly what it would cost us here. Yes, Databricks recently dropped micro-batching with Spark RTM, enabling concurrent processing stages to hit sub-100ms latencies. It&#8217;s an incredible engineering feat. But for <em>this specific architecture</em>, Pathway still wins. Let me be direct:</p><ul><li><p><strong>The JVM GC Penalty:</strong> Spark RTM still runs on the JVM. The JVM has a garbage collector. Garbage collection introduces unpredictable &#8220;stop-the-world&#8221; pauses. When your baseline parse time is 0.1ms, and your database write is 1ms, a 200ms GC pause isn&#8217;t a footnote&#8212;it&#8217;s a 100x latency spike that ruins your P99 determinism. Pathway&#8217;s engine is written in Rust. No GC. No pauses.</p></li><li><p><strong>The Stateful Complexity Trap:</strong> Building a live knowledge graph requires complex, stateful entity resolution. To minimize latency in Spark RTM, you have to jump through configuration hoops (like forcing Arrow batch sizes to 1, which severely bottlenecks Python UDF performance). Pathway&#8217;s incremental dataflow model was built natively to propagate complex delta updates. When a new SEC entry arrives, it processes exactly that entry and its graph relationships immediately, without forcing you to contort your logic to fit a rigid streaming API.</p></li><li><p><strong>The Operational Overhead:</strong> Running Spark RTM requires provisioning a dedicated JVM cluster. You have to disable autoscaling, disable Photon acceleration, and manage executor nodes. Pathway runs as a single Python process backed by a Rust core. One container. No cluster. For a reference architecture designed to be adopted by enterprise teams without a dedicated platform engineering group, that difference is not cosmetic.</p></li></ul><p>To be fair, if your enterprise already runs the latest Databricks runtime and has a team managing high-throughput pipelines (like AdTech attribution), Spark RTM is a massive leap forward. </p><p>But for this specific problem, continuous incremental updates to a live knowledge graph with deterministic sub-15ms latency, Pathway&#8217;s architecture is the right fit. Spark would require fighting the framework to get the behavior that Pathway gives you by default.</p><div><hr></div><h2>What&#8217;s Coming in Week 3</h2><p>The numbers are real. The graph is alive. Next week, I will build the system that makes the graph <em>trustworthy</em>, the <strong>3-Tier Entity Resolver</strong>.</p><p>Right now, &#8220;iSpecimen Inc.&#8221; and &#8220;ispecimen&#8221; are two different nodes in our graph. &#8220;Applied Digital Corp.&#8221; and &#8220;Applied Digital&#8221; could be two different accounts. Every duplicate node is a split relationship, a piece of risk context that never reaches the agent because it&#8217;s attached to the wrong entity.</p><p>The resolver is where most real-time knowledge graph projects fail. We&#8217;re going to solve it in three tiers: deterministic hashing (zero LLM cost, catches 60% of duplicates), graph-contextual neighbor matching (uses the graph&#8217;s own relationships to resolve identity), and LLM-as-judge for true ambiguity (batched, structured, minimal cost).</p><p>The Ghost Node pattern, how you resolve entities when the graph is too sparse to trust, is the architectural insight at the heart of it.</p><p><em>See you next week.</em></p><div><hr></div><p><strong>The repository:</strong> <a href="https://github.com/snudurupati/autonomous-knowledge-fabric">github.com/snudurupati/autonomous-knowledge-fabric</a></p><p><em>All latency numbers are measured from live pipeline runs. OpenTelemetry instrumentation code is in </em><code>/observability</code><em>. Reproduce it yourself.</em></p><div><hr></div><p><strong>Sreeram Nudurupati</strong> | <a href="https://www.linkedin.com/in/snudurupati">LinkedIn</a></p><p><em>AI Architect | Building the Autonomous Knowledge Fabric in public: 90 days, no hand-waving.</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Context Debt: Why Enterprise RAG is Failing in Production]]></title><description><![CDATA[A thesis for Autonomous Knowledge Fabric]]></description><link>https://www.nudurupati.co/p/context-debt-why-enterprise-rag-is</link><guid isPermaLink="false">https://www.nudurupati.co/p/context-debt-why-enterprise-rag-is</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Tue, 10 Mar 2026 15:13:38 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!NH28!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!NH28!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!NH28!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!NH28!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!NH28!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!NH28!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!NH28!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png" width="1456" height="813" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ebeec336-dbee-491e-90f5-a8702c437456_2752x1536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:813,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:8067058,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/190204868?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!NH28!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!NH28!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!NH28!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!NH28!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febeec336-dbee-491e-90f5-a8702c437456_2752x1536.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>A Tier-1 enterprise sales team walks into a high-stakes QBR. Their AI-driven Account Intelligence agent, a system built on the industry-standard RAG stack, classified the account as &#8220;Stable.&#8221; Confident. Well-reasoned. </p><p>What the agent didn&#8217;t know and couldn&#8217;t know was that 40 minutes earlier, an SEC 8-K filing had hit the wire signaling a hostile takeover bid on that exact account&#8217;s parent company.</p><p>The agent wasn&#8217;t wrong because the model was bad. It was wrong because the context was stale.</p><p>This is the problem I&#8217;m spending the next 90 days solving in public. <strong>Context Debt.</strong></p><h3>The Debt Nobody Is Talking About</h3><p>In software engineering, we understand <strong>Technical Debt</strong>. In the age of Agentic AI, we must now account for <strong>Context Debt</strong>.</p><p>We are currently witnessing a massive divergence in the Enterprise AI stack. We are feeding 2026-speed reasoning models with 1996-speed batch processing pipelines.</p><blockquote><p><strong>Context Debt</strong> is the delta between an agent&#8217;s internal world-model and the ground truth of a high-velocity business environment.</p></blockquote><p>When your pipeline relies on nightly batches or even hourly micro-batches to refresh a vector store, you aren&#8217;t just lagging; you are accumulating Context Debt. In relationship-intensive workflows like M&amp;A, supply chain, and clinical trials, that debt doesn&#8217;t just accrue interest; it causes catastrophic hallucinations that no amount of prompt engineering can fix.</p><p><strong>Most of your agent's hallucinations aren't model failures. They're Context Debt coming due.</strong></p><h3>The Missing Middle: Beyond Vector Search</h3><p>The &#8220;Modern AI Stack&#8221; of 2024-2025 was built on a simple premise: <em>Retrieve a document, augment the prompt.</em> </p><p>But enterprise reality isn&#8217;t a collection of static documents; it is a dynamic web of relationships. If a key stakeholder leaves a company, that isn&#8217;t just a new data point. It&#8217;s a structural change to the entire account&#8217;s risk profile. Standard RAG treats this as a keyword update. </p><p>If you map the modern enterprise AI stack, there are two well-solved layers: the model layer at the top (GPT-4o, Claude, Gemini &#8212; mature, capable, improving fast) and the data layer at the bottom (your CRM, your ERP, your CDW platform, messy but existent).</p><p>What&#8217;s missing is the middle: a stateful, real-time layer that continuously resolves business entities, tracks relationships, and delivers live context to the agent at query time.</p><p>I&#8217;m calling this the <strong>Autonomous Knowledge Fabric</strong>, a pipeline that transforms high-velocity business events into a continuously updated Knowledge Graph, so your agents reason over live reality rather than a historical snapshot.</p><p>To solve <strong>Context Deb</strong>t, we have to move away from the &#8220;Search-and-Retrieve&#8221; paradigm and toward <strong>Stateful Stream-Graph-RAG</strong>.</p><h3>The Autonomous Knowledge Fabric Thesis</h3><p>Over the next 90 days, I am building and open-sourcing a reference architecture designed to solve the &#8220;Missing Middle&#8221; for the enterprise. The thesis is straightforward: <strong>Real-time context is a streaming problem, not a database problem.</strong></p><p>The stack is intentionally lean and operationally resilient:</p><ul><li><p><strong>Pathway:</strong> For high-consistency, stateful stream processing (Differential Dataflow).</p></li><li><p><strong>Memgraph:</strong> As a high-performance &#8220;Hot State&#8221; cache for real-time relationship traversal.</p></li><li><p><strong>Ghost Node Resolution:</strong> A multi-tier identity engine that resolves entities (e.g., &#8220;Acme&#8221; vs. &#8220;Acme Corp&#8221;) at stream-speed before they ever reach the agent.</p></li></ul><h3>Proving the Alpha</h3><p>Enterprise Architects don&#8217;t need more &#8220;Hello World&#8221; demos. They need defensible ROI and operational clarity. By the end of this sprint, I will demonstrate the <strong>Alpha of Real-Time Context</strong> through:</p><ol><li><p><strong>Context Freshness Metrics:</strong> Moving from an 8-hour &#8220;batch lag&#8221; to sub-60-second &#8220;context freshness.&#8221;</p></li><li><p><strong>The CFO Math:</strong> A transparent cost-benefit analysis comparing the compute overhead of streaming versus the risk-adjusted cost of &#8220;Context Debt&#8221; in $500k+ enterprise workflows.</p></li><li><p><strong>The Immutable Baseline:</strong> A side-by-side comparison against a professionally tuned Pinecone/LlamaIndex batch baseline. No strawmen, just a clinical look at where batch fails and where streams win.</p></li></ol><h3>Join the Architecture Review</h3><p>This isn&#8217;t just a repository; it&#8217;s a 90-day stress test of how we handle truth in production AI. I am building <a href="https://github.com/snudurupati/autonomous-knowledge-fabric">autonomous-knowledge-fabric</a> entirely in public because the &#8220;Missing Middle&#8221; is too critical a problem to solve behind closed doors.</p><p>If your team is hitting the &#8220;Stale Context&#8221; wall, or if you&#8217;re an architect tired of babysitting batch jobs that can&#8217;t keep up with your agents, let&#8217;s talk.</p><p><strong>The repository is live:</strong> <a href="https://github.com/snudurupati/autonomous-knowledge-fabric">github.com/snudurupati/autonomous-knowledge-fabric</a></p><div><hr></div><p><strong>Next Week:</strong> <em>The Ghost Node Pattern: Solving Entity Resolution in Sparse Knowledge Graphs.</em></p><div><hr></div><p><strong>Sreeram Nudurupati</strong> <em>AI Architect | Building the Autonomous Knowledge Fabric</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Weights vs. Maps: The Myth of the ‘Magic’ AI]]></title><description><![CDATA[Why Your Fine-Tuning Failed the Multi-Hop Test (and How to Fix It)]]></description><link>https://www.nudurupati.co/p/weights-vs-maps-the-myth-of-the-magic</link><guid isPermaLink="false">https://www.nudurupati.co/p/weights-vs-maps-the-myth-of-the-magic</guid><dc:creator><![CDATA[Sreeram Nudurupati]]></dc:creator><pubDate>Mon, 02 Mar 2026 16:17:12 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Q-Ci!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This is the conclusion of an 8-week series: &#8220;From Data Engineer to AI Architect.&#8221; We&#8217;ve explored the shift from traditional data engineering to designing agentic systems built on stochastic LLM compute, where tokens, latency, and probabilistic behavior are first-class constraints. Along the way, we progressed from enforcing structure and determinism to building increasingly sophisticated RAG pipelines, orchestration layers, and multi-hop graph reasoning systems with explainability built in. We also examined Continued Pre-Training (CPT) and the practical realities of building knowledge graphs on local infrastructure. </p><p>Today, we declare the winner of our capstone: <strong>GraphRAG.</strong></p><div><hr></div><p><strong>Executive Summary:</strong></p><p>For the last couple of weeks, we have been running a high-stakes contextual &#8220;Bake-Off.&#8221; We pitted the reigning champion, a model fine-tuned using <strong>Continuous Pre-training (CPT)</strong> on specialized clinical data (the <strong>&#8220;Parametric Contender&#8221;</strong>), against a baseline model augmented by a structured <strong>Graph Substrate</strong> (the <strong>&#8220;Semantic Contender&#8221;</strong>).</p><p>The goal was to solve the <strong>&#8220;Missing Middle&#8221;</strong> in enterprise AI; the point where an LLM is fluent but factually untraceable. While CPT provided fluency, <strong>GraphRAG provided fidelity</strong>. The moment of truth arrived in our final &#8220;Multi-Hop&#8221; query.</p><p><strong>The Test:</strong> <em>&#8220;In our clinical records, what role does the &#8216;forearm&#8217; play in measuring glucose uptake for hypertensive subjects?&#8221;</em></p><p><strong>The Results:</strong></p><ul><li><p><strong>Contender A (Week 7 CPT):</strong> <code>"Data not found in substrate."</code></p></li><li><p><strong>Contender B (Week 8 GraphRAG):</strong> <code>"The forearm is the site where glucose uptake was measured..."</code></p></li></ul><div><hr></div><h2>&#128373;&#65039; Post-Mortem: Why Weights Forget What Maps Remember</h2><p>At first glance, this &#8220;failure&#8221; of fine-tuning is confusing. The model <em>was</em> trained on that exact data in Week 7. As an AI Architect, you must understand the <strong>plumbing</strong> of memory.</p><h3>1. Technical Deep Dive: The Parametric Fog vs. Explicit Edges</h3><p>When you train a model like Llama-3 (CPT), you are using <strong>Gradient Descent</strong> on massive amounts of text. Backpropagation smooths out information, prioritizing frequent patterns.</p><p>The relationship between &#8220;Forearm&#8221; and &#8220;Glucose Uptake&#8221; is extremely rare (low-frequency) across 3,500 abstracts. It exists as a fragile statistical ghost in the 8 billion parameters. When queried, that detail gets &#8220;drowned out&#8221; by more common patterns. <strong>Weights forget the rare fact.</strong></p><p>In contrast, our <strong>Semantic Substrate</strong> (Memgraph) materialized that rare fact as an explicit edge: <code>(Forearm)-[MENTIONS]-(Abstract_123)-[MENTIONS]-(Glucose_Uptake)</code>. When the query hits the graph, we walk that path with 100% fidelity. <strong>Maps remember the exact path.</strong></p><h3>2. Knowledge Graph Advantage: Explainability</h3><p>This is the largest business win for GraphRAG.</p><ul><li><p><strong>CPT (The Black Box):</strong> When it answers, it gives you a fluent prediction based on a memory it cannot cite. If a clinician asks, <em>&#8220;Which abstract justified this claim?&#8221;</em> the CPT model is a dead end. <strong>In an enterprise setting, this is a liability.</strong></p></li><li><p><strong>GraphRAG (The Glass Box):</strong> The response is a synthesis of extracted documents. It explicitly provides <strong>Source IDs</strong> (e.g., <code>[Abstract ID: abs_001]</code>). The model has provided an auditable decision path. <strong>This is explainable AI.</strong></p></li></ul><div><hr></div><h2>&#127959;&#65039; The AI Architect&#8217;s Comparison Matrix</h2><p>We have visualized the core metrics of our two contenders below. Since Substack doesn&#8217;t handle tables, we have generated an infographic performance matrix.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Q-Ci!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Q-Ci!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png 424w, https://substackcdn.com/image/fetch/$s_!Q-Ci!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png 848w, https://substackcdn.com/image/fetch/$s_!Q-Ci!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png 1272w, https://substackcdn.com/image/fetch/$s_!Q-Ci!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!Q-Ci!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png" width="1456" height="778" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:778,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:7980383,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.nudurupati.co/i/189654313?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Q-Ci!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png 424w, https://substackcdn.com/image/fetch/$s_!Q-Ci!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png 848w, https://substackcdn.com/image/fetch/$s_!Q-Ci!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png 1272w, https://substackcdn.com/image/fetch/$s_!Q-Ci!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fda09a7-d508-4684-ab5a-f706c6aec906_2816x1504.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3><strong>3. Business and Economic Impact</strong></h3><ul><li><p><strong>CPT (The Week 7 Model):</strong> The economic story is high upfront compute to train (even with LoRA). Updates require retuning, another costly compute job.</p></li><li><p><strong>GraphRAG (The Week 8 Substrate):</strong> The economic story is low update cost. Adding new data is computationally cheap (adding nodes to Memgraph). The primary cost is in the <strong>initial ingestion pipeline</strong> and <strong>Entity Resolution</strong>.</p></li></ul><h2>When to Use Continuous Pre-training (CPT)</h2><p>Despite the clear win in fact fidelity, CPT is not dead. As an AI Architect, you must understand its unique value:</p><ol><li><p><strong>Specialized Vocabulary:</strong> When your data uses dense <strong>acronyms, proprietary codes,</strong> or unique clinical jargon, CPT &#8220;seeds&#8221; the base model&#8217;s tokenizer with this dialect.</p></li><li><p><strong>Domain Tone &amp; Style:</strong> CPT can adapt Llama-3 to a specific format. A good example is transforming complex medical research into concise patient-facing summaries.</p></li><li><p><strong>Low-Resource Languages:</strong> CPT is the standard for introducing entirely new languages to a base LLM.</p></li></ol><h2><strong>Final Verdict: Architecture over Weights</strong></h2><p>The "Missing Middle" isn't solved by making models bigger or training them longer. It's solved by <strong>Context Engineering </strong>and<strong> Knowledge Graphs are the Key</strong>. By building a Graph Substrate, we moved from an AI that "remembers" to an AI that "researches." CPT gives you <strong>fluency</strong>, but GraphRAG gives you <strong>fidelity</strong>. </p><p>We have completed the transformation from Data Engineer to AI Architect. We have moved from raw data ingestion to fine-tuning Llama-3, and finally to building a queryable contextual nervous system. The substrate is built. Now, it's time to let the agents run.</p><p>This concludes this 8-week series, but stay tuned for my next series, where I combine two of my favorite topics, streaming and context engineering, to build a real-time context engine.</p><p>Get the full code here in the repo: <a href="https://github.com/snudurupati/agentic-ai-architect">https://github.com/snudurupati/agentic-ai-architect</a></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.nudurupati.co/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Glass Box! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item></channel></rss>