<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Reliability on David Parry</title><link>https://davidparry.com/tags/reliability/</link><description>Recent content in Reliability on David Parry</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 23 Oct 2026 13:15:00 -0500</lastBuildDate><atom:link href="https://davidparry.com/tags/reliability/index.xml" rel="self" type="application/rss+xml"/><item><title>🛠️ AI Agents Are Software. Engineering Still Applies.</title><link>https://davidparry.com/blog/2026/10/23/ai-agents-are-software-engineering-still-applies/</link><pubDate>Fri, 23 Oct 2026 13:15:00 -0500</pubDate><guid>https://davidparry.com/blog/2026/10/23/ai-agents-are-software-engineering-still-applies/</guid><description>&lt;img src="https://davidparry.com/images/ai-agents-are-software-engineering-still-applies-linkedin.jpg" alt="A vintage-style ad under the banner SAME TRUSTED TOOLS. NEW LOOP. shows a smiling engineer in a cardigan pointing proudly at a worn red toolbox marked TRIED AND TRUE, where a friendly robot holding a looping arrow sits among a circuit breaker, a timer, an APPROVED stamp, a checklist clipboard, a padlock, and an OWNER nameplate" style="display: block; margin: 0 auto; width: 70%; max-width: 560px;" /&gt;
&lt;blockquote&gt;
&lt;p&gt;Agents are software. Maintain them like software.&lt;/p&gt;</description><content:encoded>&lt;img src="https://davidparry.com/images/ai-agents-are-software-engineering-still-applies-linkedin.jpg" alt="A vintage-style ad under the banner SAME TRUSTED TOOLS. NEW LOOP. shows a smiling engineer in a cardigan pointing proudly at a worn red toolbox marked TRIED AND TRUE, where a friendly robot holding a looping arrow sits among a circuit breaker, a timer, an APPROVED stamp, a checklist clipboard, a padlock, and an OWNER nameplate" style="display: block; margin: 0 auto; width: 70%; max-width: 560px;" /&gt;
&lt;blockquote&gt;
&lt;p&gt;Agents are software. Maintain them like software.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That line comes from Ethan Lo and Jason Jiang&amp;rsquo;s talk, &lt;em&gt;Is Your Agent Any Good? Lessons From a Wide and a Deep Deployment&lt;/em&gt;, at AGNTCon + MCPCon North America 2026. I keep coming back to it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Agents need more checks, more verification, and more guardrails than a fixed workflow, because they choose their own next step. But the checks are the ones we have always used: limits, validation, approval gates, tests, and an owner.&lt;/strong&gt; What is new is the component we apply them to.&lt;/p&gt;
&lt;p&gt;I have never shipped a production loop that ran without a limit, a timeout, or someone watching, and I doubt you have either. We have been running stored programs since the Manchester Baby&amp;rsquo;s first run on &lt;a href="https://www.cs.manchester.ac.uk/about/history-and-heritage/" target="_blank" rel="noopener noreferrer"&gt;21 June 1948&lt;/a&gt;, and none of that experience stops applying because the next step now comes from a model.&lt;/p&gt;
&lt;h2 id="the-loop-was-never-free"&gt;The loop was never free&lt;/h2&gt;
&lt;p&gt;Anthropic draws the architectural line: &lt;a href="https://www.anthropic.com/research/building-effective-agents" target="_blank" rel="noopener noreferrer"&gt;workflows follow predefined code paths, while agents let the LLM dynamically direct their own process and tool use&lt;/a&gt;. The same article says agents often pause for human feedback at checkpoints, include stopping conditions such as a maximum number of iterations, and warrant extensive testing in sandboxed environments along with appropriate guardrails.&lt;/p&gt;
&lt;p&gt;That reads like any operations checklist. The model changes which step runs next. It does not change who is responsible for what that step does.&lt;/p&gt;
&lt;h2 id="embabel-is-the-same-engineering-rearranged"&gt;Embabel is the same engineering, rearranged&lt;/h2&gt;
&lt;p&gt;I wrote earlier about &lt;a href="https://davidparry.com/blog/2026/07/16/from-prompting-to-planning-what-embabel-taught-me-about-agents/"&gt;what Embabel taught me&lt;/a&gt;. I went back to its &lt;a href="https://docs.embabel.com/embabel-agent/guide/1.0.0/" target="_blank" rel="noopener noreferrer"&gt;1.0 documentation&lt;/a&gt; for this post, and what struck me is how little of it is invented. Nearly every control maps to something we already did:&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Embabel mechanism&lt;/th&gt;
					&lt;th&gt;The engineering we already knew&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;A planner that replans after each action, citing the OODA loop&lt;/td&gt;
					&lt;td&gt;A control loop that observes state before every decision&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Action inputs and outputs as typed preconditions and effects&lt;/td&gt;
					&lt;td&gt;Types and contracts that make an operation legal only when its inputs exist&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;canRerun&lt;/code&gt; defaults to &lt;code&gt;false&lt;/code&gt;; an action runs once per process unless you opt in&lt;/td&gt;
					&lt;td&gt;Run-once semantics and explicit retry policy&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;EarlyTerminationPolicy&lt;/code&gt; limits a run by action count or budget; the tool loop defaults to 20 iterations&lt;/td&gt;
					&lt;td&gt;Circuit breakers, quotas, and watchdog timers&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Guardrails return a &lt;code&gt;CRITICAL&lt;/code&gt; result that blocks an LLM call before it happens&lt;/td&gt;
					&lt;td&gt;Validation at the boundary&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;A budget guardrail reads a spend counter and blocks the next call&lt;/td&gt;
					&lt;td&gt;Rate limiting and cost controls&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;WAITING&lt;/code&gt; and &lt;code&gt;WaitFor&lt;/code&gt; pause a process for a person&lt;/td&gt;
					&lt;td&gt;Approval gates&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;A &lt;code&gt;STUCK&lt;/code&gt; state and a &lt;code&gt;StuckHandler&lt;/code&gt; for when no plan exists&lt;/td&gt;
					&lt;td&gt;Failure states with an explicit handler&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;@SecureAgentTool&lt;/code&gt; applies a Spring Security expression to an exposed action&lt;/td&gt;
					&lt;td&gt;Authorization checks in the service&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;readOnly&lt;/code&gt; actions with no external side effects&lt;/td&gt;
					&lt;td&gt;Separating reads from writes&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Even the planner is borrowed. The docs point to GOAP, OODA, and Domain-Driven Design as background. The docs also say that for workflows with defined outputs, branching, or loops, a deterministic, typesafe planner is more predictable than LLM-driven orchestration. That is the old advice, applied to a new component: keep the model inside a small, well-lit step and let ordinary code own the rest.&lt;/p&gt;
