BlogTechnical Debt
Technical Debt8 min read read

The Subprime Code Crisis

Because AI makes generating code free, we are seeing a massive inflation in the volume of code pushed to repositories. But AI-generated code carries hidden debt.

By Richard Ewing·
Share:

The Subprime Code Crisis: Why AI is Inflating Your Technical Debt

Because Artificial Intelligence makes generating code functionally free, the software industry is currently witnessing a massive, unchecked inflation in the volume of code being pushed to production repositories. In the short term, this looks like a miracle of productivity. Burn down charts look incredible. Story points are completed at record speeds. But underneath the surface, a toxic asset bubble is forming. We are entering the era of the Subprime Code Crisis.

The Illusion of Velocity

In a zero-interest-rate environment, engineering teams were rewarded purely for velocity. The mandate was simple: ship features fast, acquire users, and figure out the architecture later. Generative AI tools like GitHub Copilot and ChatGPT were introduced into this environment as the ultimate accelerators. They allow junior engineers to produce the output volume of senior engineers.

However, AI-generated code carries massive, hidden debt. Large Language Models (LLMs) do not possess architectural judgment. They do not understand the broader context of your monolithic application or your microservices lattice. They simply predict the next most statistically likely token based on their training data. As a result, they frequently hallucinate expensive third-party APIs, introduce subtle security vulnerabilities, or implement highly inefficient database queries.

Technical Insolvency and Synthetic COGS

When you hire engineers who are exceptional at prompting AI but terrible at auditing the resulting output, you are actively building a codebase that is technically insolvent. You are accumulating maintenance liabilities far faster than you are creating actual, monetizable asset value. Every line of code written is not an asset; it is inventory that carries a continuous carrying cost.

We call this hidden carrying cost Synthetic COGS (Cost of Goods Sold). If your cloud bill spikes because an AI-generated script is running a redundant loop across a massive database table, your gross margins shrink. The AI saved you $500 in engineering time upfront, but it costs you $5,000 a month in perpetual compute overhead.

The Audit Interview: Hiring for Curation, Not Construction

To survive the Subprime Code Crisis, engineering leadership must fundamentally rewrite how they evaluate and hire technical talent. The era of the LeetCode whiteboard interview is dead. If an AI can solve the algorithmic challenge in three seconds, testing a human on it is irrelevant.

We must immediately shift to the "Audit Interview."

Instead of asking a candidate to write a function from scratch, hand them 500 lines of deeply flawed, AI-generated code. Ask them to find the hidden memory bomb. Ask them to identify the race condition. Ask them to explain why the architectural pattern chosen by the AI will fail when the system attempts to scale to ten thousand concurrent users.

The Shift from Construction to Curation

We are rapidly moving from an era of software construction to an era of software curation. The highest-paid engineers of the next decade will not be the ones who write the most code. They will be the ones who possess the architectural wisdom to know exactly which code should be deleted, which code should be refactored, and which AI-generated pull requests should be outright rejected.

To protect your balance sheet, you must institute rigorous, deterministic testing frameworks and enforce strict architectural boundaries. If you do not govern your AI output today, you will spend the next five years paying off the highest-interest technical debt the industry has ever seen.

Like this analysis?

Get the weekly engineering economics briefing — one email, every Monday.

Subscribe Free →

More in Technical Debt

Canonical Frameworks

Technical Insolvency Date

The Technical Insolvency Date (TID) is the specific future quarter when an organization's technical debt maintenance will consume 100% of engineering capacity, leaving zero time for new feature development. Every software organization accumulates technical debt over time — shortcuts taken under deadline pressure, aging infrastructure, deprecated dependencies, and code that nobody understands anymore. This debt isn't free. It requires ongoing maintenance hours: bug fixes, security patches, dependency updates, and workarounds for architectural limitations. The critical insight is that maintenance burden grows faster than most leaders realize. If your team currently spends 40% of its time on maintenance and that percentage is growing 3% per quarter, you can calculate the exact quarter when maintenance reaches 100%. That quarter is your Technical Insolvency Date. At the TID, your engineering team is fully consumed by keeping existing systems alive. Feature velocity drops to zero. No new capabilities. No competitive response. No innovation. Your R&D investment becomes pure maintenance spend — you're paying innovation-era salaries for maintenance-era output. The concept draws from financial insolvency: the point where a company's liabilities exceed its assets and it cannot meet its obligations. Technical insolvency is the same idea applied to engineering capacity — the point where your maintenance obligations exceed your available engineering hours. Most organizations don't realize they're approaching the TID because they track technical debt qualitatively rather than quantitatively. Telling a board "we have technical debt" gets deprioritized. Telling a board "we are 8 quarters from technical insolvency — the point where we can no longer ship any new features" gets immediate action and budget allocation.

Read Definition →

Audit Interview

The Audit Interview is a hiring protocol that tests verification skills instead of code generation skills. In the AI age, the scarce human skill is not writing code — it's catching what AI gets wrong. Traditional coding interviews ask candidates to write algorithms on a whiteboard or in a shared editor. This was a reasonable proxy for engineering skill when humans wrote all the code. But in 2026, AI tools like GitHub Copilot, Cursor, and Claude generate code faster and often more correctly than human candidates under interview pressure. When Anthropic discovered that candidates were using Claude to pass their own coding interviews, it proved that traditional interviews are testing the wrong thing. They're testing a skill that AI performs better than humans under artificial conditions. The Audit Interview flips the model. Instead of asking candidates to generate code, it presents them with AI-generated code that contains hidden flaws — security vulnerabilities, logic errors, performance anti-patterns, edge case failures, and architectural problems. The candidate's job is to find the bugs, rank them by severity, and make a ship/no-ship recommendation. The protocol works like this: candidates receive a realistic code review scenario (500-1000 lines of AI-generated code with 3-5 hidden flaws). They have 10 minutes to review the code, identify issues, and present their findings. The evaluation scores 4 dimensions of engineering judgment: 1. Verification: How many bugs did they find? Did they catch the security vulnerability? 2. Prioritization: Did they correctly rank issues by severity? 3. Communication: Can they explain the risk to a non-technical stakeholder? 4. Judgment: Would they ship this code? Under what conditions? With what caveats? The free Audit Interview tool at richardewing.io/tools/audit-interview generates realistic AI-written code with calibrated flaws for interviewers to use immediately.

Read Definition →
📊

Richard Ewing

The AI Economist — Quantifying engineering economics for technology leaders, PE firms, and boards.