How I’d test AI on an everyday engineering task
Suppose a code change breaks a test. The model suggests a patch and the test passes again. An engineer still has to establish whether it would catch the bug it was written for. That check is part of what the repair costs.
What I’d compare the patch with
I’d pick a test the team was already going to fix. First I’d look at how long a similar repair usually takes, including the time another engineer spends reviewing it. That gives us a useful comparison when the pilot ends.
Before the first run I’d agree with the reviewer on which code the model can read and what change it’s allowed to propose. The same engineer would accept the fix under the usual rules. If the patch stops the test from catching the bug, the reviewer rejects it.
What happened after the first answer?
Only the successful patch makes it into the finished test. To see what it cost, I also keep the versions the engineer reviewed and rejected. For each attempt I record which model we used, what we asked it to do and what the engineer had to fix by hand.
Now we can compare both ways of doing the repair up to the point where it was accepted. Suppose writing the patch got quicker but the reviewer spent longer making sense of it. Those records tell us where the time went and whether another trial is worth doing.
When I’d run another trial
I’d repeat the trial on a few similar tests. If the engineers consistently spend less time on the whole repair and the tests still catch the bugs they’re meant to catch, I’d expand the pilot.
Sometimes the record shows that the model was missing an explanation of what the test does. I’d add that one piece of context and try again with everything else in place. If extra review keeps using up all the time we saved, or a bug could slip through, I’d stop.
Questions and answers
- Could we start with a test written for the demo?
- That’s a good way to learn the tool. To make a decision for the team, I’d also try an ordinary test, with its missing context and the engineer who’ll have to answer for the fix.
- What if we switch models halfway through?
- Mark which version produced each patch. Give the new model its own comparison on the same kind of repair and keep the review criteria in place. Then you can tell which results belong to which version.