AI made building software cheap. Maintaining it is the hard part.
Writing software is no longer the expensive part. An agent can produce a working backend in an afternoon. The cost has moved to everything after the first deploy: security patches, dependency upgrades, and changes that must not break what already works. Our answer at Factory Zero is structural. Every venture is compiled from one shared, open-source base, so a fix is written once and reaches every company that uses it.
By Nick van der Meij · Published
Listen to this post
In short
- In the SWE-CI benchmark, most of the 20 models tested broke working code in more than three out of four long-running maintenance tasks.
- Veracode's October 2026 report found that 38% of AI code tasks still produced a vulnerability.
- A study of 6,299 repositories found that 22.7% of the issues AI assistants introduced were still in the code at the latest revision.
- On 16 November 2026 we moved 13 production workers across 12 ventures to a new release of our shared Rust base. Eleven of them went live inside twelve minutes, and every smoke test passed.
§1 · EVIDENCE
Building got cheap. Maintenance did not.
Three studies from 2026 looked at what happens to AI-written code after it ships. They measured different things and reached the same place.
- 3 in 4long maintenance tasks where most models broke something that workedSWE-CI
- 38%of AI code tasks that produced a security flawVeracode, October 2026
- 22.7%of AI-introduced issues still in the code at the latest revisionDebt Behind the AI Boom
| Study | What it measured | What it found |
|---|---|---|
| SWE-CI | 20 models maintaining 100 real codebases, each across an average of 233 days and 71 commits of history | Most models kept every test passing in fewer than a quarter of the tasks. Only two models managed it in more than half. |
| Debt Behind the AI Boom | 302,600 commits written by five AI assistants in 6,299 GitHub repositories | 484,366 issues introduced. 22.7% of the tracked ones were still there at the latest revision. |
| Veracode, October 2026 | 18 models writing code in four languages, tested against four common weaknesses | 62% of tasks passed the security tests. 38% produced a vulnerability. |
The Veracode number is the best it has been since that series began in 2025, and it still means nearly four in ten tasks ship a flaw. The SWE-CI result matters more to anyone running software for years. A model that passes a one-off coding test can still break a codebase when it has to change it twenty times in a row.
§2 · CAUSE
Every generated app is a new codebase to look after.
Ask an agent for a backend and you get one: sign-in, a database schema, a mail sender, rate limits. Ask again for the next product and you get a second one, written slightly differently. Neither is wrong. Together they are two things to patch.
That is the arithmetic behind the maintenance problem. A security fix in a sign-up flow is one fix if the flow exists once. It is twenty fixes if twenty products each carry their own copy, and the twentieth copy is the one nobody remembers. The agent that wrote it has no memory of doing so, and the person who asked for it has moved on to the next product.
Speed makes this worse. The faster code is produced, the larger the share of it that no person has read.
§3 · STRUCTURE
Write the common parts once, and compile every company from them.
Factory Zero runs its ventures on one open-source base, the Cratefield harness, written in Rust. The parts a company needs to exist are modules in that base. A venture is a small project that names the modules it uses and the services that answer for them, and compiles into one stateless worker with its own database. The technology page shows the layers.
The effect on maintenance is direct. A venture's own repository holds what is specific to that venture. Everything else is a version number. When the base changes, the question for each venture is which version it is on, and the answer is in one file.
We chose Rust for the base because the compiler turns many maintenance mistakes into build failures, which matters when agents write the changes. That argument has its own post: why we write agent-built backends in Rust.
§4 · RECORD
What one upgrade looked like on 16 November 2026.
On 3 November we cut a release of the harness. Most ventures were two minor versions behind it, so this was a real upgrade with breaking changes, new secret checks and a database migration. Here is how it reached production.
- One venture went first. We upgraded the Ledgers backend first, reviewed it and deployed it. That took eight commits.
- The change became a brief. Those eight commits, with the full diff, were written up as instructions for the same upgrade in any other venture.
- One agent per venture. Each agent worked in its own branch of its own repository, made the same change adapted to that venture's names, and ran the format check, the linter, the tests and the WebAssembly build.
- A person reviewed, then deployed. Before each deploy we recorded the version being replaced and the exact command to return to it. After each deploy a smoke test ran against the live worker.
Eleven workers went live one after another between 13:01 and 13:13 UTC. Two more, which carried database migrations, followed at 13:17 and 14:14 after a restore point was recorded for each database. That is 13 workers across 12 ventures in one afternoon, and all 13 smoke tests passed.
The work was not automatic in the sense of nobody looking. It was automatic in the sense that matters: the change was designed once, and applying it to the twelfth venture cost about what applying it to the second did.
§5 · LIMITS
What a shared base does not solve.
A shared base concentrates risk as well as effort. A bad release would reach every venture, which is why one venture goes first, why each deploy is smoke tested, and why a rollback is written down before it is needed.
It also does nothing for code that is specific to one venture. That code still needs its own tests and its own owner. The base makes the common 70% someone else's job. The remaining part is still yours.
And the fully managed version of this does not exist yet. Cratefield, the hosted service that would run these upgrades for outside teams, is planned and not built. Today the process runs inside Factory Zero, for our own ventures and for the companies we build through venture as a service.
QUESTIONS
Questions people ask about this.
- Is AI-generated code harder to maintain than code written by people?
- Not line for line. The difference is volume and ownership. Agents produce code faster than anyone reads it, and each generated app is its own codebase, so every fix has to be repeated in each one. The research so far measures the result: regressions during long maintenance runs, and issues that stay in the code.
- What does a shared base change?
- The parts every product needs, such as sign-ups, mail, captcha and database migrations, exist once. A venture pins a version of them. When we fix or upgrade the base, each venture moves to the new version through the same reviewed change, and nothing is patched by hand in twenty places.
- Do agents upgrade production on their own?
- No. Agents apply the upgrade in a branch per venture and run the checks. A person reviews the change, and each deploy records the version it replaces so it can be rolled back with one command.
- Does this work for a client's private code?
- The shared base is maintained for every venture that uses it. Code that is specific to one company lives in that company's own repository and is pinned to versions of the base. See one shared base, private code on top.
SOURCES
Where the numbers come from.
- SWE-CI: Evaluating Agent Capabilities in Maintaining Codebases via Continuous Integration, Chen et al., Sun Yat-sen University and Alibaba Group, March 2026.
- Debt Behind the AI Boom: A Large-Scale Empirical Study of AI-Generated Code in the Wild, Liu et al., March 2026, revised October 2026.
- Veracode Finds First Meaningful Gain in AI Code Security Since 2025 as Average Pass Rate Hits 62%, Veracode, 29 October 2026. Veracode sells security tools, and these figures come from its own tests.
- The Cratefield harness, source and decision records, Cratefield. The upgrade figures come from our own deploy records of 16 November 2026.
KEEP READING
- 02Why we write agent-built backends in Rust.Agents write most of our code. Rust moves the checks that matter to build time, where an agent cannot talk its way past them. What it catches, and what not.
- 03One shared base, private code on top: who maintains what.A venture built on Factory Zero has two kinds of code. The shared base is maintained once for everyone. The private part stays yours. Where the line runs.