The industry has a name for this mistake. The top ten for LLM applications (OWASP, 2025) includes "Excessive Agency" and says its root cause is typically one or more of three: too much functionality, too many permissions, too much autonomy. Each one can be granted early, to make a demo work, and outlive it. For functionality, one of the list's own examples is a plugin tried during development, replaced, and still available to the agent.
The cost of that grant is not a bad answer. It is an action nobody can take back. A wrong summary is an annoyance the user corrects in a second; a wrong order is money gone, and no eloquent post-hoc explanation brings it back. Irreversibility changes the price of being wrong, and it should change the architecture, not the wording of the prompt.
Decision theory puts a number on that price. The expected loss of letting a model act is its error rate times the cost of one error. At a 2% error rate, a summary that takes a second to correct costs you a fraction of a second per summary. At the same 2%, an irreversible order whose error costs $20,000 carries $400 of expected loss per order. The same error rate can carry very different expected losses, so put controls first where they prevent the most expected loss, counting how often each step runs, net of what the control costs. An irreversible step, such as a payment, trade or deletion, usually clears that test even where the model errs least, because one error costs so much; that is why the line is drawn there.
CVEST.ai is software ML LABS built on that principle: portfolio monitoring, research and execution controls that never hold your money. Its screening, research and order execution are deterministic code, and no AI model can place or change an order.

Draw the line at irreversibility
The line runs exactly where reversibility ends. Upstream of it the model earns its keep, and its occasional wrongness is low-cost and correctable. At the irreversible step and past it, control passes to rule-driven code whose behavior is fixed, logged, and replayable.
- The model proposes an action; a deterministic engine disposes, applying explicit rules that the model has no ability to bypass, override, or even argue with.
- Every consequential operation is idempotent, so the same logical request, if it is submitted twice, has the same effect as submitting it only once.
- Custody stays with the customer. The system never holds funds, which puts a cap on the blast radius of any failure by construction rather than by policy alone.
This is the same instinct as gating irreversible actions behind explicit deterministic checkpoints. The point was never that the model is not to be trusted. The value of any checkpoint scales with the cost of whatever action sits behind it, and some actions cost too much to be left to inference by a model. Idempotency is where that principle becomes code. A network blip, a retry, a race: any of them can fire the same consequential step twice, and in a system that moves money a duplicate is a direct loss. Idempotency keys for safe retries are the reference pattern for this. Building it in from the first commit costs almost nothing. Retrofitting it after the first double execution costs you that double execution.
Determinism buys the other half of the guarantee. A rule-driven engine returns the same decision on the same inputs, which means a disputed order can be replayed: the inputs reconstructed, the rules re-applied, the outcome reproduced exactly. A probabilistic step in that path destroys the property, and with it the ability to answer the only question that matters after something goes wrong: why did the system do that?
AI-driven describes the workflow. It never excuses an order nobody can audit.
Ship ML in a shadow lane
There is real value in letting learned models improve the consequential logic over time. How you introduce them decides whether they turn out to be an upgrade or a liability, and the way you introduce them is a question of architecture, not one of modeling.
If you ever add a learned model, run it in a shadow lane before it gets any authority. It runs alongside the deterministic path, its decisions recorded and scored against what actually happened, and it cannot act on anything. To earn authority it has to clear an explicit promotion gate, and that gate has one bar: the model has to beat the deterministic rules on real history.
That bar inverts the usual burden of proof. The rules are the incumbent here, and the challenger has to justify itself. It is not enough for a model to be newer, more sophisticated, or more impressive in a notebook: it earns live authority by out-performing the incumbent rules on the recorded outcomes, or it stays in the shadow lane indefinitely.
The design also yields a continuously accumulating record of how a proposed model would have decided, against how the deterministic engine actually did. That record is the promotion evidence, and it exists whether or not anyone ever promotes anything. The same discipline governs agent-native systems where every mutation writes its own audit row: the log is not instrumentation bolted on afterward. It is the substrate everything else rests on.
When the path is the deliverable
In regulated or fiduciary contexts, the requirement shifts from a good answer to an auditable path to it. A system that reaches the right decision through an inscrutable path is inadmissible. A less clever system whose every step is logged, ordered, and replayable is what the context demands. The rework is severe because auditability is not a layer. It is a property of where the boundary was drawn, and a boundary drawn in the wrong place cannot be patched; the flow has to come apart. The same failure mode shows up wherever terminal states and duplicate charges decide whether an inference pipeline can be trusted, which is a clinical system rather than a financial one and lands in the same place.
Three steps to take first
- Map every action by reversibility; only fixed rules run the ones you cannot undo.
- Give every operation with consequences an idempotency key before it ships.
- Put any learned model in a shadow lane, with a written bar for its promotion.
Draw the boundary before the build
Keep the model where its fluency is a gift and its errors cost little. Put a core that is deterministic and auditable between it and anything that is permanent. That is not a limitation that is imposed on the AI. It is the condition under which the AI becomes shippable in a domain where a mistake, once made, cannot be recovered or undone.
The boundary is the lowest-cost thing in the system to get right and the most expensive to move later. Drawing it is an architecture decision, and the first call is where it gets drawn: before build money is committed rather than during the incident. A boundary drawn on a whiteboard and a boundary that survives a storm of retries are not the same boundary.
References
- OWASP. LLM06:2025 Excessive Agency. OWASP Top 10 for LLM Applications, 2025.
- Anthropic. Building Effective Agents. Anthropic Engineering, 2024.
- Payment processor documentation. Idempotent Requests. API reference.