&lt;p&gt;None of this makes Embabel unimportant. It is a good example of experienced engineers packaging familiar controls so that you don&amp;rsquo;t have to rebuild them for every agent.&lt;/p&gt;
&lt;h2 id="the-refund-that-succeeds-after-the-timeout"&gt;The refund that succeeds after the timeout&lt;/h2&gt;
&lt;p&gt;Here is the kind of problem those controls exist for. An agent calls a refund service. The service issues the refund, but the response is lost, and the agent sees a timeout. Should it retry?&lt;/p&gt;
&lt;p&gt;Asking the model to be careful does not answer that. A retry could pay twice. A restart could lose the record of the first attempt. A freshly generated request ID could make a duplicate look like a new operation.&lt;/p&gt;
&lt;p&gt;This is the oldest distributed-systems problem there is. Amazon&amp;rsquo;s Builders&amp;rsquo; Library describes the standard fix: a &lt;a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/" target="_blank" rel="noopener noreferrer"&gt;caller-provided request identifier that makes retries idempotent&lt;/a&gt;. The agent&amp;rsquo;s retry is a distributed-systems retry, and it needs the same contract.&lt;/p&gt;
&lt;h2 id="the-checklist-we-already-had"&gt;The checklist we already had&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Define the result.&lt;/strong&gt; Name the person who can judge whether the task was done correctly, along with acceptable errors and when to escalate. A fluent answer is not evidence the operation succeeded. A valid JSON refund request can still be the wrong refund. Schema validation checks structure. Business rules and evidence decide whether to proceed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Enforce permissions where the action happens.&lt;/strong&gt; Validate arguments and check the caller&amp;rsquo;s authority in the service that executes the action. A prompt describing a permission is not an access check. MCP says the same: its tools specification &lt;a href="https://modelcontextprotocol.io/specification/2026-07-28/server/tools" target="_blank" rel="noopener noreferrer"&gt;requires servers to validate inputs, implement access controls, and rate limit invocations&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Design for recovery.&lt;/strong&gt; Persist enough state to resume or reconcile interrupted work. Decide which operations can be retried, which need duplicate protection, and which need compensation or a human. Rolling back a release does not undo what it already did.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Test the software and evaluate the behavior.&lt;/strong&gt; Keep unit, integration, contract, and security tests. Add representative tasks that check the model&amp;rsquo;s choices and the resulting system state, and run repeated trials because outputs vary. A prompt, model, or retrieval change can alter behavior with no code change, so evaluate those too. Anthropic suggests &lt;a href="https://www.anthropic.com/research/demystifying-evals-for-ai-agents" target="_blank" rel="noopener noreferrer"&gt;20 to 50 simple tasks drawn from real failures&lt;/a&gt; as a starting point. That helps catch regressions. It is not a reliability guarantee.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Name the owner.&lt;/strong&gt; Give the system a release process, an on-call owner, and a recovery procedure. Log model and configuration versions, tool calls, authorization decisions, and state changes, protecting sensitive data.&lt;/p&gt;
&lt;h2 id="use-what-you-already-have"&gt;Use what you already have&lt;/h2&gt;
&lt;p&gt;Researchers and ML engineers built the models, and their expertise is still needed to measure how behavior changes. Domain experts still define what a correct result is. Software engineers bring the limits, contracts, recovery, and accountability.&lt;/p&gt;
&lt;p&gt;An agent is a loop that picks its own next step. We already know how to put bounds, checks, and an owner around a loop like that. Don&amp;rsquo;t invent new controls for agents. Apply the ones you already trust.&lt;/p&gt;</content:encoded></item></channel></rss>