Why Autonomous AI Agents Converge on Fixed Workflows in Production
Autonomous agents are supposed to plan their own steps, but many teams end up hard-coding the same chain once it reaches production. This article explains the two costs that drive that shift: the price of irreversible actions and the reliability budget of multi-step chains. It covers why per-step accuracy compounds multiplicatively, how to split deterministic work from judgment work, what replayability requires, and what a practical three-layer "sandwich" architecture looks like — plus the cases where leaving planning to the model still makes sense.
Give a large model tools, let it decompose the task, let it decide the next step — that sounds like the standard shape of an agent. Yet after shipping to production, plenty of teams collapse the same chain into fixed steps: input validation, a state machine, retries, and human approval points all live in code, and the model makes judgments at only a few nodes. This is not the model getting dumber. Production simply opens up two accounts that were never properly settled before: the cost of irreversible actions, and the reliability budget left after chaining multiple steps together.
A Single Step Looks Stable; the Chain Does Not
Suppose each step is independently correct 95% of the time. In a demo that number usually looks “good enough” — sample a few cases and most of them pass. But once the steps are strung into a chain where all of them must succeed, the probabilities multiply rather than add. At twenty steps, 0.95 to the twentieth power is about 0.36, meaning the whole chain runs end to end without a single error only about a third of the time. And when steps depend on each other — the later one consumes the output of the earlier one — errors get amplified instead of averaged out.
This is the reliability budget. The budget is not “how high is the model’s average score,” but “given a failure rate the business can tolerate, how many non-deterministic steps can this workflow afford?” Actions like collection, deduplication, counting, and log writing have clear rules and enumerable inputs and outputs; a script can push single-step accuracy close to deterministic, and failures can be replayed. Handing those same steps back to the model to “think through again” means voluntarily taking a 0.95 discount at a position that could have been near 1 — and after twenty steps that discount looks very bad.
A short piece of code is enough to check the arithmetic instead of estimating out loud:
def chain_success(p: float, n: int) -> float:return p ** nprint(round(chain_success(0.95, 20), 3)) # about 0.358print(round(chain_success(0.99, 20), 3)) # about 0.818
Raising per-step accuracy from 0.95 to 0.99 lifts the twenty-step chain success rate from roughly 36% to roughly 82%. So the optimization direction is usually not giving the planner a few more rounds of free reasoning. It is reducing the number of non-deterministic steps and making the remaining failures detectable and compensable, rather than silently written into the outside world.
Irreversible Actions Cannot Be Fixed by “Try Again”
Retrying is usually reasonable for idempotent, rollback-able internal state: writing the same deduplication key, overwriting the same intermediate result into object storage, incrementing a failure counter. Re-execution should not produce a second business fact. Public side effects are different. Likes, published comments, outbound notifications, customer-visible status changes, triggering a charge or closing a ticket — once successful, they stay somewhere other people can see. A mistake is not an exception to re-run; it leaves a trace that needs human explanation, many traces cannot be cleaned up completely, and retracting one is itself another public action.
So the division of labor should follow the reversibility of the action, not whether the model “talks like a human”:
- Scripts own determinism: idempotency keys, deduplication, counting, state transitions, logs, compensation and rollback.
- The model owns judgment: which candidate to pick, what score to assign, what tone to use, whether to escalate to a human.
- If “submitting” is externally visible, the workflow should perform it after validation passes — not have the model call it in passing during reasoning.
A nightly content operations flow illustrates the boundary well. The chain is roughly: pull messages, collect candidate questions, deduplicate, decide whether to engage, draft a reply, write run logs, and roll up a daily or weekly report. The first half and the second half are mostly fixed data flows; the parts that genuinely need language capability are “is this worth responding to” and “what should the reply say.” If the model re-decides every time what to search first, where to store things, and which deduplication rule to use, the business does not become more correct — it just reinvents rules that had already converged, and each reinvention comes out slightly different.
What teams hesitate to hand over is often not the pen, but the act of submitting the exam paper. A draft can be wrong; a wrong submission becomes an external fact.
If You Cannot Replay It, It Cannot Go to Production
When a script fails, the log typically has the step name, an input summary, the error type, and a line number, and the on-call engineer can replay the same input. When autonomous planning fails, the scene often holds nothing but “the model thought this was the right thing to do at the time,” plus a long list of tool calls. Without a stable control flow there is no stable breakpoint: the same incident might come from the planner drifting, illegal tool arguments, a truncated context, or dirty data from the previous step being treated as fact.
Replayability requires at least four things. First, every step has a name and a version, and its inputs and outputs can be persisted. Second, branches are explicit rather than hidden inside a free-text plan. Third, failures are classified — validation failure, timeout, downstream rejection, model refusal, unparseable output — because the handling strategy differs for each. Fourth, key decisions leave behind their basis, such as candidate IDs, scores, and matched rules, not just a final sentence of natural language.
What a workflow engine or a home-grown state machine provides is mainly turning these requirements into structure, not replacing the model. Durable execution, timeouts, retry policies, human nodes, and compensating transactions solve the problem of “the process as a program.” A model node is just one kind of activity among them: constrained input, output that must pass schema validation, and a predefined branch on failure instead of a brand-new plan invented on the spot.
Once the Business Converges, Flexibility Becomes a Cost
Using the model to clear unknown territory during exploration is reasonable. Requirements are still shifting, fields are unstable, rules cannot be articulated, and hard-coding would mean repeated rework. Letting the model look a few steps further and try a few more tool combinations buys you speed of requirement discovery.
Once the path stabilizes — say the nightly flow is a fixed eight steps — continuing to let the model decide the order and the storage location makes the cost show up in three ways. Latency grows, because every step has to be planned. Spend grows, because the same already-known rules are reasoned through repeatedly. Results drift, because small differences in temperature, prompts, and context change the control flow, and monitoring can no longer compare success rates for “the same chain.”
A practical test: if across several consecutive iterations the human corrections are not about judgment criteria but about the model changing step order or storage location again, the control flow should be frozen. If the judgment criteria are still changing, keep the change confined to the prompts, scoring dimensions, and thresholds of the judgment nodes, and do not let it spread across the whole graph.
The Common Shape Is a Sandwich, Not Either Extreme
“Revert everything to hard-coding” and “plan everything autonomously” are both rare. The steadier option is a three-layer structure.
The bottom layer is the fast path. When the input is valid, a rule matches, and risk is low, scripts complete collection, deduplication, counting, and persistence directly without calling the model. The middle layer is judgment. Only samples the fast path cannot decide reach the model: too many candidates, tone that needs care, conflicting rules. The model’s output must be a structured result — an option ID, a score, a reason label — with a timeout and a parse-failure branch. The top layer is the fallback. Low confidence, tool exceptions, output that violates the schema, or an action in the irreversible set route to human confirmation, a delayed queue, or a safe refusal, rather than letting the model keep looping autonomously.
A minimal control flow can express this boundary; the point is that the model has no permission to modify the graph:
def run(item):record = ingest_and_dedup(item) # deterministicif rule_covers(record):return apply_rule(record) # fast pathdecision = model_judge(record) # judgment onlyif not decision.ok or decision.score < THRESHOLD:return queue_for_human(record, decision)if decision.action in IRREVERSIBLE:return require_approval(record, decision)return commit(record, decision) # the workflow commits, not the model
Once the graph is fixed, optimization becomes actionable: track the failure rate of each node, the parse-failure rate of model nodes, the share of human fallbacks, and the number of false triggers of irreversible actions. Those metrics tell you to raise a threshold, extract a rule out of the model, or leave a class of samples permanently in the human queue. Free planning has no stable nodes, so those metrics do not exist in the first place.
When Planning Should Still Stay with the Model
Not every scenario should be collapsed into a fixed graph. When the task space is open, the steps cannot be enumerated in advance, and failures are disposable and leave no external trace, multi-step autonomous planning still has value — internal draft exploration, one-off data reconnaissance, research-style Q&A. The test can be very concrete: is failure disposable, can the action be replayed idempotently, has the step set been stable for weeks, and can an incident be replayed without guessing “what the model was thinking at the time.” If either “not disposable” or “not replayable” holds, submission authority belongs to the workflow, not the planner.
The analogy from art holds too. A talented person decides what to paint and often produces something good; once the work is delivered publicly, inspiration alone cannot decide “this counts as finished now.” The model in production is the same: let it judge on the canvas, let the program commit at the gate. Once the accounts are settled, so-called reverting to workflows is really putting determinism, reversibility, and auditability back where they belonged all along.
