paragon
Governed executionParagon Research / Perspective

Five stages, five ways to fail.

Why software that acts should keep understanding, permission, action, checking and learning apart.

5 min readParagon Research

The claim

Software that acts inside an institution fails in at least five different ways, and a system that blends those ways together cannot tell you which one happened. Our working view is that the minimum honest structure is a loop of five stages, Understand, Decide, Execute, Verify and Improve, each with its own inputs, its own outputs and its own record of failure.

This is a claim about engineering, not branding. It predicts something testable: if the stages are kept apart, every incident can be attributed to exactly one of them. If an incident can only be described as “the agent got it wrong”, the structure has failed, however good the model is.

Five questions, five failure modes

Each stage answers one question. Understand: what is being asked, by whom, in what context? Decide: is this permitted, for this person, on this record, today? Execute: what should change, in which system, in what order? Verify: did it change, according to the system of record? Improve: what should be different next time?

Each question fails differently. A misread request is a comprehension failure. A change made for the wrong account is an authorization failure. A booking system that times out halfway through is an execution failure. A confident “done” for a change that never landed is a verification failure. A fix that makes next month worse is an improvement failure.

From the outside, all five look the same: a customer who did not get what they needed. The point of the loop is to make them look different from the inside.

Figure The loop. Each stage answers one question, and its evidence informs the next request.

Understand and Decide are different jobs

Most agent designs since ReAct interleave reasoning and acting in one stream: think, call a tool, observe, think again. That pattern is powerful for open-ended tasks. For institutional work we think it needs a hard seam between knowing and being allowed.

Understand produces context: the customer, the products they hold, the open cases, the policies that might apply. It never produces an action. Decide takes that context and checks it against authority: identity, policy and the scope of the requested change. The output of Decide is a permit, narrow and explicit, or a refusal with a reason.

Illustrative: a customer asks a utility to move a meter-reading appointment. Understand finds the appointment and notices the caller’s number is not the one on file. Decide does not care how confident Understand is about the appointment. It asks whether this caller may change it, and on this evidence the answer is “not yet”.

The seam matters because a model can understand a request perfectly and still not be entitled to fulfil it. Blending the two invites the most common failure we expect in this field: correct reasoning applied with authority nobody granted.

Execute assumes the world is unreliable

Execution is where a permit meets real systems: booking platforms, core banking interfaces, case managers, often decades old and inconsistent with each other. A careful executor treats every call as something that can fail, half-succeed or succeed silently.

Three disciplines follow, all borrowed from distributed systems. Steps are idempotent where possible, so a retry cannot double a refund. Multi-step changes are written as sagas, with a compensating action for each step, so a failure on step three leaves a known state rather than a mystery. And every step is scoped to the permit from Decide, never to the broader credentials the integration happens to hold.

None of this is new. Garcia-Molina and Salem described sagas in 1987, and Helland’s work on life beyond distributed transactions is the right mental model for systems you do not own. What is new is the actor: a planner that can generate steps nobody wrote down in advance. That makes the old disciplines more important, not less.

If an incident can only be described as “the agent got it wrong”, the structure has failed.

Verify reads back from the source

A tool call returning “200 OK” is a response, not an outcome. Verify compares what was intended with what the system of record now says, by reading it back independently of the write.

We think verification needs three results, not two: confirmed, failed and uncertain. Uncertain is common and honest. The write was accepted, but the read-back has not caught up, or it disagrees in a way the system cannot resolve. An uncertain outcome should stay uncertain, be labelled, and never be reported to a customer as done.

Illustrative: a telecom plan change is queued by billing but not applied until the cycle closes. The correct message is “your change is scheduled for the 1st”, not “your plan has been changed”. The difference is one stage of the loop.

Improve learns from the gap, carefully

Improve takes the record of all four earlier stages and asks what should change: a prompt, a policy, a retrieval source, an integration, a handover rule. Its raw material is the gap between intent and verified outcome, not user ratings and not how fluent a reply sounded.

This is also the most dangerous stage, because it changes the system everyone else depends on. Changes from Improve should be proposals, versioned, evaluated against the hard cases and released under the same controls as any other change. An agent that rewrites its own behaviour in production is not learning. It is drifting.

What the structure costs

Separation is not free. Every seam adds latency, a handoff format and a place for state to go stale. A single model call that reads, decides and acts is faster and, on the easy days, just as good.

We accept the cost because institutional work is judged on the bad days. A loop that is slightly slower on routine requests and fully attributable on the unusual ones is, in our view, the right trade for software that moves money, records and appointments. Where latency matters most, in live voice calls, the design keeps the seams but runs Understand and Decide in parallel where their inputs allow.

Open questions

Where exactly should the seam between Understand and Decide sit when context itself is sensitive, and reading a record already requires permission? How much of Verify can be done synchronously, inside a conversation, before the customer hangs up? What is the right unit of change for Improve, so that one proposal can be evaluated and rolled back on its own?

We do not have settled answers. We think they are the right questions, and that a system unable to ask them is not ready to act.

Further reading

  • ReAct: Synergizing Reasoning and Acting in Language ModelsShunyu Yao and colleagues, 2023. International Conference on Learning Representations.
  • SagasHector Garcia-Molina and Kenneth Salem, 1987. ACM SIGMOD.
  • Life beyond Distributed Transactions: an Apostate’s OpinionPat Helland, 2007. Conference on Innovative Data Systems Research.
  • Cybernetics: Or Control and Communication in the Animal and the MachineNorbert Wiener, 1948. MIT Press.

A perspective from Paragon Research. It describes intended architecture and open questions, not deployed capability or reported results.

Discuss this perspective

Work with Paragon Research.