
Most document pipelines have one stage too many. For the stages left, split workers, stamp attempts, and derive a DAG trace from events already recorded.
Browse articles on Building Taxadoo.
Building Taxadoo is a seven-part series of lessons from the statement engine behind Taxadoo, a UK bookkeeping product: the decisions and the failures, not the internals. It is narrower than the Fintech hub. Every article is about one job, turning a bank statement into rows a bookkeeper can trust.
Read in order, it follows a statement through the engine. Part one checks a reading against the running balance, which finds the first bad row and tells a misread amount from a misread balance. Part two routes stable layouts to deterministic parsers and leaves the long tail to a model. Part three argues a converter should fail with named reasons. Part four detects scans from the PDF itself and holds OCR to the same output contract. Part five chooses models on measured quality and fails over when a reading fails a check, not only when a call throws. Part six categorises transactions down a trust ladder. Part seven removes a pipeline stage and derives its trace from recorded events.
It is for engineers putting models into a document pipeline where the numbers must close.

Most document pipelines have one stage too many. For the stages left, split workers, stamp attempts, and derive a DAG trace from events already recorded.

Categorise bank transactions by walking down a trust ladder: the client's own answers, then trade patterns, then rules, then a model. Record which tier set each row, and switch off the tiers that never act.

Pick a model from measured quality telemetry, fail over when a reading fails a check not just when a call throws, and never let code rewrite a bad number silently.

A scanned statement has no text layer; it needs a different reader and a stricter trust check. Detect it from the PDF, share one output contract, and accept a reading only when its balances close.

A bank statement converter should be deterministic first, fail with named reasons, and treat a model as a human-checked rescue. A quietly wrong row costs more than an honest 'we cannot read this yet'.

A deterministic parser should read stable layouts; a language model is for the long tail no parser has seen. Route by layout, not by brand, and make parser-only mean exactly that.