The Gap AI Automatisation Who we work with Approach Fintech Garden Blog Start a conversation

Why Your Reconciliation Agent Should Never See the Mainframe Terminal

2026-11-13 AI Governance

Most fintechs planning their first AI agent rollout are asking the wrong first question. They ask "which process should the agent automate first." The question that actually determines how much regulatory exposure the project creates is "what does the agent touch directly, and what sits between the agent and the system of record."

That boundary, not the choice of model or the choice of use case, is the real governance artifact. Get it wrong and a reconciliation helper can land you inside the EU AI Act's high-risk tier. Get it right and the same use case can sit comfortably outside it.

The terminal is not a tool, it is a liability surface

A common early pattern looks efficient on a whiteboard: point an agent at a mainframe terminal session, let it read account data, flag exceptions, and eventually propose corrections. No new infrastructure, no adapter layer, fast to ship.

It is also the worst possible design from a compliance standpoint, for three separate reasons that compound rather than cancel out.

First, a terminal session is unstructured text. There is no schema, no validation step, and no record of what the agent actually "saw" versus what it inferred. If a regulator later asks how a flagged exception was generated, the honest answer is "the model read a screen and guessed," which satisfies nothing under DORA's logging and traceability requirements.

Second, the EU AI Act's Article 6(3) carve-out for narrow procedural tasks depends on the system not materially influencing an outcome that affects a person. An agent with raw read access to account-level data, and no constraint on what it can propose, is hard to argue is narrow. It looks a great deal like Annex III, point 5(b): a system that can influence creditworthiness or account-level decisions, which is presumptively high-risk by default.

Third, direct terminal access collapses the distinction between "the agent observed something" and "the agent changed something." Once an agent can write to the same session it reads from, you no longer have a read path and a write path with different risk profiles. You have one path, and it inherits the higher of the two risk classifications automatically.

Put a deterministic adapter in between, and the classification changes

The fix is not a smarter model or a more careful prompt. It is architecture. Between the agent and the legacy core sits a deterministically tested adapter layer, built and version-controlled like any other piece of production software, that translates raw mainframe output into a validated schema the agent actually consumes. ISO 20022 message types (pain.001 for payment initiation, camt.053 for statements) are the obvious choice where the core system supports them, because they already carry the structure a regulator or auditor expects to see.

This single design decision changes what the agent is legally doing. It is no longer reading a terminal and inferring meaning. It is receiving a validated, typed message and operating on that. The adapter becomes the auditable boundary: every field it emits has a defined source, a defined transformation, and a defined test suite that runs independently of any model behavior. When DORA's Article 28 vendor register or the AI Act's Annex IV technical documentation requirement asks what data the system ingests and how, the answer is in the adapter's own test coverage, not in a description of model behavior that changes with every prompt revision.

The Model Context Protocol is the most commonly cited standard for this boundary today, acting as the interface between an orchestrator and the tools it is permitted to call. It is worth being honest about its limits: core banking vendors like Temenos, FIS, and Finastra have not adopted it as a native interface, and the cost of building a COBOL or CICS adapter underneath it is routinely underestimated in vendor pitches. MCP gives you a clean contract on the agent side. It does not make the legacy integration work disappear, it just moves that work to a place where it can be tested and audited on its own.

Read-only first is a pilot strategy, not a permanent answer

The lowest-risk way to start an agent pilot on legacy infrastructure is a read-only reconciliation or exception-flagging agent with no write path at all. It generates two numbers that matter for the business case before anyone commits to a write-enabled version: the false-proposal rate and the time actually saved per exception reviewed. Both are measurable against a human baseline within weeks, and neither requires touching production data.

When a write path is eventually justified, the discipline that matters most is refusing to build the agent a separate approval lane. A payment-initiation agent should draft its pain.001 message into the client's existing maker-checker chain, the same queue a human-initiated payment would sit in, reviewed by the same people under the same authority limits. The temptation to build a faster, agent-specific approval flow because "the agent already checked it" is exactly how a control gets weaker in the name of efficiency. DORA's third-party risk provisions and the AI Act's human oversight requirement under Article 14 both assume a human reviewer retains real authority to reject, not a rubber stamp on a queue the agent effectively already decided.

Human-in-the-loop decays if nobody is watching the loop

A read-only pilot and a maker-checker gate both rely on a human reviewer paying attention. That attention degrades over time in a predictable way: approval fatigue. A reviewer who has approved two hundred correct agent proposals in a row starts rubber-stamping the two hundred and first, and the two hundred and first is statistically the one most likely to be wrong, precisely because it is the exception the earlier two hundred trained the reviewer to stop expecting.

This is not a theoretical risk analysts worry about in isolation. It is the single most commonly flagged failure mode in internal reviews of agent-assisted approval workflows, and it is almost never tracked as a metric. Most teams measure the agent's false-proposal rate and stop there. The number that actually predicts whether the control will hold under real volume is the reviewer's own override rate over time: is it staying flat, or trending toward zero as trust in the agent grows past what its actual accuracy supports.

What to track from day one

Four numbers are worth logging from the first pilot onward, not retrofitted later once a regulator asks: the false-proposal rate, the mean time to detect and roll back an erroneous agent action, the concentration exposure if the underlying foundation-model vendor has an outage or a fourth-party subcontractor failure, and the reviewer's approval-fatigue drift described above. None of these require sophisticated tooling. They require deciding, before the first agent touches production data, that the adapter boundary and the human gate are both permanent features of the architecture, not training-wheels to be removed once the agent "proves itself."

The agent will keep improving. The boundary between it and your core systems is the part that has to stay disciplined regardless of how good the model gets, because that boundary is what a regulator, an auditor, or a client's own risk committee is actually going to examine.