TL;DR
Instead of letting AI agents freely rewrite their own code to chase benchmark scores, what happens when you put a human gatekeeper in the loop and carry lessons across real-world projects? By tracking an LLM "software factory" across six repositories, this paper finds that while shared failure rules appear to travel well, the automated test gates meant to keep the system honest have blind spots of their own—and the human workload doesn't magically shrink. Oh, and in a neat meta-twist: the factory built the non-software pipeline that wrote this very paper.
What Problem Does This Paper Address?
When researchers talk about Recursive Self-Improvement (RSI), they usually envision an autonomous, open-ended loop: an AI rewrites its own scaffolding and keeps whatever version scores higher on a benchmark.
In daily engineering practice, however, teams do something much tamer. When a coding agent fails, the failure and a rule to prevent it are written down in plain text so future runs don't repeat the mistake. Any change to the orchestration machinery itself requires human sign-off. The author calls this bounded, human-gated RSI. While recent studies have looked at how agents learn from mistakes within a single project, nobody had measured what happens when these learned rules are ported across different projects, or audited whether the deterministic test gates guarding these loops actually work as intended.
Methods
The author studies a "software factory"—a collection of shell scripts, prompts, and markdown memory files that turns human-written specifications into tested, merged code using two LLM families (DeepSeek for implementation, Claude Opus for review). Tasks only merge when unit tests, end-to-end tests, and CI exit with code zero.
What’s novel here is the cross-project improvement loop paired with pre-registered falsification tests and an illustrative Poisson thinning model:
- Memory & Porting: Agents read and write numbered Pitfalls (symptom, root cause, rule) and Factory Improvement Proposals (requests to alter the factory's scripts). Agents cannot edit the orchestrator; only the human approves proposals and ports generalizable rules into a central template for future projects.
- Mathematical Modeling: The author models project failures as a Poisson process to mathematically demonstrate how raw comparisons between different types of rules (prose-only vs. backed by a mechanical check) can be confounded by underlying failure frequencies.
Datasets
Rather than relying on synthetic benchmarks, this is an observational repository-mining study. No training datasets were used. Instead, deterministic parsing scripts analyzed commit logs and memory files pinned to exact git commits across 6 related production repositories created over 20 days: a central template, two games (stock_game, new_game), a trading tool (quant_home), a learning tool (learning_agent), and paper_agent (the pipeline that produced this manuscript). Together, they span 709 commits and 127 delivered tasks.
Key Insights and Ideas
- Who watches the watchmen? In AI safety, deterministic test suites are often treated as the un-gameable ground truth. Here, the factory's own deterministic gates failed silently (due to quirks like Windows
CRLFline endings or regexes matching test IDs inside comments), and its internal test harness missed every single one. Verifiers need independent verification. - Confounding in rule effectiveness: You would intuitively expect rules backed by a mechanical check (like a linter or command) to prevent repeat failures better than plain English prose rules. In the raw data, only check-backed rules recurred. Using the Poisson model, the author shows why: engineers attach mechanical checks to the nastiest, highest-frequency platform bugs, so even an effective check still lets occasional failures slip through.
- Self-improvement doesn't mean less human work: Because bounded RSI optimizes a readable, auditable text artifact rather than a scalar benchmark score, it surfaces problems rather than hiding them—meaning the loop kept asking its human operator for decisions rather than running itself.
- From Software Factory to Solution Factory: By using the exact same spec-to-test-to-gate architecture to build
paper_agent, the system stepped beyond outputting code to outputting gated workflows for non-software domains.
Key Results
Across the 20-day window, the factory accumulated 104 unique pitfall rules, propagated 123 ported copies across repositories, and logged 96 improvement proposals:
- Cross-Project Transfer (Weakly Supported): 0 of 123 ported rule copies recorded a recurrence in their receiving repositories, whereas 5 of 104 (4.8%) native rules recurred where they were originally written.
- Check-Backed vs. Prose Rules (Refuted): 5 of 55 check-backed rules (9.1%) recurred, compared to 0 of 49 prose-only rules (0.0%).
- Gate Verification (Supported): Out of 10 defects discovered in the factory's own gate scripts, the factory's internal test harness caught 0. An independent second agent commissioned for acceptance testing caught 8 (with production runs and manual UAT catching the remaining 2).
- Human Cost (Refuted): Improvement proposals per delivered task (a proxy for human cognitive load) did not decrease as rules accumulated; they rose from 0.40 in the first project to 1.50 in the last.
Limitations and Future Work
The author is candid about the study's constraints: it covers one human operator, 20 days, one OS, and six repositories sharing a single lineage. Recurrence tracking relies on self-reported notes by agents and the operator, making the 0% ported recurrence rate a lower bound favored by selection bias (younger repositories had less time to fail). Furthermore, there is an inherent conflict of interest—paper_agent wrote the paper evaluating its own parent factory, safeguarded by tying every number to public parsing scripts on fixed commits.
Future work should compare human-gated factories directly against ungated ones, bring in multiple human operators, and track hand-matched failure classes across repositories before and after rules are ported.
Summary updated