Work / Independent AI · AML/KYC review workflow for Luxembourg firms
ReasonTrail
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.

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
FastAPI backend · Railway + PostgreSQL
Output + AI drafting step
AI drafting (simulated in demo)
validated output contract · fixed sample output
WeasyPrint
11-section PDF + audit-pack ZIP export
Context
04
In the product
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
