Home / The AI Finance Lab / Lesson 3
Lesson 3 · Week 1 · Day 3
-3.6% or -3.6 Points? The Error in This AI Board Brief
A draft briefing for an audit and risk committee reads well, and almost every sentence cites a source. It still contains eight planted errors, and one hides a breach of the board’s own risk appetite that is not in the text at all. This lesson builds a chain-of-verification pipeline that traces every claim back to a number Python computed.
Watch · 8:45
The workbook has the data, prompts, scripts, five graded exercises and the answer key. Free, delivered by Gumroad.
What you'll learn
- A fact table built in Python before any prose exists, with a unit and a period on every fact
- Decomposing a draft into atomic, typed claims, then routing numbers to code and causes to a verifier that never sees the draft
- Five trace rules that catch swapped periods, flattering round-ups, percent versus percentage points and causes with no source
- A board gate for omissions such as an unreported limit breach, and seeded errors that prove the checks still bite
Chapters
- 0:00Hook
- 0:31The five-stage pipeline
- 1:09Lab files
- 1:23Stage 0: the fact table
- 1:45Percent vs percentage points
- 2:13The claim ledger
- 2:29Trace the draft
- 2:49Read the failures
- 4:12How the trace decides
- 5:05What the script can't see
- 5:37Factored verification
- 5:59Patch: the board gate
- 6:32The verified briefing
- 6:51Seed errors
- 7:15Seed the gate
- 7:50Recap and next lesson
Transcript
Every figure in this lesson comes from synthetic example data for a fictitious insurer, Nordhafen Mutual. No figure is a real statistic. Narration uses an AI-generated clone of the creator's own voice. Lightly edited for reading.
0:00 Hook
Here's a draft briefing for an audit and risk committee. It reads well, and almost every sentence cites a source. It contains eight planted errors. One hides a breach of the board's own risk appetite, and it isn't in the text at all. Today we trace every claim back to a number Python computed. I'm Miguel, and this is lesson three of a free, twenty-lesson masterclass. Week one, day three: chain of verification. A citation in brackets is decoration until a script has checked it.
0:31 The five-stage pipeline
Drafts go wrong in quiet ways: a period swapped, a percentage that should be percentage points, a cause nobody stated, a forecast written as fact. So we run five stages. Stage zero is a fact table, built in Python before any prose exists. A drafter writes from the facts, and a decomposer breaks the draft into atomic, typed claims. Then the routing. Numbers, directions and units go to code. Causes and meaning go to a verifier, in a fresh context that never sees the draft.
And a reconciler merges the two. A failed trace check overrides anything the verifier said.
1:09 Lab files
Here's the day three folder: a Q3 2026 board-pack appendix for Nordhafen Mutual Group, five management notes, the draft, and its claim ledger. All of it is synthetic example data. No figure is a real statistic.
1:23 Stage 0: the fact table
Stage zero. The primary values come from the day one validator's normalized cells. Every ratio and change is computed here, in Python. Each fact carries a unit: euro, level, percentage points, or percent change. And a period. Run it: twenty-one facts.
1:45 Percent vs percentage points
The funding ratio was 99.1% at the end of June, and 95.5% at the end of September. As a percentage change, that's minus 3.62%. As a move in the ratio, it's minus 3.6 percentage points. Close numbers, different meanings. That's why the fact stores the unit, and why a claim of 3.6% has to fail.
2:13 The claim ledger
Stage two turned the draft into fifteen atomic claims. Each one has a type, the numbers it mentions, the facts it cites, and the unit it claims. Six comparative, five numeric, two causal, one forward-looking, and one qualitative.
2:29 Trace the draft
Now the deterministic layer. Trace claims. Fifteen claims, nine failures, exit code one. This folder, with the data, prompts, scripts and answer key, is in the free workbook.
2:49 Read the failures
Claim two says the ratio fell by 3.6%. The fact is in percentage points. Two failures, one claim. Claim four: plan assets of 1,240.8 million at 30 September. That's the 30 June figure. September is 1,212.4. Claim seven rounds 13.7% up to 14%. Flattering, and untraced. Claim eight says the combined ratio improved, to 97.4% from 90.1%. It rose 7.2 points. For a combined ratio, that's a deterioration. Claim eleven: storm losses of 21.0 million, with no citation.
The CFO's note says 18.4. And the expenses sentence fails twice. Claim twelve compares with no prior-quarter fact cited. Claim thirteen blames IT spend, and no note states that cause.
4:12 How the trace decides
Why those nine, and nothing else? Open trace_claims. It never reads the briefing. It reads the claim ledger, one claim at a time. Rule one: a numeric or comparative claim has to cite a fact. No citation, fail. That's claim eleven. Rule two: every number the claim mentions must appear in a cited fact's display string. Not close to it: in it. That catches the round-up to 14, and the June figure passed off as September. Rule three: for a comparison, the script recomputes the direction from the two facts, and checks that their units match.
The draft can't argue with the subtraction. Rule four: a claim in percentage points must cite a fact stored in points. Rule five: a causal claim must cite a note that states the cause. Five rules, in one short loop of Python, and no model anywhere in it. That's the layer you can trust without reading it twice.
5:05 What the script can't see
Two planted errors pass every check. Claim fourteen: the combined ratio will return below 95% in Q4. That's a management expectation in note three, written as fact. And the omission. The Solvency II ratio is 148%, against a risk-appetite floor of 150%. Headroom is minus two points, and the briefing never mentions it.
5:37 Factored verification
For causes and meaning, the workbook's stage four prompt is the independent verifier. It runs in a fresh session, and it never sees the draft. It gets closed questions, the facts and the notes, and answers only from them, or says not in sources. And a hostile director prompt hunts for exactly this kind of omission. Run both with your own model.
5:59 Patch: the board gate
But the two misses are structural, so I can turn them into code. Check one: any headroom fact below zero is a limit breach, and some claim must cite it. Check two: a forward-looking claim must cite the note that makes the forecast. On the draft: the omitted breach, and the forecast stated as fact. Exit code one. On the workbook's revised ledger: zero failures.
6:32 The verified briefing
Here's the revised briefing. The breach is in the headline. The ratio fell 3.6 percentage points. The forecast is labelled as management's, and cites its note. And the cause of higher expenses is honestly not yet established. Trace it: seventeen claims, zero failures, exit code zero.
6:51 Seed errors
Last, prove the pipeline works by breaking it on purpose. Swap one period in the revised ledger. Caught. Now turn the percentage points back into percent. Caught twice: the number and the unit.
7:15 Seed the gate
Three more. Strip the note from the storm claim, so the cause has no source. Caught: cause without note. Now flip the combined ratio claim's asserted direction to decrease. Caught: direction wrong, recomputed from the facts. The last one is the nastiest. Delete the headroom claim entirely. Nothing false is said, so the trace passes: zero failures. The board gate doesn't: omitted breach, exit code one. Five seeds, five catches.
If a seeded error ever passes, the pipeline is broken, not the briefing.
7:50 Recap and next lesson
Recap. Build the facts in Python before any prose. Decompose the draft into typed claims, and route each one: numbers to code, causes to a verifier that never sees the draft. A failed trace beats any verifier. And seed errors to prove the checks still bite. Your turn. The workbook has five graded exercises, including writing the verification questions yourself. Next lesson: liability stress tests, with tool-forced maths.
Free workbook
Run this lesson on your own machine
The same folder used in the video: data, prompts, scripts, five graded exercises and the answer key.