AI & agentic architectures

What it takes to make agents reliable enough to run in production. The focus is the runtime around the model, and the design choices that keep failures contained once an agent acts on real systems.

9 posts · 2026
Subscribe
Latest

What an agent should remember

Agent memory stores mostly decide what to forget by time: a TTL, or deleting what hasn't been used. In a 90-day scripted scenario, that kept a cancelled booking alive for weeks and stored a restaurant's sentence as the user's preference. Two fields fix both: who wrote the memory, and which event would make it false.

ai-agentsarchitecture
  1. AI

    SFU, MCU, and the participant that has to decode

    Put an AI agent in a group call and two questions decide the design: does the model hear each person, or one blend, and who has to hold the keys? Both come down to where the agent's audio gets decoded.

    ai-agentswebrtc
    Oct 2026
  2. AI

    Circuit breakers for inference

    Timeouts, retries and budgets for model calls that finish too slowly, produce unusable answers or keep repeating themselves. With the real Anthropic SDK, timeout=3.0 let an 18-second stream finish. In a simulated support chat, with invented failure rates, five checks took the conversations waiting over two minutes from 249 to 0.

    ai-agentsreliability
    Oct 2026
  3. AI

    What a state machine buys an agent

    The same dinner booking, sent to Claude as a free-form tool loop and as a state machine. Per-state tool lists sent 61% fewer tokens, but with prompt caching on they cost 23% more on input, and with output counted the two came out about even. The real saving was code running the steps that need no model, 8 calls down to 2 and about 72% off the total, plus a table of every state against every event.

    ai-agentsprompt-engineering
    Oct 2026
  4. AI

    Diagrams worth reading

    My agent could already write Mermaid. Diagrams worth reading took a skill that chooses the picture, keeps the facts intact, and checks the drawing before handing it back.

    ai-agentsarchitecture
    Sep 2026
  5. AI

    Handing off between agents

    A handoff carries two things: the words the next model reads, and the state the next runtime has to enforce. Every common handoff style moves only the words. In a small scripted demo, even the full transcript, 1,838 bytes, left the restaurant holding two tables, because the key that names the in-doubt booking was never in it. A 310-byte record written by the sending runtime fixed it.

    ai-agentsreliability
    Sep 2026
  6. AI

    The agent event bus

    When one agent calls another with a sentence, the caller's model writes the callee's prompt, and a stranger's note can ride along. In a small scripted demo a bus seemed to fix that, but a typed fact sent by call was just as safe, and a bus event with a note was not. What the bus adds is that one agent being down doesn't leave another's work half done.

    ai-agentsarchitecture
    Sep 2026
  7. AI

    When the user changes their mind mid-task

    The user says “actually, Saturday” while the agent is still booking Friday. Cancelling the task and starting again leaves the restaurant holding two tables. What a runtime has to do instead: find out what the old plan already did, secure the new one, then undo the old, and tell the user what happened.

    ai-agentsarchitecture
    Aug 2026
  8. AI

    When a turn doesn't start with the user

    Agent runtimes are built around the user's message, so every input ends up acting with the user's authority. A restaurant's webhook, a timer and a second message mid-task each break that, and each gets a rule, shown in a small runtime you can run.

    ai-agentsarchitecture
    Aug 2026
  1. Oct 23, 2026 21 min read AI

    SFU, MCU, and the participant that has to decode

    Put an AI agent in a group call and two questions decide the design: does the model hear each person, or one blend, and who has to hold the keys? Both come down to where the agent's audio gets decoded.

    ai-agentswebrtcarchitecture
  2. Oct 19, 2026 21 min read AI

    Circuit breakers for inference

    Timeouts, retries and budgets for model calls that finish too slowly, produce unusable answers or keep repeating themselves. With the real Anthropic SDK, timeout=3.0 let an 18-second stream finish. In a simulated support chat, with invented failure rates, five checks took the conversations waiting over two minutes from 249 to 0.

    ai-agentsreliability
  3. Oct 9, 2026 29 min read AI

    What a state machine buys an agent

    The same dinner booking, sent to Claude as a free-form tool loop and as a state machine. Per-state tool lists sent 61% fewer tokens, but with prompt caching on they cost 23% more on input, and with output counted the two came out about even. The real saving was code running the steps that need no model, 8 calls down to 2 and about 72% off the total, plus a table of every state against every event.

    ai-agentsprompt-engineeringarchitecture
  4. Sep 25, 2026 15 min read AI

    Diagrams worth reading

    My agent could already write Mermaid. Diagrams worth reading took a skill that chooses the picture, keeps the facts intact, and checks the drawing before handing it back.

    ai-agentsarchitecture
  5. Sep 9, 2026 23 min read AI

    Handing off between agents

    A handoff carries two things: the words the next model reads, and the state the next runtime has to enforce. Every common handoff style moves only the words. In a small scripted demo, even the full transcript, 1,838 bytes, left the restaurant holding two tables, because the key that names the in-doubt booking was never in it. A 310-byte record written by the sending runtime fixed it.

    ai-agentsreliabilityarchitecture
  6. Sep 2, 2026 23 min read AI

    The agent event bus

    When one agent calls another with a sentence, the caller's model writes the callee's prompt, and a stranger's note can ride along. In a small scripted demo a bus seemed to fix that, but a typed fact sent by call was just as safe, and a bus event with a note was not. What the bus adds is that one agent being down doesn't leave another's work half done.

    ai-agentsarchitecturedistributed-systems
  7. Aug 27, 2026 22 min read AI

    When the user changes their mind mid-task

    The user says “actually, Saturday” while the agent is still booking Friday. Cancelling the task and starting again leaves the restaurant holding two tables. What a runtime has to do instead: find out what the old plan already did, secure the new one, then undo the old, and tell the user what happened.

    ai-agentsarchitecture
  8. Aug 19, 2026 21 min read AI

    When a turn doesn't start with the user

    Agent runtimes are built around the user's message, so every input ends up acting with the user's authority. A restaurant's webhook, a timer and a second message mid-task each break that, and each gets a rule, shown in a small runtime you can run.

    ai-agentsarchitecture