{"stub_of":{"origin":"https:\/\/venkateshrao.com\/blyg\/","id":"0mrdcxtf673g97gytsm87a6mva","version":1,"cited":{"retrieved":"2026-11-25T23:15:03Z","source":"Venkatesh Rao's Blyg","author":"Venkatesh Rao","excerpt":"# Regenerable Software: A Vision for Agentic Software Engine\u2026","url":"https:\/\/venkateshrao.com\/blyg\/t\/0mrdcxtf673g97gytsm87a6mva\/"}},"updated":"2026-11-25T23:15:03Z","content_md":"![[0ahv3m9nydndgchc0rs8rtq2k5]]\n\n![[199yfync9gz4z5amrd4cte2hsj]]\n\n![[0mrdcxtf673g97gytsm87a6mva]]","changelog":[{"version":1,"at":"2026-11-25T23:15:03Z","note":null}],"transclusions":[{"id":"0ahv3m9nydndgchc0rs8rtq2k5","version":1},{"id":"199yfync9gz4z5amrd4cte2hsj","version":1},{"id":"0mrdcxtf673g97gytsm87a6mva","version":1,"origin":"https:\/\/venkateshrao.com\/blyg\/"}],"created":"2026-11-25T23:15:03Z","page":"f\/167rzq3c0p58jdbd5b8191d4wa\/","content_hash":"sha256:4e818d87914b923d9878137eb063ab57bc6ce8cb0085c2c92908106ab0792a92","id":"167rzq3c0p58jdbd5b8191d4wa","kind":"thread","origin":"https:\/\/ammdi.hyperphor.com\/blyg\/","content_html":"<div><div><\/div><blockquote class=\"blyg-transclusion\" data-blyg-id=\"0ahv3m9nydndgchc0rs8rtq2k5\" data-blyg-version=\"1\"><div><p>Note that something like this already exists in pre-AI software. If you write an SQL query, that is basically a declarative specification that gets translated by the execution engine into an internal procedural program (a sequence of index lookups, scans, set operations\u2026). Mostly this is so fast and transparent that nobody bothers to store or look at the procedural program that is produced, although sometimes that is necessary. If it took hours to compile a SQL query into executable form, that would be a different story.<\/p>\n<\/div><\/blockquote><blockquote class=\"blyg-transclusion\" data-blyg-id=\"199yfync9gz4z5amrd4cte2hsj\" data-blyg-version=\"1\"><div><p>So regenerative software has been around for awhile, on a small scale, though not usually thought of that way.<\/p>\n<\/div><\/blockquote><blockquote class=\"blyg-transclusion\" data-blyg-id=\"0mrdcxtf673g97gytsm87a6mva\" data-blyg-origin=\"https:\/\/venkateshrao.com\/blyg\/\" data-blyg-version=\"1\"><h1>Regenerable Software: A Vision for Agentic Software Engineering<\/h1>\n<p><em>V1 Draft, comments invited from everyone, but <span class=\"h-card\"><a class=\"u-url\" href=\"https:\/\/blyg.bricolage.io\/\">@<span class=\"p-name\">Kyle Mathews<\/span><\/a><\/span> <span class=\"h-card\"><a class=\"u-url\" href=\"https:\/\/blyg.aneeshsathe.com\/\">@<span class=\"p-name\">Aneesh Sathe<\/span><\/a><data class=\"u-url\" value=\"https:\/\/aneeshsathe.com\/\"><\/data><data class=\"u-url\" value=\"https:\/\/mastodon.social\/@neeshter\"><\/data><\/span> <span class=\"h-card\"><a class=\"u-url\" href=\"https:\/\/www.msweet.net\/\">@<span class=\"p-name\">Matthew McDowell-Sweet<\/span><\/a><\/span> and <span class=\"h-card\"><a class=\"u-url\" href=\"https:\/\/rafael.fyi\/blyg\/\">@<span class=\"p-name\">Rafael Fern\u00e1ndez<\/span><\/a><\/span> in particular. Stub-quote with suggested edits and I\u2019ll fold them in. We will publish the final version on the Protocolized Substack.<\/em><\/p>\n<p>The most interesting possibility opened up by agentic software engineering is not that we might be able to <em>write<\/em> software much faster, but that we might be able to <em>throw it away<\/em> much more readily. If the intelligence embodied in a software system can progressively migrate out of its production code and into more abstract representations of what the software <em>ought<\/em> to do and how to establish that it <em>does<\/em> it, production code itself might become a relatively disposable artifact.<\/p>\n<p>Software engineering would evolve from a discipline concerned primarily with the accumulation and maintenance of code to one concerned with the accumulation and conservation of the engineering intelligence necessary to regenerate it.<\/p>\n<p>This represents a possible third major regime in the history of software engineering, following the regimes of <em>code accumulation<\/em> and <em>controlled code evolution<\/em>: <em>regenerable code<\/em>. Each regime is characterized by a different understanding of the durable capital of a software project, a different locus of engineering intelligence, and a different conception of maturity.<\/p>\n<h2>From accumulation to evolution<\/h2>\n<p>The first several decades of software engineering were largely concerned with the problem of accumulating code at scale. Programming languages, structured programming, modularity, information hiding, object orientation, design patterns, and increasingly sophisticated management methodologies were all, in part, responses to this problem.<\/p>\n<p>The software crisis articulated at the 1968 NATO Software Engineering Conference was fundamentally a crisis of accumulation. The ability to conceive of large software systems was advancing faster than the ability to construct them reliably. Human cognitive capacity, organizational coordination, and the difficulty of reasoning about large bodies of interacting code imposed limits on what could be built.<\/p>\n<p>The response was largely to develop better ways of organizing the accumulated complexity. Abstraction allowed programmers to reason about systems without keeping their entirety in mind. Modularity enabled relatively independent contributions. Interfaces and encapsulation restricted the propagation of local changes. Version control preserved the historical record of the accumulation.<\/p>\n<p>Production code was the principal repository of accumulated engineering intelligence, and the scarce human capacity to produce and comprehend it was the dominant economic constraint. A valuable codebase represented years or decades of intellectual labor. Losing it would have been catastrophic.<\/p>\n<p>There were important countercurrents to this conception. Formal specification, program synthesis, executable mathematical models, and correctness-by-construction approaches envisioned considerable separation between the intelligence embodied in software and its realization as particular code. The distinction between a high-level programming language and machine code was itself an early demonstration of how engineering intelligence could migrate into a more durable representation.<\/p>\n<p>But most of these approaches encountered difficulties of expressiveness, tractability, or economics. The range of systems that could be economically described and automatically synthesized was limited. Human programmers continued to serve as the general-purpose mechanism for turning underspecified intent into working software.<\/p>\n<p>By the late 1990s and early 2000s, a second conception of software engineering was becoming increasingly influential. The problem was no longer simply how to accumulate code, but how to keep accumulated code perpetually evolving.<\/p>\n<p>Agile development, test-driven development, continuous integration, automated refactoring, and eventually continuous delivery represented a shift away from treating software construction as a finite project followed by a maintenance phase. Software increasingly became a perpetually evolving process.<\/p>\n<p>Martin Fowler\u2019s work on refactoring and Kent Beck\u2019s work on extreme programming articulated a particularly important intellectual principle of this regime:<\/p>\n<blockquote>\n<p><strong>The internal structure of an implementation could change substantially while its externally observable behavior remained intact.<\/strong><\/p>\n<\/blockquote>\n<p>Automated tests supplied a practical means of preserving behavioral commitments through such changes.<\/p>\n<p>Over the following two decades, infrastructure-as-code, containers, cloud computing, automated deployment, and programmable CI systems extended this principle beyond the application itself. Much of the operational environment of software became reproducible, replaceable, and subject to automated verification.<\/p>\n<p>The mature expression of this second regime is a software system that can be modified and deployed frequently without becoming progressively more fragile. Its production code is not static, but the continuity of its behavior is carefully managed.<\/p>\n<p>Despite this substantial conceptual advance, production code remained the principal asset. The ability to alter it intelligently remained scarce. Assurance infrastructure was justified primarily by its ability to protect accumulated implementation capital and increase the rate at which it could safely evolve.<\/p>\n<p>Agentic programming introduces the possibility of a third economic and intellectual regime.<\/p>\n<h2>The inversion of software economics<\/h2>\n<p>The premise of this emerging regime is that <em>the marginal cost of generating plausible implementations is falling much more rapidly than the cost of establishing what implementations ought to accomplish and whether they actually accomplish it.<\/em><\/p>\n<p>This is true to some degree even when AI is applied to specification and verification. A coding agent can produce a substantial implementation of an adequately characterized feature in minutes. Establishing that the characterization is adequate, discovering the consequential edge cases, and constructing sufficiently independent verification mechanisms can consume considerably more intellectual effort.<\/p>\n<p>A small but instructive case study is <a href=\"https:\/\/blygger.org\">Blygger<\/a>, an open publishing protocol and ecosystem of applications developed through AI agents under human supervision. The details below are drawn from a <a href=\"https:\/\/blyg.blygger.org\/t\/2fhnkb3zbh4jpxxbd7yv11tr4d\/\">a recent internal review<\/a> of the project\u2019s unusual architecture, with an unusual ration of product to verification code for a project of a relatively small size.<\/p>\n<p>In late November 2026, less than three months after development began in earnest, Blygger Studio, the reference application, contained approximately 53,300 lines of product code and 70,600 lines of verification code. Verification constituted roughly 56 percent of the code across the principal project repositories, a &gt;1 ratio characteristic of much larger projects with much stronger reliability requirements. The project also contained a large corpus of prose specifications, decisions, and design documentation.<\/p>\n<p>Its continuous integration infrastructure exercises independent behavioral models across generated sequences of operations and introduces thousands of artificial defects to test the verification machinery itself. A parallelization effort reduced the duration of the comprehensive CI gate from approximately ninety minutes to thirteen and a half minutes while retaining the test suite.<\/p>\n<p>The project also invests heavily in upstream specification work. Protocol deliberation and rulings, application implementation, and independent assurance are undertaken through different human-agent workstreams. Multiple client applications participate in the evolution of the common protocol by surfacing ambiguities and unanticipated requirements.<\/p>\n<p>None of the underlying techniques are fundamentally new. Model-based testing, randomized testing, and mutation testing all have histories extending back several decades. The novel development is their economic relationship to production programming. Techniques once regarded as too expensive for routine use by small teams can become central to the operating model of an agentic project.<\/p>\n<p>The implicit economic premise of conventional software engineering was that writing code was the expensive activity and assurance was a necessary tax on it. The emerging premise is almost the reverse: writing code is becoming cheap, while acquiring the intelligence necessary to generate and recognize good code remains expensive.<\/p>\n<p>This suggests that the durable capital of a software project should increasingly reside elsewhere.<\/p>\n<p><img src=\"https:\/\/venkateshrao.com\/blyg\/media\/5yez0q89\/c09216f3969e51d6ef1e4e7d34a885a93bbbe5164280155432a8cacd80b4ed29.png\" alt=\"\"><\/p>\n<h2>The two hard anchors<\/h2>\n<p>Imagine production code as a relatively squishy material suspended between two relatively hard anchors: a <em>normative specification<\/em> and an <em>abstract behavioral assurance framework.<\/em><\/p>\n<p>Both anchors characterize desired behavior at a higher level of abstraction than the implementation, but they do so from opposite epistemic directions.<\/p>\n<p>The specification embodies constructive knowledge. It establishes the ontology of the system, its intended behavior, the commitments it makes, and the accumulated resolution of ambiguities encountered during its evolution. It constrains the synthesis of software by articulating what <em>ought<\/em> to exist. It is similar to <em>constitutional law<\/em>.<\/p>\n<p>The assurance framework embodies interrogative knowledge. It establishes how an implementation can be exercised, how its weaknesses can be exposed, and how acceptable behavior can be distinguished from unacceptable behavior. It constrains the acceptance of software through evidence of what actually exists. It is similar to <em>trial law<\/em> embodied in courtroom protocols and the traditions of <em>case law<\/em>, with strong elements of <em>common law<\/em>.<\/p>\n<p>These are different kinds of engineering intelligence. A clear understanding of <em>what ought to be true<\/em> does not necessarily entail an equally clear understanding of how to establish <em>whether it is true.<\/em> An apparently simple behavioral invariant may require elaborate experimental machinery to detect its violations.<\/p>\n<p>Conversely, the process of developing that machinery may expose deficiencies in the normative understanding of the system. Historically, these activities have often been organized asymmetrically, with testing treated as a derivative activity downstream of specification and implementation. There is a case for treating them as relatively independent intellectual enterprises.<\/p>\n<p>The relationship resembles that between the theoretical and experimental sides of a scientific discipline. Theoretical knowledge is not simply a condensed expression of experimental procedure, and experimental knowledge is not simply theory translated into an executable form. Both accumulate intelligence of their own, and the interplay between them makes each progressively more sophisticated.<\/p>\n<p>Between these two bodies of knowledge lies a solution space within which an implementation agent can exercise considerable freedom.<\/p>\n<p>In the ideal limit, the agent becomes a kind of probabilistic compiler, and production code becomes a renewable realization of accumulated engineering intelligence rather than its primary repository.<\/p>\n<p>This vision generalizes an idea already familiar from the history of programming languages: We are approaching the aspirational vision of <a href=\"https:\/\/pages.cs.wisc.edu\/~remzi\/Naur.pdf\">programming as theory building<\/a> put forth by Peter Naur in 1985.<\/p>\n<div class=\"blyg-tk-gen\"><p>Naur argued that a program is not its source code or its documentation but a theory held in the minds of its programmers: an understanding of how the problem maps onto the code, why the design is as it is, and how it should respond to new demands. The code is only a lossy expression of that theory. Because the theory cannot be fully written down, a program dies when the people who hold it leave, even if every file survives. Modifying software well means possessing the theory. Reading the artifacts alone yields a patchwork of changes that no one can justify. The durable asset is therefore the understanding, not the text.<\/p>\n<\/div>\n<p>We ordinarily do not regard the machine code generated by a compiler as the durable intellectual asset of a software project. It can be regenerated, optimized differently, or targeted at another processor. The intelligence that matters has migrated into the source language and the compiler.<\/p>\n<p>Agentic software engineering potentially moves the boundary of compilation much further upstream, into partially formalized, evolving bodies of human intent and behavioral evidence. Unlike a conventional compiler, the agent must engage in open-ended search and reasoning. Unlike a conventional source language, the two anchors need not uniquely determine an implementation.<\/p>\n<p>The resulting process is therefore less like deterministic compilation and more like constrained synthesis under independently established acceptance criteria.<\/p>\n<h2>The migration of engineering intelligence<\/h2>\n<p>Consider a bug encountered during the evolution of a software system.<\/p>\n<p>A traditional engineering response is to diagnose the problem, modify the implementation, and perhaps add a regression test. Some engineering intelligence has been acquired in the process, but much of it may remain embedded in the modified implementation. Future developers must understand the circumstances that produced the fix, or risk inadvertently undoing it.<\/p>\n<p>In a regenerable engineering regime, the same encounter might lead to a different distribution of the intelligence acquired. The bug prompts clarification of a normative commitment. An independent behavioral model is extended to account for that commitment, and the assurance framework acquires a more general capacity to detect violations across a range of circumstances. The production code is fixed, but the fix itself is arguably the least interesting part of the process.<\/p>\n<p>Valuable engineering intelligence has migrated in two directions: upstream into the explicit understanding of what the system ought to do, and downstream into the explicit understanding of how to establish whether it does it.<\/p>\n<p>The particular lines of code that resolved the bug can subsequently be forgotten with much less risk.<\/p>\n<p>The process bears some resemblance to the historical migration of intelligence out of individual programs and into programming languages, libraries, operating systems, and reusable infrastructure. Garbage collection, for example, moved certain kinds of memory-management intelligence out of application code. Relational databases moved substantial data-management intelligence out of bespoke applications. Cloud infrastructure moved operational intelligence out of the deployment practices of individual teams.<\/p>\n<p>In each case, a higher-level representation allowed particular realizations of engineering intelligence to become less consequential.<\/p>\n<p>But the migration into specification and assurance is of a different character. It concerns knowledge particular to the identity and behavior of an individual software system, rather than knowledge that can be generalized into infrastructure shared by many systems.<\/p>\n<p>It is also a migration into two different representations, rather than one.<\/p>\n<p>This is where independent behavioral oracles become particularly valuable. In Blygger Studio, the oracle process distinguishes the articulation of behavioral laws, independent models of those laws, generated operation sequences, and mechanisms for establishing the sensitivity of the oracles themselves.<\/p>\n<p>An agent that produces an incorrect implementation can easily produce an equally incorrect test that certifies it. Blygger has encountered this failure mode in practice. Independent mutation testing exposed gaps that the original authoring process had missed.<\/p>\n<p>The independence of the constructive and interrogative processes is therefore as consequential as their sophistication. Without meaningful epistemic separation, the apparent migration of intelligence might amount to little more than circular self-certification.<\/p>\n<h1>The squishy middle is thicker than it looks<\/h1>\n<p>It would be a mistake to regard the entire specification and the entire CI apparatus as the durable anchors, with only the product code suspended between them.<\/p>\n<p>A real assurance harness contains considerable implementation-contingent machinery. Its environment setup, source-level mutation operators, database fixtures, internal unit tests, fault injection mechanisms, and orchestration infrastructure reflect the particular architecture of the software being interrogated.<\/p>\n<p>Suppose Blygger Studio, currently a TypeScript application running on Cloudflare infrastructure, were regenerated as a Rust application backed by SQLite. Much of its present verification machinery would need to be regenerated as well.<\/p>\n<p>This suggests that the assurance infrastructure itself must undergo the same separation of intelligence from implementation that we wish to achieve in the production code.<\/p>\n<p>A portable assurance kernel might consist of abstract behavioral models, canonical test vectors, generated operation histories, expected outcomes, and accumulated counterexamples. A higher-level assurance specification might describe the classes of behavior that must be exercised, the adversarial scenarios that must be generated, and the types of failures that the verification machinery must be able to detect.<\/p>\n<p>The adapters and execution environment that connect this kernel to a particular implementation would be regenerable. The kernel itself might even remain in its original programming language.<\/p>\n<p>Something similar is true on the other side. A product specification might contain numerous contingent architectural choices that have acquired the appearance of normative commitments simply because they have been in place for a long time.<\/p>\n<p>The durable knowledge must be distinguished from the historical circumstances of its realization.<\/p>\n<p>The squishy middle is consequently thicker than it initially appears. It includes not only production code but also implementation-specific design and implementation-specific assurance machinery.<\/p>\n<p>The aspiration is not to make production code alone disposable. It is to make <em>everything<\/em> contingent on a particular implementation disposable.<\/p>\n<h2>Regenerability as a conception of maturity<\/h2>\n<p>Each of the three regimes of software engineering suggests a somewhat different conception of maturity.<\/p>\n<p>In the regime of <em>code accumulation<\/em>, maturity is associated with <em>completeness, stability, and successful realization.<\/em> The mature system is one that has been <em>finished<\/em> and <em>works.<\/em><\/p>\n<p>In the regime of <em>controlled evolution<\/em>, maturity is associated with <em>maintainability.<\/em> The mature system is one that can be <em>continuously modified<\/em> without losing its accumulated behavioral integrity.<\/p>\n<p>In the emerging regime of agentic engineering, a more ambitious conception becomes possible: <em>regenerability.<\/em><\/p>\n<p>A mature software system is one that can be regenerated without losing what matters about it.<\/p>\n<p>Consider taking a snapshot of a mature software project, making its entire production codebase inaccessible, and giving a capable agent only the normative specifications, portable assurance artifacts, and relevant technological constraints. How much of the original system could it reconstruct?<\/p>\n<p>The discrepancy between the original and regenerated applications would reveal something important about the distribution of intelligence in the project. Valuable behavior that could not be recovered would represent knowledge that had remained trapped in the original implementation, had been inadequately represented elsewhere, or exceeded the reconstructive capacity of the available agents.<\/p>\n<p>There are degrees of regenerability. Reconstructing an implementation in the same language and architecture would be a relatively modest accomplishment. Reconstructing it using a fundamentally different internal architecture would be more interesting. Reconstructing it on a different technological substrate while preserving its externally observable commitments would be more interesting still.<\/p>\n<p>There is also a distinction between regenerating an application and regenerating a deployed system. The historical state accumulated through a software system\u2019s existence may represent substantial commitments to the external world. A database schema might be disposable, but the historical identities, relationships, records, and obligations it contains are not.<\/p>\n<p>The strongest form of regenerability would therefore encompass both behavioral equivalence and historical continuity.<\/p>\n<p>Nor does regenerability necessarily imply literal one-shot generation, though that is an interesting limiting ideal. An agent might require hundreds of computational iterations against an independent assurance framework to converge on a satisfactory implementation.<\/p>\n<p>The important epistemic question is whether it requires additional engineering intelligence from human supervisors or the original implementation during those iterations. The economic question is how costly the computational search is.<\/p>\n<p>Both matter, but they are different questions.<\/p>\n<h2>Regeneration archaeology<\/h2>\n<p>What would a serious attempt to regenerate an existing software project look like?<\/p>\n<p>The first activity would not be writing new production code. It would be a process of engineering archaeology.<\/p>\n<p>A reasoning agent would interrogate the existing specification, production code, assurance infrastructure, historical decisions, bug reports, and related implementations. Its objective would be to extract valuable engineering intelligence that has not yet been externalized in a sufficiently portable form.<\/p>\n<p>For every significant portion of production code, it would ask what knowledge is embodied there that is inadequately represented elsewhere. For every significant portion of assurance code, it would ask what underlying intelligence justified its existence, independently of the mechanisms through which it is currently realized.<\/p>\n<p>The archaeological process would yield a regeneration brief: a set of normative, product-level, and operational commitments, portable behavioral models, accumulated counterexamples, and an account of the system\u2019s assurance obligations.<\/p>\n<p>In the Blygger case, this process would need to distinguish the universal commitments of the publishing protocol from the identity of Studio as a particular application. The protocol specification alone might be sufficient to produce another conforming application, but not to regenerate Studio.<\/p>\n<p>A fresh implementation agent could subsequently be given the distilled material without access to the original production code. A separate assurance workstream could construct the necessary execution machinery. The two would converge through independently adjudicated verification processes.<\/p>\n<p>The original application might remain available as a black box for differential testing. Disagreements between the original and regenerated versions would provide particularly valuable evidence. They might indicate a defect in either implementation, an omission in the specification, or a failure to distinguish normative commitments from permissible implementation variation.<\/p>\n<p>A regeneration exercise would consequently produce two valuable artifacts: a new implementation and a more mature representation of the intelligence necessary to generate implementations.<\/p>\n<p>The latter might be considerably more valuable than the former.<\/p>\n<h1>The engineering value of forgetting<\/h1>\n<p>There is an intriguing twist to the archaeology process. It might actually work <em>better<\/em> if the archaeologist were denied access to portions of the original implementation.<\/p>\n<p>Software accumulates intelligence, but it also accumulates baggage. Early architectural decisions constrain later ones. Workarounds necessitated by particular technologies become embedded in application logic. Accidental abstractions acquire the appearance of necessary ones. Agents given unrestricted access to an existing codebase may reproduce these choices because they constitute the most readily available evidence of how the system works.<\/p>\n<p>An archaeologist attempting to understand how the Romans built a bridge needs to recover as much historical information as possible about its construction. An engineer attempting to reproduce its functionality using modern techniques might actively benefit from ignorance of certain Roman construction methods.<\/p>\n<p>Regeneration archaeology is closer to the second activity. Its objective is maximum fidelity to durable commitments, not maximum fidelity to historical implementation.<\/p>\n<p>Imagine an experiment in which coherent portions of a software codebase are made inaccessible before the archaeological phase begins. Entire modules, subsystems, or architectural layers might be erased from the agent\u2019s working context. The specification, portable behavioral evidence, historical decisions, and related implementations would remain available.<\/p>\n<p>If the underlying intelligence is sufficiently redundantly distributed across these representations, the agent might reconstruct the functionality without inheriting the baggage of the erased material.<\/p>\n<p>There are loose analogies to dropout and masked learning in machine learning, and to erasure coding in information theory. The redundancy here, however, is semantic rather than textual. A single behavioral commitment might be represented through a normative statement, an abstract model, a set of test vectors, an actual implementation, and the history of bugs associated with it. Each representation illuminates somewhat different aspects of the commitment.<\/p>\n<p>A mature system of engineering knowledge should be able to lose some of these representations without losing the knowledge itself.<\/p>\n<p>For an imperfectly distilled project, the relationship between the amount of original code retained and the quality of a regenerated implementation might be non-monotonic. Too little erasure risks excessive inheritance of architectural baggage. Too much erasure risks the irretrievable loss of intelligence. Somewhere in between might lie an optimal degree of deliberate ignorance.<\/p>\n<p>As the two anchors mature, this optimum should migrate toward total erasure of production code.<\/p>\n<p>This is a conjecture rather than an established empirical result, but it is a testable one. Independent regeneration experiments could be conducted at varying degrees of structured erasure and assessed against common, independently controlled evaluation criteria.<\/p>\n<p>The original implementation could also be made available to regeneration agents as a scarce, metered resource. Every request to consult erased material would constitute a potential indicator of engineering intelligence that had not successfully migrated elsewhere.<\/p>\n<p><img src=\"https:\/\/venkateshrao.com\/blyg\/media\/ew87t0em\/4dd8cdc315ab3d4853e39759a7fd83ab2dc5ce18eda2fac6ca1d6c950ac1463c.png\" alt=\"\"><\/p>\n<h2>Destructive regeneration testing<\/h2>\n<p>The history of software engineering contains several examples of destructive methodologies that initially appear economically perverse but eventually become essential instruments of assurance.<\/p>\n<p>Mutation testing, dating to the 1970s, deliberately introduces defects to establish the ability of tests to detect them. Disaster recovery exercises simulate the loss of infrastructure to establish whether a system can be restored. Chaos engineering, popularized by Netflix in the early 2010s, deliberately disrupts operational infrastructure to establish the resilience of running systems.<\/p>\n<p>These activities share a general epistemic principle: certain kinds of resilience can only be convincingly demonstrated through exercises that threaten the thing whose resilience is being evaluated.<\/p>\n<p>Destructive regeneration testing would extend this principle to a higher level. Instead of disrupting the operational system, it would disrupt the body of implementation artifacts through which the system was constructed. Its purpose would be to establish the resilience of the underlying engineering knowledge.<\/p>\n<p>Conventional continuous integration asks whether a particular implementation remains healthy as it undergoes change. Regeneration testing asks whether accumulated engineering intelligence remains healthy when the implementation becomes inaccessible.<\/p>\n<p>Periodically, a project might undertake partial regenerations, replacing selected subsystems from specifications and abstract assurance obligations alone. More ambitious exercises might involve regenerating an entire application on an alternative technology stack.<\/p>\n<p>These need not be production migration exercises. A regenerated application could be discarded after serving its epistemic purpose. The durable return on the investment would be the additional intelligence recovered and incorporated into the two anchors.<\/p>\n<p>The exercises would also create a different incentive structure for everyday engineering work. Knowing that implementation artifacts might periodically be erased would encourage participants to ensure that important discoveries do not remain trapped within them.<\/p>\n<p>Over time, a project\u2019s ability to regenerate might increase even as the complexity of its accumulated behavioral commitments increases.<\/p>\n<p>In the first regime of software engineering, the deliberate destruction of production code would have been largely equivalent to the destruction of capital. In the second, controlled reductions and rewrites became an important means of preserving the value of capital. In the third, selective destruction might become an instrument for refining capital.<\/p>\n<h2>Regeneration debt<\/h2>\n<p>The term technical debt, introduced by Ward Cunningham in 1992, was originally a metaphor for the costs incurred when software embodies an incomplete understanding of the problem it addresses. As understanding improves, the software needs to be brought into closer alignment with it.<\/p>\n<p>In subsequent decades, the concept has broadened to encompass many kinds of liabilities associated with the internal condition of a codebase: tangled dependencies, expedient implementations, neglected refactoring, obsolete technologies, and inadequate documentation.<\/p>\n<p>Agentic engineering potentially makes some of these liabilities considerably cheaper to address. If an implementation can be economically regenerated under strong constraints, it may be less expensive to replace a tangled subsystem than to reason through the full history of its tangles.<\/p>\n<p>But a deeper class of liabilities becomes more salient: engineering intelligence that has failed to migrate out of the implementation.<\/p>\n<p>A subtle behavioral commitment that resides only in a particular function represents such a liability. So does a security invariant that is implicit in the interactions of several modules, an operational assumption that exists only in the memories of maintainers, or an oracle whose intellectual content cannot be separated from its implementation-specific execution machinery.<\/p>\n<p>We might call this regeneration debt.<\/p>\n<p>Regeneration debt is revealed not by the difficulty of maintaining existing code, but by the difficulty of replacing it without losing valuable behavior. A beautifully structured codebase might carry substantial regeneration debt. An ugly one might carry relatively little, if its intelligence is adequately externalized and its deficiencies can be addressed through independently established quality criteria.<\/p>\n<p>This brings the notion of technical debt back toward its original epistemic character. The fundamental liability is a discrepancy between accumulated understanding and its representation in the engineering artifacts of the project.<\/p>\n<p>But in the new regime, the most valuable representations are not necessarily the production code.<\/p>\n<h2>The conservation of engineering intelligence<\/h2>\n<p>There are significant limits to this vision. Specifications are necessarily incomplete. Verification machinery has blind spots. Independently developed models can share mistaken assumptions. Mutation testing cannot establish sensitivity to every possible defect. Some aspects of software quality, particularly those involving human experience, security, operational contingencies, and open-ended encounters with the external world, resist economical formalization.<\/p>\n<p>Nor is complete regenerability necessarily a sensible objective for all software. There may be little value in extensively externalizing the intelligence associated with a short-lived application. The economics of regeneration will depend on the expected life of a system, the nature of its commitments, the anticipated evolution of its technological environment, and the capabilities of the agents available to reconstruct it.<\/p>\n<p>Blygger represents an early experiment in this emerging regime rather than a demonstration of its ultimate possibilities. Its relatively elaborate specification and assurance infrastructure are suggestive of what small projects can now accomplish. Whether its implementation can be extensively erased and faithfully regenerated is an open empirical question.<\/p>\n<p>The larger historical trajectory, however, is recognizable.<\/p>\n<p>The first generation of software engineering disciplines gave us ways to accumulate increasingly large bodies of intelligence in code. The second gave us ways to keep those bodies of code evolving without losing their accumulated intelligence. A third might give us ways to conserve and evolve engineering intelligence without requiring the preservation of the code in which it was historically embodied.<\/p>\n<p>Software projects could become more intelligible even as they become more complex, more architecturally adaptable even as their historical commitments multiply, and less dependent on particular implementations even as they accumulate more engineering intelligence.<\/p>\n<p>The ultimate asset of a software project would no longer be its codebase. It would be its capacity to produce good codebases.<\/p>\n<p>And the ultimate test of its maturity might be how much of itself it can afford to forget.<\/p>\n<\/blockquote><\/div>","version":1,"media":[],"blyg":"0.3"}