I built a banking agent reference architecture where the LLM has no write path to money — not "guarded," just no tool

Reddit r/AI_Agents Tools

Summary

A shared reference architecture for agent-assisted banking where the LLM has no write path to money: a read-only MCP tool surface, server-derived identity, money ops marked agent_callable:false, and values overwritten from the ledger. It's a synthetic self-hosted demo published for feedback on strict read/write separation in high-stakes agents.

TL;DR: Reference architecture for agent-assisted banking where the LLM has zero write tools (agent_callable: false on all money ops, read-only MCP, server-derived identity, and source-overwritten UI values). It's a synthetic, self-hosted demo (see the comments)— sharing the control-plane patterns and looking for feedback on where strict read/write separation breaks down. Every bank is asking the same question right now: how do you put an LLM into a production banking workflow without it hallucinating a transfer? The default answer is "add guardrails" or "write a tighter system prompt." That's the wrong frame. A guardrail in a prompt is a request — and a request can be ignored, paraphrased, or talked around. So I went the other way: the model has no money tool. Not a "guarded" money tool — literally no tool that can write to a ledger. It reads data through a SELECT-only boundary, cannot pass a customer or tenant ID (identity is derived server-side), and has no button that moves money. Here are the four specific patterns doing the heavy lifting: 1. The model's entire tool surface is read-only The agent can call this and nothing else: MCP capability server — READ-ONLY list_customer_accounts() get_account_balance(account_id) get_recent_transactions(limit) search_contacts(name_query) # email/phone never exposed to the model No preview, no approve, no submit. A transfer has to be initiated, reviewed, and confirmed by the human inside the banking app — not by the conversation. 2. Money operations live in a contract the model never sees One versioned registry acts as the single source of truth across backend and frontend validators. All three money operations (transfer.preview, transfer.confirm, transfer.status) are declared like this: { "operation": "transfer.confirm", "agent_callable": false, "required_evidence": ["customer_digest_confirmation", "challenge"], "effects": ["commit", "audit", "outbox"] } agent_callable: false does more than a hundred system prompts. It's a boundary enforced in code and CI, not a sentence the model reads and forgets. 3. Numbers come from the ledger, never the model If the agent wants to display a balance, the runtime requires a current-turn read first and overwrites the rendered values directly from the verified source. If the read fails, it returns a typed connector_error → the runtime halts and displays an "unavailable" state rather than asking the model to fill in the gap. 4. Confidence is exact-span evidence, not a vibe Every extracted value must carry exact-span evidence from an allowed source, using token boundaries so evidence for 50 can't validate 500. Resolution is explicitly READY, NEEDS_CLARIFICATION, or ABSTAIN — uncertainty is a first-class outcome. Confidence thresholds are also intentionally left blank until calibrated on a labeled dataset rather than shipping a fake "0.85". Where this is NOT a bank (upfront) This is a runnable, self-hosted reference architecture, not a live bank. Identity uses a fixed demo user, the challenge is not production SCA, and the ledger is synthetic Postgres — no live payment rails, no real customer data. External LLMs sit behind an explicit LLM_EXTERNAL_DATA_APPROVED=true opt-in because sending banking context to a third party is an architectural decision, not a default. The point is the separation of concerns. The one idea worth stealing Give the model no write path to the thing that matters: read-only boundary, server-derived identity, write ops marked non-callable, values overwritten from the source, and failures modeled as typed outcomes. If the model can't call it, it can't hallucinate it. Code (FSL, free for internal use → Apache 2.0 after 2 years) Where I might be wrong / what I'd love to hear: Is "the model has no write path" the right default for high-stakes agents, or are there legitimate workflows where a constrained write (with server-side preconditions) beats full read/write separation? For anyone running agents in regulated flows — how are you drawing the hard line between "the model inferred this" and "the system of record commits this"?
Original Article

Similar Articles

The banks just drew the line your agent framework was missing

Reddit r/AI_Agents

JPMorgan, Citi, Bank of America, and Schwab moved to block external AI agents from accessing customer accounts or moving money, keeping only read-only access via official connectors. The author argues this enforces at the institutional level the approval-gate permission architecture that agent frameworks should build in from the start.