index/engineering/burden-of-proof/Who Owns the Evidence?
engineeringburden-of-proof

Who Owns the Evidence?

Equivalence testing is the obvious fix for verifying a migration — it only relocates the problem. Independence isn't another team; it's who owns the evidence.

tags: testing, risk

Part one ended on an obvious fix. Run the old implementation against the new one on the same data, compare the results, and “is this correct?” stops being a matter of judgment — it becomes a diff. For a conversion, that is one of the strongest verification methods there is.

The fix is real, and it still doesn’t rescue the story, because a method is not a division of labor. Someone has to build the comparison. Someone has to choose the data. Someone has to run it — and when the results differ, which on a first run they usually do — someone has to investigate which side is wrong. The fix didn’t dissolve the problem from part one; it relocated it. Instead of asking what correct means, the request now asks whose work it is to produce the answer.

The Best Method Still Has an Owner

Equivalence testing is elegant for one reason: nobody has to define expected behavior from scratch. The existing implementation is the closest thing to a complete statement of intent that exists. That is also its weakness. The old code is a behavior oracle, and oracles carry their own accumulated bugs — the method only reports that two sides differ, and deciding which side is right is still a judgment call.

So the method narrows the question without ever answering it, and it adds one of its own: who builds and runs this thing? That question has no technical answer, which is exactly why it tends to get skipped.

Two Requests That Sound Alike

Go back to the original message: Can you verify this is correct? Now lay out what actually has to happen before anyone can answer it honestly:

Understand how the existing system behaves
Design a comparison the new SQL can plug into
Adapt the existing test boundaries
Run the comparison
Investigate every difference

No single step looks unreasonable. That’s the trap. Read top to bottom and the request has changed shape without anyone announcing it: “please independently verify our implementation” has become “please help build the verification system for our implementation.”

Both requests are legitimate. A team with a conversion to prove may genuinely need help building the comparison. But they are different requests with different owners and different costs, and the second one spends the very thing the first one was asking for — the reviewer’s independence. The request needs to be honest about which one it is before anyone starts building.

Honesty has a deadline, and the deadline is the request itself. The one from part one is already history — no boundary drawn after it rewrites what it recorded. Boundaries have the same problem as late tests: they only arrive after the thing they were meant to govern.

Which is why the acceptance matters as much as the request. The moment a reviewer agrees to build the evidence, that decision is history too, made in real time. A boundary holds at the handoff, or it doesn’t hold at all.

Independence Is About Who Owns the Work

This is where it goes wrong, and it has nothing to do with the people involved. If the reviewer builds the harness, produces the evidence, and then evaluates the evidence, they are not reviewing another team’s work. They are completing it — then grading their own completion.

A different team did the review — isn’t that enough? A separate team is necessary for independence, but it is not sufficient. Independence also depends on who owns the work required to produce the evidence.

Put the two models side by side. Healthy: the author’s side owns the implementation and the evidence of its correctness; the reviewer challenges the evidence and decides whether it is enough. Broken: the author’s side ships code, and the reviewer builds the harness, produces the evidence, and then approves it. The second arrangement doesn’t have a reviewer in it at all. It has a second author that arrives after the first one leaves — and the review they produce is the review of their own work.

Where Collaboration Belongs

The boundary is not “never help.” Helping with understanding is different from helping with evidence, and the difference is easy to keep straight. Domain knowledge, historical context, explanations of how the existing system behaves — the author’s side can supply all of it freely, because it sharpens the review without costing the reviewer their independence.

What travels with the change: the work of demonstrating it. The author’s side owns assembling the evidence and adapting whatever tests their implementation needs. What stays with the reviewer: challenging the evidence, probing its assumptions, naming the scenarios that are missing, deciding whether it is sufficient.

The line holds as long as help stays on the understanding side. The moment a reviewer’s labor becomes part of the evidence they are asked to judge, the review is over — it just hasn’t been announced yet.

And when the evidence simply isn’t there, the reviewer still has a complete job. “This is insufficient. Demonstrate behavioral equivalence against the existing implementation. Here are the scenarios I need to see.” Saying that is not obstruction. It is the only mechanism that keeps the boundary real.

Who Owns the Evidence?

One incident, two questions, two answers. The definition of correct has to exist apart from the code being checked, supplied by the author, as part one argued. And the work of producing evidence of correctness belongs with the change — while the work of challenging it belongs to the reviewer.

The SQL that started all this could never have answered either question on its own. That was never going to be the SQL’s job. It was the job of the process around it, and the process only works when the two responsibilities stay on the right sides of the handoff.

A reviewer may challenge evidence of correctness. The absence of that evidence should not automatically make the reviewer responsible for creating it.