Regenerable software splits continuity across durable carriers
Type: types/note.md · Tags: learning-theory, artifact-analysis
Software can be regenerated without keeping every version of its source code when other durable carriers preserve the commitments later operation depends on. Kirsch's critique of ephemeral software observes that "Durable artifacts proliferate rather than disappear: code, version history, tests, schemas, specs, audit trails, logs, and postmortems all become more important" (The Flawed Ephemeral Software Hypothesis, verbatim). Those production pressures establish that operational commitments must survive replacement; they do not establish that the original implementation must remain their sole carrier.
Three continuity requirements, two different boundaries
Kirsch's barriers bundle three distinct continuity needs that one artifact need not satisfy together — and they do not share the same epistemic boundary:
- Behavioural continuity (carrier-cost choice). Production systems accumulate post-deployment edge cases, compatibility constraints, and interface expectations: "Edge cases emerge from real usage, bad data, and strange environmental interactions. This knowledge accumulates only after deployment" (The Flawed Ephemeral Software Hypothesis, verbatim), and "Real systems carry backward-compatibility constraints, migrations, hidden API quirks, and implicit module dependencies. Regenerated code must still work against old state and external systems" (The Flawed Ephemeral Software Hypothesis, verbatim). A billing timezone fix can survive implementation replacement through a retained regression test; a migration relationship can survive through a retained schema history and conversion contract; an API expectation can survive through an interface contract. Whether to keep the implementation or regenerate it against those tests and contracts is a comparison of reconstruction, validation, maintenance, and failure costs.
- Reusable explanation (carrier-cost choice). A retained rationale explaining why a boundary behaves as it does supplies explanatory-reach, helping a replacement handle cases that enumerated tests do not cover. Keeping only an example can leave the reason unstated; keeping only an explanation can lose the exact failing input. Neither code size nor explanatory-reach alone decides what to retain: an arbitrary legacy identifier or contract may have low explanatory-reach yet require exact preservation, while a high-reach explanation may be cheap to reconstruct from surviving evidence.
- Historical evidence (information-loss boundary). "Systems with serious stakes also require traceable artifacts for compliance, incident response, and liability" (The Flawed Ephemeral Software Hypothesis, verbatim). Reproducing plausible behaviour is not the same as preserving evidence of which decision actually occurred. Because history has one chance to become checkable and commitment, not derivation, creates new ground truth, losing the record of an unentailed past decision is genuine information loss that regeneration cannot repair.
Retain knowledge without retaining every computation
Whether an episode's lessons survive replacement is decided at the level of the deployed system, not one generated file. A system can keep tests, contracts, audit records, and theory, generate temporary code, test it against those carriers, and retain what matters without archiving every disposable script. Conversely, where recurring execution makes repeated synthesis and debugging costly, rediscovery costs on recurring tasks can justify gated code reuse.
Codification and persistence are separate choices. Codification changes execution form by assigning an operation to a symbolic consumer; persistence determines whether a carrier remains available later. Temporary code is symbolic while it runs even when deleted afterward, and durable natural-language specs or notes can govern later work without becoming executable code.
The same split applies inside a knowledge base: discarding a draft need not lose its contribution when evidence and a better formulation survive, whereas keeping a draft matters when it holds premises or rejected alternatives later work cannot recover.
Scope
This argument addresses continuity of operational knowledge across replacement, not execution safety. Claims about safe disposal still require checking external effects, retention obligations, and the consequences of error. Deleting a temporary script does not undo a write it made or a disclosure it caused. Even a pure computation can produce a result on which someone acts. Decide what may run from its possible effects and what evidence to keep from the decisions that depend on its result.
To adjudicate code retention versus regeneration on a concrete component, compare retained and regenerated implementations on later changes given the same declared surviving records — including both a past compatibility commitment and an extension of its rationale — measuring outcome quality, reconstruction and maintenance costs, and loss of required history. If regeneration fails, identify which continuity carrier was missing before concluding that retaining the old code itself was necessary.
Relevant Notes:
- The deployed system, not the model alone, is the unit of learning — grounds: sets the system boundary over which surviving carriers must be checked.
- History has one chance to become checkable — grounds: explains why unrecorded historical decisions cross an information-loss boundary that regeneration cannot repair.
- Commitment, not derivation, creates new ground truth — grounds: distinguishes unentailed past choices that require preserved records from recoverable derivations.
- First-principles reasoning selects for explanatory-reach over adaptive fit — grounds: separates transferable rationale from exact contractual or historical preservation.
- Rediscovery costs on recurring tasks can justify gated code reuse — contrasts: examines when recurring synthesis and debugging costs justify keeping executable code rather than regenerating it.
- Codification — contrasts: assigned execution form and artifact persistence are separate design choices.
- The Flawed Ephemeral Software Hypothesis — evidenced-by: supplies the production continuity pressures (edge cases, compatibility, auditability) separated by carrier and boundary here.