BlogTechnical Debt
Technical Debt8 min read read

The Negative-Carry Code Crisis

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

By Richard Ewing·
Share:

The Negative-Carry 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 Negative-Carry 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 Negative-Carry 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

The Software Phase Transition

The Software Phase Transition models the structural breakdown of traditional product management as the marginal cost of writing software approaches zero. In the pre-AI era, developer bandwidth was scarce and expensive. Organizations operated in the Solid state: managing 2-week sprints, grooming backlogs, and writing exhaustive PRDs to ration engineering hours. As tooling improved, organizations transitioned into the Liquid state of adaptive teams with fluid prototyping. With generative AI and autonomous agent pipelines, code generation costs collapse toward zero, propelling organizations into the Gas state. In the Gas state, developer capacity is no longer the rate-limiting constraint. Unbounded code generation creates exponential organizational complexity, coordination tax, and margin collapse. This forces a fundamental leadership evolution: product leaders must transition from managing feature velocity to becoming Product Economists who govern capital, system architecture efficiency, and uncertainty.

Read Definition →

Cost of Predictivity

The Cost of Predictivity measures the variable cost of AI accuracy. Unlike traditional software with near-zero marginal costs, AI features have significant variable costs that scale with both usage AND accuracy requirements. As AI correctness increases, cost scales exponentially - not linearly. This is the fundamental economic challenge of AI products. Traditional software follows a simple cost model: high fixed development cost, near-zero marginal cost per user. Build the feature once, serve it to millions for pennies. AI products break this model entirely. Every AI query costs compute. Every inference requires GPU cycles. Every improvement in accuracy requires either more sophisticated prompts (more tokens = more cost), retrieval-augmented generation (vector DB queries + embedding generation), or fine-tuned models (massive training costs amortized over queries). The cost structure looks more like a manufacturing business than a software business. The exponential curve is the killer. Moving from 80% accuracy to 90% accuracy might cost 2x. Moving from 90% to 95% might cost 5x. Moving from 95% to 99% often costs 10-20x. This is because the easy cases are solved by the base model, and each additional percentage point of accuracy requires increasingly sophisticated (and expensive) techniques to handle edge cases. This creates what Richard Ewing calls the AI Margin Collapse Point: the usage volume at which AI feature costs exceed the revenue they generate. Many AI features that work beautifully in prototype (low volume, don't need high accuracy) become economically devastating in production (high volume, users demand high accuracy). The AI Unit Economics Benchmark (AUEB) calculator at richardewing.io/tools/aueb helps companies calculate their Cost of Predictivity and identify their specific margin collapse point before it hits their P&L.

Read Definition →
📊

Richard Ewing

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

Want to apply this to your organization?

Run a free diagnostic first. If the numbers concern you, book a session to build a remediation plan.

Richard Ewing - AI Economist & Capital Auditor