AI-Generated Technical Debt: Are We Creating Software We Cannot Maintain?

Fast generation does not remove the cost of understanding, changing and securing software. This article weighs the evidence for and against AI-created technical debt, separates it from security debt, and offers a maintainability scorecard and a risk-weighted way to prioritise both.

In certification programmes I have led, there came a point where an auditor or a customer asked a plain question: who owns this system, and who can change it safely? Sometimes the honest answer was uncomfortable. The person who wrote it had left, the documentation was a diagram from two years earlier and the tests passed only because nobody touched the fragile corners.

AI-assisted development raises the stakes on that question. If an assistant can produce a working feature in an afternoon, it can also produce a lot of code that nobody on the team fully understands. The worry is reasonable. It is also easy to overstate, so this article tries to separate what the evidence supports from what is plausible but unproven. It also distinguishes two things teams often blur together: technical debt and security debt.

Where a statement comes from a source I cite it. Where it is my own analysis, definition or experience, I say so. I do not name vendors or recommend products.

Why this matters now

The first reason is volume. The 2024 DORA survey analysis associated higher AI adoption with a small negative throughput estimate and a larger negative stability estimate 5. It is correlational and I could not confirm its release date. The 2025 DORA report landing page describes AI's primary role as an amplifier of an organisation's existing strengths and weaknesses 6; I read only the landing page. I take the same message from both: AI does not fix a weak engineering system, and may magnify its weaknesses.

The second reason is the shape of the work. Writing code was once a large share of effort. If generation is cheap, the expensive parts become reading, reviewing, testing and maintaining. Article 06 made that argument for sprints, and it applies even more directly to debt.

Background: what I mean by technical debt and security debt

These are my working definitions, and I mark them as mine because teams use the terms differently.

  1. Technical debt. Shortcuts or design choices that make future change slower, riskier or more expensive than it should be. Examples are duplicated logic, inconsistent patterns, missing tests and undocumented decisions.
  2. Security debt. Known or unaddressed weaknesses and deferred security work that increase the likelihood or impact of compromise. Examples are unpatched components, repeated exceptions, excessive permissions, missing threat models and incomplete security testing.

They overlap but are not the same thing. Messy code can be perfectly secure, and clean code can ship with a critical flaw. The most dangerous cases combine both: code that is hard to understand and also exposed.

Does AI create technical debt? What the evidence says

I looked for evidence in both directions, and the honest answer is that it is mixed and still developing.

Evidence that AI-assisted work may add complexity

A 2025 preprint by He and colleagues used a difference-in-differences design to compare GitHub projects that adopted the Cursor coding assistant with matched controls. The abstract reports a statistically significant, large but transient increase in development velocity, and a substantial and persistent increase in static analysis warnings and code complexity. Their panel estimates suggest the rising warnings and complexity are major drivers of a later slowdown in velocity 2. The page I opened gave no effect sizes, I did not read the full paper and it studies open-source projects and one assistant, so I treat it as a signal and not as a general rule. It is also a preprint listed for a 2026 conference and I did not check its peer-review outcome.

Veracode's 2025 report landing page states that AI-generated code introduced risky security flaws in 45% of tests across more than 100 models and four languages 10. It is a vendor report, I saw only the landing page and it concerns security flaws, not maintainability. I cite it only as a reminder that generated code needs verification.

Evidence that does not show a maintainability penalty

Borg and colleagues ran a two-phase controlled experiment with 151 participants, 95% of them professional developers. In phase one, people added a feature to a Java web application with or without AI assistance. In phase two, new participants evolved those solutions without AI. There were no significant differences in completion time or code quality, and the authors concluded that they did not detect systematic maintainability advantages or disadvantages, though the abstract says that holds within the scope of their tasks and measures. In the observational phase, AI use was associated with a 30.7% median reduction in completion time. The authors flag code bloat from excessive generation and "cognitive debt" as open risks for future work 1.

A 2025 randomised trial by METR found experienced open-source developers took 19% longer when using AI tools while expecting a speedup; the page flags the result as out of date and points to a later update I did not open 7. It concerns speed, not maintainability, and shows how poorly self-reported productivity predicts outcomes.

What I conclude

These sources do not agree, and they measure different things: project-level static metrics over time in open-source repositories 2, a controlled maintenance experiment on a single application 1, and developer speed 7. My reading, which is my own judgement, is as follows.

  1. There is no verified evidence that AI inevitably creates technical debt. One controlled experiment found no systematic difference in maintainability 1.
  2. There is a credible signal that velocity gains can come with rising complexity in some settings 2, and that is enough to measure, not to ignore.
  3. The mechanism is plausible and worth watching, even where it is not yet proven: generated code is cheap to add and costly to understand, so the danger is code nobody asked whether to write.

