<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Advanced Agents From First Principles on Programmer.ie</title>
    <link>http://programmer.ie/books/advanced-agents-from-first-principles/</link>
    <description>Recent content in Advanced Agents From First Principles on Programmer.ie</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 09 Aug 2026 16:09:00 +0100</lastBuildDate>
    <atom:link href="http://programmer.ie/books/advanced-agents-from-first-principles/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Build a Production AI Agent From First Principles: The Complete Reference Architecture</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/44-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 16:09:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/44-chapter/</guid>
      <description>&lt;h1 id=&#34;build-a-production-ai-agent-from-first-principles-the-complete-reference-architecture&#34;&gt;Build a Production AI Agent From First Principles: The Complete Reference Architecture&lt;/h1&gt;&#xA;&lt;p&gt;We have spent this series adding mechanisms only when a specific failure demanded them.&lt;/p&gt;&#xA;&lt;p&gt;We started with a model call.&lt;/p&gt;&#xA;&lt;p&gt;Then we added candidate generation, critique, planning, tool use, memory, search and verification.&lt;/p&gt;&#xA;&lt;p&gt;Then the system stopped looking like a clever prompt.&lt;/p&gt;&#xA;&lt;p&gt;It started looking like software.&lt;/p&gt;&#xA;&lt;p&gt;Then distributed systems problems arrived:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;duplicate work,&lt;/li&gt;&#xA;&lt;li&gt;retries,&lt;/li&gt;&#xA;&lt;li&gt;leases,&lt;/li&gt;&#xA;&lt;li&gt;fencing,&lt;/li&gt;&#xA;&lt;li&gt;backpressure,&lt;/li&gt;&#xA;&lt;li&gt;dependency failure,&lt;/li&gt;&#xA;&lt;li&gt;behavioral drift,&lt;/li&gt;&#xA;&lt;li&gt;release compatibility,&lt;/li&gt;&#xA;&lt;li&gt;replay,&lt;/li&gt;&#xA;&lt;li&gt;incident forensics,&lt;/li&gt;&#xA;&lt;li&gt;SLOs,&lt;/li&gt;&#xA;&lt;li&gt;authority,&lt;/li&gt;&#xA;&lt;li&gt;competence,&lt;/li&gt;&#xA;&lt;li&gt;capability acquisition,&lt;/li&gt;&#xA;&lt;li&gt;placement,&lt;/li&gt;&#xA;&lt;li&gt;handoff,&lt;/li&gt;&#xA;&lt;li&gt;stale state,&lt;/li&gt;&#xA;&lt;li&gt;stale intent,&lt;/li&gt;&#xA;&lt;li&gt;commitments,&lt;/li&gt;&#xA;&lt;li&gt;durable workflows,&lt;/li&gt;&#xA;&lt;li&gt;transaction recovery,&lt;/li&gt;&#xA;&lt;li&gt;trust boundaries,&lt;/li&gt;&#xA;&lt;li&gt;multi-agent coordination,&lt;/li&gt;&#xA;&lt;li&gt;and finally an explicit control plane.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;At this point the architecture is complete enough that adding another isolated mechanism would make the series worse rather than better.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 24: How Do You Release Agent Behavior Safely? Add Behavioral Contracts, Compatibility Checks and Promotion Gates</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/24-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 12:09:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/24-chapter/</guid>
      <description>&lt;p&gt;A model change can pass health checks and still break your agent.&lt;/p&gt;&#xA;&lt;p&gt;A prompt change can preserve output schema and still change which tools the agent chooses.&lt;/p&gt;&#xA;&lt;p&gt;A router change can improve average cost and silently starve a specialist that is essential for one high-risk workload.&lt;/p&gt;&#xA;&lt;p&gt;A memory migration can keep every row intact and still change which memories are retrieved.&lt;/p&gt;&#xA;&lt;p&gt;A verifier upgrade can make every dashboard greener while making the system less trustworthy.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 23: Your Infrastructure Is Healthy. Why Is the Agent Getting Worse? Detect Behavioral Drift and Roll Back Safely</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/23-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 12:00:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/23-chapter/</guid>
      <description>&lt;h1 id=&#34;your-infrastructure-is-healthy-why-is-the-agent-getting-worse&#34;&gt;Your Infrastructure Is Healthy. Why Is the Agent Getting Worse?&lt;/h1&gt;&#xA;&lt;p&gt;Your dashboards are green.&lt;/p&gt;&#xA;&lt;p&gt;The model endpoint is responding.&lt;/p&gt;&#xA;&lt;p&gt;The browser workers are alive.&lt;/p&gt;&#xA;&lt;p&gt;The database is healthy.&lt;/p&gt;&#xA;&lt;p&gt;The queue is draining.&lt;/p&gt;&#xA;&lt;p&gt;The verifier service is up.&lt;/p&gt;&#xA;&lt;p&gt;Latency has not exploded.&lt;/p&gt;&#xA;&lt;p&gt;There are no obvious exceptions.&lt;/p&gt;&#xA;&lt;p&gt;And yet the agent is getting worse.&lt;/p&gt;&#xA;&lt;p&gt;It fixes fewer bugs.&lt;/p&gt;&#xA;&lt;p&gt;It retrieves weaker evidence.&lt;/p&gt;&#xA;&lt;p&gt;It escalates to expensive models more often.&lt;/p&gt;&#xA;&lt;p&gt;It chooses the wrong tools more frequently.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 22: What Happens When One Dependency Starts Failing? Add Circuit Breakers, Bulkheads and Graceful Degradation</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/22-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 11:26:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/22-chapter/</guid>
      <description>&lt;h1 id=&#34;what-happens-when-one-dependency-starts-failing&#34;&gt;What Happens When One Dependency Starts Failing?&lt;/h1&gt;&#xA;&lt;p&gt;An advanced agent platform can be working perfectly and still collapse.&lt;/p&gt;&#xA;&lt;p&gt;Not because the planner became confused.&lt;/p&gt;&#xA;&lt;p&gt;Not because the router chose the wrong model.&lt;/p&gt;&#xA;&lt;p&gt;Not because MCTS explored the wrong branch.&lt;/p&gt;&#xA;&lt;p&gt;Because one dependency became unhealthy.&lt;/p&gt;&#xA;&lt;p&gt;Maybe:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the frontier model starts returning 503s,&lt;/li&gt;&#xA;&lt;li&gt;the browser pool starts timing out,&lt;/li&gt;&#xA;&lt;li&gt;the embedding service slows from 80 ms to 8 seconds,&lt;/li&gt;&#xA;&lt;li&gt;the verifier database starts dropping connections,&lt;/li&gt;&#xA;&lt;li&gt;the search API starts rate limiting,&lt;/li&gt;&#xA;&lt;li&gt;a sandbox cluster stops accepting jobs,&lt;/li&gt;&#xA;&lt;li&gt;or an external provider is technically up but so slow that every request consumes a worker for minutes.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Then the retries begin.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 21: What Happens When Too Many Agents Compete for the Same Resources? Add Admission Control, Quotas and Backpressure</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/21-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 11:21:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/21-chapter/</guid>
      <description>&lt;h1 id=&#34;what-happens-when-too-many-agents-compete-for-the-same-resources&#34;&gt;What Happens When Too Many Agents Compete for the Same Resources?&lt;/h1&gt;&#xA;&lt;p&gt;A single agent can look healthy in isolation.&lt;/p&gt;&#xA;&lt;p&gt;It gets a request.&lt;/p&gt;&#xA;&lt;p&gt;It calls a model.&lt;/p&gt;&#xA;&lt;p&gt;It launches a few search branches.&lt;/p&gt;&#xA;&lt;p&gt;It opens a browser.&lt;/p&gt;&#xA;&lt;p&gt;It runs tests.&lt;/p&gt;&#xA;&lt;p&gt;It asks a verifier to check the result.&lt;/p&gt;&#xA;&lt;p&gt;Everything works.&lt;/p&gt;&#xA;&lt;p&gt;Then production traffic arrives.&lt;/p&gt;&#xA;&lt;p&gt;Ten agents start at once.&lt;/p&gt;&#xA;&lt;p&gt;Then fifty.&lt;/p&gt;&#xA;&lt;p&gt;Then five hundred.&lt;/p&gt;&#xA;&lt;p&gt;Now every agent still has a perfectly reasonable local plan.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 20: Can Your Agent Coordinate Across Machines Without Duplicating Work? Use Leases, Idempotency and Fencing</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/20-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 11:13:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/20-chapter/</guid>
      <description>&lt;h1 id=&#34;can-your-agent-coordinate-across-machines-without-duplicating-work&#34;&gt;Can Your Agent Coordinate Across Machines Without Duplicating Work?&lt;/h1&gt;&#xA;&lt;p&gt;A single-process agent can already be complicated.&lt;/p&gt;&#xA;&lt;p&gt;It can plan.&lt;/p&gt;&#xA;&lt;p&gt;It can search.&lt;/p&gt;&#xA;&lt;p&gt;It can launch speculative branches.&lt;/p&gt;&#xA;&lt;p&gt;It can cancel losing work.&lt;/p&gt;&#xA;&lt;p&gt;It can verify outcomes.&lt;/p&gt;&#xA;&lt;p&gt;Then you move that work onto multiple workers.&lt;/p&gt;&#xA;&lt;p&gt;Now a new class of failure appears.&lt;/p&gt;&#xA;&lt;p&gt;Two workers both believe they own the same task.&lt;/p&gt;&#xA;&lt;p&gt;One worker pauses for thirty seconds.&lt;/p&gt;&#xA;&lt;p&gt;Another worker assumes it died and takes over.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 19: Can Your Agent Explore in Parallel Without Creating Chaos? Use Speculative Execution and Early Cancellation</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/19-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 11:10:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/19-chapter/</guid>
      <description>&lt;h1 id=&#34;advanced-agents-from-first-principles-19-can-your-agent-explore-in-parallel-without-creating-chaos-use-speculative-execution-and-early-cancellation&#34;&gt;Advanced Agents From First Principles 19: Can Your Agent Explore in Parallel Without Creating Chaos? Use Speculative Execution and Early Cancellation&lt;/h1&gt;&#xA;&lt;p&gt;A production agent often has more than one useful thing it could do next.&lt;/p&gt;&#xA;&lt;p&gt;It could:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;inspect repository state,&lt;/li&gt;&#xA;&lt;li&gt;run a targeted test,&lt;/li&gt;&#xA;&lt;li&gt;retrieve documentation,&lt;/li&gt;&#xA;&lt;li&gt;ask a second model to critique a candidate,&lt;/li&gt;&#xA;&lt;li&gt;generate an alternative implementation,&lt;/li&gt;&#xA;&lt;li&gt;probe an API,&lt;/li&gt;&#xA;&lt;li&gt;inspect a deployment,&lt;/li&gt;&#xA;&lt;li&gt;or verify an invariant.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If those actions are independent, executing them one by one can be needlessly slow.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 18: What Should Your Agent Observe Next? Use Expected Value of Information</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/18-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 11:06:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/18-chapter/</guid>
      <description>&lt;h1 id=&#34;what-should-your-agent-observe-next&#34;&gt;What Should Your Agent Observe Next?&lt;/h1&gt;&#xA;&lt;p&gt;Your agent is uncertain.&lt;/p&gt;&#xA;&lt;p&gt;That does not tell you what to do.&lt;/p&gt;&#xA;&lt;p&gt;In the previous post we split uncertainty into operational categories:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;interpretation uncertainty,&lt;/li&gt;&#xA;&lt;li&gt;evidence uncertainty,&lt;/li&gt;&#xA;&lt;li&gt;route uncertainty,&lt;/li&gt;&#xA;&lt;li&gt;state uncertainty,&lt;/li&gt;&#xA;&lt;li&gt;tool uncertainty,&lt;/li&gt;&#xA;&lt;li&gt;candidate uncertainty,&lt;/li&gt;&#xA;&lt;li&gt;verification uncertainty.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That is already better than one generic confidence score.&lt;/p&gt;&#xA;&lt;p&gt;But it still leaves a harder question:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Which piece of information is worth buying next?&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;Suppose a coding agent is trying to fix a failing test.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 17: What Is Your Agent Actually Uncertain About?</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/17-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 11:02:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/17-chapter/</guid>
      <description>&lt;h1 id=&#34;what-is-your-agent-actually-uncertain-about&#34;&gt;What Is Your Agent Actually Uncertain About?&lt;/h1&gt;&#xA;&lt;p&gt;An agent reaches a difficult point in a task.&lt;/p&gt;&#xA;&lt;p&gt;It is not sure what to do next.&lt;/p&gt;&#xA;&lt;p&gt;A common implementation responds like this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;uncertain&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;call the model again&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;still uncertain&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;call a stronger model&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;still uncertain&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;search more&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That is not a reasoning strategy.&lt;/p&gt;&#xA;&lt;p&gt;It is a spending strategy.&lt;/p&gt;&#xA;&lt;p&gt;The system is using more computation without identifying what information is actually missing.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 16: Where Should an Agent Spend Its Compute? Build a Dynamic Budget Scheduler</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/16-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 10:53:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/16-chapter/</guid>
      <description>&lt;h1 id=&#34;where-should-an-agent-spend-its-compute&#34;&gt;Where Should an Agent Spend Its Compute?&lt;/h1&gt;&#xA;&lt;p&gt;A production agent has a budget whether you designed one or not.&lt;/p&gt;&#xA;&lt;p&gt;Every model call costs something.&lt;/p&gt;&#xA;&lt;p&gt;Every search node costs something.&lt;/p&gt;&#xA;&lt;p&gt;Every tool invocation costs something.&lt;/p&gt;&#xA;&lt;p&gt;Every verifier costs something.&lt;/p&gt;&#xA;&lt;p&gt;Every retry adds latency.&lt;/p&gt;&#xA;&lt;p&gt;Every escalation to a stronger model spends money and time that could have been used somewhere else.&lt;/p&gt;&#xA;&lt;p&gt;The naive architecture gives every subsystem its own fixed limit:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;MAX_STEPS &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;MAX_SEARCH_NODES &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;32&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;MAX_CRITIC_CALLS &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;3&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;MAX_RETRIES &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;4&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;MAX_VERIFIER_CALLS &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That looks safe.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 15: How Do You Optimize an Agent Policy Without Turning It Into Another Black Box?</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/15-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 10:49:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/15-chapter/</guid>
      <description>&lt;h1 id=&#34;how-do-you-optimize-an-agent-policy-without-turning-it-into-another-black-box&#34;&gt;How Do You Optimize an Agent Policy Without Turning It Into Another Black Box?&lt;/h1&gt;&#xA;&lt;p&gt;By now our advanced agent can do a lot.&lt;/p&gt;&#xA;&lt;p&gt;It can:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;route tasks to different models or specialists,&lt;/li&gt;&#xA;&lt;li&gt;decide whether to search,&lt;/li&gt;&#xA;&lt;li&gt;choose a search budget,&lt;/li&gt;&#xA;&lt;li&gt;decide when to escalate,&lt;/li&gt;&#xA;&lt;li&gt;invoke critics,&lt;/li&gt;&#xA;&lt;li&gt;retry or recover,&lt;/li&gt;&#xA;&lt;li&gt;stop when evidence is strong enough,&lt;/li&gt;&#xA;&lt;li&gt;learn from verified production trajectories,&lt;/li&gt;&#xA;&lt;li&gt;and trace the decisions that produced each outcome.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That creates a new problem.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 14: Can Your Agent Learn From Its Own Trajectories Without Learning the Wrong Lessons?</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/14-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 10:33:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/14-chapter/</guid>
      <description>&lt;p&gt;An advanced agent now leaves behind something extremely valuable:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;evidence.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Not merely chat history.&lt;/p&gt;&#xA;&lt;p&gt;Not merely model outputs.&lt;/p&gt;&#xA;&lt;p&gt;Not merely traces.&lt;/p&gt;&#xA;&lt;p&gt;A sufficiently instrumented system can record:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;what state it was in,&lt;/li&gt;&#xA;&lt;li&gt;what alternatives it considered,&lt;/li&gt;&#xA;&lt;li&gt;which route it selected,&lt;/li&gt;&#xA;&lt;li&gt;what branches it pruned,&lt;/li&gt;&#xA;&lt;li&gt;which model or specialist it escalated to,&lt;/li&gt;&#xA;&lt;li&gt;which tools it called,&lt;/li&gt;&#xA;&lt;li&gt;which critic changed the answer,&lt;/li&gt;&#xA;&lt;li&gt;what verification evidence was produced,&lt;/li&gt;&#xA;&lt;li&gt;how much compute was spent,&lt;/li&gt;&#xA;&lt;li&gt;and whether the final result actually passed.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That immediately suggests a tempting idea:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 13: How Do You Debug an Agent That Made the Wrong Decision? Add Trajectory Observability</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/13-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 10:18:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/13-chapter/</guid>
      <description>&lt;p&gt;An advanced agent fails.&lt;/p&gt;&#xA;&lt;p&gt;You look at the final answer.&lt;/p&gt;&#xA;&lt;p&gt;It is wrong.&lt;/p&gt;&#xA;&lt;p&gt;So you inspect the prompt.&lt;/p&gt;&#xA;&lt;p&gt;The prompt looks reasonable.&lt;/p&gt;&#xA;&lt;p&gt;You inspect the model response.&lt;/p&gt;&#xA;&lt;p&gt;That also looks reasonable.&lt;/p&gt;&#xA;&lt;p&gt;But somewhere between the original request and the final result the system:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;chose the wrong specialist,&lt;/li&gt;&#xA;&lt;li&gt;pruned the branch that contained the right solution,&lt;/li&gt;&#xA;&lt;li&gt;trusted a critic that was wrong,&lt;/li&gt;&#xA;&lt;li&gt;escalated to an expensive model unnecessarily,&lt;/li&gt;&#xA;&lt;li&gt;failed to escalate when it should have,&lt;/li&gt;&#xA;&lt;li&gt;retrieved stale memory,&lt;/li&gt;&#xA;&lt;li&gt;spent most of its budget exploring duplicates,&lt;/li&gt;&#xA;&lt;li&gt;accepted a weak verifier signal,&lt;/li&gt;&#xA;&lt;li&gt;retried the same strategy under a different name,&lt;/li&gt;&#xA;&lt;li&gt;or transformed a local success into a global failure.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The final answer does not tell you which one happened.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 12: Is Your Advanced Agent Actually Better? Benchmark It Under Equal Budgets</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/12-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 10:10:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/12-chapter/</guid>
      <description>&lt;h1 id=&#34;is-your-advanced-agent-actually-better-benchmark-it-under-equal-budgets&#34;&gt;Is Your Advanced Agent Actually Better? Benchmark It Under Equal Budgets&lt;/h1&gt;&#xA;&lt;p&gt;You replace one model call with eight.&lt;/p&gt;&#xA;&lt;p&gt;Success rises from 62% to 74%.&lt;/p&gt;&#xA;&lt;p&gt;Great.&lt;/p&gt;&#xA;&lt;p&gt;Except the new system used:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;eight times the inference,&lt;/li&gt;&#xA;&lt;li&gt;three extra judges,&lt;/li&gt;&#xA;&lt;li&gt;two rounds of critique,&lt;/li&gt;&#xA;&lt;li&gt;a larger context,&lt;/li&gt;&#xA;&lt;li&gt;a stronger verifier,&lt;/li&gt;&#xA;&lt;li&gt;and several times the latency.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Did the architecture improve?&lt;/p&gt;&#xA;&lt;p&gt;Or did you just buy more attempts?&lt;/p&gt;&#xA;&lt;p&gt;This is one of the easiest mistakes to make in advanced agent engineering.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 11: Which Advanced Agent Architecture Should You Use? A Practical Selection Guide</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/11-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 09:20:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/11-chapter/</guid>
      <description>&lt;h1 id=&#34;which-advanced-agent-architecture-should-you-use&#34;&gt;Which Advanced Agent Architecture Should You Use?&lt;/h1&gt;&#xA;&lt;p&gt;You now have too many options.&lt;/p&gt;&#xA;&lt;p&gt;That is a better problem than having none.&lt;/p&gt;&#xA;&lt;p&gt;But it is still a problem.&lt;/p&gt;&#xA;&lt;p&gt;You can add:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;self-consistency,&lt;/li&gt;&#xA;&lt;li&gt;Tree of Thoughts,&lt;/li&gt;&#xA;&lt;li&gt;beam search,&lt;/li&gt;&#xA;&lt;li&gt;Monte Carlo Tree Search,&lt;/li&gt;&#xA;&lt;li&gt;evolutionary search,&lt;/li&gt;&#xA;&lt;li&gt;specialist routing,&lt;/li&gt;&#xA;&lt;li&gt;planner/executor/critic separation,&lt;/li&gt;&#xA;&lt;li&gt;multi-agent debate,&lt;/li&gt;&#xA;&lt;li&gt;adaptive policies,&lt;/li&gt;&#xA;&lt;li&gt;learning from previous runs,&lt;/li&gt;&#xA;&lt;li&gt;or a mixture-of-agents runtime that chooses among several of them.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The temptation is to combine everything.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 08: Is Your Agent Spending the Same Compute on Every Task? Build Adaptive Agents That Escalate Only When Needed</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/08-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/08-chapter/</guid>
      <description>Build adaptive agent runtimes that start cheap, measure uncertainty and failure, and escalate selectively into deeper reasoning, more samples, search, stronger models or specialist review only when the evidence justifies it.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 25: Can You Reproduce an Agent Run Months Later? Add Deterministic Replay and Provenance</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/25-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/25-chapter/</guid>
      <description>&lt;p&gt;A production agent fails on Tuesday.&lt;/p&gt;&#xA;&lt;p&gt;You inspect it on Wednesday and cannot reproduce the failure.&lt;/p&gt;&#xA;&lt;p&gt;Three weeks later someone asks a harder question:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;What exactly did this agent see, which release was running, which tools were called, which evidence was used, and why did the verifier accept the result?&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;If the answer is &amp;ldquo;we have some logs&amp;rdquo;, you do not yet have reproducibility.&lt;/p&gt;&#xA;&lt;p&gt;You have fragments.&lt;/p&gt;&#xA;&lt;p&gt;Advanced agents accumulate hidden variability quickly:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 26: Why Did the Agent Fail? Build an Incident Forensics Pipeline</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/26-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/26-chapter/</guid>
      <description>A practical incident-forensics workflow for advanced agents: reconstruct the run, find the earliest divergence, distinguish root cause from downstream symptoms, measure blast radius, and prove that a remediation would have prevented the incident.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 27: How Reliable Does an Agent Need to Be? Define SLOs and Error Budgets</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/27-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/27-chapter/</guid>
      <description>A practical reliability framework for advanced agents: define verified-success SLOs, false-success ceilings, UNKNOWN budgets, latency and cost targets, then use error-budget burn to decide when to ship capability and when to stop and harden the system.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 28: Where Should You Spend the Next Engineering Hour? Prioritize Reliability by Risk and Expected Return</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/28-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/28-chapter/</guid>
      <description>A practical framework for deciding where to spend the next engineering hour in an advanced-agent system: rank remediation by expected reduction in verified reliability loss, severity, recurrence, blast radius, confidence and implementation cost.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 29: When Should an Agent Stop and Ask a Human? Design Authority Boundaries and Escalation</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/29-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/29-chapter/</guid>
      <description>A practical architecture for agent authority boundaries: decide what an agent may do autonomously, when it must escalate, what evidence a human reviewer needs, and how to avoid turning human approval into rubber-stamping.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 30: Is This Task Outside Your Agent’s Competence? Build Competence Envelopes and OOD Detection</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/30-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/30-chapter/</guid>
      <description>A practical framework for competence envelopes in production agents: distinguish uncertainty from lack of validated competence, detect out-of-distribution tasks, contract authority when evidence is weak, and expand autonomy only through measured evidence.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 31: How Can an Agent Learn New Capabilities Without Expanding Its Own Authority? Use Sandboxed Capability Acquisition</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/31-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/31-chapter/</guid>
      <description>A practical architecture for sandboxed capability acquisition: let agents explore tasks outside their validated competence envelope, accumulate externally verified evidence, and propose capability expansion without ever granting themselves production authority.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 32: Which Capabilities Are Actually Worth Building? Design a Capability Portfolio</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/32-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/32-chapter/</guid>
      <description>A practical framework for deciding which agent capabilities are worth acquiring: rank missing capabilities by user value, verifier availability, reliability risk, acquisition cost, maintenance burden, and the quality of human or deterministic alternatives.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 33: Which Shared Components Actually Unlock More Capability? Build a Capability Dependency Graph</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/33-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/33-chapter/</guid>
      <description>A practical capability-dependency architecture for advanced agents: identify shared primitives that unlock many capabilities, quantify leverage, expose correlated-failure hotspots, and invest in platform components without creating hidden systemic risk.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 34: Where Should This Task Actually Run? Build Capability-Aware Placement Across Models, Providers and Resource Pools</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/34-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/34-chapter/</guid>
      <description>A practical placement architecture for advanced agents: route work across local and frontier models, providers, regions, GPUs, browser pools and specialist runtimes using demonstrated competence, verifier availability, policy constraints, health, cost and latency rather than model prestige.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 35: How Do You Move a Running Agent Between Workers Without Losing Meaning? Build Portable Execution State and Safe Handoff</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/35-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/35-chapter/</guid>
      <description>A practical architecture for portable agent execution state: checkpoint long-running runs, transfer ownership safely across workers and providers, preserve evidence and authority, and reject migrations that cannot be proven compatible.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 36: Is Your Agent Acting on Stale State? Build Temporal Consistency, Freshness Budgets and Conflict Detection</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/36-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/36-chapter/</guid>
      <description>A practical architecture for keeping long-running agents from acting on stale assumptions: classify state by freshness, track version vectors, detect conflicts, revalidate before consequential actions, and force replanning when the world has changed underneath the run.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 37: Is Your Agent Still Solving the Right Task? Build Intent Versioning, Supersession and Cancellation</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/37-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/37-chapter/</guid>
      <description>A production architecture for intent versioning, supersession and cancellation in long-running agents: stop obsolete work, preserve committed effects, reconcile partial actions, and prevent stale goals from retaining authority.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 38: A Plan Is Not a Commitment — Model Goals, Commitments and Executable Work</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/38-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/38-chapter/</guid>
      <description>A practical architecture for separating goals, plans, commitments, tasks and actions in long-running agents so replanning, cancellation, handoff and external obligations remain correct.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 39: How Do You Make an Agent Survive for Days? Build Durable Long-Running Workflows</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/39-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/39-chapter/</guid>
      <description>A practical architecture for long-running agents: keep workflow state durable while treating models and workers as disposable, with explicit waits, retries, timers, human approvals, checkpoints, commitments, cancellation and replay.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 40: Your Agent Changed the World. What Happens When Step Two Fails? Build Transactions, Compensation and Reconciliation</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/40-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/40-chapter/</guid>
      <description>A practical architecture for agent workflows that span systems without a global transaction: classify side effects, prepare carefully, commit with identity, verify externally, compensate when possible, reconcile ambiguity, and never pretend rollback is free.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 41: What Should Your Agent Trust? Build Explicit Security and Trust Boundaries</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/41-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/41-chapter/</guid>
      <description>A practical security architecture for production agents: separate data from authority, classify trust, scope credentials and capabilities, preserve provenance, isolate generated code, resist prompt injection, and keep security-critical decisions outside model control.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 42: How Do Multiple Agents Coordinate Without Becoming a Distributed Argument?</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/42-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/42-chapter/</guid>
      <description>A practical architecture for multi-agent coordination: explicit ownership, delegation, contracts, commitment transfer, shared intent, evidence provenance, conflict handling, deadlock prevention, and independent verification instead of agents merely chatting until they agree.</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 43: Who Controls the Agent? Build an Explicit Agent Control Plane</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/43-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/43-chapter/</guid>
      <description>A production-agent architecture that separates control-plane policy from execution-plane reasoning: intent, competence, authority, placement, budgets, reliability, releases, security and escalation remain enforceable outside the model.</description>
    </item>
    <item>
      <title>You Probably Don&#39;t Need All of This: Build the Minimum Production Agent Architecture</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/45-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/45-chapter/</guid>
      <description>&lt;h1 id=&#34;you-probably-dont-need-all-of-this&#34;&gt;You Probably Don&amp;rsquo;t Need All of This&lt;/h1&gt;&#xA;&lt;p&gt;Over the previous forty-five steps, we built almost every major mechanism you might need in a serious agent platform.&lt;/p&gt;&#xA;&lt;p&gt;Search.&lt;/p&gt;&#xA;&lt;p&gt;Critique.&lt;/p&gt;&#xA;&lt;p&gt;Planning.&lt;/p&gt;&#xA;&lt;p&gt;Memory.&lt;/p&gt;&#xA;&lt;p&gt;Verification.&lt;/p&gt;&#xA;&lt;p&gt;Distributed execution.&lt;/p&gt;&#xA;&lt;p&gt;Leases.&lt;/p&gt;&#xA;&lt;p&gt;Fencing.&lt;/p&gt;&#xA;&lt;p&gt;Backpressure.&lt;/p&gt;&#xA;&lt;p&gt;Behavioral releases.&lt;/p&gt;&#xA;&lt;p&gt;Replay.&lt;/p&gt;&#xA;&lt;p&gt;Incident forensics.&lt;/p&gt;&#xA;&lt;p&gt;SLOs.&lt;/p&gt;&#xA;&lt;p&gt;Competence envelopes.&lt;/p&gt;&#xA;&lt;p&gt;Authority boundaries.&lt;/p&gt;&#xA;&lt;p&gt;Capability portfolios.&lt;/p&gt;&#xA;&lt;p&gt;Placement.&lt;/p&gt;&#xA;&lt;p&gt;Portable execution state.&lt;/p&gt;&#xA;&lt;p&gt;Temporal consistency.&lt;/p&gt;&#xA;&lt;p&gt;Intent versioning.&lt;/p&gt;&#xA;&lt;p&gt;Commitments.&lt;/p&gt;&#xA;&lt;p&gt;Durable workflows.&lt;/p&gt;&#xA;&lt;p&gt;Transaction recovery.&lt;/p&gt;&#xA;&lt;p&gt;Security boundaries.&lt;/p&gt;&#xA;&lt;p&gt;Multi-agent coordination.&lt;/p&gt;&#xA;&lt;p&gt;An explicit control plane.&lt;/p&gt;&#xA;&lt;p&gt;And finally, in Step 44, we assembled those ideas into a complete reference architecture for a production AI agent.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 10: Are You Combining Every Agent Technique Into One Monster? Build a Mixture-of-Agents Runtime</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/10-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:25:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/10-chapter/</guid>
      <description>&lt;p&gt;You have a working agent.&lt;/p&gt;&#xA;&lt;p&gt;Then you add retrieval.&lt;/p&gt;&#xA;&lt;p&gt;Then memory.&lt;/p&gt;&#xA;&lt;p&gt;Then Best-of-N.&lt;/p&gt;&#xA;&lt;p&gt;Then critique and revision.&lt;/p&gt;&#xA;&lt;p&gt;Then Tree of Thoughts.&lt;/p&gt;&#xA;&lt;p&gt;Then MCTS.&lt;/p&gt;&#xA;&lt;p&gt;Then specialist models.&lt;/p&gt;&#xA;&lt;p&gt;Then adversarial review.&lt;/p&gt;&#xA;&lt;p&gt;Then a planner, executor, critic and verifier.&lt;/p&gt;&#xA;&lt;p&gt;Then a stronger model for hard cases.&lt;/p&gt;&#xA;&lt;p&gt;Eventually the architecture starts to look like this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;request&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;planner&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;retrieval&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;reasoning&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Best-of-N&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;critic&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tree of Thoughts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;MCTS&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;frontier model&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;second critic&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;verifier&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Every mechanism may have been individually reasonable.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 09: Can Your Agent Actually Learn From Previous Runs?</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/09-chapter/</link>
      <pubDate>Sun, 09 Aug 2026 00:19:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/09-chapter/</guid>
      <description>&lt;h1 id=&#34;can-your-agent-actually-learn-from-previous-runs&#34;&gt;Can Your Agent Actually Learn From Previous Runs?&lt;/h1&gt;&#xA;&lt;p&gt;A production agent can execute the same class of task hundreds or thousands of times.&lt;/p&gt;&#xA;&lt;p&gt;It can see the same failure repeatedly.&lt;/p&gt;&#xA;&lt;p&gt;It can discover the same workaround repeatedly.&lt;/p&gt;&#xA;&lt;p&gt;It can call the same expensive model repeatedly.&lt;/p&gt;&#xA;&lt;p&gt;And still behave as if every task is the first one it has ever seen.&lt;/p&gt;&#xA;&lt;p&gt;That is not necessarily a memory problem.&lt;/p&gt;&#xA;&lt;p&gt;It may already have excellent memory.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 06: Does One Agent Plan, Execute and Judge Its Own Work? Build a Planner-Executor-Critic Architecture</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/06-chapter/</link>
      <pubDate>Sat, 08 Aug 2026 23:49:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/06-chapter/</guid>
      <description>&lt;h1 id=&#34;does-one-agent-plan-execute-and-judge-its-own-work-build-a-planner-executor-critic-architecture&#34;&gt;Does One Agent Plan, Execute and Judge Its Own Work? Build a Planner-Executor-Critic Architecture&lt;/h1&gt;&#xA;&lt;p&gt;A single model can often do all of these things:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;understand a task,&lt;/li&gt;&#xA;&lt;li&gt;decide what to do,&lt;/li&gt;&#xA;&lt;li&gt;execute a tool call,&lt;/li&gt;&#xA;&lt;li&gt;inspect the result,&lt;/li&gt;&#xA;&lt;li&gt;critique its own work,&lt;/li&gt;&#xA;&lt;li&gt;decide whether it succeeded,&lt;/li&gt;&#xA;&lt;li&gt;and produce the final answer.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That is convenient.&lt;/p&gt;&#xA;&lt;p&gt;It is also a dangerous concentration of responsibilities.&lt;/p&gt;&#xA;&lt;p&gt;If the same component creates the plan, executes it, explains why the result is good, and decides whether the job is complete, then failures become difficult to localize.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 05: Is One Model Doing Everything? Build a Mixture of Experts at the Agent Level</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/05-chapter/</link>
      <pubDate>Sat, 08 Aug 2026 23:41:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/05-chapter/</guid>
      <description>&lt;p&gt;A common agent architecture starts simply:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;request&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;model&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;action&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That simplicity is valuable.&lt;/p&gt;&#xA;&lt;p&gt;It should be your default.&lt;/p&gt;&#xA;&lt;p&gt;But eventually you may notice something strange.&lt;/p&gt;&#xA;&lt;p&gt;The same model is being asked to do everything:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;classify the task,&lt;/li&gt;&#xA;&lt;li&gt;search documentation,&lt;/li&gt;&#xA;&lt;li&gt;reason about code,&lt;/li&gt;&#xA;&lt;li&gt;write SQL,&lt;/li&gt;&#xA;&lt;li&gt;review a patch,&lt;/li&gt;&#xA;&lt;li&gt;summarize logs,&lt;/li&gt;&#xA;&lt;li&gt;judge another model,&lt;/li&gt;&#xA;&lt;li&gt;decide whether a deployment is safe,&lt;/li&gt;&#xA;&lt;li&gt;and answer simple questions that did not require an expensive model in the first place.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;At that point the problem may no longer be:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 04: Does Your Agent Prune Good Ideas Too Early? Use Monte Carlo Tree Search for Long-Horizon Reasoning</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/04-chapter/</link>
      <pubDate>Sat, 08 Aug 2026 23:37:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/04-chapter/</guid>
      <description>&lt;p&gt;A common failure in search-based agents is easy to miss.&lt;/p&gt;&#xA;&lt;p&gt;The agent generates several plausible branches.&lt;/p&gt;&#xA;&lt;p&gt;It scores them.&lt;/p&gt;&#xA;&lt;p&gt;One branch looks weak.&lt;/p&gt;&#xA;&lt;p&gt;So the runtime prunes it.&lt;/p&gt;&#xA;&lt;p&gt;Later, you discover that the discarded branch was the only one that could have reached the correct solution.&lt;/p&gt;&#xA;&lt;p&gt;The problem was not generation.&lt;/p&gt;&#xA;&lt;p&gt;The problem was not necessarily the model.&lt;/p&gt;&#xA;&lt;p&gt;The problem was &lt;strong&gt;search allocation&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The agent spent too much compute exploiting what looked good early and too little compute exploring alternatives whose value only became visible later.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 03: Does Your Agent Commit to a Bad Reasoning Path Too Early? Build a Tree of Thoughts</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/03-chapter/</link>
      <pubDate>Sat, 08 Aug 2026 23:25:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/03-chapter/</guid>
      <description>&lt;p&gt;A reasoning agent can fail even when every individual step looks plausible.&lt;/p&gt;&#xA;&lt;p&gt;The problem is often not that the model cannot produce a good line of reasoning.&lt;/p&gt;&#xA;&lt;p&gt;The problem is that it commits too early.&lt;/p&gt;&#xA;&lt;p&gt;It chooses one interpretation, one hypothesis, one plan, or one next step and then spends the rest of the run trying to make that decision work.&lt;/p&gt;&#xA;&lt;p&gt;That gives us a common failure pattern:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;problem&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;first plausible thought&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;second thought conditioned on the first&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;third thought conditioned on both&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;...&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;confident answer built on an early mistake&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If the first branch was wrong, every later step inherits the error.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 02: Why Does My Reasoning Agent Give a Different Answer Every Time? Use Self-Consistency Without Confusing Consensus With Truth</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/02-chapter/</link>
      <pubDate>Sat, 08 Aug 2026 22:44:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/02-chapter/</guid>
      <description>&lt;p&gt;A reasoning agent gives you one answer.&lt;/p&gt;&#xA;&lt;p&gt;You run it again.&lt;/p&gt;&#xA;&lt;p&gt;It gives you another.&lt;/p&gt;&#xA;&lt;p&gt;You change nothing important:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;same task,&lt;/li&gt;&#xA;&lt;li&gt;same tools,&lt;/li&gt;&#xA;&lt;li&gt;same model family,&lt;/li&gt;&#xA;&lt;li&gt;same broad context.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Yet the result changes.&lt;/p&gt;&#xA;&lt;p&gt;That is not necessarily a bug.&lt;/p&gt;&#xA;&lt;p&gt;A probabilistic model is allowed to produce more than one plausible trajectory.&lt;/p&gt;&#xA;&lt;p&gt;The engineering question is different:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;How should an agent system use that variation?&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;One common answer is &lt;strong&gt;self-consistency&lt;/strong&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 01: Does Your AI Agent Fail on Complex Reasoning Tasks? Treat Chain of Thought as Computation, Not Proof</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/01-chapter/</link>
      <pubDate>Sat, 08 Aug 2026 22:35:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/01-chapter/</guid>
      <description>&lt;p&gt;Most developers first encounter chain of thought as a prompting trick:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Think step by step.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That framing is too shallow for agent engineering.&lt;/p&gt;&#xA;&lt;p&gt;For an advanced agent, the useful idea is not that the model should produce a long explanation. The useful idea is that a difficult task may benefit from &lt;strong&gt;intermediate computational state&lt;/strong&gt; before the system commits to an action or answer.&lt;/p&gt;&#xA;&lt;p&gt;That is a very different claim.&lt;/p&gt;&#xA;&lt;p&gt;A reasoning trace can help a system decompose a problem, preserve intermediate conclusions, identify missing information, decide what to verify next, and expose places where search or tools should be used.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 00: When Should You Use an Advanced Agent Architecture?</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/00-chapter/</link>
      <pubDate>Sat, 08 Aug 2026 22:27:00 +0100</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/00-chapter/</guid>
      <description>&lt;h1 id=&#34;advanced-agents-from-first-principles-00-when-should-you-use-an-advanced-agent-architecture&#34;&gt;Advanced Agents From First Principles 00: When Should You Use an Advanced Agent Architecture?&lt;/h1&gt;&#xA;&lt;p&gt;You built an agent.&lt;/p&gt;&#xA;&lt;p&gt;It can:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;call tools,&lt;/li&gt;&#xA;&lt;li&gt;maintain state,&lt;/li&gt;&#xA;&lt;li&gt;plan,&lt;/li&gt;&#xA;&lt;li&gt;revise its own work,&lt;/li&gt;&#xA;&lt;li&gt;search over alternatives,&lt;/li&gt;&#xA;&lt;li&gt;remember useful information,&lt;/li&gt;&#xA;&lt;li&gt;and verify whether the requested outcome actually happened.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Now the temptation begins.&lt;/p&gt;&#xA;&lt;p&gt;You add another model.&lt;/p&gt;&#xA;&lt;p&gt;Then a critic.&lt;/p&gt;&#xA;&lt;p&gt;Then a planner.&lt;/p&gt;&#xA;&lt;p&gt;Then a judge.&lt;/p&gt;&#xA;&lt;p&gt;Then a router.&lt;/p&gt;&#xA;&lt;p&gt;Then three specialist agents.&lt;/p&gt;&#xA;&lt;p&gt;Then a tree search.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advanced Agents From First Principles 07: Do Your Agents Agree Too Easily? Use Adversarial Review and Multi-Agent Debate Without Confusing Debate With Truth</title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/07-chapter/</link>
      <pubDate>Sat, 08 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/07-chapter/</guid>
      <description>&lt;p&gt;A multi-agent system can look sophisticated while every agent quietly repeats the same mistake.&lt;/p&gt;&#xA;&lt;p&gt;That is one of the most dangerous failure modes in advanced agent architectures.&lt;/p&gt;&#xA;&lt;p&gt;You ask one model to solve the problem.&lt;/p&gt;&#xA;&lt;p&gt;Then you ask a second model to review it.&lt;/p&gt;&#xA;&lt;p&gt;Then a third model judges the disagreement.&lt;/p&gt;&#xA;&lt;p&gt;Three calls later, the system sounds more confident than before.&lt;/p&gt;&#xA;&lt;p&gt;But if all three agents share the same blind spot, the extra machinery has not created independent evidence.&lt;/p&gt;</description>
    </item>
    <item>
      <title></title>
      <link>http://programmer.ie/books/advanced-agents-from-first-principles/_work/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/advanced-agents-from-first-principles/_work/</guid>
      <description>&lt;h1 id=&#34;advanced-agents-from-first-principles--working-ledger&#34;&gt;Advanced Agents From First Principles — Working Ledger&lt;/h1&gt;&#xA;&lt;h2 id=&#34;book-intention&#34;&gt;Book intention&lt;/h2&gt;&#xA;&lt;p&gt;Extend the first-principles agent model into the harder engineering problems that appear once agents become long-running, stateful, orchestrated, evaluated, and operational.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Book state:&lt;/strong&gt; NOT REVIEWED&lt;br&gt;&#xA;&lt;strong&gt;Review ladder:&lt;/strong&gt; &lt;code&gt;UNREVIEWED → STRUCTURE OK → CONTENT OK → PROSE OK → DONE&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;bootstrap-note&#34;&gt;Bootstrap note&lt;/h2&gt;&#xA;&lt;p&gt;This book currently contains &lt;strong&gt;46 chapter files (&lt;code&gt;00&lt;/code&gt;–&lt;code&gt;45&lt;/code&gt;)&lt;/strong&gt;. In this first editorial-state pass, every chapter is registered below so none can disappear from the review queue. Titles and chapter jobs have &lt;strong&gt;not&lt;/strong&gt; been guessed from filenames; &lt;code&gt;—&lt;/code&gt; means “verify from the chapter front matter when first opened.” Once this book becomes active, populate those cells as part of the first pass.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
