Work · Opinion

Your velocity chart cannot tell which engineers still understand the code

Output metrics reward handing bugs to a model. The trials say that costs comprehension for little speed, so teams should measure what engineers can explain without the tool.

Knight Capital lost about $440 million in 45 minutes on 1 August 2012. According to the SEC’s account, a deployment left old, repurposed code live on one of eight servers, and nobody watching understood what that machine was doing until it had finished doing it. I think about that whenever a team tells me its velocity is up.

A post on blog.jsbarretto.com tells the opposite story. A senior engineer takes five minutes to explain a crash on a syscall ID that should not exist. He traced the same symptoms five years earlier, after a day of walking back through the system, to a dynamic linker bug he then patched. It took him a day back then and five minutes now, and no dashboard recorded that first day. It looked like a day in which nothing shipped, whereas typing “Give it to Claude” closes the ticket before lunch. A team that counts only output will, by its own numbers, prefer the second, every time.

I expected the research on this to be messier than it is. METR ran a randomised trial with 16 experienced open-source developers working in their own repositories. With AI tools they took 19% longer. They had predicted a 24% speedup, and afterwards they still believed they had been about 20% faster. That last figure is what changed my mind about self-reporting. If experienced people who just lost time believe they gained it, asking your team how it feels about the tooling tells you nothing.

The comprehension side is worse. In Anthropic’s own randomised trial, developers learning a new Python library with AI help scored about 17% lower on a comprehension quiz, and their speed gain was not statistically significant. So the group paid in understanding and got no measurable speed back. Microsoft Research and Carnegie Mellon surveyed 319 knowledge workers and found that higher confidence in AI went with less critical thinking, while higher confidence in one’s own skills went with more. Meanwhile Veracode tested more than 100 models on 80 coding tasks and found about 45% of the samples carried OWASP Top 10 flaws. An engineer who cannot read the generated code has no way to catch them in review.

The best objection is the productivity data, and it is real. Developers with Copilot finished an HTTP server task 55.8% faster in a controlled experiment, and a field study across Microsoft, Accenture and a third firm saw roughly 26% more completed tasks. I do not dispute either. Both measure tasks completed, which is exactly the output number I am saying is insufficient. Completed tasks can go up while the team’s grasp of the system goes down. DORA’s 2024 report found a 25% rise in AI adoption associated with a 1.5% drop in delivery throughput and a 7.2% drop in delivery stability. I suspect stability is where missing comprehension shows up first.

The second objection is that nobody understands their compiler or their kernel either, and we cope. Spolsky said as much in 2002, and he also wrote the rebuttal: abstractions leak, and the leak is the moment you need someone who knows what is underneath. The linker bug above is a leak. So is Knight’s eighth server. So is MCAS on the 737 MAX, where the House committee report says pilots had not been told the system existed, and 346 people died in two crashes. A compiler has decades of scrutiny behind it. A model’s patch to your payment code has a plausible diff and a green test run.

None of this means banning the tools. Anthropic’s trial found that how developers used AI mattered more than whether they did. Those who asked for conceptual explanations kept their comprehension, and those who delegated the code wholesale scored worst. That is a usage policy you can enforce, but only if you measure the thing it protects.

So measure it. Next Monday, pick five pull requests merged last month that leaned on a model, choose one non-obvious line in each, and ask the author in person, with the editor closed, why it is there and what breaks if it is removed. Any author who cannot answer owns code they are operating on faith, and I would put money on that happening more often than your velocity chart suggests.

Prompted by The importance of understanding what the fuck is going on, blog.jsbarretto.com.