So I treat AI-generated debt as a risk to be managed with measurement, not as a fact to be asserted or dismissed.

Code that nobody can explain is not an asset that was cheap to produce. It is a liability whose invoice has not arrived yet.
Akarsh N

Where the debt can appear

The following list reflects patterns I have seen or consider plausible, and I label it as experience and analysis, not as a research result. Each is something a team can check.

  1. Duplicate implementations. An assistant, lacking awareness of an existing helper, writes a new one. Over time you have three ways to do the same thing.
  2. Inconsistent patterns. Different prompts yield different styles of error handling, naming and structure.
  3. Excessive abstraction or bloat. More code than the problem needs, which is more surface to read and test.
  4. Unnecessary dependencies. A new package introduced to solve a small problem, with its own update and supply-chain burden. OWASP's guidance on components stresses a continuous inventory and an update plan for the life of the software 8.
  5. Fragile or circular tests. Tests written by the same tool that wrote the code can mirror its assumptions and fail to catch its mistakes.
  6. Unclear ownership. Many files, many authors, no steward. Nobody can explain or safely change a given area.
  7. Design flaws that code review will not see. OWASP separates insecure design from insecure implementation and says a flawed design cannot be fixed by perfect implementation 9. An assistant that implements a flawed design well produces tidy, polished debt.

Technical debt versus security debt

Teams often try to track both in one backlog and end up tracking neither. The table is my own comparison.

DimensionTechnical debtSecurity debt
What accumulatesComplexity, duplication, missing tests and documentationUnpatched components, deferred findings, repeated exceptions, excess permissions, missing threat models
Who feels itThe engineers changing the codeCustomers, regulators and the business, if exploited
How it shows upSlow changes, regressions, long onboardingIncidents, audit findings, failed customer reviews
Interest rateGradual; paid in delivery speedCan be sudden; paid in a single event
Typical measureChurn, complexity, warnings, test reliabilityExposure, exploitability, age of findings, exception count
OwnerEngineering leadershipNamed risk owner, with security advising
Visible in code reviewOftenOften not (design flaws, configuration, permissions)
Can be acceptedBy engineering, as a trade-offOnly by an accountable risk owner, for a stated period

The key difference, in my experience, is the interest profile. Technical debt usually charges slowly. Security debt can sit quietly for months and then charge all at once. That is why I prefer different governance for each: engineering trade-offs for the first, explicit expiring risk acceptance for the second, as I described for pipeline exceptions in article 08.

A caution I hold firmly: a low count of open vulnerabilities does not necessarily mean low risk. Counts hide severity, exposure and the issues your tools do not detect. A scanner reports known patterns. It does not know about a missing authorisation check on a sensitive path.

How to detect and measure maintainability risk

I did not find a verified, widely accepted metric for "AI-related maintainability". So I suggest ordinary engineering measures, applied with the question of whether they are drifting as AI use grows. These are my recommendations.

  1. Complexity and static warnings over time. The study in 2 used static analysis warnings and complexity as outcomes, so tracking them per repository is reasonable. Look at the trend and not the absolute number.
  2. Duplication. The share of repeated blocks of code across the repository.
  3. Rework. How much recently written code is changed or removed soon after merge. Use the trend as a prompt for a conversation, not as a target to optimise.
  4. Change failure and recovery. The delivery indicators DORA uses to describe stability 5.
  5. Dependency growth. New packages per quarter, and how many are unmaintained or unreviewed 8.
  6. Test health. Flaky tests, untested modules and tests that never fail.
  7. Explainability. Sample an area and ask the owner to explain it, and to say what would break if it changed.

An AI code maintainability scorecard

The scorecard below is my own proposal, not a validated instrument. Score each area per service on a simple scale: 0 (absent), 1 (partial), 2 (in place and evidenced). Use it to start conversations, not to rank teams.

AreaQuestionEvidence to look for
OwnershipIs there a named human owner for this code?Owners file, on-call roster
ExplainabilityCan the owner explain the design and its trade-offs?Walkthrough, design note
Decision recordIs the reason for key choices recorded?Short architecture decision records
ConsistencyDoes it follow the team's patterns and shared libraries?Lint rules, review notes
DuplicationIs shared logic reused and not rewritten?Duplication report
DependenciesIs every dependency justified, pinned and monitored?Lockfile, dependency decision log
TestsAre tests independent, meaningful and stable?Test review, mutation or failure checks
ReviewWas generated code reviewed by a person who understood it?Reviewer record on pull requests
SecurityIs there a threat model for risky features?Threat model record
Change safetyCan the team change it with confidence?Change failure trend, rollback record

A risk-weighted model for security debt

I was asked for a risk-weighted way to rank security debt. I do not have a verified scoring formula and will not pretend otherwise, so what follows is a method for judgement, and not a calculation.

