← All work/ Case 004AgentBuilt · 2026

Litt

A reference implementation of §5.5(b)(i) of the CBN's Baseline Standards for Automated AML Solutions: run one bank ledger through two independent agents, then score the detection logic on the four legs that requirement implies.

Role
Solo: spec, backend, agents, app, landing
Timeline
Aug – Sep 2026
Stack
Go · Eino (react.NewAgent + compose.Graph) · Next.js app · Astro landing (GSAP + Lenis) · Playwright E2E
Links
Code
Chapters
Problem

Banks must validate their AML models

The CBN's March 2026 baseline standards require independent validation of automated AML detection. That needs evidence an examiner can re-check, not a vendor's word.

Approach

Two agents, one scorer

A prebuilt Eino ReAct agent and a hand-rolled compose.Graph pass run the same tools over the ledger. A Go validator scores the run; the app only renders its trace and report artifacts.

Outcome

Scores that admit what they miss

On the fixture: 5 findings, 100% precision and recall, both passes agree. The drift variant drops recall to 80% and the report explains why. Real uploads show 'no ground truth' instead of a number.

The real screens

Litt Standard 5.5 scorecard
Period 1 scorecard: 5 findings, scored against truth.json.
Litt drift report
Period 2: recall 80%, F1 88.9%, drift 0.111, explained.
Inside a run

Six tool calls, every one cited.

The trace is the contract: every tool call is logged with what it saw, and every finding cites a CBN clause and resolves back to rows in the source ledger. Without an API key, Litt runs on a deterministic stub model that doubles as the test oracle.

100%Precision and recall, period 1
0.111Drift spread across periods
4Validation legs
39Go tests
react.NewAgent · period 1 · step log
  1. 01list_entries the canonical ledger rows15.5 KB
  2. 02check_balances unbalanced journal J-0031
  3. 03find_duplicates J-0047 and J-0048, same transfer
  4. 04regs_ctr ₦8.4m cash movement on J-0021
  5. 05regs_vat VAT on J-0040 differs from 7.5%
  6. 06decide audit complete, findings cited