Agents & workflows System note

Putting the agents back, behind an MCP server

When agents sit behind a guardrail, a false block costs a paragraph and a false pass can reach a broker. Make the expensive mistake impossible, then measure the cheap one.

Teja Sagiraju · 4 min read
The short version
• On a public run, my guardrail withheld an agent's paragraph about a Thames Water director. When I checked, most of it was true: the judge had called claims unsupported that were in its own evidence.
• One detail really wasn't in the evidence, an exact appointment date, so withholding was defensible. But the rewrite returned identical text, and the judge gave different reasons each time.
• The agents work through an MCP server that can't set the route. A wrongly withheld paragraph can't change a decision, though a missing explanation can still sway the reader. That's the trade I chose.

Part of a series on the UK Company Pre-Screen, a tool that checks a UK company's public record before an underwriter quotes. Version 1 was a research agent that decided the risk itself; version 2 lets written rules decide (Version 1 let an AI agent decide. Version 2 lets written rules decide. compares them). This post is about the agents that sit on top of version 2, and the fence around them.

The paragraph nobody saw

Thames Water's Analysis tab, 26 Oct run: route unchanged, Refer, 11 of 13 checks completed; agents ran directors' other companies, news, and the email to the broker; the directors' section is withheld by the guardrail, with the judge's reasons shown, after one rewrite.
Thames Water's public example, Analysis tab. 1: the agents can't move the route. 2: the director section was withheld. 3: after one rewrite.

Version 2 decides with written rules. On top of it sit three AI agents that explain a case to an underwriter: one on directors' other companies, one on the news, and one that drafts an email to the broker. On Thames Water's public example, run on 26 Oct, the directors' section never appeared. The guardrail blocked it, asked for one rewrite, blocked it again and withheld it.

The draft was about a director linked to two companies that became insolvent, BPL Realisations and BGHL Realisations. The judge (a model that checks each draft against the evidence) said the evidence had nothing about BGHL Realisations. When I checked, the case summary it was given named it: insolvent, dissolved in November 2024, with the director in post when it began. One detail really was missing: an exact appointment date.

Two things went wrong. The rewrite was word for word the draft, so the rewrite step did nothing. And the judge, a second call to the same model reading the same text and evidence, gave different reasons each time, mostly wrong. Code can catch part of this: a rewrite identical to the draft, or a company name the judge calls absent that is plainly in the evidence. Whether a claim is actually supported still needs a careful reader.

The outcome was still defensible, and that's the fence working. A withheld section shows its reasons, the rules' own finding about the same director stays on the case, and the route doesn't move.

Agents on top, fenced in

The agent layer. Above a red dashed line, written rules decide the route; it is copied down and never written back. Below it, an MCP server with 9 tools, none of which sets a route. A supervisor picks from three specialists with their own step limits: directors 6, news 3, broker email 3. Each answer goes through a guardrail of code rules, then a model judge; if the judge is off or fails, only the code rules check it. Passed answers are shown; an answer blocked twice is withheld with the reason.
Amber boxes call a model. Nothing below the red line can set the route, and if the judge doesn't run, code rules alone decide.

Version 2 started without agents, because a model deciding the risk was version 1's core failure. They came back on top because an underwriter still wants the story behind a finding, and models tell stories well. They came back on terms:

  • They read through MCP (Model Context Protocol, a standard way to give a model tools). The server has 9 tools: seven only read, and two save something (a new pre-screen report, a watch on a company). None records a decision or sets a route.
  • Code decides who runs. The supervisor can drop an eligible agent with a reason, but can't add one.
  • Each has a tool allowlist and a step limit. A call outside the allowlist is refused before it reaches the server.
  • Everything is checked: code rules first (calling a gap clear, changing the route, sanctions detail to a broker, invented numbers), then the judge. If the judge is switched off or fails, the code rules alone decide, and the page doesn't yet say so.

Nine public runs

Model spend by role across the nine public agent runs on 26 Oct, about $0.027 in all: news agent $0.0092, the guardrail judge $0.0086 or 32 percent, email agent $0.0043, director agent $0.0025, supervisor $0.0024.
gpt-oss-120b for the agents and the judge, 26 Oct.

Across the nine public examples, every route stayed as the rules set it. The agents wrote 17 sections; 3 were rewritten and 1 was withheld. The whole set cost about $0.027, and the median run took about 17 seconds. The code rules didn't fire once: every block came from the judge. (Getting the MCP server deployed had its own four failures, from a renamed SDK class to a host check that refused every request; they're in the build journal.)

On the page, this means: read the Analysis tab as an explanation, not a verdict, and treat a withheld section as "look yourself", not "nothing here".

Limits

  • The judge isn't consistent, as above. A blocked section needs spot checks, and a passed one isn't proof.
  • The same model name was served by 13 different hosts across the nine runs, so runs aren't strictly repeatable.
  • The compliance hold, which stops broker emails on a possible sanctions match, is tested in code but hasn't happened live.
  • Nine runs is a small sample for a judge's error rate.

The decision behind it

  • Decision: agents work through MCP tools that can't record a decision or set a route; a guardrail withholds what it can't pass.
  • Alternative rejected: agents in the decision path, which is how version 1 went wrong.
  • What it cost: about 3 cents for nine cases, a judge that takes a third of it, and an occasional true paragraph withheld.
  • When to revisit: if false withholds become common enough that underwriters stop reading the Analysis tab.

First published 22 Nov 2026.

Written by Teja Sagiraju

AI engineer with 14 years across machine learning and applied AI: prompt design, document AI, LLM workflows and the review loops that make them safe to ship. I build real systems and write up what breaks along the way.

Connect

Get the next note by email

One short email when something ships or breaks. Free.