Skip to content
Sameer Bhalerao
Work

Work / Independent AI · AML/KYC review workflow for Luxembourg firms

ReasonTrail

Workflow demo

A review workflow for AML/KYC periodic reviews and screening alerts, with four-eyes approval, red-flag rules, an append-only audit log and an audit-pack export.

Runs on synthetic data. The AI drafting step is simulated.

ReasonTrail analyst dashboard with the periodic review queue
Analyst dashboard: the review queueThe analyst dashboard for a synthetic firm. Counts at the top show reviews in the queue, overdue reviews, open alerts and items waiting for approval. A periodic review that is 12 days overdue is flagged for attention.

01

Purpose and scope

Compliance teams write periodic client reviews by hand, and it is hard to show an inspector why each decision was made. In 2024 the CSSF ran 358 targeted inspections and issued €4.7M in fines, including €3M on one bank for weak source-of-funds documentation.

ReasonTrail structures the record: evidence, rules, approvals and an audit trail, so the reasoning behind each decision can be shown later.

02

What I built

  • Review states with illegal moves rejected, and export only after approval.
  • Four-eyes control on screening alerts: a second, different reviewer confirms or overrides.
  • Six red-flag rules, each with a severity and a required action. A blocking flag can only be overridden by the MLRO with a written reason, and both are logged.
  • An append-only audit log in the application, plus a log of every AI output with model and prompt version.
  • A memo PDF and a 12-file audit-pack ZIP in a self-defined layout.

Python · FastAPI · PostgreSQL · Pydantic · Next.js · WeasyPrint

03

Architecture and data flow

Client data and evidence go into a structured review. A drafting step proposes the memo (simulated in this demo), rules check it, a person edits and approves, and every step is written to the audit log before the audit pack is exported.

Client interface

Next.js on Vercel

password-gated demo · reasontrail.vercel.app

API requests

FastAPI backend · Railway + PostgreSQL

Review memosAlert decisionsFour-eyes on alerts6 red-flag rulesAppend-only audit log
output

Output + AI drafting step

AI drafting (simulated in demo)

validated output contract · fixed sample output

WeasyPrint

11-section PDF + audit-pack ZIP export

Context

CSSF 2024: 358 inspectionsAMLR applies July 2027Meridian Holdings demo scenario

04

In the product

ReasonTrail client review for a synthetic client, Meridian Holdings

Client review for a synthetic client

The review record for Meridian Holdings S.A., a synthetic client: the entity profile and risk rating, beneficial owners with their share and verification status, documents with upload and expiry dates, and the review history.

05

What the prototype demonstrates

  • Designing for regulated work: controls, approvals and traceability first.
  • A strict output contract for AI drafts, with typed evidence status and citations.
  • Keeping a person accountable for every decision.

06

Current limits and next steps

Limits today

  • All AI output is fixed demo data; no model runs today.
  • One synthetic client, no users or pilots. The audit log is not tamper-evident and the audit pack is not a CSSF-prescribed format.

Next

  • A local model with schema-constrained output and versioned prompts.
  • Rule-based risk scoring from the written framework, and a tamper-evident audit log.

Next project

Vyoman

Working prototype