Written by: Thomas Artin, Senior Data Scientist
Building software has never been faster, but speed of creation was never the hard part of large software. The hard part has always been the part that comes after: keeping a big, shared codebase understandable, correct and maintainable as multiple people make changes to it. And that is exactly the part AI coding tools are making more challenging, especially in research and AI repositories where the failures don’t announce themselves.
The debt that doesn't make noise
Meet comprehension debt, which is the gap between the code your team has shipped and what they understand. Unlike traditional technical debt, which is easy to spot through slow tests, legacy modules that take too long, and non-automated steps that require manual handling, comprehension debt is much harder to see. You get assigned a ticket, you fire up your favorite AI coding tool, select the most capable known model that has trillions of parameters, and you clearly explain the whole task. It sees the whole repository, takes a couple of minutes thinking and planning, and changes a dozen files in the repository as well as tests. It looks amazing, you run it and it seems to do what you asked for, yet the changes are so complex and large that you don’t quite understand it. And when there is urgency to ship, it quietly goes to prod.
We've done this before just smaller
I am not saying this is something new in writing software. For a decade we worried about the developer who copied a chunk of code off stackoverflow without understanding it, pasted it, and moved on. But the scale and context are very different. A stackoverflow code came with a question, context, votes and sometimes dozens of people discussing its caveats. But AI-generated code arrives context-free and confident, often with a big fat comment section in the beginning of each file and function.
In research code, the bugs are silent
Everything above is worse in AI and scientific repositories because of the specific way research code fails. It usually doesn’t crash. It produces a number, a plausible-looking number that happens to be wrong and breaks the trust of the metrics, which should always be a solid ground. In one study of the Keras framework, researchers found 77 silent bugs in a single-issue tracker. A survey of 103 deep-learning developers showed why these bugs are so tricky; because there’s no error, users assume the problem is in their own code, not the library’s [1].
Now put ten people (and ten different tools) in the repo; large research and AI repos are not written by one person with one assistant. They’re written by many contributors, and critically each brings their own tools and ways of working. What gets lost here is the shared mental model, the common understanding of how the system fits together.
What we do about it at Finaira
At Finaira we take this very seriously. The fixes are mostly old, proven discipline applied with fresh perspective. Three matter most:
- Treat “do we understand this?” as a merge gate. The most important fix, and a cultural one. The PR author should be able to explain what the code does and why, not “the model wrote it and the tests pass.” Reviewers should sign off on comprehension, not just green checks.
- Build CI/CD pipelines that catch regressions in trusted metrics. Silent bugs hide because nothing crashes, so encode your known-good numbers as tests that run on every change. Re-deriving a trusted result is often the only way a silent bug surfaces. Pin metric implementations so a “harmless” refactor can’t quietly change what a number means.
- Make smaller PRs. Points 1 and 2 only work if the diff fits in a human’s head. The data is consistent: reviewer focus drops after ~60 minutes, PRs over ~400 lines catch fewer bugs, and small changes are reverted less often [2]. AI makes thousand-line diffs trivial to generate; shipping small, single-purpose PRs instead keeps comprehension debt from compounding faster than anyone can review it.
None of this means going back. These tools are good, and the speed is real. But AI didn’t remove the hard part of software; it moved it downstream, from writing code to understanding it. It made it easy not to notice until later. The teams that do well won’t be the ones generating the most code. They’ll be the ones who stay curious about what they’re shipping. The ones who keep asking, “wait, why does this work?” even when everything is green and the deadline is close. That question used to be forced on us by the effort of writing every line but now it’s optional, and at Finaira we choose to do it.
References
- arxiv.org: https://arxiv.org/abs/2112.13314
- PLOS review guide: https://pmc.ncbi.nlm.nih.gov/articles/PMC11376551/