· AI dev tools

Architectural blueprint for AI-drafted reports uses evals, grounding, release gates

The BSA/AML officer retains ultimate decision-making power over what is ultimately submitted, even as the agentic system streamlines the preparation process to ensure that when a human reviews a…


The BSA/AML officer retains ultimate decision-making power over what is ultimately submitted, even as the agentic system streamlines the preparation process to ensure that when a human reviews a draft, the necessary evidence is already gathered, uncertain assertions are flagged, and the reviewer's time is dedicated to judgment rather than simple transcription.

Incorporating non-deterministic Artificial Intelligence (AI) components into a reliable agentic system, especially within the sensitive domain of financial investigations, necessitates treating the inherent randomness as a solvable engineering challenge. Financial institutions are obligated to thoroughly examine potentially suspicious activities and produce reports that are accurate, comprehensive, and delivered promptly to Financial Intelligence Units. This process is inherently demanding on human resources and operates under stringent time constraints. This article details an architectural blueprint demonstrating how to construct trustworthy agentic workflows utilizing knowledge graphs, dual-layer evaluation judges, CI/CD release gates, and regression testing against predefined golden datasets, thereby automating the drafting process while maintaining strict adherence to zero-hallucination compliance.

The core challenge stems from the probabilistic nature of LLMs, which introduces two primary areas of concern. The proposed solution involves a multi-agent architecture, which accesses specific LLMs through a dedicated gateway, and it is supported by a customized knowledge graph constructed from operational data. Grounding serves as the bedrock for generating trustworthy Suspicious Activity Reports (SARs); the system must be designed to articulate only what the evidence supports, rather than merely producing eloquent prose.

Quality in this context transcends mere polished writing; it demands a narrative that is complete, internally consistent, and fully reviewable, meeting both institutional and jurisdictional mandates. Because LLM outputs lack the deterministic nature of traditional software, and the definition of "quality" in report writing becomes highly subjective, a mechanism is required to test these "subjective" elements against concrete, "objective" metrics—this is where Evals become crucial. Evals function much like standard software development tests and can be applied across several broad areas where the model's output needs continuous scrutiny.

For instance, Evals can be engineered to evaluate various facets of the generated narrative; a sample Eval might look like this: [Sample Eval can look like this:]. After aggregating scores from all the implemented evals, one can determine the final grading criteria using either a simple average or a weighted average of the individual scores, which is how Evals facilitate the grading of generated output.

Because both the prompt and the model are subject to modification, this introduces an additional layer of non-determinism. Just as with any production system, a regression run involving all evals against the golden data set must occur before any alteration to the model, prompt, or configuration takes place. This golden data set must initially be compiled, including various edge cases with specified inputs and outputs, which aids in testing during development. Furthermore, in a production setting, this Golden Data Set can be enriched with feedback from human reviewers who appreciate the AI system's output.

Traditional verification testing is a deterministic procedure that asks, "Did we build the product correctly?" against a fixed specification, a method that proves insufficient when a system's fundamental logic is probabilistic. Non-deterministic output might introduce subtle quality degradations that do not trigger explicit crashes and may not be repeatable, making continuous monitoring of the decision-making path, from initial intent to final result, vital. The system is incrementally refined by generating telemetry, gaining system understanding, and patching underlying deficiencies.

The mechanism described here frames non-determinism as an engineering problem, not as an acceptable excuse. By rooting drafts in a case-specific knowledge graph and operational data, the Drafter Agent remains tethered to verifiable evidence. A Judge Agent, paired with a deterministic fact-checker, transforms the vague question of "does this read well?" into quantifiable checks concerning factuality, completeness, and the Inverted Pyramid structure expected by the FIU. Evals and a golden dataset provide these subjective assessments with an objective, regression-testable foundation, mirroring the function of unit tests in deterministic codebases. Moreover, a release process that versions models, prompts, and configurations, and gates these changes with shadow/canary rollouts and feature-flag rollbacks, treats every system modification as a formal production release.

The bottleneck in producing a high-quality SAR was previously the availability of skilled personnel; LLM-based systems can alleviate this reliance, but only if they are engineered for it, substituting the judgment of a qualified investigator with grounding and rigorous evals. Risk-tiered routing allows the system to build confidence on familiar, low-risk cases before being deployed near the most critical ones. SAR narratives can now be generated at machine speed by encoding what constitutes "good" into machine-checkable evals. When a human reviews the result, they are not accepting the narrative on blind faith; they possess the ability to trace the lineage of the evidence and the reasoning behind it, and this traceability is what transforms mere speed into genuine trust.

Why it matters

This blueprint provides architects with a methodology to safely deploy probabilistic LLMs in high-stakes production environments. Developers can learn how to implement rigorous testing and control mechanisms to manage the randomness inherent in AI outputs.

Related coverage

Also worth reading

  1. 9/UX brings classic Mac feel to 9front, providing spatial desktop and global menu bar
  2. No headline available as the source text is an essay, not a technical release or update
  3. CNCF Research shows VMs host 53% of apps, AI workloads drive VM demand
  4. OpenAI details Pando backend to scale Git for coding agents, achieving 80% lower push latency
  5. European Commission confirms personal data stolen in AI-assisted cyberattack from EU Academy