<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Agents in Production on Andrew Hunter — Systems Architect &amp; Builder</title>
    <link>https://andrewphunter.com/series/agents-in-production/</link>
    <description>Recent content in Agents in Production on Andrew Hunter — Systems Architect &amp; Builder</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 01 Dec 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://andrewphunter.com/series/agents-in-production/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Agents in Production — Part IV: Before the Model Can Answer</title>
      <link>https://andrewphunter.com/writing/before-the-model-can-answer/</link>
      <pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://andrewphunter.com/writing/before-the-model-can-answer/</guid>
      <description>&lt;p&gt;In the previous essays, we gave the &lt;a href=&#34;https://andrewphunter.com/writing/the-agent-is-still-an-actor/&#34;&gt;actor an inference loop&lt;/a&gt; and followed its &lt;a href=&#34;https://andrewphunter.com/writing/the-tool-call-is-a-distributed-transaction/&#34;&gt;tool calls into the distributed system&lt;/a&gt;. That actor can interpret a request and ask other services to do work, but answering a question about the business also requires information those decisions can depend on. Someone asking whether a hotel booking needs approval expects an answer based on the company&amp;rsquo;s policy. A retrieval tool can supply the relevant material for inference, provided we have prepared the policy so that what comes back still means what the business wrote.&lt;/p&gt;&#xA;&lt;p&gt;Preparing that information is ETL: extracting it from its sources, transforming it for the consumer, and loading it into a system that can serve it. Retrieval-augmented generation, or RAG, then selects material for a question and includes it in the model&amp;rsquo;s context to help produce an answer. The preparation has much in common with the pipelines we build for reporting and analytics, where the downstream use determines the representation we need. Here, the consumer is inference, often working from selected passages rather than a complete document. Following that change through ETL explains the work behind a retrieval tool before we choose a chunk size or a vector store.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Agents in Production — Part V: From a Question to Useful Evidence</title>
      <link>https://andrewphunter.com/writing/from-a-question-to-useful-evidence/</link>
      <pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://andrewphunter.com/writing/from-a-question-to-useful-evidence/</guid>
      <description>&lt;p&gt;Most of us have spent years asking a search engine to find something without having to think much about how it does that. We type a question, inspect the results, and change the wording if they are unhelpful. Behind that search box are decisions about how to index information, interpret the question, find candidates, and decide which deserve our attention. Google makes those decisions for its service. When we add retrieval to an application, many of those decisions become ours.&lt;/p&gt;&#xA;&lt;p&gt;RAG brings the machinery of a search engine into the application. What feels new to many teams is the responsibility for building and operating search, a discipline they previously consumed through a search box. Enterprise document systems have been doing this work for years, and the underlying techniques are available in libraries and managed services. We can now assemble them around a collection of policies or product documentation without operating a web-scale search company. The smaller collection reduces the scale of the work, but it still contains competing matches, inconsistent vocabulary, and questions whose useful answers are spread across several places.&lt;/p&gt;&#xA;&lt;p&gt;In &lt;a href=&#34;https://andrewphunter.com/writing/before-the-model-can-answer/&#34;&gt;Before the Model Can Answer&lt;/a&gt;, we prepared an invented travel policy through ETL, preserving the hotel limits together with their units and approval conditions. Now someone asks, “Do I need permission to book a London hotel above the nightly limit?” We have the material that answers that question. Following how we find it gives us a way to understand the search infrastructure we are putting inside the application, and where inference participates in it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Agents in Production — Part VI: Whose Authority Is the Agent Using?</title>
      <link>https://andrewphunter.com/writing/whose-authority-is-the-agent-using/</link>
      <pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://andrewphunter.com/writing/whose-authority-is-the-agent-using/</guid>
      <description>&lt;p&gt;An employee asks a travel assistant to find a hotel near the London office and arrange the booking. The application can read the employee&amp;rsquo;s travel profile, search for hotels, and submit a reservation through the company&amp;rsquo;s booking provider. In a conventional implementation, code connects those capabilities in a defined sequence. It chooses which profile fields go to the provider and which information belongs in a public hotel search. The service may have broader credentials than that sequence needs, but the programmed workflow determines how it normally uses them.&lt;/p&gt;&#xA;&lt;p&gt;Now let inference choose the next operation. The actor reads the profile, searches for suitable accommodation, and decides that sending the profile to a hotel website would help it obtain a more personalized recommendation. If it has both private-record access and an unrestricted web tool, each operation can succeed under the permissions we gave it. Nobody needed to steal a credential or bypass an access check. The actor connected two permitted capabilities in a way the business never intended.&lt;/p&gt;&#xA;&lt;p&gt;That path was already possible in the distributed system. A bug or exploit could have exposed it before we introduced an agent. Inference makes it reachable through the ordinary decision loop, where requests and retrieved content influence which operation comes next. Agents use the same authority mechanisms as other distributed systems; what changes is the path through them. Boundaries previously maintained by the programmed workflow must become explicit limits on what the actor can do, so a different interpretation cannot quietly become a different grant of authority.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Agents in Production — Part VII: Following the Decisions</title>
      <link>https://andrewphunter.com/writing/following-the-decisions/</link>
      <pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://andrewphunter.com/writing/following-the-decisions/</guid>
      <description>&lt;p&gt;An employee asks our travel assistant whether they need approval for a London hotel above the nightly limit. The search succeeds, the model responds, and the answer arrives quickly: book the hotel and get the manager&amp;rsquo;s approval afterward. Our policy requires approval before booking. Every service involved can be healthy while the employee receives advice that would put them outside the policy.&lt;/p&gt;&#xA;&lt;p&gt;We have been investigating successful requests that produce incorrect results for as long as we have operated distributed software. Observability is already a substantial discipline. Charity Majors, Liz Fong-Jones, and others have spent years developing and explaining the practices behind it. &lt;a href=&#34;https://www.honeycomb.io/resources/getting-started/what-is-observability-engineering&#34;&gt;Honeycomb&amp;rsquo;s treatment of observability engineering&lt;/a&gt; and &lt;a href=&#34;https://opentelemetry.io/docs/concepts/observability-primer/&#34;&gt;OpenTelemetry&amp;rsquo;s instrumentation framework&lt;/a&gt; give us a foundation to apply here. Adding inference does not make that work obsolete.&lt;/p&gt;&#xA;&lt;p&gt;It does put a different kind of decision inside the execution. With a programmed policy rule, we can inspect the condition that connects the input to the result. With inference, the actor assembles information, asks a model to interpret it, and receives a proposal. That interpretation can vary across requests with the same intent, and even across repeated calls with the same input. To understand the work, we need to connect what the model received, what it proposed, what the actor actually did, and whether the result satisfied the request. We then need to examine those relationships across enough work to distinguish a successful example from behavior the business can rely on.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Agents in Production — Part I: Where the Model Runs</title>
      <link>https://andrewphunter.com/writing/where-the-model-runs/</link>
      <pubDate>Mon, 30 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://andrewphunter.com/writing/where-the-model-runs/</guid>
      <description>&lt;p&gt;An application calls a model and gets an answer back. From the application code, that can look much the same whether the request went to a frontier lab, a cloud platform, or a GPU in the next room. There is an endpoint, some credentials, a request, and a response. What changes is how much control we have over the service behind that endpoint, and how much work we must take on to exercise it.&lt;/p&gt;&#xA;&lt;p&gt;For a small team without an established cloud operating environment, I would start with a direct provider API. For an enterprise that already operates a cloud platform, I would start with managed inference there. Each uses what the organization has rather than making it build an inference operation first. Self-hosting needs a specific control requirement or an economic case strong enough to fund the people and practices that come with it.&lt;/p&gt;&#xA;&lt;p&gt;These are starting points. Next, assess the candidate against the workload and the governance requirements for its intended use. That assessment can change the provider, model, or hosting arrangement. A particular capability may also justify taking a different route from the outset.&lt;/p&gt;&#xA;&lt;p&gt;This is the first essay in &lt;em&gt;Agents in Production&lt;/em&gt;. The series draws targeted examples from my &lt;a href=&#34;https://github.com/AndrewPHunter/ai-on-aws&#34;&gt;AI on AWS playground&lt;/a&gt;, while following decisions that apply across clouds and frameworks. We begin with the inference service. The agent that calls it is a separate application, with its own responsibilities, which we will build toward in the next essay.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Agents in Production — Part II: The Agent Is Still an Actor</title>
      <link>https://andrewphunter.com/writing/the-agent-is-still-an-actor/</link>
      <pubDate>Mon, 30 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://andrewphunter.com/writing/the-agent-is-still-an-actor/</guid>
      <description>&lt;p&gt;The service representative has read the customer summary. Now they want help resolving the problem: “They&amp;rsquo;ll be away next week. Can we move the delivery until they&amp;rsquo;re back?”&lt;/p&gt;&#xA;&lt;p&gt;In &lt;a href=&#34;https://andrewphunter.com/writing/where-the-model-runs/&#34;&gt;the first essay&lt;/a&gt;, we chose where the model runs and what the business must carry to use it. We can send this request to that model, but an answer alone will not change the delivery. Something has to identify the order, find out whether it can be changed, clarify when the customer returns, and request the change through the system that owns it. That coordinating actor is what we are building when we build an agent.&lt;/p&gt;&#xA;&lt;p&gt;I have &lt;a href=&#34;https://andrewphunter.com/writing/agents-are-actors-with-intent/&#34;&gt;described this before as an actor with inference where the decision used to be&lt;/a&gt;. The useful part of that framing is how much architecture it gives us to work with. We already know how to build components that receive messages, keep state, and ask other components to do work. Inference changes how we interpret the request and choose a next step. We can follow that change through the design without starting the entire discipline again.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Agents in Production — Part III: The Tool Call Is a Distributed Transaction</title>
      <link>https://andrewphunter.com/writing/the-tool-call-is-a-distributed-transaction/</link>
      <pubDate>Mon, 30 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://andrewphunter.com/writing/the-tool-call-is-a-distributed-transaction/</guid>
      <description>&lt;p&gt;In &lt;a href=&#34;https://andrewphunter.com/writing/the-agent-is-still-an-actor/&#34;&gt;the previous essay&lt;/a&gt;, we put inference inside an actor. The actor owns the state and the loop, asks the model for a proposed next step, and decides whether to carry it out. That gives us a boundary around the decision. The next boundary is where the decision reaches another system through a tool call.&lt;/p&gt;&#xA;&lt;p&gt;From inside the loop, a tool may look like a function with a description and an input schema. Behind it might be a payment service, an order system, or a database owned by another team. Those systems have their own state, permissions, capacity, and failure behavior. The tool interface makes them available to the actor; it does not bring them inside the actor&amp;rsquo;s control.&lt;/p&gt;&#xA;&lt;p&gt;This is where tool calling becomes distributed transaction work. The actor requests an effect in another system and uses the result to decide what to do next. Inference changes how it chooses that work, but the exchange still crosses a network between independently operating participants. To understand what makes an agent reliable, we need to follow both sides: the distributed system reached through the tools, and the inference loop that can keep choosing to call them.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
