This year we retired a cloud data warehouse — two hundred plus tables, hundreds of millions of rows, moved to a new platform with an AI-agent-driven pipeline. The migration itself went the way these things are supposed to go and never used to: restartable, idempotent, fully scripted, done in days.
Then the validation pass we almost didn't build found a defect in every single table.
The defect row counts couldn't see
Our first validation was the industry-standard one: compare row counts, source versus destination, table by table. Two hundred plus tables, every count an exact match. By the standard most migrations are held to, we were done. Green across the board.
Then we built a deeper validator — and it reported that every migrated
table had lost its column names. The data was intact, perfectly
ordered, byte-for-byte faithful… and every column was named
_COL_0, _COL_1, _COL_2. A
subtle default in the export format had silently dropped the headers.
Row counts matched exactly, because row counts don't look at names.
Every dashboard and query pointed at that data would have broken —
after we'd declared victory and torn down the source.
The fix turned out to be cheap — the column order was intact, so we could restore names in place from the schema inventory, thousands of renames applied without re-moving a byte. But "cheap" was luck. The lesson wasn't.
Validation is a ladder, and most teams stop on rung one
Rung one: row counts. Catches truncation and missed tables. Catches nothing about the shape or content of the data.
Rung two: schema parity. Column names and structure, source versus destination. This is the rung that caught our defect — one step up from where most migrations stop.
Rung three: content checks. Timestamp ranges, numeric sums, per-column comparisons. When those match across hundreds of millions of rows, you've earned the right to say "faithful copy" — and to actually delete the source.
We now run all three rungs on everything, and the final state was every table passing every rung. The deep pass costs a fraction of the migration itself and, in our case, was the difference between a clean cutover and a slow-motion incident discovered by whoever ran the first report.
The AI angle — and why the bar goes up, not down
Here's the part I'd flag for other technology leaders. AI agents made this migration dramatically faster — and that speed is exactly why the validation bar has to rise. When work took a team a quarter, errors surfaced gradually, caught by the many humans in the loop. When an agent moves two hundred tables in days, a systematic defect lands everywhere at once, wearing a green checkmark.
The discipline that makes AI-assisted engineering trustworthy isn't slowing the agents down. It's shifting the engineering effort from doing the work to proving the work: independent validators, layered checks, and the rule that nothing gets declared done — and nothing gets deleted — on the strength of a row count. Verification isn't overhead on the work. Increasingly, it is the work.