VANHULLE TECHNIEK — MASTERDATA MIGRATIE.xlsx — Compatibiliteitsmodus View the source on GitHub
A1
fx=DANTE.AFDALEN(bron!A:L)

Legacy data migration & cleansing

Excel Hell DANTE · data assessment, normalisation, triage & enrichment

A wholesaler is replacing an ERP from 1996. Its master data lives in twelve spreadsheets that disagree with each other, and 80 percent of the project will be spent on them. So this is a pipeline that descends through nine circles of dirty data, repairs what it can prove, asks a named human about what it cannot, and refuses to sign off when the numbers only look right.

NO-GO
gates!B2:B5

Loading the run…

Paradiso— rows load-ready
Purgatorio— rows held
Inferno— rows rejected

The premise

Nobody writes bad data on purpose

Every defect in this repository is there because of something reasonable somebody did. A sales rep kept his own customer list because the ERP was slow. An export is latin-1 because it always has been. A postcode lost its leading zero the first time the file was opened in Excel, and a VAT number went into the company name because there was no field for it. Twenty years of individually reasonable decisions is what a migration actually receives.

The files below are generated from a clean model and then deliberately degraded, so every planted defect is known. The engine never reads that record. It is what makes the detection rate further down a measurement rather than a claim.

12 bestanden — rijen csv · xlsx latin-1 · BOM nine circles, in dependency order PARADISO — PURGATORIO — INFERNO — load a named human decides reported, not dropped

The descent

Nine circles, in dependency order

The circles are not decoration, they are the dependency order. You cannot match duplicates before the names are normalised, cannot reconcile before the money is parsed, and cannot check a foreign key before you know which records survived. So the engine runs I to IX, and each circle may rely on everything above it and nothing below it.

A rule does not carry a severity, it carries an action, and the action says who is allowed to decide: repair when the fix is provable from the data, quarantine when it is not, reject when the value is unusable, and gate when the whole load should stop. Open a rule to see the records it actually caught in this run.

The ninth circle

The data that is clean, loads fine and is still wrong

The deepest circle is reserved for betrayal, and in a migration betrayal looks like a reconciliation that balances. Two documents, two customers, one amount: one overstated by exactly as much as the other is understated. The grand total matches the legacy trial balance to the cent. Every row validates. The loader reports no errors, and the accountant finds it in March, when a customer disputes a statement and the old system is already switched off.

So the gate does not ask whether the totals match. It attributes every per-customer difference to a cause first, and holds what is left over to account. The formula on the left is the one everybody writes. The formula on the right is the one that catches this.

The four gates

A gate does not describe the data, it decides whether the load may happen. Two of them fail, and failing here is the engine working. Open one to read why it exists.

Purgatorio

Now you are the business

An engine that quarantines a row has not solved anything yet: it has written somebody a question. These are the real questions from this run, on the desk of the person who owns the answer. Pick an owner and work through a few. Notice how often one ruling clears hundreds of rows at once.

—

The loop

Then the answers go back in

A migration is not one descent. The sheets go out, a few people answer what they can, and it runs again — and if the engine cannot take those answers back in, the whole triage is a report rather than a process. The sheets come back as decisions/<owner>.csv, unchanged except for two columns, and dante run --decisions applies them before anything is triaged. Below is that second run, measured against the first.

—

Most of that volume is four rulings. "Is this export day-first or month-first?" is not four hundred questions about four hundred invoices; it is one question about one file, written once with * in place of a record key. Which rules may be answered that way is declared in the registry, and each answer names the evidence the finding already published — so a ruling can only pick between readings the engine itself derived.

—

What it does not catch

The detection rate, including the misses

Because the planted defects are known, recall is measurable per rule, and the test suite holds each rule to a floor. Some floors are deliberately well under 100 percent, with the reason written down next to them. A matcher that claims to catch every duplicate is lying, and a test suite that asserts it is helping.

The largest known gap is fuzzy name matching: a company shortened to its first and last word scores around 68 on token_sort_ratio, well below the auto-merge threshold of 92. Raising the threshold would merge a parent company with its subsidiary, which costs more than a missed duplicate. That trade-off is a business decision, so it is written in the rule registry rather than buried in the matcher.

Run it yourself

Three commands, no services

uv venv && uv pip install -e ".[dev]"

dante forge     # rebuild the twelve filthy source files
dante run       # descend, triage every row, evaluate the gates
dante report    # render the audit report
dante rule R-IX-03 # explain one rule and what it caught

pytest -q       # parsers, recall floors, triage, reconciliation

Everything is deterministic from one seed, so the numbers on this page are reproducible on your machine. The run exits non-zero when a gate fails, which is what makes it usable in a pipeline: a migration dry run that cannot fail is not a control.

Read the audit report for the business →  ·  Source on GitHub →