For each item of security debt, record five things.

  1. Exposure. Is the affected component reachable from the internet or only from inside the network?
  2. Impact. What data or function does it touch? Personal or payment data and administrative functions rank higher.
  3. Exploitation evidence. Is it listed in CISA's Known Exploited Vulnerabilities catalogue, which CISA advises using as an input to prioritisation 3? Does a probability estimate such as EPSS, which estimates the chance a published CVE will be exploited in the next 30 days, suggest urgency 4?
  4. Compensating controls. Is there a control that reduces the likelihood or impact?
  5. Age and repetition. How long has it been open and how often has an exception been renewed? A repeatedly renewed exception is a decision nobody is making.

Then place each item in a band (act now, schedule, accept with expiry) and give it a named owner. KEV and EPSS are inputs, not verdicts 34; they do not cover business-logic flaws or misconfigurations without a CVE.

Prioritising technical and security debt together

I recommend one planning conversation with two lanes, not two competing backlogs.

  1. Start with the intersection. Code that is both hard to change and exposed (an authentication module nobody understands, for example) goes first, because you cannot fix it quickly when you need to.
  2. Pay down security debt that is exploited or exposed regardless of how tidy the code is. Exploitation evidence outranks aesthetic concerns 3.
  3. Fund technical debt where it blocks security work. If a service cannot be patched without a rewrite, the rewrite is a security task.
  4. Reserve a fixed share of capacity in each cycle for both, agreed with product owners. Without a reserved share, debt always loses to features.
  5. Make acceptance explicit. Engineering may accept technical debt. Only a named, accountable owner should accept security debt, with an expiry date.

Preventing the debt in the first place

Most of the controls are ordinary engineering discipline, applied earlier and more strictly because generation is cheap.

  1. Require an owner and an explanation for every change. If the author cannot explain generated code in review, it does not merge. This is a policy I recommend, not a measured intervention.
  2. Give assistants context. Point them at existing libraries, conventions and architecture notes so they reuse rather than reinvent.
  3. Limit the size of changes. DORA's capability list includes working in small batches, alongside continuous integration and pervasive security 11. Smaller changes are easier to review properly.
  4. Write tests independently. A person, or a differently configured process, should specify behaviour and not leave the same assistant to mark its own homework.
  5. Gate dependencies. New packages need justification and a record, which aligns with the pipeline controls in article 08.

Ownership and accountability

Debt without an owner never gets paid. CISA's secure-by-design guidance puts responsibility for security outcomes on the software producer 13. I extend that, as my own view, to internal teams: the organisation that ships generated code owns it as fully as hand-written code. An assistant is not an owner, and "the AI wrote it" is not an answer for a customer, an auditor or an incident review. Article 05 sets out the responsibilities in more detail.

Industry gaps

Based on the sources I could verify and my own experience:

  1. No verified standard metric for AI-related maintainability. The measures in this article are conventional engineering measures, and the scorecard is my proposal.
  2. Thin and mixed evidence. One preprint reports rising complexity 2 and one controlled experiment found no systematic difference 1. Neither settles the question and both are limited to specific settings.
  3. Little evidence on long-run effects. The experiment's authors themselves list code bloat and cognitive debt as open questions 1.
  4. No verified model for weighting security debt. KEV and EPSS are useful inputs 34, but I did not find an authoritative combined formula.

Practical recommendations

For early-stage startups

  1. Keep one rule: nobody merges code they cannot explain.
  2. Keep dependencies few and recorded 8.
  3. Write a short note for each significant design decision.
  4. Maintain a simple list of security shortcuts, each with an owner and an expiry date.

For scaling companies

  1. Track complexity, duplication and dependency growth per service, and review trends quarterly 2.
  2. Adopt the scorecard for your five most critical services.
  3. Run a joint technical and security debt review with a reserved share of capacity.
  4. Use KEV and EPSS as inputs to security prioritisation 34.

For enterprises

  1. Assign a named owner to every service and require evidence of knowledge transfer when people move.
  2. Map debt governance to SSDF practices and your control framework 12.
  3. Require accountable risk-owner approval and expiry for security debt exceptions.
  4. Include AI assistants and generated-code provenance in supplier and change-management reviews.

Key takeaways

Conclusion

My answer to the title is: not necessarily, but it is easier than before to build software nobody understands. The evidence I could verify does not show that AI makes code unmaintainable, and it does not show that it does not. It shows that speed and complexity can move together, and that human understanding is the scarce resource.

For next week, choose one service that matters. Ask its owner to explain how it works, which dependencies it uses and what they would be afraid to change. Write down the answers and the gaps. That small exercise tells you more about your real debt than a dashboard.

Views are my own; examples are composites and do not describe any specific employer or client.

Key takeaways

