<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: getletset</title>
    <description>The latest articles on DEV Community by getletset (@getletset).</description>
    <link>https://dev.to/getletset</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4269154%2Fd71870d7-95f4-45a9-9391-e925b4a45eea.png</url>
      <title>DEV Community: getletset</title>
      <link>https://dev.to/getletset</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/getletset"/>
    <language>en</language>
    <item>
      <title>It's Not the Model: Five Checks That Catch Agent Workflows Before Production</title>
      <dc:creator>getletset</dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:42:17 +0000</pubDate>
      <link>https://dev.to/getletset/its-not-the-model-five-checks-that-catch-agent-workflows-before-production-1e8n</link>
      <guid>https://dev.to/getletset/its-not-the-model-five-checks-that-catch-agent-workflows-before-production-1e8n</guid>
      <description>&lt;p&gt;&lt;strong&gt;# Why Most AI Agent Workflows Break in Production — and the Five Checks That Catch It Early&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Everyone has a demo that works. Very few have a workflow that survives Tuesday.&lt;/p&gt;

&lt;p&gt;I've read through a lot of agent pipelines — internal ones, open-source ones, the ones people post asking "why does this randomly do X". The failure patterns repeat with almost boring regularity. What's more interesting: &lt;strong&gt;almost none of them are model capability problems.&lt;/strong&gt; They're contract problems. Swapping in a stronger model fixes exactly none of them.&lt;/p&gt;

&lt;p&gt;Here are the five I see most often, and the check that catches each one before it reaches production.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## 1. Context drift&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A long-running task accumulates its own history. By step 30, the agent is reasoning from a summary of a summary of step 4, and the original constraint — "don't touch the billing schema" — has quietly evaporated. Nothing errors. The agent just starts solving a slightly different problem than the one you gave it.&lt;/p&gt;

&lt;p&gt;The usual fix is "better prompting", which is the wrong layer. Prompts don't survive compression.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; does any step re-assert the hard constraints from the original request, independently of the conversation history? If a constraint only exists inside the message log, it is already gone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## 2. Unverified self-assessment&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The agent writes the code, then writes the test, then reports that the test passes. This is not verification; it's a closed loop with one participant. It will report success with total confidence, and it will be wrong at a rate that stays invisible to you because you only ever see the successes that happened to be real.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; can you name the independent verifier? It has to be something the generator cannot influence — a deterministic assertion, a different model with no access to the reasoning trace, or a human gate. If the answer is "the agent checks its work", you have no verifier.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## 3. Silent tool failure&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A tool returns empty. An API returns 200 with an error body. A search returns zero results because the query was malformed. The agent treats all three as "completed, nothing to report" and keeps building on the void. Ten steps later you get a fluent, well-structured, entirely fictional answer.&lt;/p&gt;

&lt;p&gt;This one is brutal because there is no exception to catch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; does every tool have a success/failure contract that is distinct from "returned something"? Empty is not success. 200 is not success if the body says otherwise. If you can't state a tool's failure condition in one sentence, you don't know when it's lying to you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## 4. Retry amplification&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Non-idempotent side effects plus automatic retries equals duplicate orders, duplicate emails, duplicate charges. The agent sees a timeout, retries, and the first attempt was actually fine. Now you have two.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; classify every side effect as reversible / compensable / irreversible, and put the irreversible ones behind an idempotency key or a human confirmation. "It usually works" is not a classification.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## 5. Over-broad agency&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The agent has write access to everything, because scoping permissions is tedious. Then one plausible-sounding misinterpretation reaches production data. The damage isn't proportional to the bug — it's proportional to the permissions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; for each credential the agent holds, can you name the task that requires it? If not, remove it. Least privilege is cheap; incident response isn't.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;## The pattern&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Notice what these have in common. Every one is a missing boundary: a missing constraint re-assertion, a missing independent verifier, a missing failure contract, a missing idempotency key, a missing permission scope.&lt;/p&gt;

&lt;p&gt;Boundaries are unglamorous. They don't demo. They don't make it into the launch thread. But they are the entire difference between a workflow that runs and a workflow that mostly runs.&lt;/p&gt;

&lt;p&gt;The temptation, when an agent misbehaves, is to upgrade the model. Notice that a stronger model fails these five checks in exactly the same way — faster, and with more convincing prose.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## The 15-minute audit&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before shipping any agent workflow, answer these five in writing. If you can't, you've just found your next task.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Where do the original hard constraints get re-asserted, independent of the message history?&lt;/li&gt;
&lt;li&gt;Who is the independent verifier, and what can it not see?&lt;/li&gt;
&lt;li&gt;For each tool: what does failure look like, and how is it distinguished from empty success?&lt;/li&gt;
&lt;li&gt;Which side effects are irreversible, and what stops a retry from duplicating them?&lt;/li&gt;
&lt;li&gt;For each credential the agent holds: which task requires it?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Five questions. Most workflows fail two or three of them.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Next in this series: how to actually measure the failure rate instead of guessing at it — the harness, the metrics, and what "reliable enough" means for a task that has no test suite.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>llm</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
