Blog→Technical Debt
Technical Debt6 min read

Real Innovation Requires Deleting Code, Not Writing It

An expert analysis of how to audit for features you can deprecate and how to delete them. Introduces the Sunset Protocol for governing subtraction.

By Richard Ewing·
Share:

The Engineering Obsession with Addition

Engineering teams love to build. Product Managers love to launch. But very few organizations celebrate the deletion of code. The result is "Feature Gravity" - an ever-expanding codebase that demands an increasingly large share of your R&D budget just to maintain.

The Sunset Protocol

Real innovation capacity is accessed by subtraction. The Sunset Protocol is a rigorous governance framework for deprecating code:

1. Economic Audit: Measure the usage and revenue attribution of every feature against its maintenance cost. If Cost > Value, mark it as a Zombie Feature.
2. The Kill Switch: Put the feature behind a toggle. If nobody complains for 30 days, delete the underlying infrastructure.
3. Capacity Reallocation: Measure the hours saved and immediately reallocate them to high-margin, cap-ex initiatives.

Deleting code is the highest ROI action a CTO can take to extend the team's Technical Insolvency Date.


Calculate your maintenance burden instantly at richardewing.io/tools/pdi. Original run on Built In.

Like this analysis?

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

Subscribe Free →

More in Technical Debt

Related Canonical Concepts

AI Volatility Tax

The compounding gross margin penalty incurred when variable LLM inference query costs scale faster than subscription revenue, shifting server hosting into variable Cost of Goods Sold (COGS).

Read Concept →

Agent Kill Switch

A binary execution control mechanism that halts autonomous AI agent operations within 5ms when safety rules or environmental hash boundaries are breached.

Read Concept →

Deterministic Governance

The architectural pattern enforcing hard-coded, code-level execution gates and state verification outside the probabilistic LLM inference loop.

Read Concept →

The Negative-Carry Code Crisis

The systemic financial risk created when high-velocity AI code generation produces massive volumes of un-audited, low-trust technical debt that inflates ongoing maintenance OpEx beyond marginal value creation.

Read Concept →

Vibe Coding Debt

The engineering debt accumulated when developers accept AI-generated code based on superficial execution ("vibes") without understanding underlying architectural assumptions or edge cases.

Read Concept →

AI Governance

The enterprise control framework governing security, compliance, operational boundaries, and audit trails for autonomous AI models and multi-agent workflows.

Read Concept →

Shadow AI

Unmonitored artificial intelligence tools and autonomous agents deployed by employees without explicit IT or security oversight.

Read Concept →

AI Agent Sprawl

The uncontrolled accumulation and uncoordinated deployment of autonomous AI agents across an enterprise environment.

Read Concept →

Prompt Injection

A vulnerability where adversarial user inputs are crafted to override the original instructions of a large language model.

Read Concept →

Model Collapse

A degenerative process where AI models experience severe performance degradation after being iteratively trained on synthetic data generated by other models.

Read Concept →

Inference Economics

The financial discipline of managing, projecting, and optimizing the per query token costs associated with running large language models in production.

Read Concept →

Technical Insolvency

The critical threshold where the operational cost of maintaining a codebase and resolving technical debt exceeds the engineering capacity available for new feature development.

Read Concept →

The Coordination Tax

The non-linear increase in communication overhead, alignment meetings, and process friction that occurs when scaling engineering organizations, ultimately degrading per-capita execution capacity.

Read Concept →

The R&D Ponzi Scheme

The systemic masking of growing software maintenance liabilities (OpEx) behind inflated velocity metrics and new feature launches, creating a fragile engineering economy that requires constant new capital to sustain.

Read Concept →

The AI Margin Squeeze

The systemic erosion of traditional SaaS gross margins caused by the integration of generative AI features, as variable compute and API costs scale linearly or exponentially with user engagement, fundamentally altering software unit economics.

Read Concept →

The 10-Man Parity Rule

The principle that heavily AI-augmented teams of ten elite engineers can now achieve execution parity with traditional enterprise engineering organizations of over one hundred, fundamentally altering the economics of software creation.

Read Concept →

Semantic Caching

The architectural pattern of storing and reusing similar LLM query results using vector embeddings to bypass redundant frontier model API execution and eliminate variable COGS.

Read Concept →

Zombie Code & The Sunset Protocol

Zombie Code refers to deprecated or unused features that continue to run in production, consuming maintenance budget, compute resources, and engineering focus. The Sunset Protocol is the structured mechanism for financial remediation through systematic deletion.

Read Concept →

SLM Repatriation

The strategic shift of migrating high-volume inference tasks from commercial Frontier APIs (OpenAI, Anthropic) to local Small Language Models (SLMs) to achieve financial breakeven on variable COGS.

Read Concept →

DORA Metrics Financial Translation

The analytical process of converting standard engineering performance metrics (Deployment Frequency, Lead Time, MTTR, Change Failure Rate) into direct financial liabilities and capitalization impacts on the P&L statement.

Read Concept →

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