Logic Foundry

Build with understanding.

Technical Debt Is the Cost of Learning by Doing, and AI Is Making It Social

Technical debt does not necessarily mean the engineering is poor. It can be the price of learning while practicing software development. At the GOTO conference in Copenhagen, Xin Yao argued in a talk titled “What If Your Biggest Technical Debt Is Social?” that debt is increasingly a sociotechnical problem: AI now generates code faster than people can understand the code and its context.

Yao cited Ward Cunningham’s definition of debt as code that is not yet good enough. She said the word “debt” sounds negative, but it can also be a deliberate business choice. Shipping while knowing the code will not look perfect later can still bring business feedback, user feedback, and possibly revenue. From a commercial point of view, she said, that can be a viable strategy.

In her account, technical debt is not the same thing as badly written code. It comes from designing software when knowledge is incomplete. Yao treats it as the cost of learning by doing. Releasing software lets a team test its assumptions against real conditions. Once that learning exists, it has to be put back into the code to repay the debt. Debt becomes a problem when the software no longer keeps up with what the team has come to understand.

She also described technical debt as a way to talk with management, because it can express, in cost terms, what it means to postpone architectural improvement. Treating debt only as something to eliminate, she argued, misses its strategic value. The question is not whether to take on debt, but whether the understanding it buys is worth the cost, and whether the team will actually repay it.

Yao pointed to Kent Beck’s article on revenue and learning, which discusses how current features relate to the future. Features deliver value now, she explained, while the future is the option to keep those features adaptable. Every line already written is complexity and constraint. Each new feature narrows some future possibilities. If a team keeps stacking features—even by using large models to generate them—there is a point after which all of its effort goes to paying interest and fixing code, with no capacity left to ship anything new.

The hard part, Yao said, is balancing feature delivery against preserving future options. Sometimes delaying design keeps those options open until the team knows more, including pushing some early architectural decisions to the last responsible moment. As Beck puts it in her telling, waiting is not laziness; waiting is holding an asset.

Technical debt can therefore be read as learning left behind in the software. Teams design from what they understand at the time, watch how the software behaves and what its module boundaries and architecture do, and then revise that understanding. Yao’s formulation: when the software no longer matches current understanding, what was reasonable yesterday becomes debt today.

AI adds a further problem. Yao argued that software is now produced faster than a team can build shared understanding of how the code behaves, what the design intended, and what the side effects may be.

Agentic coding makes repayment harder still. Beyond fixing poor code generated by AI, a team has to close the gap between what the software actually does and what people believe it does, while still keeping the code aligned with a changing grasp of the domain and the architecture. Her conclusion: repaying technical debt is no longer only a technical task. It is sociotechnical work.

After the talk, InfoQ interviewed Yao.

Asked what learning from technical debt looks like and what it is worth, she said teams design and ship from their best current understanding, then test assumptions against real business and user situations. Repayment means folding what was learned back into the software and closing the gap between what was understood at first release and what is understood now. Each iteration creates both new debt and new understanding. Small batches and tight feedback loops, she said, help a team remember the original design decisions and keep repaying older debt with newer understanding.

On how debt changes once developers use AI, Yao said that under agentic coding, output can outrun human comprehension. Code starts to look more like traces left by agents, while people still carry the consequences. A local gain in productivity can impose a collective cost: more code, weaker ownership, and a widening gap in shared understanding.

She pointed to a study of how developers discuss the burden of AI-assisted development, which calls this a “tragedy of the commons.” The risk, in her account, is not only that agents write more poor code. It is that cognitive debt accumulates faster across the sociotechnical system.