How do you measure technical debt in AI-generated code?
Structurally rather than stylistically: duplicate responsibilities, how many components reach a shared resource directly, the proportion of unreachable code, and divergence between the stated architecture and the actual one. Traditional quality metrics score generated code well while missing all four.
From Technical debt from AI coding: how to measure it, published 9 August 2026. That article is where the reasoning behind this answer is set out, including what it does not cover.