Abstract
Autonomous LLM agents fail on long workflows because errors compound: when an error at one step becomes the input to the next, a run of n dependent steps succeeds with probability that falls geometrically in n, and recent measurements show that models condition on their own earlier mistakes. We argue that the right response in regulated settings is not to prevent errors but to contain them, and we give a formal account of which errors a deterministic gate can contain.
The architecture has one boundary. Above it, narrow, role-scoped LLM agents organized as a portfolio-management team pass typed records through six gates (signal, predict, decide, approve, execute, record) and propose actions. On the boundary, an execution council checks each proposal against explicit, code-evaluated policy. Below it, only deterministic code acts: an idempotent order-state machine reconciled against an independent counterparty, under object-capability permissions, with every event written to a hash-chained ledger. The model predicts that such a gate converts policy-violating errors into rejections (false-approval rate fP = 0) and passes in-policy errors untouched (fI = 1), so the executed-error rate equals the in-policy error rate and the loss is bounded by exposure caps independent of model behaviour.
We evaluate on a Bitcoin ETF (IBIT) workflow in two parts. Ten sessions were live: real-money orders at two brokers in October 2024, whose five broker-confirmed fills we report in full. All other observations are simulated. Under stated assumptions (a 6% proposal error rate, 90% of it policy-violating), the analysis recovers the predicted equality of executed and in-policy errors, with an executed-error rate of 0.55% against 13.4% for a single agent without the boundary; each ablation surfaces the one failure class its layer prevents; ten sessions bound the executed-error rate only to within a factor of three; and an incomplete rule set shows up directly as out-of-policy actions. We release the simulator, schemas and council rules, and map the pattern to other regulated lifecycles.
Read the full paper
Agents Decide, Code Executes: Containing LLM Errors in Long-Horizon Autonomous Workflows
Ajit K Dubey, Michael Lockhart, Julius Ekeroma, Victor Gamolsky and Shalabh Choudhri
University of Washington CoMotion Labs and OpenEXA Inc., Seattle, WA. Living preprint, version 1: ten sessions live, all other observations simulated.