Building Guardrails for Agentic AI in Financial Services
Agentic systems create decision loops that need structured checkpoints from the start. This piece walks through concrete architecture choices for embedding human review without killing throughput in trading or underwriting workflows.
By Andriy Markiv, Goatechs LLC
An agentic workflow will behave perfectly in staging for weeks and then, on an ordinary Tuesday, approve something it should have escalated. Not because the model broke. Because the thing it was asked to judge sat just outside the cases anyone had thought about, and nothing in the system was built to notice that.
I have watched teams discover this the expensive way: an agent reads a policy document, draws a reasonable but wrong conclusion about what the policy permits, and acts on it. The post mortem usually blames the model. The model is rarely the problem. The problem is that autonomy was granted before anyone wrote down where it ended.
Building guardrails for agentic AI in financial services is mostly that writing down. What can the agent decide alone, what has to escalate, and how do you show an examiner that the line held.
A boundary in a prompt is not a boundary
An agentic system is any workflow where a model picks the next action without waiting for a human. Read a loan application, pull the underwriting guidelines, approve or escalate. The interesting question is not whether the model can do that. It is what happens on the day it is confidently wrong.
If the only thing standing between the model and the action is an instruction in the prompt, the answer is nothing happens, and you find out later.
The boundary has to be enforced in code, outside the model. In practice that means the agent returns a structured decision rather than performing an action, and a separate decision layer checks that decision against a policy engine before anything executes. Out of bounds means automatic escalation. The agent is not asked to be disciplined. It is not given the opportunity to be otherwise.
decision = agent.run(application)
# The agent proposes. It does not execute.
verdict = policy.evaluate(
action="approve_transaction",
amount=decision.amount,
account_age_days=account.age_days,
matches_pattern=history.matches(decision),
)
if verdict.allowed:
execute(decision)
else:
escalate(decision, reason=verdict.reason)
It is unglamorous code. It is also the only part of the system whose behaviour you can state with certainty a year later.
Three questions that place every action
Before granting autonomy over any action, three questions settle where it belongs. They are worth asking literally, action by action, written down.
What does it cost if this is wrong? Can it be undone, and at what price? Does doing it leave a record that satisfies retention and explainability requirements?
The answers sort actions into bands.
| Band | Looks like | Autonomy |
|---|---|---|
| Low impact, reversible, logged | Classifying a document, drafting a summary, pulling a record | Full. Let it run. |
| Bounded impact, reversible, logged | Approving inside an envelope: under a threshold, on a seasoned account, matching historical pattern | Conditional. Autonomous while every condition holds, escalates the moment one does not. |
| High impact or irreversible | Moving money outside the envelope, closing an account, anything touching a system of record | None. Human approval, every time. |
| Cannot be explained afterwards | Any action whose reasoning you could not reconstruct for an examiner | None, regardless of impact. Fix the logging first. |
Most of the design work lives in the second band, and most of the production failures do too.
The middle band is where it gets hard
The edges are easy. Nobody argues about letting an agent classify a document, and nobody argues about requiring a human before a wire goes out. The conditional band is where the real decisions are, and the trap is that its conditions look like configuration when they are actually policy.
Take an envelope like: auto approve under a dollar threshold, if the account has been active more than six months, and the transaction matches historical patterns. Three conditions, all reasonable. Each one is also a question somebody will eventually have to answer.
Where did the threshold come from, and who is allowed to change it? Six months of what, exactly, and what happens to an account that was dormant for four of them? And "matches historical patterns" is not a condition at all until somebody writes down the comparison, because as stated it is a second model making an unlogged judgement inside your guardrail.
That last one is the failure I would watch for hardest. A fuzzy condition inside a policy check quietly reintroduces exactly the unbounded judgement the policy check existed to contain.
What drifts after launch
Guardrails are not a launch task, because three things move underneath them.
- The model changes. Providers update models, and behaviour at the edges of your prompt changes with them. A decision layer that validates structure and bounds will survive this. A prompt that politely asks for restraint will not.
- The tools accumulate. Agents get new capabilities because someone needs one more thing. Each addition widens the action space, and the policy engine rarely widens with it. Keeping the tool list explicit, with declared input and output schemas, makes the growth visible instead of incidental.
- The envelope stops matching reality. A threshold set against last year's transaction mix is a different control this year. Envelopes need review dates in the same way credentials need rotation dates.
None of these are exotic. They are just the sort of thing that is nobody's job unless it is written down as somebody's job.
What an examiner actually asks
The questions that come back are narrower and more practical than teams expect. Not "is your AI safe". More like: show me a decision this system made, tell me what it was allowed to do at that moment, and show me why it was allowed.
Answering that needs three things recorded together at decision time: the decision the agent proposed, the policy version the decision layer evaluated it against, and the outcome including the reason for any escalation. Policy version matters more than it looks. If thresholds have moved twice since the decision, a record that only says "approved" cannot show the approval was correct under the rules in force that day.
It is the same discipline as any other control in a regulated stack. The novelty is only that the thing being controlled writes prose, which makes it tempting to control it with prose. That temptation is the whole problem. We write about the architecture side of this often, because the controls are usually simpler than the conversation around them.
Frequently asked questions
Can a language model enforce its own guardrails?
Not reliably, and the failure is silent. A model asked to refuse out of bounds actions will usually comply, which is exactly what makes it dangerous as a control: it works often enough to build confidence and fails without signalling that it failed. Use the model to propose and a deterministic layer to permit. The model should not be the last thing between a decision and an action.
How much autonomy is reasonable to start with?
Less than the system is capable of. Starting with proposals that a human confirms, while logging every decision, produces the data you need to set an envelope honestly rather than guessing at one. After a few weeks you can see which decisions the agent gets right consistently, and widen the band deliberately. Widening is easy; narrowing after an incident is not.
Does this apply to agents that only read?
Partly. Read-only agents cannot move money, but they can surface information to someone who can, and in a regulated setting what a person was shown is itself auditable. Access decisions and retrieval records still matter. The impact questions are different; the explainability question is identical.
Where does human in the loop stop being useful?
When the volume makes the review rubber stamping. A reviewer approving hundreds of decisions a day is not a control, they are a formality with a login, and everyone involved knows it. If that is where you have landed, the honest fix is to narrow the autonomous band so fewer decisions need review, not to keep a queue nobody reads.
If you are drawing these lines now
The hard part of this work is rarely technical. It is getting a group of people to say out loud what the system is allowed to do, in enough detail that it can be written as code. If you are somewhere in that, I am glad to talk it through. You can see what we have built, or get in touch and describe where you are stuck.