Software Engineering
New research tests code regeneration without preserving implementations
A study evaluates whether AI agents can rebuild software modules from metadata alone, with mixed success on dependency tracking.
As AI agents grow capable of rewriting programs in minutes, keeping code as the primary repository of knowledge may no longer make sense. A new paper explores whether software can instead be managed through separate metadata that allows modules to be deleted and reconstructed without losing critical information.
The Regenerative Software Concept#
The research builds on Martin Fowler's framework of regenerative software primitives — a set of principles designed to separate implementation from knowledge. Under this model, each software unit maintains a regeneration bundle containing everything except the actual code: specifications, tests, dependencies, and other metadata needed to rebuild the module from scratch.
The open-source tool spotregen (now at version 0.15.0) implements these primitives through records, static validation checks, and command-line tools. The bundle captures enough information that a deleted module could theoretically be regenerated by an AI agent working from the metadata alone.
Study Design and Results#
Researchers conducted a single-case study on spotregen itself, following a protocol established in the release tag. They tested whether a local open-weight language model could rebuild three small modules and a larger bridging unit using only their bundles.
The model succeeded on 4 of 13 attempts:
- All three smallest units passed
- One medium-sized unit was rebuilt successfully
- Nine attempts failed to produce acceptable code
Key Findings on Dependencies#
The research uncovered an important gap: two critical dependency problems that neither automated static checks nor human review had caught. These gaps appeared in the trace logs when two separate AI coders analyzed the nine rejections. The dependency tracking system proved less robust than expected, suggesting the validation tooling needs refinement to catch these kinds of errors.
Unexpected Maintainer Behavior#
In a testing phase with blind ratings and a deliberately seeded incorrect proposal, the maintainer's final approval decisions aligned with every proposal offered—including the one known to be wrong—despite having correctly identified it as problematic in his initial blind assessment. This outcome raises questions about how human judgment functions within automated review gates.