<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Armann Kojic · Notes</title>
    <link>https://armann.com/notes</link>
    <description>Notes on AI, AI automation, and new computing.</description>
    <language>en</language>
    <atom:link href="https://armann.com/notes/rss.xml" rel="self" type="application/rss+xml" />
    <lastBuildDate>Tue, 29 Sep 2026 16:00:00 GMT</lastBuildDate>
    <item>
      <title>The World Doesn't Arrive in Frames: Why Physical AI Needs Computation That Remembers</title>
      <link>https://armann.com/notes/physical-ai-computation-that-remembers</link>
      <guid isPermaLink="true">https://armann.com/notes/physical-ai-computation-that-remembers</guid>
      <pubDate>Tue, 29 Sep 2026 16:00:00 GMT</pubDate>
      <description>Physical AI must understand a world that never stops moving. Why rebuilding state every frame breaks down, and the case for computation that remembers.</description>
      <content:encoded><![CDATA[<p>AI has become remarkably good at reasoning. Models can write, plan, analyze, and hold a conversation about almost anything. Now that intelligence is moving off our screens and into machines that act in the world: robots, drones, vehicles, wearables, industrial systems.</p>
<p>That shift exposes a problem that has nothing to do with how smart the models are.</p>
<p><strong>AI can reason. Physical AI also has to understand what is happening around it, continuously, as it happens.</strong></p>
<p>Those are different jobs. I think the second one needs a different kind of computing.</p>
<h2>What physical AI actually has to do</h2>
<p>&quot;Physical AI&quot; usually refers to AI systems that perceive and act in the physical world, as opposed to systems that work with text, images, or code on a screen. The term covers humanoid robots and warehouse arms, but also autonomous vehicles, delivery drones, smart glasses, and machines on factory floors.</p>
<p>What they share is a set of demands that screen-based AI mostly doesn&#39;t face:</p>
<ul>
<li><strong>Continuous:</strong> the world doesn&#39;t pause between requests.</li>
<li><strong>Stateful:</strong> what&#39;s happening now only makes sense in light of what just happened.</li>
<li><strong>Real-time:</strong> a late answer is a wrong answer.</li>
<li><strong>Power-constrained:</strong> the computing has to fit on the machine, often on a battery.</li>
</ul>
<p>A language model can take its time. It receives a prompt, thinks, and answers. If it takes a little longer, nothing falls over. A machine crossing a room doesn&#39;t get that luxury. The world does not pause while the model thinks.</p>
<h2>How machines see today: reconstruct, discard, repeat</h2>
<p>The standard approach to machine perception treats the world as a series of snapshots. A camera captures a frame. The frame moves into memory. Separate pipelines estimate depth, track motion, and detect objects, often with additional sensors like stereo cameras or LiDAR to help. The results are fused into a picture of the scene, the system decides what to do, and then the whole cycle starts again on the next frame.</p>
<p>It works, and impressively so. But it carries a structural cost. The system keeps <strong>reconstructing a representation of a changing world</strong>. Much of what it understood a moment ago is rebuilt rather than carried forward. Data moves constantly: from sensors to memory, from memory to processors, between pipelines and accelerators. Each transfer adds energy, latency, and complexity.</p>
<p>In my last essay I wrote about how AI agents <a href="https://armann.com/notes/ai-agent-memory-cost-of-rebuilding-state">rebuild their understanding from scratch on every run</a>, and how that same pattern shows up throughout computing as the memory wall. Physical AI is where that pattern hurts most. An agent that re-reads its notes wastes some time. A machine that re-builds its world every moment is spending its energy and latency budget on remembering what it already knew.</p>
<p>The world doesn&#39;t arrive in frames. Frames are just how we&#39;ve chosen to sample it.</p>
<h2>Reasoning and synchronization are different problems</h2>
<p>The obvious response is to use bigger, better models. Foundation models are becoming very good at deciding what to do, and they will be central to physical AI.</p>
<p>But reasoning about the world and staying synchronized with it are different problems. A brilliant planner fed a stale or fragmented picture of reality will make brilliant plans for a world that no longer exists. What physical AI needs underneath the reasoning is a live, continuous understanding of the physical world: what moved, what changed, what is near, what persists.</p>
<p>That suggests a division of labor. <strong>Let the main AI reason. Let something else keep track of reality.</strong> The question is what that something else should be.</p>
<h2>A different idea: let the computation remember</h2>
<p>This is the question that led me to co-found <a href="https://semulo.com">Semulo</a>.</p>
<p>Semulo is building <strong>frontier computing for physical intelligence</strong>. It&#39;s a new architecture we call <strong>digital wave-based computing</strong>, and its core idea fits in one sentence:</p>
<p><strong>The computation itself remembers.</strong></p>
<p>That idea came from my co-founder <a href="https://www.linkedin.com/in/jeremyshockley/">Jeremy Shockley</a>, who came to it from building advanced optics for AR and VR glasses for Meta, Google, and Apple, where a few milliseconds decide whether an experience feels real or falls apart. He kept running into the same wall: in time-sensitive systems, too much of the time goes into shuttling data back and forth instead of thinking. His idea was a digital, wave-based computation where memory isn&#39;t kept somewhere else and fetched. It lives inside the wave itself, in what we call active memory nodes.</p>
<p>The point is simple: a machine that doesn&#39;t have to rebuild its understanding of the world every moment can keep up with that world. Conventional computing moves information to the computation, computes, and stores the result somewhere else. Semulo takes a different path: one live computational state evolves as the world changes. Local changes propagate through the state over time, like ripples. Memory and history are carried in the evolving wave state rather than stored somewhere else and fetched back.</p>
<p>So when new input arrives, the machine doesn&#39;t start over. New input changes what is already there. Each moment builds on the last.</p>
<p>Here is the deepest version of the idea, and the one I find most compelling: <em>conventional computing repeatedly reconstructs a representation of a changing world. Semulo maintains an evolving computational state that changes with the world.</em></p>
<h2>What follows from a state that remembers</h2>
<p>If one evolving state carries the past into the present, a few consequences follow.</p>
<p><strong>Different kinds of understanding can come from the same computation.</strong> Depth, motion, direction, spatial structure, and memory don&#39;t have to be separate models in separate pipelines. They can be different readouts of the same evolving state, because they are all aspects of one changing scene.</p>
<p><strong>History becomes part of perception.</strong> In a state that remembers, the same present input with a different past produces a different state. The machine doesn&#39;t just know where something is. It has a sense of which way things have been moving. That&#39;s how perception works in living things, and it is largely missing from snapshot-based machines.</p>
<p><strong>Less moving, less rebuilding.</strong> When state stays where the computation happens, the system spends less effort shuttling data around and rebuilding what it already knew. That means less data movement, less recomputation, lower latency, and, as a consequence rather than a goal, lower power. It can also mean fewer separate pipelines, and in some systems potentially less reliance on additional sensors.</p>
<p><strong>It complements foundation models rather than competing with them.</strong> Foundation models reason about the world. Semulo is designed to keep them synchronized with it, providing the live physical context that high-level reasoning depends on.</p>
<h2>New architecture, today&#39;s hardware</h2>
<p>When people hear &quot;new computing architecture,&quot; they often assume exotic hardware, or a chip that&#39;s still years away. Semulo doesn&#39;t depend on either. It&#39;s fully digital, and it runs today on conventional hardware: CPUs, GPUs, and FPGAs, with the same primitive across all three.</p>
<p>That matters. New hardware can make it faster and more efficient later, but the idea doesn&#39;t wait for it. New computing architecture. Today&#39;s hardware.</p>
<p>I also want to be clear about what Semulo is <em>not</em>. It isn&#39;t a robotics company, a camera company, or another AI model. It&#39;s a computing architecture for physical intelligence: a layer that can sit beneath many kinds of machines that need to understand a changing world.</p>
<h2>What we&#39;re preparing to show</h2>
<p>We&#39;ve been exploring this with the simplest physical signal we could find: one ordinary camera. The question we keep asking is how much physical understanding can emerge from one simple input and one evolving state, without stacking extra sensors and without a large trained perception model.</p>
<p>We&#39;ll show what that looks like soon. I&#39;d rather show it properly than describe it.</p>
<h2>Why I think this matters</h2>
<p>The past decade of AI has been defined by scale: bigger models, more data, more compute. That will continue, and it has given us remarkable reasoning machines. But as AI moves into the physical world, the bottleneck shifts. The limit is not only scale or intelligence. It is how we compute.</p>
<p>Machines that act in the world will need to understand it continuously, not in reconstructed snapshots. I learned a small version of this lesson building AI agents that forget everything between runs. Physical AI is the large version, with real-world stakes.</p>
<p>The next breakthrough in AI may not come from a bigger model. It may come from not throwing away what the machine just understood.</p>
]]></content:encoded>
    </item>
    <item>
      <title>From Prompts to Skills: How to Turn Repeated Agent Workflows Into Reusable Procedures</title>
      <link>https://armann.com/notes/agent-skills-vs-prompts-reusable-procedures</link>
      <guid isPermaLink="true">https://armann.com/notes/agent-skills-vs-prompts-reusable-procedures</guid>
      <pubDate>Wed, 02 Sep 2026 16:00:00 GMT</pubDate>
      <description>Prompts work for one-off tasks. When an AI agent does the same workflow repeatedly, turn it into a skill: a structured, reusable procedure that improves reliability and reduces cost.</description>
      <content:encoded><![CDATA[<p>There&#39;s a moment in every agent project when you realize you&#39;re writing the same instructions over and over.</p>
<p>&quot;Check the status first, then update the field, then verify it changed, then log the result.&quot; You&#39;ve written that sequence five times this week. Each time you tweak the wording slightly, hoping the agent will follow it more reliably. Sometimes it does. Sometimes it skips the verification step, or checks the wrong field, or logs incomplete information.</p>
<p>The problem isn&#39;t that the agent is bad at following instructions. The problem is that <strong>instructions are the wrong layer for repeated workflows.</strong></p>
<p>What you need is a skill: a structured, reusable procedure the agent can invoke by name, with defined inputs, steps, and verification criteria. Not a better prompt. A different kind of primitive.</p>
<h2>Prompts are disposable. Skills are designed.</h2>
<p>A prompt is freeform text that describes what you want. It&#39;s flexible, fast to write, and works well for one-off tasks or exploratory work. You can say &quot;write a summary of this document&quot; or &quot;check if this email looks like spam,&quot; and the agent will do a reasonable job without much setup.</p>
<p>But prompts have a problem: they don&#39;t enforce structure. The agent interprets the instructions, and interpretation varies. One run it checks the field before updating. Another run it updates first. A third run it skips verification because the prompt said &quot;then verify&quot; and the agent decided &quot;then&quot; was optional.</p>
<p>You can tighten the prompt. You can add examples. You can write &quot;CRITICAL: always verify&quot; in bold capital letters. And it helps, to a point. But you&#39;re still relying on the agent to parse and follow prose, and prose is ambiguous.</p>
<p>A skill, by contrast, is a procedure. It has a name, required parameters, a defined sequence of steps, and clear success criteria. The agent doesn&#39;t interpret the skill. It executes it. The structure is decided once, at design time, and then reused every time the skill is invoked.</p>
<p>Think of the difference between telling a coworker &quot;can you handle this ticket?&quot; (prompt) versus pointing them to a runbook that says &quot;step 1: check status, step 2: update field, step 3: verify, step 4: log&quot; (skill). The runbook isn&#39;t flexible. That&#39;s the point.</p>
<h2>When to turn a workflow into a skill</h2>
<p>Not every task needs to be a skill. Some things really are one-offs. But here&#39;s when it&#39;s worth the effort:</p>
<p><strong>The workflow repeats.</strong> If the agent does the same sequence of actions more than a few times, that sequence should be a skill.</p>
<p><strong>The order matters.</strong> If step B depends on step A, and skipping or reordering steps causes failure, you want structure that enforces order.</p>
<p><strong>Verification is required.</strong> Skills can mandate verification as a step, not a suggestion. The agent can&#39;t mark the skill complete until verification passes.</p>
<p><strong>The task is high-stakes.</strong> Anything that touches production data, user-facing content, or external systems should use a skill so the steps are predictable.</p>
<p><strong>You&#39;re debugging the same failure repeatedly.</strong> If the agent keeps making the same mistake on a task, the prompt probably isn&#39;t the problem. The lack of structure is.</p>
<p><strong>Multiple agents do the same work.</strong> When different agents need to execute the same workflow, a skill ensures they all do it the same way.</p>
<h2>What a skill actually contains</h2>
<p>A skill is more than a named function. It&#39;s a structured procedure that defines:</p>
<p><strong>Name and description.</strong> What the skill does, in one sentence.</p>
<p><strong>Parameters.</strong> What inputs the skill requires. These should be explicit, typed if possible, and validated before execution begins.</p>
<p><strong>Preconditions.</strong> What must be true before the skill can run. &quot;Ticket must exist and be in &#39;open&#39; status.&quot;</p>
<p><strong>Steps.</strong> The sequence of actions, in order, with clear success criteria for each step. Steps can include sub-skills.</p>
<p><strong>Verification.</strong> An explicit check that the skill accomplished what it claimed. Not optional.</p>
<p><strong>Outputs.</strong> What the skill returns: the result, logs, and any state changes it made.</p>
<p><strong>Error handling.</strong> What to do if a step fails. Retry, escalate, or abort, and under what conditions.</p>
<p><strong>Rollback (if needed).</strong> If the skill changes state and fails partway through, how to undo partial work.</p>
<p>The key is that all of this is decided once, by the person who understands the workflow, and then executed consistently every time the agent invokes the skill.</p>
<h2>Skills compose</h2>
<p>The real power of skills is that they compose. A high-level skill can call lower-level skills as steps.</p>
<p>For example, a &quot;resolve ticket&quot; skill might call:</p>
<ol>
<li><code>verify_ticket_exists(ticket_id)</code></li>
<li><code>check_ticket_status(ticket_id)</code></li>
<li><code>update_ticket_field(ticket_id, field=&#39;status&#39;, value=&#39;resolved&#39;)</code></li>
<li><code>verify_field_updated(ticket_id, field=&#39;status&#39;, expected=&#39;resolved&#39;)</code></li>
<li><code>log_action(ticket_id, action=&#39;resolved&#39;)</code></li>
</ol>
<p>Each of those substeps is its own skill. <code>update_ticket_field</code> handles API calls, retries, and error codes. <code>verify_field_updated</code> fetches live state and compares it. <code>log_action</code> writes structured logs.</p>
<p>The agent doesn&#39;t need to know how to do any of those things. It just invokes the skill by name. The implementation is hidden. If you need to change how field updates work, you update one skill, and every workflow that uses it benefits.</p>
<p>This is the same principle as functions in programming. You wouldn&#39;t inline the same 10 lines of code in five places. You&#39;d write a function. Skills are the agent equivalent.</p>
<h2>Skills reduce cost and latency</h2>
<p>One of the less obvious benefits: skills are cheaper to run than long prompts.</p>
<p>When you describe a workflow in a prompt, the agent has to reason through every step, every time. &quot;First I should check the status. Okay, status is open. Now I need to update the field. What field was it? Let me reread the instructions.&quot;</p>
<p>That reasoning costs tokens. It also adds latency, because the agent is thinking instead of acting.</p>
<p>A skill, by contrast, is direct. The agent sees <code>resolve_ticket(ticket_id=&#39;12345&#39;)</code> and executes a predefined sequence. No reasoning about what to do. No re-parsing instructions. Just execute step 1, verify, execute step 2, verify, done.</p>
<p>In my own work, converting a frequently used workflow from a prompt to a skill typically cut token usage by 30 to 50 percent, and latency by even more, because the agent wasn&#39;t spending time figuring out what to do.</p>
<h2>Skills improve reliability</h2>
<p>Reliability in agent systems comes from two things: better reasoning, which models will keep improving at, and better structure, which is up to us.</p>
<p>Skills are structure. They turn repeated workflows into tested, verifiable procedures. Once a skill works, it keeps working, because the agent isn&#39;t improvising each time.</p>
<p>This is especially important in multi-agent systems. When Agent A hands work to Agent B, you don&#39;t want Agent B to interpret what Agent A meant. You want Agent A to say &quot;I invoked the <code>verify_data</code> skill and it passed,&quot; and Agent B to trust that because the skill is a known procedure with known guarantees.</p>
<p>Skills also make debugging easier. When a task fails, you know exactly which skill failed, which step within that skill, and what the inputs were. The logs are structured. You can replay the skill with the same inputs and see if it fails the same way. That&#39;s much harder when the agent was following a prose prompt and you have to guess what it thought the instructions meant.</p>
<h2>Building a skill library</h2>
<p>Over time, a production agent system accumulates a library of skills. Some are generic: <code>read_file</code>, <code>write_file</code>, <code>call_api</code>, <code>verify_json</code>. Others are domain-specific: <code>process_invoice</code>, <code>generate_report</code>, <code>check_inventory</code>.</p>
<p>The library becomes the agent&#39;s vocabulary. Instead of explaining how to do something every time, you give the agent access to skills and let it compose them.</p>
<p>The agent&#39;s job shifts from &quot;figure out how to do this task&quot; to &quot;which skills do I need, and in what order?&quot; That&#39;s a much more reliable kind of reasoning, because the agent is choosing from a known set of tested components rather than improvising steps.</p>
<p>Building the library takes work. Each skill needs to be designed, implemented, tested, and documented. But that work pays off quickly, because every time the agent uses the skill, you save the cost and risk of re-inventing the workflow.</p>
<h2>Implementation: how skills actually run</h2>
<p>There are a few ways to implement skills in practice:</p>
<p><strong>Tool calling / function calling.</strong> Most modern models support structured tool calls. You define a skill as a tool with typed parameters, and the agent calls it. The tool implementation handles the actual work.</p>
<p><strong>Structured task queues.</strong> The agent emits a skill invocation as a structured task, and a separate executor runs it. This separates reasoning from execution cleanly.</p>
<p><strong>Code generation.</strong> The agent generates code that calls skill functions from a library. This works well when skills are just functions in the agent&#39;s runtime.</p>
<p><strong>Workflow engines.</strong> For complex multi-step skills, some systems use a workflow engine that handles steps, retries, rollback, and orchestration.</p>
<p>The implementation matters less than the principle: skills are predefined procedures, not ad-hoc instructions.</p>
<h2>When prompts are still the right choice</h2>
<p>Skills aren&#39;t always better. Prompts are still the right tool for:</p>
<p><strong>Exploratory or creative work.</strong> If the task is open-ended, or you&#39;re not sure what the output should look like, a prompt gives the agent more room to reason.</p>
<p><strong>Rare or one-off tasks.</strong> If the agent will only do this task once, the overhead of building a skill isn&#39;t worth it.</p>
<p><strong>High-level planning.</strong> The agent still needs prompts to decide which skills to use and in what order. Prompts are for reasoning, skills are for execution.</p>
<p><strong>When the workflow isn&#39;t stable yet.</strong> If you&#39;re still experimenting with how a task should work, keep it as a prompt until the steps settle down.</p>
<p>The key is knowing which layer you&#39;re working in. Use prompts for decisions. Use skills for procedures.</p>
<h2>What I&#39;d build into a production agent system</h2>
<p>If I were designing an agent platform for production work from scratch, skills would be first-class.</p>
<p>Every agent would have access to a shared skill library. Skills would be versioned, tested, and documented. The system would log every skill invocation with full inputs, outputs, and timing.</p>
<p>Skills would enforce verification by default. A skill isn&#39;t done until verification passes. That guarantee ripples up: if a high-level skill calls five sub-skills, and all five passed verification, the high-level skill&#39;s success is reliable.</p>
<p>The platform would also make it easy to promote a workflow from prompt to skill. Once you&#39;ve run a task successfully a few times and the steps are stable, you&#39;d extract it into a skill with a few clicks.</p>
<p>This is extra infrastructure. But it&#39;s the difference between an agent that improvises and an agent that executes reliably.</p>
<h2>The shift from interpretation to invocation</h2>
<p>The way I think about it now: <strong>prompts ask the agent to interpret. Skills ask the agent to invoke.</strong></p>
<p>Interpretation is flexible but unpredictable. Invocation is rigid but reliable. For repeated workflows, especially high-stakes ones, reliability beats flexibility.</p>
<p>This maps onto a broader lesson about building with AI: the model is very good at reasoning, but reasoning isn&#39;t always what you need. Sometimes you just need the same five steps to happen in the same order every time.</p>
<p>That&#39;s not a reasoning problem. It&#39;s a structure problem. And skills are how you solve it.</p>
]]></content:encoded>
    </item>
    <item>
      <title>The Hidden Cost of Forgetting: Why AI Systems Keep Rebuilding What They Already Knew</title>
      <link>https://armann.com/notes/ai-agent-memory-cost-of-rebuilding-state</link>
      <guid isPermaLink="true">https://armann.com/notes/ai-agent-memory-cost-of-rebuilding-state</guid>
      <pubDate>Wed, 05 Aug 2026 16:00:00 GMT</pubDate>
      <description>AI agents forget everything between runs, and computers move and rebuild state constantly. Why the cost of forgetting may be the real bottleneck in AI.</description>
      <content:encoded><![CDATA[<p>There&#39;s a moment every agent builder knows. You watch your AI agent start a task it has done a hundred times before, and it begins exactly as if it never had. It reads the instructions, loads the files, re-derives the situation, and rebuilds its understanding from scratch.</p>
<p>It&#39;s not broken. That&#39;s how it works. And once you see it, you start to see the same pattern everywhere in computing.</p>
<p>This essay is about that pattern: the cost of forgetting and rebuilding. I think it&#39;s one of the most underrated forces shaping where AI goes next.</p>
<h2>Agents don&#39;t remember. They re-read.</h2>
<p>When people talk about &quot;AI agent memory,&quot; they usually mean one of a few techniques:</p>
<ul>
<li><strong>Context stuffing:</strong> put as much history as possible into the prompt.</li>
<li><strong>Retrieval:</strong> store past information in a database, search it, and inject the relevant pieces.</li>
<li><strong>Summaries and state files:</strong> compress what happened into notes the agent reads at the start of each run.</li>
<li><strong>Memory layers:</strong> dedicated systems that decide what to save, update, and recall.</li>
</ul>
<p>These are genuinely useful, and the teams building them are doing important work. I rely on several of them. But notice what they have in common: <strong>the memory lives somewhere else.</strong> The agent&#39;s actual computation, the model reasoning over a context window, is stateless. Memory is a separate store the computation has to go fetch, re-read, and re-interpret on every run.</p>
<p>So agent memory is really <em>agent recall</em>. Each run reconstructs an understanding from stored fragments, and the reconstruction is never quite free:</p>
<ol>
<li><strong>It costs compute and time.</strong> Re-reading and re-deriving context is work, paid again and again.</li>
<li><strong>It loses information.</strong> Summaries drop nuance. Retrieval misses what it wasn&#39;t asked for. The why behind a decision rarely survives.</li>
<li><strong>It drifts.</strong> Two reconstructions from the same notes can come out differently. Small differences compound across runs and agents.</li>
<li><strong>It goes stale.</strong> Stored memory is a snapshot. The world kept moving after it was written.</li>
</ol>
<p>In my own multi-agent work, a large share of the engineering, far more than I expected, went into managing these four costs. Structured state, verification steps, and handoff contracts all exist because the system rebuilds its picture of the world instead of carrying it forward.</p>
<h2>Zoom out: computers do this too</h2>
<p>Here&#39;s what struck me. That pattern of store, fetch, rebuild, compute, and discard isn&#39;t unique to language-model agents. It&#39;s close to the default shape of computing itself.</p>
<p>Conventional computers separate memory from computation. Data lives in memory. The processor fetches it, computes, and writes results back. Then it fetches the next thing. This design, usually traced back to the von Neumann architecture, has been extraordinarily successful. It&#39;s also the source of a well-known problem engineers call the <strong>memory wall</strong>: processors have become very fast, while moving data to and from them hasn&#39;t kept pace. Increasingly, the expensive part of computing isn&#39;t the arithmetic. It&#39;s the movement.</p>
<p>Modern AI workloads live right at this wall. A large part of the energy and latency in running models goes into shuttling data between memory and compute, not into the computation itself. Some of the most celebrated recent advances in AI systems aren&#39;t new math at all. They&#39;re cleverer ways to avoid moving data.</p>
<p>The processors are fast. Feeding them is expensive.</p>
<p>The parallel with agents is almost exact. An agent pays to reload and re-interpret its context before it can do new work. A conventional computer pays to move data to the processor before it can compute. In both cases the system spends a growing share of its effort getting back to where it already was. And in both cases, most of the engineering effort goes into making that trip faster rather than asking whether the trip is necessary.</p>
<h2>Where forgetting really hurts: a world that keeps moving</h2>
<p>For a chatbot or a document agent, rebuilding state is an annoyance. The world holds still while you think. The inbox will still be there in a second. You can afford to reconstruct.</p>
<p>Now imagine a machine that operates in the physical world: a drone, a vehicle, a robot arm, a pair of smart glasses. Its world doesn&#39;t hold still. Things move, light changes, objects appear and disappear. The machine needs a continuous understanding of what moved, what changed, what&#39;s near, and what persists.</p>
<p>The conventional approach is to treat the world as a sequence of snapshots. Capture a frame. Move it into memory. Run it through separate pipelines for depth, motion, and objects. Fuse the results. Act. Then do it all again for the next frame, often rebuilding much of the picture from scratch.</p>
<p>That&#39;s the agent problem again, but with much tighter deadlines. Every rebuild costs energy and latency, and every bit of lost continuity is lost understanding. A robot that has to reconstruct its world on every frame is like my agents re-reading their notes every morning, except the robot is moving at speed and the notes go out of date in milliseconds.</p>
<p>Language can wait for the next token. A robot can&#39;t wait for the world to stop moving.</p>
<h2>The question I keep coming back to</h2>
<p>Every fix I built for my agents was a way of <em>compensating</em> for forgetting: better notes, faster recall, stricter checks. The memory-wall fixes in hardware are similar: bigger caches, smarter prefetching, faster interconnects. They&#39;re all ways to make rebuilding cheaper.</p>
<p>But what if you didn&#39;t have to rebuild at all?</p>
<p>What if the system didn&#39;t remember by storing the past somewhere else and fetching it back, but by <strong>carrying the past forward in the computation itself</strong>? The current state would already contain what came before. New input wouldn&#39;t trigger a reconstruction. It would change what&#39;s already there.</p>
<p>That&#39;s a different idea of memory. Not a database you query, but a state that evolves. In the agent world this is still mostly an aspiration; we approximate it with clever layers on top of stateless models. But as a principle of computing, it&#39;s worth taking seriously. I think it will matter far more as AI moves off the screen and into the physical world.</p>
<h2>What this means for builders today</h2>
<p>If you&#39;re building agents now, a few practical takeaways:</p>
<ul>
<li><strong>Measure your reconstruction tax.</strong> How much of each run is spent rebuilding context versus doing new work? That number is a design target.</li>
<li><strong>Keep state small and authoritative.</strong> One current truth beats a long history the agent has to re-interpret.</li>
<li><strong>Treat stored memory as possibly stale.</strong> Verify live status before acting.</li>
<li><strong>Prefer continuity over recall where you can.</strong> Long-running processes that hold state can beat repeated cold starts, if you manage them carefully.</li>
<li><strong>Watch the architecture layer.</strong> The most important memory breakthroughs may come from below the application, in how computation itself handles state.</li>
</ul>
<h2>Where I&#39;m spending my time</h2>
<p>This line of thinking is part of why I co-founded <strong>Semulo</strong>. The idea at the heart of Semulo, that the computation itself can remember, came from my co-founder <a href="https://www.linkedin.com/in/jeremyshockley/">Jeremy Shockley</a>. We&#39;re working on what we call digital wave-based computing, built on that idea: instead of repeatedly storing, moving, and rebuilding a picture of a changing world, one live computational state evolves as the world changes. It runs on today&#39;s conventional hardware, CPUs, GPUs and FPGAs, rather than waiting for exotic chips.</p>
<p>I&#39;ll write more about why that matters specifically for physical AI in the next essay: <a href="https://armann.com/notes/physical-ai-computation-that-remembers">Why Physical AI Needs Computation That Remembers</a>.</p>
<p>If you want the short version: the next breakthrough in AI may not come from a bigger model. It may come from not throwing away what the machine just understood.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Never Trust an Agent's 'Done': Why AI Agents Need a Verification Layer</title>
      <link>https://armann.com/notes/never-trust-agent-done-verification-layer</link>
      <guid isPermaLink="true">https://armann.com/notes/never-trust-agent-done-verification-layer</guid>
      <pubDate>Wed, 08 Jul 2026 16:00:00 GMT</pubDate>
      <description>AI agents declare success before verifying it. Why every production agent system needs an independent verification layer that checks output before it reaches the real world.</description>
      <content:encoded><![CDATA[<p>One of the first lessons you learn building AI agents for production is that &quot;done&quot; doesn&#39;t mean done.</p>
<p>An agent will tell you the email is ready, the file is updated, the task is complete. It sounds confident. The output looks right. Then you check, and the link is broken, or the update went to the wrong place, or the agent misread what &quot;done&quot; actually required.</p>
<p>This isn&#39;t a problem you train away. It&#39;s structural. And it taught me that <strong>every production agent system needs a verification layer</strong>, a step between &quot;the agent says it&#39;s done&quot; and &quot;the output reaches the real world.&quot;</p>
<h2>Agents confuse intent with outcome</h2>
<p>Here&#39;s what happens. An agent receives a task: update a document, send an email, mark a ticket resolved. It generates the right steps, executes them, and declares success. From the agent&#39;s perspective, it did what it intended to do.</p>
<p>But intent and outcome are different things.</p>
<p>The agent intended to update the file. Did the file actually change? The agent intended to send the email. Did it arrive? The agent marked the ticket closed. Is the ticket actually closed in the system, or did the API call fail silently?</p>
<p>Most agent frameworks are built to reason about what to do, not to verify that it happened. So they optimize for planning and execution, and treat verification as an afterthought. The agent outputs a confident &quot;Done!&quot; and moves on.</p>
<p>In a demo, that&#39;s fine. In production, it&#39;s a liability.</p>
<h2>The structure of the problem</h2>
<p>The deeper issue is that agents operate in two layers at once: the reasoning layer, where they plan and decide, and the execution layer, where actions touch the real world. The reasoning layer is where the agent&#39;s strength is. The execution layer is full of things that can go wrong in ways the reasoning layer doesn&#39;t see.</p>
<p>A file write can fail partway through. An API can return 200 but not actually commit the change. A network call can time out. A permission can be missing. The output can be syntactically correct but semantically wrong.</p>
<p>None of these are reasoning failures. They&#39;re execution realities. And because the agent&#39;s internal model of the world updates based on its intent, it often doesn&#39;t notice when execution and intent diverge. It believes the task succeeded because it planned for success.</p>
<p>This is worse in multi-agent systems, where one agent&#39;s declared success becomes another agent&#39;s assumption. Agent A says &quot;file updated,&quot; Agent B reads that state and acts on it, and by the time a human sees the result, the incorrect assumption has propagated through three downstream decisions.</p>
<h2>What verification actually means</h2>
<p>Verification isn&#39;t asking the agent to double-check itself. It&#39;s an independent step that treats the agent&#39;s output as untrusted until proven otherwise.</p>
<p>Here&#39;s what that looks like in practice:</p>
<p><strong>For data changes:</strong> read the data back and compare it to the requirement. If the agent was supposed to update a field to &quot;active,&quot; query the field and confirm it says &quot;active.&quot; If it doesn&#39;t match, the task isn&#39;t done.</p>
<p><strong>For file operations:</strong> open the file, parse it, and verify the expected content is present and well formed. Check file size, timestamps, and permissions if those matter.</p>
<p><strong>For API calls:</strong> don&#39;t trust the response code alone. Fetch the resource state afterward and confirm the change took effect. If the agent created a record, retrieve that record by ID and verify its fields.</p>
<p><strong>For output quality:</strong> run format checks, schema validation, or a secondary model review. If the agent generated JSON, parse it. If it wrote text for a user, check that required elements are present and links resolve.</p>
<p><strong>For external actions:</strong> if the agent sent an email, check the sent folder. If it posted something, load the page and verify it appears. If it modified a ticket, query the ticket system&#39;s API for current status.</p>
<p>The verification step should be done by something other than the agent that did the work. Ideally it&#39;s a separate process, or the same model with a different, skeptical instruction that treats the agent&#39;s claim as a hypothesis to test.</p>
<h2>When verification catches what reasoning missed</h2>
<p>I&#39;ve seen verification catch:</p>
<ul>
<li>An agent that &quot;updated&quot; a configuration file but wrote it to /tmp instead of the actual config path.</li>
<li>An agent that sent an email to the right address but with a malformed link that would have bounced users.</li>
<li>An agent that marked a database record as processed, but the transaction rolled back due to a constraint violation the agent never checked.</li>
<li>An agent that generated valid JSON with all required keys, but one value was subtly wrong in a way that would break downstream parsing.</li>
<li>An agent that closed a ticket in one system but didn&#39;t update the linked ticket in another, leaving state inconsistent.</li>
</ul>
<p>None of these were hallucinations. The agent&#39;s reasoning was fine. The execution layer just didn&#39;t go the way the agent assumed it would.</p>
<h2>Verification is cheaper than cleanup</h2>
<p>The natural objection is that verification adds latency and cost. Every task now requires a second check. That&#39;s true. But compare the cost of verification to the cost of propagating bad output.</p>
<p>A wrong file that gets deployed breaks production. A malformed email that reaches a customer costs trust. An incomplete update that another agent treats as complete creates cascading errors that take hours to untangle. A bad decision made on stale data can&#39;t be undone cleanly.</p>
<p>Verification is expensive. Cleaning up after unverified output is more expensive, and it scales badly. One verification step prevents many downstream failures.</p>
<p>The other benefit is observability. When verification fails, you know exactly where and why. The task didn&#39;t complete, here&#39;s what was expected, here&#39;s what actually happened. That signal is invaluable for debugging and for improving the system. Without verification, you only find out something went wrong when a human notices, often much later.</p>
<h2>Where verification belongs in the architecture</h2>
<p>Verification should be a required gate between agent output and any action that affects the real world or another agent&#39;s input.</p>
<p>In practice, that means:</p>
<p><strong>After execution, before commit.</strong> The agent does the work, verification checks it, and only if verification passes does the system mark the task complete and allow downstream agents or processes to proceed.</p>
<p><strong>As part of handoffs.</strong> When one agent hands work to another, verification confirms what was actually accomplished, not just what the sending agent claimed.</p>
<p><strong>Before user-facing output.</strong> Anything a user will see, anything that leaves the system, anything hard to undo: verification is mandatory.</p>
<p><strong>In the feedback loop.</strong> When verification fails, the system should not silently retry. It should log the failure, provide the agent with the verification results, and either allow a retry with more information or escalate to a human.</p>
<p>Some systems implement this as a QA agent, a separate model whose only job is to verify. Others use rule-based checks, or a hybrid. The implementation matters less than the principle: the agent that did the work does not get to declare itself done.</p>
<h2>What I&#39;d build into an agent framework</h2>
<p>If I were designing an agent framework for production work, verification would be a first-class concept, not an add-on.</p>
<p>Every task would have an associated verification function. The function receives the agent&#39;s output and the task requirements, checks the real-world state, and returns pass or fail with evidence.</p>
<p>The agent executes, then the framework automatically runs verification. If verification passes, the task is marked complete. If it fails, the framework decides whether to retry (with the failure details added to context), escalate to a human, or abort.</p>
<p>The framework would also track verification pass rates per agent and per task type, so you know where the reasoning-execution gap is widest.</p>
<p>This is extra work up front. But it&#39;s the difference between agents that feel impressive in a demo and agents you can trust in production.</p>
<h2>The broader lesson</h2>
<p>The need for verification in AI agents points to something more general. As AI systems move from generating text to taking actions, the gap between &quot;the model said to do X&quot; and &quot;X actually happened&quot; becomes the critical risk.</p>
<p>Verification is how you close that gap. It&#39;s how you make sure the reasoning layer and the execution layer stay synchronized. And it&#39;s how you prevent confident mistakes from becoming expensive failures.</p>
<p>In my own work, I came to think of verification as the layer that keeps the agent honest. The agent wants to believe its plan worked. Verification checks whether the world agrees.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Seven Lessons From Building a Multi-Agent AI System That Actually Does Work</title>
      <link>https://armann.com/notes/lessons-building-multi-agent-ai-system</link>
      <guid isPermaLink="true">https://armann.com/notes/lessons-building-multi-agent-ai-system</guid>
      <pubDate>Thu, 11 Jun 2026 16:00:00 GMT</pubDate>
      <description>Lessons from building a multi-agent AI system that does real work: rebuilding context, truth gates, verifying before acting, handoffs, QA, and human approval.</description>
      <content:encoded><![CDATA[<p>For the past year I&#39;ve been building a multi-agent AI system to run real parts of a business. Not a demo or a weekend chatbot, but a set of agents that research, draft, check, hand work to each other, and prepare actions that touch the real world.</p>
<p>Most of what I learned didn&#39;t come from model benchmarks. It came from the moments the system was confidently wrong. Those moments taught me more about what intelligence actually needs than any leaderboard has.</p>
<p>Here are seven lessons. They&#39;re generic on purpose. They apply whether you&#39;re wiring up two agents or twenty.</p>
<h2>1. Every run starts from zero, and that is the most expensive fact in AI agents</h2>
<p>The first thing you notice when building agents is how much of each run is spent <em>re-understanding</em>. An agent wakes up, reads its instructions, loads files, re-reads the history, re-derives what&#39;s going on, and only then starts the actual work.</p>
<p>Language models are stateless between calls. Whatever an agent &quot;knew&quot; at the end of its last run is gone unless you&#39;ve written it somewhere and it reads it back in. So every run pays a reconstruction tax: tokens, latency, and, most dangerously, chances to reconstruct the picture <em>slightly differently</em> than last time.</p>
<p>I came to think of it like hiring a brilliant contractor with total amnesia every morning. They&#39;re fast and capable, but they spend the first hour reading yesterday&#39;s notes, and some days they misread them.</p>
<p>The practical fix is unglamorous: compact, structured state files that say what&#39;s true now, what&#39;s pending, and what was decided and why. You want a small, authoritative &quot;current state,&quot; not a sprawling transcript. But even good state files are a workaround. The deeper problem, that the system doesn&#39;t carry its understanding forward, stays with you. I&#39;ll come back to it.</p>
<h2>2. Hallucinations aren&#39;t the bug. Unverified claims are.</h2>
<p>Early on I treated hallucination as a model-quality problem I&#39;d wait out. That was wrong. A better model hallucinates less often, but in a multi-agent system <em>one</em> fabricated fact gets passed down the chain and quietly becomes ground truth. Agent B trusts agent A. Agent C trusts agent B. By the time a human sees the output, the invented detail has been cited three times.</p>
<p>What worked was a <strong>claim gate</strong>: a step where factual claims must point to a source the system actually has, or get marked unverified. Names, dates, numbers, quotes, statuses: if it can&#39;t be traced, it doesn&#39;t pass. The gate doesn&#39;t make the model smarter. It makes the <em>system</em> honest.</p>
<p>This changed how I think about truth in AI automation. You don&#39;t get reliability by asking a model to be careful. You get it by building a structure where being careless doesn&#39;t survive.</p>
<h2>3. Verify the real world before you act on it</h2>
<p>The most painful failures weren&#39;t hallucinations at all. They were <em>stale beliefs</em>. An agent would read a note saying &quot;draft awaiting review&quot; and act on it, when the draft had already been sent, or edited, or cancelled by a human an hour earlier.</p>
<p>The agent wasn&#39;t wrong about its memory. Its memory was wrong about the world.</p>
<p>So I added a rule: <strong>before any action with consequences, check current status at the source.</strong> Don&#39;t trust the state file, the last message, or what a previous agent said. Look. Is the file still there? Is the ticket still open? Did someone already reply?</p>
<p>This sounds obvious. It isn&#39;t how most agent frameworks behave by default. They&#39;re built to reason over context, and context is always a snapshot of the past. The world kept moving after the snapshot was taken.</p>
<h2>4. Handoffs are where systems break</h2>
<p>Multi-agent systems look elegant on a whiteboard: a researcher hands to a writer, who hands to a reviewer, who hands to an executor. In practice each arrow is a lossy compression. The sending agent summarizes what it knows. The receiving agent rebuilds an understanding from that summary. Nuance, caveats, and &quot;I wasn&#39;t sure about this part&quot; get dropped.</p>
<p>What helped:</p>
<ul>
<li><strong>Explicit handoff contracts.</strong> Every handoff says what was done, what&#39;s verified, what&#39;s assumed, and what&#39;s still open.</li>
<li><strong>Carry uncertainty forward.</strong> An &quot;unsure&quot; flag must survive the handoff. Otherwise downstream agents treat guesses as facts.</li>
<li><strong>Fewer hops.</strong> Every extra agent in a chain is another reconstruction. Sometimes the best architecture is one capable agent with good tools, not five specialists with lossy channels between them.</li>
</ul>
<p>That last point surprised me. Adding agents feels like adding capability. Often it just adds more places to forget things.</p>
<h2>5. &quot;Done&quot; means verified, not declared</h2>
<p>Agents love to declare victory. &quot;The page is live.&quot; &quot;The email is ready.&quot; &quot;The fix is deployed.&quot; These statements usually describe what the agent <em>intended</em>, not what happened.</p>
<p>I learned to separate <em>declaring</em> from <em>verifying</em>. Nothing counts as live until an independent check confirms it: load the page, read the output back, run the test, compare against the requirement. The QA step should be done by something other than the agent that did the work, even if it&#39;s the same model with a different, skeptical instruction.</p>
<p>In human teams we call this &quot;trust, but verify.&quot; In agent systems it&#39;s closer to &quot;verify, then trust a little.&quot;</p>
<h2>6. Humans approve anything that leaves the building</h2>
<p>The single most important design decision: <strong>agents prepare, humans approve outbound actions.</strong> Emails, posts, messages, purchases, deletions, anything visible to the outside world or hard to undo goes into an approval queue with the full draft attached.</p>
<p>This isn&#39;t timidity. It&#39;s an honest reading of where the technology is. An agent that drafts a perfect reply almost every time and an embarrassing one occasionally is a liability if it sends automatically, and a huge productivity gain if a human glances at it first. The approval step costs seconds. A wrong send can cost a relationship.</p>
<p>It also has a subtler benefit. When a human declines a draft, that decision becomes information. A well-designed system treats &quot;no&quot; as final and remembers why, instead of politely trying again through a different route.</p>
<h2>7. Memory isn&#39;t a feature. It&#39;s the architecture.</h2>
<p>Put the first six lessons together and a pattern appears. Rebuilding context, unverified claims, stale beliefs, lossy handoffs, premature &quot;done&quot;: these are all symptoms of the same thing. <strong>The system doesn&#39;t maintain a continuous, trustworthy understanding of its world. It reconstructs one, again and again, from fragments.</strong></p>
<p>Most of my engineering effort went into compensating: state files, gates, checks, contracts, approvals. They work. But they&#39;re scaffolding around a missing capability. The agents never really <em>remember</em>. They re-read.</p>
<p>That observation has stayed with me well beyond agents. A surprising amount of computing works this way: store the state somewhere, fetch it, rebuild a picture, compute, throw the picture away, repeat. It&#39;s tolerable when the world holds still between calls, like a document or an inbox. It gets very expensive when the world doesn&#39;t hold still.</p>
<h2>What I&#39;d tell someone starting today</h2>
<p>If you&#39;re building AI agents for real work, here&#39;s the short version:</p>
<ol>
<li><strong>Design state first.</strong> Decide what the system must know at the start of every run, and keep it small and authoritative.</li>
<li><strong>Gate claims.</strong> No source, no fact.</li>
<li><strong>Look before you act.</strong> Check live status at the source before anything with consequences.</li>
<li><strong>Make handoffs explicit</strong> and carry uncertainty across them.</li>
<li><strong>Separate doing from checking.</strong> Done means independently verified.</li>
<li><strong>Keep humans on outbound actions.</strong> Treat a &quot;no&quot; as final.</li>
<li><strong>Count the reconstruction tax.</strong> Every time your system rebuilds understanding from scratch, it pays in cost, latency, and risk of drift.</li>
</ol>
<p>The models will keep getting better, and that&#39;s wonderful. But most of the hard problems I hit weren&#39;t about intelligence. They were about <em>continuity</em>: keeping an accurate, living picture of a changing world instead of rebuilding it from notes every time.</p>
<p>That turns out to be one of the most interesting problems in computing right now, and it goes far beyond agents. I wrote about it next: <a href="https://armann.com/notes/ai-agent-memory-cost-of-rebuilding-state">The Hidden Cost of Forgetting: Why AI Systems Keep Rebuilding What They Already Knew</a>.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
