Manuscript Offprint

arXiv:2611.04383

Disposable Implementations: What Is Software Engineering For?

Christoph Treude

Christoph Treude

Singapore Management University

Singapore

Abstract—Existing implementations are usually maintained for most of their life and replaced only as an exception. Coding agents may change that. If agents can produce new implementations from requirements, tests, architectural constraints, and operational records that survive replacement, changing a system may no longer require modifying its existing codebase. We call this process regeneration. An implementation is disposable when regeneration becomes a routine alternative to maintenance. Regenerating and verifying a clean implementation from current requirements and tests may be cheaper than having agents navigate (and potentially compound) existing technical debt, and could eliminate much of that debt. Yet existing code may contain knowledge absent from the preserved artifacts, including safeguards introduced after failures and assumptions that were never documented. A regenerated implementation may pass the available tests and still lose behavior that matters in production. This leaves open how to establish continuity across replacements and whether regeneration reduces maintenance effort or shifts it to the artifacts and processes that support it. We examine these questions through an exploratory review of practitioner literature. Published examples show that agents can replace existing implementations, but do not establish that repeated regeneration is safe or economical. If implementations become disposable, what should software engineering preserve?

Index Terms—software maintenance, software evolution, coding agents, regenerative software, software knowledge

I. THE IDEA

Lehman's first law of software evolution, continuing change, reads: "A program that is used and that as an implementation of its specification reflects some other reality, undergoes continual change or becomes progressively less useful. The change or decay process continues until it is judged more cost effective to replace the system with a recreated version" [12]. The cost of writing a replacement has fallen considerably since Lehman formulated his first law. Rather than modifying existing code, coding agents could produce new implementations from requirements, interface contracts, tests, architectural constraints, and operational records preserved across replacements. We call this process regeneration. An implementation is disposable when regeneration becomes a routine alternative to maintenance rather than a last resort at the end of a codebase's life. The system persists; the implementation does not.

An existing implementation embodies accumulated effort and knowledge, but it also carries technical debt. Coding agents reduce the effort needed to write a replacement, though not necessarily the cost of recovering the knowledge. As Chad Fowler puts it, "When code is cheap to generate, preserving it at all costs becomes irrational" [4]. Rather than having agents navigate years of accumulated technical debt to make a change (and potentially compound that debt), it may be cheaper to regenerate and verify a clean implementation from current requirements and tests, potentially eliminating much of that debt in the process.

Whether replacement makes sense depends on the software. Kanat-Alexander places software on a spectrum from disposable to durable according to four factors: the consequences of failure, the number of people and systems that depend on the software, the cost of rewriting it from scratch, and the cost of maintaining it [7]. At one end are applications that can be discarded and rewritten with little consequence; at the other are systems whose failure would be costly and on which other systems depend. He argues that rigorous software engineering remains necessary for durable systems, regardless of who writes the code. Coding agents primarily reduce one of his four factors: the cost of writing a replacement. They do not necessarily reduce the cost of verifying the replacement, integrating it with dependent systems, or migrating existing state. Kanat-Alexander also suggests making software more disposable by limiting the consequences of failure or the number of systems that depend on it, for example by restricting access to customer data. We instead ask whether an implementation can become disposable while the system it supports remains durable.

Suppose AI agents maintain a service that other systems depend on. A new requirement changes how the service handles failed transactions. Rather than modify the code, the agents generate a replacement from the artifacts preserved across replacements. It passes the acceptance checks and is deployed, although its structure looks little like the previous version. The old code may be kept for reference, but it is no longer the starting point for the next change. Now suppose the old code contained a retry safeguard, added after a production incident. Nobody had documented or tested it. In Chad Fowler's phrase, the implementation remembered what the organization had forgotten [2]. The agents leave out the safeguard because none of the preserved artifacts describes it, and the replacement loses a lesson learned in operation. What must carry over between implementations for us to regard them as versions of the same system?

Software engineering may need to focus less on preserving an implementation and more on producing new implementations and establishing that they are acceptable. Three things that have usually been maintained together may come apart: the durability of the system, the continuity of its implementation, and the knowledge required to change it safely. We develop this argument through an exploratory review of practitioner literature.

References (20)