InfoQ Homepage Articles Engineering Around Non-Determinism: Evals, Grounding, and Release Gates for AI-Drafted Suspicious Reports.
Nov 24, 2026 12 min read.
Financial institutions must investigate potentially suspicious activity and prepare accurate, complete, and timely reports for Financial Intelligence Units. The process is sensitive, labor-intensive, and subject to strict deadlines. This article explains how non-deterministic Artificial Intelligence (AI) components can be incorporated into a dependable agentic system that reduces the cost of doing business, increases drafting and review speed, and maintains the quality of the final report.
A Suspicious Activity Report (SAR) is a formal document submitted by regulated entities and financial institutions to law enforcement or financial intelligence units (such as the UK's National Crime Agency) to flag known or suspected instances of money laundering, fraud, or terrorist financing.
SARs should give a clear and concise explanation of the reason(s) for the suspicion, identifying:.
The Inverted Pyramid Plot Model for SAR narratives organizes information from most to least key, much like a news article.
Because the structure moves from the broadest, most critical information down to the narrowest, a reader can grasp the core of the case from the opening lines alone and turn to the later sections only for supporting detail.
According to recent reports, in the following system context diagram, a human agent views the investigation notes prepared by another human agent and then drafts the suspicious activity report. Once the report is reviewed by another peer, it is submitted to a financial intelligence unit.
System Context Diagram of Suspicious Activity Reports in a Financial Institution (Source: authors).
In the following diagram, there are 4 key timelines of any investigation:.
High-level diagram of a traditional reporting system (Source: authors).
In a recent development, we propose improving the traditional reporting system by using AI to automate selected tasks and generate high-quality SAR drafts, followed by specialized human review and minor edits where necessary. The goal is to increase throughput, reduce cost per case, and decrease reporting failures.
In the following system context diagram, human agent effort is shifted to review/edit the AI-assisted report drafting and review.
System Context Diagram of Suspicious Activity Reports in a Financial Institution (Source: authors).
We changed the earlier design to support background automation of suspicious activity report generation. As soon as the investigation is complete, the case is sent to the queue for processing by the Agentic System. Before the human agent picks the case for drafting the report, the AI Agent has drafted the first version to speed up the report generation.
High-level diagram of an AI-powered reporting system (Source: authors).
The non-deterministic nature of AI, particularly Large Language Models (LLMs), creates two central concerns:.
The proposed solution is a multi-agent system, with access to selected LLMs via a gateway, and supported by a tailored knowledge graph built from operational data.
Grounding is the foundation of trustworthy SAR generation. The system should make it easier to state only what the evidence supports, not merely make the prose more fluent.
High-level diagram of the agentic system (Source: authors).
Sequence diagram of Drafter agent, Judge Agent and Human (Source: authors).
Quality means more than well-written prose. It means a complete, internally consistent, reviewable narrative that meets institutional and jurisdictional requirements.
In a recent development, unlike traditional software, LLM outputs are non-deterministic, and "quality" is subjective. In the case of report writing, "what does a good report look like?" becomes more subjective. Hence, there is a need to test the "subjective" aspects against "objective" metrics, and here the Eval shines.
Evals are like tests of regular software development practices, and they can be leveraged in the following processes:.
There are a few broad focus areas where the model output has to be tested on a continuous basis:.
For example, Evals can be written to assess different aspects of the generated narrative like:.
Sample Eval can look like this:.
Once we have scores from all the evals, either we can use a weighted average or a simple average of all the individual scores to figure out the final grading criteria. This is how the Evals can be leveraged to grade the quality of generated output.
Sequence diagram of Evals grading (Source: authors).
Since the model and prompt are bound to change, this adds another dimension of non-determinism to the system. With any production system, we need to have a regression run of all evals against the golden data set before any model upgrade or prompt/config change happens.
It has been revealed that the golden data set has to be collected initially with different edge cases with defined input and output. This will help in testing the system during development. The Golden Data Set can be augmented with human feedback in production where they love the output generated by the AI system.
Evals shall answer some of the generated report’s quality metrics like :.
Traditional testing is a deterministic process of verification - it asks, "Did we build the product right?" against a fixed specification. This approach fails when a system’s core logic is probabilistic, because non-deterministic output may be more likely to introduce subtle degradations of quality that do not result in explicit crashes and may not be repeatable. Hence, it is vital to monitor the decision-making trajectory, from initial intent to final outcome.
The system is gradually improved by generating telemetry, understanding the system, and patching the underlying challenges.
Human review remains a policy decision owned by the BSA/AML function. AI accelerates preparation; it does not replace accountable judgment.
Industry observers note that treat models and prompts as regulated production changes. The release plane provides controlled progress rather than "ship and hope.".
Sources indicate that the bottleneck in drafting a quality Suspicious Activity Report was qualified personnel. LLM-based systems can reduce that dependency, but only if they're engineered for it, with grounding and evals as the substitute for the judgment of a qualified investigator.
The mechanism we've described treats non-determinism as an engineering problem rather than an excuse. Grounding drafts in a case-specific knowledge graph and operational data keeps the Drafter Agent grounded in evidence. A Judge Agent and deterministic fact-checker turn "does this read well?" into measurable checks against factuality, completeness, and the Inverted Pyramid structure the FIU expects. Evals and a golden dataset give these subjective judgments an objective, regression-testable backbone, the same way unit tests do for deterministic code. And a release process that versions models, prompts, and configuration, gated with shadow/canary rollout and feature-flag rollback, treats every change to the system as a production release.
None of this shifts accountability away from the humans who own it. The BSA/AML officer still decides what gets filed; the agentic system's job is to make sure that when a human reviews a draft, the evidence is already assembled, the uncertain claims are flagged, and the reviewer's time goes to judgment rather than transcription. Risk-tiered routing means the system earns trust on familiar, low-risk cases before it is ever allowed near the ones that matter most.
SAR narratives can now be drafted at machine speed, by codifying what "good" looks like into evals a machine can check against. When a human reviews the output, they're not taking the narrative on faith; they can trace the reasoning and the evidence lineage behind it, and that traceability is what turns speed into trust.
Presented by: Kiran Gangadharappa - Engineering Advisor at Harness, and Scott Davis - Senior Engineering Manager at Harness.
According to recent reports, A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example.
