The Engagement · Assurance
Verification and rollback
A corrected total is a claim. This is what was checked before anyone was asked to trust it, and how the change is undone.
A fictional field-service company with invented data. The fault was planted so the right answer is known. Built and run on DuckDB and dbt on 17 November 2026; running the same exercise on a Snowflake account is the next step. Change approval inside the scenario is simulated.
What was checked
| Check | How | Result |
|---|---|---|
| The reports are right, order by order | The metric rules were written a second time, independently, in Python. Its expected rows were compared with the rows each report actually produced, not with the totals. | Dispatch and Contract Management match before and after. Legacy fails before (W01 twice) and matches after. |
| Only the intended thing changed | Input bytes preserved; before and after built as separate dbt runs; the two healthy reports compared across builds. | One model differs. Input and both healthy reports are unchanged. |
| What ran is what was reviewed | Each build's compiled SQL was hashed and re-run, and its output compared with the stored report rows. | Stored rows match the compiled queries in both builds. |
| The checks respond to data | A separate run with different input. | Populations and the Contract result changed accordingly. |
The independent review
The package was reviewed by an AI reviewer that did not write it, whose job was to try to break it.
The first build was blocked by that review. Every supplied test had passed. The reviewer found that the rollback instructions did not work and that relative output paths were handled wrongly. Both were repaired, with new tests that pin the behaviour.
The final review accepted it, and did not rely on the engagement's own cases. The reviewer replaced the whole dataset with one it invented, with boundary cases at the edges of contracts, deadlines and the snapshot, and worked out the expected rows by hand: Dispatch 5 of 7, Contract Management 2 of 3, faulty Legacy 6 of 9. The reports produced exactly those rows, and the corrected Legacy matched Dispatch.
My Chief of Staff then checked the result separately from a clean installation: all 32 tests, and eight operator commands run as documented, including rollback, reset and replay.
Rollback
The before-workspace is kept as the baseline. The rollback command:
- verifies the completed run and confirms only the one allowed model differs;
- rebuilds the baseline in a fresh, separate workspace and database, with a real dbt run;
- compares rows and compiled SQL, and proves the original run's files are unchanged.
The rolled-back legacy report reads 7 of 11 again, which is the point: the old behaviour is recoverable on demand. Dispatch stays 6 of 10 and Contract Management 4 of 7. Rollback was run, not only documented.
For a real engagement
The same pattern applies with the client's own controls: a business owner approves the definitions and the permitted change, an independent reviewer checks the evidence against that agreement, and rollback is proven in the client's environment before the change is relied on.