References

  1. Borg, M., Hewett, D., Hagatulah, N., Couderc, N., Söderberg, E., Graham, D., Kini, U., Farley, D. "Echoes of AI: Investigating the Downstream Effects of AI Assistants on Software Maintainability." arXiv 2507.00788. Submitted 2025-07-01 (latest revision v3, 2026-02-26). https://arxiv.org/abs/2507.00788 — Supports: two-phase controlled experiment with 151 participants (95% professional developers); no significant differences in completion time or code quality in phase two; no systematic maintainability advantage or disadvantage detected within the scope of tasks and measures; 30.7% median completion-time reduction in the observational phase; code bloat and cognitive debt flagged as future risks. Limitations: abstract page only; one Java web application; peer-review status not checked.
  2. He, H., Miller, C., Agarwal, S., Kästner, C., Vasilescu, B. "Speed at the Cost of Quality: How Cursor AI Increases Short-Term Velocity and Long-Term Complexity in Open-Source Projects." arXiv 2511.04427. Submitted 2025-11-06 (latest revision v3, 2026-01-26). https://arxiv.org/abs/2511.04427 — Supports: difference-in-differences study of Cursor adopters versus matched controls; significant, large but transient velocity increase; substantial and persistent increase in static analysis warnings and code complexity; these are estimated to drive a long-term velocity slowdown. Limitations: abstract page only, no effect sizes read; open-source projects and one assistant; listed for MSR 2026, peer-review outcome not checked.
  3. CISA. "Known Exploited Vulnerabilities Catalog." n.d. https://www.cisa.gov/known-exploited-vulnerabilities-catalog — Supports: CISA maintains a list of vulnerabilities exploited in the wild and advises organisations to use it as an input to their vulnerability management prioritisation framework. Limitations: absence from the catalogue does not mean a flaw is safe.
  4. FIRST. "Exploit Prediction Scoring System (EPSS)." n.d. https://www.first.org/epss/ — Supports: EPSS estimates the probability that a published CVE will be exploited in the wild in the next 30 days. Limitations: published CVEs only; usage guidance not read in full.
  5. Google Cloud, DORA. "Accelerate State of DevOps Report 2024." 2024. https://dora.dev/research/2024/dora-report/ — Supports: survey analysis associated higher AI adoption with a small negative throughput estimate and a larger negative stability estimate. Limitations: correlational survey data; exact release date unconfirmed.
  6. Google Cloud, DORA. "2025 DORA State of AI-assisted Software Development Report" (landing page). 2025. https://dora.dev/research/2025/dora-report/ — Supports: describes AI's primary role as an amplifier of an organisation's existing strengths and weaknesses. Limitations: landing page only; full report not read.
  7. METR. "Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity." 2025-07-10. https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/ — Supports: in a randomised trial, experienced developers took 19% longer with AI tools while expecting a speedup. Limitations: page flags the result as out of date and points to a later update that was not opened; concerns speed, not maintainability.
  8. OWASP Top 10 project. "A06:2021 Vulnerable and Outdated Components." 2021 edition. https://top10.owasp.org/2021/A06_2021-Vulnerable_and_Outdated_Components — Supports: continuous inventory of component versions, monitoring vulnerability sources and a lifetime update plan. Limitations: 2021 edition.
  9. OWASP Top 10 project. "A04:2021 Insecure Design." 2021 edition. https://top10.owasp.org/2021/A04_2021-Insecure_Design — Supports: insecure design and insecure implementation are different; a flawed design cannot be fixed by perfect implementation. Limitations: 2021 edition.
  10. Veracode. "2025 GenAI Code Security Report." 2025. https://www.veracode.com/resources/analyst-reports/2025-genai-code-security-report/ — Supports: vendor page states AI-generated code introduced risky security flaws in 45% of tests across over 100 models and four languages. Limitations: vendor report; landing page only; little methodological detail; concerns security, not maintainability.
  11. Google Cloud, DORA. "DORA Capabilities." n.d. https://dora.dev/capabilities/ — Supports: lists capabilities including working in small batches, continuous integration and pervasive security. Limitations: catalogue page only; no measured effects verified.
  12. NIST (CSRC). "Secure Software Development Framework (SSDF) Version 1.1: Recommendations for Mitigating the Risk of Software Vulnerabilities (NIST SP 800-218)." 2022-02. https://csrc.nist.gov/pubs/sp/800/218/final — Supports: SSDF adds secure practices to any SDLC, in four groups (PO, PS, PW, RV). Limitations: a practice framework, not specific to AI assistants.
  13. CISA with 17 U.S. and international partners. "Shifting the Balance of Cybersecurity Risk: Principles and Approaches for Secure by Design Software." 2023-10-25. https://www.cisa.gov/resources-tools/resources/secure-by-design — Supports: secure-by-design principles put security ownership on the software producer.