Your drafting agent should refuse to write

A five-agent pipeline for AI-drafted suspicious activity reports decides sufficiency before it writes, freezes its judge and gates every model change.

Your drafting agent should refuse to write

Ask a team to build an AI drafting assistant and you will get a pipeline that always produces a draft. That is the wrong default. A new InfoQ article on AI-drafted suspicious activity reports describes the opposite: when the case evidence is missing, the system stops and says so.

The article, by Ritesh Modi and Sasidhar Gudala (reviewed by Hien Luu, published 24 November), comes out of InfoQ's certified architect programme. The architecture is a representative example, not a system running at a bank. What makes it worth reading is that it treats randomness as a systems problem with named controls, not a prompt-tuning problem.

The domain is a useful stress test

A suspicious activity report is a filing to a financial intelligence unit naming who was involved, what the transaction was, why it is suspected and when it is due — the UK's National Crime Agency is the article's example. Its narrative follows an inverted pyramid: lead, the five Ws, evidence, tail.

Five agents, one of which says no

The pipeline sits behind an LLM gateway, grounded in an event-plot knowledge graph built during detection and investigation, plus live operational data:

  • A data query planner fetches the evidence the narrative needs. If the data is missing, it halts and reports that the agents cannot generate the report.
  • A reranker sorts evidence for relevance; a drafter then writes against a report schema and cites source identifiers for each material claim.
  • A judge combines deterministic checks with an independent model assessment of factuality, completeness, consistency and style; a coordinator releases the draft to a human once quality clears the bar.

The planner's refusal is the load-bearing decision. Sufficiency is judged by the agent that can see the database, before prose exists. Once a drafter has started, every missing fact becomes an invitation to fill the gap fluently — and a fluent gap is exactly the failure regulators punish.

So: refusal is a response type, not an exception. If your drafting endpoint returns only text or a 500, you cannot measure whether the system refuses when it should. Return a typed result — draft, insufficient evidence with the missing fields named, or low confidence with weak claims flagged — then track refusal precision and recall.

An LLM judge is not a test

The article's sharpest point is that the judge is itself non-deterministic. A judge whose prompt or version drifts silently is not a gate; it is a second opinion from a moving target. The authors freeze the judge's version and pair it with deterministic fact-checking for names, dates and amounts — fields where a wrong value is a regulatory event rather than a stylistic one.

There is a subtler trap they leave implicit. When drafter and judge come from the same model family, their errors correlate: the judge finds plausible whatever the drafter found plausible. Freezing helps reproducibility; it does not fix this. Independent judging means a different model, or a check that does not sample tokens — graph queries against the case file, arithmetic on sums, date ordering, entity resolution.

Evals are a corpus, not a number

The authors score per criterion — factual accuracy, name identification, timeframe, adherence to the inverted pyramid, articulation, coherence, tone — then average. Average carefully. A composite score hides regressions: better tone can mask a drop in name identification until a filing names the wrong counterparty. Split the suite into a tier that must never regress — factuality, entity accuracy, amounts, dates — and a tier that should improve. Gate releases on the first, track trends on the second.

The golden dataset is where the compounding value sits. The article seeds it with edge cases and grows it with reviewer-approved outputs. Do the same with reviewer edits: the diff between the AI draft and the filed report is the most honest description of what your system gets wrong, and it doubles as an audit trail.

Release engineering, not vibes

The release plane is ordinary software discipline applied to prompts: version the model, prompts, retrieval config, data mappings and policy set with an owner and rationale; test with deterministic factuality checks, rubric scoring and jurisdiction-specific regressions; gate on sign-off from engineering, compliance, risk and legal, shadowing the candidate before shifting traffic; monitor factuality pass rate, judge scores, reviewer edit rate and escalation volume; roll back with feature flags to the previous model or to human drafting.

Put reviewer edit rate on the wall. Eval scores measure the model against your rubric; edit rate measures the product against the work it was meant to remove.

What we would change

Four to six model hops per report is an expensive way to fetch structured data — a deterministic query layer with an LLM fallback for ambiguous lookups wins on latency, cost and auditability. And risk-tiered routing should come from case features, not the model's self-reported confidence, which is badly calibrated precisely on the cases that matter.

The pattern generalises beyond banking. Any document where a wrong number is a regulatory event — GST reconciliations, audit working papers, incident reports, vendor risk assessments — has the same shape: evidence gathering, schema-bound drafting, verification, accountable human sign-off. That is the class of work we build: see what NetPy does across document and workflow systems, and NetPyCloud when case data cannot leave a boundary you control.

Checklist for an AI-drafted regulated document

  1. Make refusal a first-class outcome, with a reason code and missing evidence named, and decide sufficiency in the data layer before generation.
  2. Require a source identifier on every material claim, shown beside the sentence in review.
  3. Freeze the judge's model and prompt; store their hashes with every score.
  4. Check names, amounts, dates and entity identifiers deterministically — never with an LLM alone.
  5. Keep a golden set of edge cases and grow it from reviewer edits, not synthetic examples.
  6. Split evals into must-never-regress and should-improve tiers; gate on the first.
  7. Log the trajectory — retrieval, planner decision, draft, judge verdict, edits — so a bad filing traces to a cause.
  8. Track reviewer edit rate and time-to-draft alongside eval scores.

None of this removes non-determinism. It contains it, which is what engineering does with any property of a component you cannot fully control.

Header photo: "Staples, Staple Remover, and Paper Documents" by Tony Webster, licensed CC BY-SA 2.0, via Wikimedia Commons. Cropped for layout.