<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Distributed-Systems on Programmer.ie: Modern AI programming</title>
    <link>http://programmer.ie/tags/distributed-systems/</link>
    <description>Recent content in Distributed-Systems on Programmer.ie: Modern AI programming</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 09 Aug 2026 16:09:00 +0100</lastBuildDate>
    <atom:link href="http://programmer.ie/tags/distributed-systems/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/post/advanced-agents-from-first-principles-44/</link>
      <pubDate>Sun, 09 Aug 2026 16:09:00 +0100</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-44/</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 22: What Happens When One Dependency Starts Failing? Add Circuit Breakers, Bulkheads and Graceful Degradation</title>
      <link>http://programmer.ie/post/advanced-agents-from-first-principles-22/</link>
      <pubDate>Sun, 09 Aug 2026 11:26:00 +0100</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-22/</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/post/advanced-agents-from-first-principles-21/</link>
      <pubDate>Sun, 09 Aug 2026 11:21:00 +0100</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-21/</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/post/advanced-agents-from-first-principles-20/</link>
      <pubDate>Sun, 09 Aug 2026 11:13:00 +0100</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-20/</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 26: Why Did the Agent Fail? Build an Incident Forensics Pipeline</title>
      <link>http://programmer.ie/post/advanced-agents-from-first-principles-26/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-26/</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 33: Which Shared Components Actually Unlock More Capability? Build a Capability Dependency Graph</title>
      <link>http://programmer.ie/post/advanced-agents-from-first-principles-33/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-33/</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/post/advanced-agents-from-first-principles-34/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-34/</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/post/advanced-agents-from-first-principles-35/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-35/</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/post/advanced-agents-from-first-principles-36/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-36/</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/post/advanced-agents-from-first-principles-37/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-37/</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/post/advanced-agents-from-first-principles-38/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-38/</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/post/advanced-agents-from-first-principles-39/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-39/</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/post/advanced-agents-from-first-principles-40/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-40/</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 42: How Do Multiple Agents Coordinate Without Becoming a Distributed Argument?</title>
      <link>http://programmer.ie/post/advanced-agents-from-first-principles-42/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-42/</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/post/advanced-agents-from-first-principles-43/</link>
      <pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate>
      <guid>http://programmer.ie/post/advanced-agents-from-first-principles-43/</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>
  </channel>
</rss>
