Guide · Published 25 October 2026 · Figures as of 10 November 2026

What Is an AI Software Factory? Light, Dark and Autonomous

An AI software factory is a production line where AI agents turn a written specification into working, tested, released software. Humans decide what to build and approve what carries risk. The line plans, writes code, reviews it, runs tests and ships. Quality is enforced by measured gates, not by the judgement of whoever happens to review.

The rest of this page explains where the idea comes from, the five levels between autocomplete and a fully dark factory, how an autonomous line works step by step, and why most of them quietly lose quality. It ends with figures from a factory in production, taken from a published experience report and its dataset.

pull requests merged in thirty days
964
And 95 releases, with one production incident, fixed the same day.
review findings confirmed against the code
1,311
From 4,048 review runs. 57 of them were serious.
line coverage, up from 87.38%
91.4%
Google calls 90% “exemplary”. A ratchet stops it slipping.
duplicated lines, down from 1.56%
0.54%
SonarQube’s default gate allows 3% on new code.

Figures for 12 October to 10 November 2026, from a published experience report and its dataset, both on Research. Today’s figures are on Report and Quality.

Who does what

You decide, the factory builds, a product comes out. The decisions that carry risk never leave you.

You decide

  1. IdeaOne sentence, from anywhere.
  2. GroomingA talk with your AI: it asks, you answer, it writes the tasks.
  3. The goNothing starts without your word.

The factory does

  1. BuildEach task in its own copy of the code.
  2. ReviewSeveral AI reviewers, every finding checked.
  3. TestThe full suite in isolated cloud runs.
  4. GateMetrics decide; quality may never slip.
  5. ReleaseBehind a flag, checked in production.
  6. RetrospectiveAfter every train it looks back and improves its own process.

You get

  1. Live productShipped on its own, for your users.
  2. The proofTime, findings, tests and cost of every task.
  3. Live push notificationsA push to your phone when a train leaves, waits or arrives, with the figures updated.

The base stays yours, under lock

Money and security never pass to the factory, whatever it builds.

  • The keysSecrets, access and database changes stay in your hands. The factory never asks for them.
  • BudgetThe factory works inside your Claude plan and reports what every car cost.
  • The brakeA feature flag switches a risky feature off for everyone. No redeploy.
  • Leak guardEvery delivery is scanned for leaked keys and secrets. If anything leaks, the factory stops on its own.

What is the difference between an AI factory and an AI software factory?

An “AI factory”, in the sense NVIDIA and Cisco use, is a data center built to train and serve AI models. Its input is data and electricity. Its output is a model or a stream of predictions.

An AI software factory sits one layer up. Its input is a feature request or a bug report. Its output is code that has passed review and tests and is running in production. It rents compute; it does not build it.

The two terms share a word and little else. If you are buying GPUs, you want the first. If you want a product shipped, you want the second.

Where does the idea of a software factory come from?

The term “software factory” is older than AI by more than half a century. Hitachi adopted it in 1969 for its Hitachi Software Works, to organise programming like manufacturing: a repeatable line with standard parts, in place of craft work done differently by every team.

The idea came back in 2004 with the book Software Factories by Jack Greenfield and Keith Short, then architects at Microsoft, which described assembling applications from patterns, models and tools. Both versions hit the same wall. Humans still wrote every line, so the line was only as consistent as the people on it.

AI agents remove that wall. For the first time, the worker on the line can follow the same procedure on every task, at any hour, and be measured on every run.

Manufacturing also gave the industry its most ambitious target. A “lights-out” plant, such as Fanuc’s robot factory in Japan, runs with no people on the floor, so nobody needs the lights on. Software borrowed the image as the “dark factory”.

What are the five levels of AI-assisted programming?

The five levels of AI-assisted programming are a scale published by Dan Shapiro on 28 January 2026. It runs from AI that suggests the next line to AI that ships software with no human in the coding.

Level Name Who writes the code What the human does
0 Spicy autocomplete The human Types; AI suggests the next line
1 The coding intern The human, with AI on small tasks Hands off chores, checks everything
2 The junior developer AI and human together Pairs with AI, reviews most output
3 The developer AI writes most of the code Reviews full time
4 The engineering team AI agents Writes specs and plans; agents build
5 The dark software factory A black box Writes specs; no human in the coding

What is a dark factory in software development?

A dark factory in software development is Level 5 on this scale: specifications go in, working software comes out, and no human writes or reviews the code in between. The name comes from lights-out manufacturing.

Is a black factory the same as a dark factory?

Yes. “Black factory” is a rarer synonym for the same thing, a factory that runs without people on the floor. Both terms name Level 5.

How does an autonomous AI factory work?

An autonomous AI factory, also called an autonomous software factory, works as a fixed sequence of stations that every change passes through, in the same order, with a measured check at each one. Here is the sequence in Rational Trains, the factory this site describes. The full detail of every car is on the steps of every car.

  1. Groom the idea. The founder describes a feature in a conversation with an AI that asks the questions a good product manager would ask, then writes the tasks. The person decides here, when the task is formulated.
  2. Check every task before it is built. Before any code exists, each task is checked in three layers: against the project’s living plan, against the product’s rules, and against the code, by an independent read-only session, with a second session verifying every finding before anything changes. A task that is wrong at the input is built wrong, however well it is reviewed later.
  3. Form a train. A train is one release. Each car in it is one task.
  4. Build each car in isolation. Every car is built in its own copy of the code, so one task cannot break another while it is in progress.
  5. Review each car. Several AI reviewers from different providers check every car. Each finding is checked against the code before it counts as a defect, which removes false alarms.
  6. Test each car. Tests run in isolated cloud runs on every car.
  7. Pass the gates. Standardized metrics decide what merges: test coverage, duplication, type checking, import cycles, lint and security scans. Another AI’s opinion does not.
  8. Review the whole train. Before release, the train is reviewed again as one unit, to catch problems that only appear when cars meet.
  9. Release behind a flag. Risky features ship behind a feature flag, which works as an emergency brake.
  10. Record everything. Every run, its result and its cost go to BigQuery.

The factory is a full-cycle harness around Claude Code. It works with any stack the founder’s AI understands and runs on the founder’s own Claude plan and Google Cloud project, with no server of ours in between.

Stations · 12 October to 10 November 2026

From the published experience report

  1. 1

    Groom

    One talk with your AI; each task checked before the code.

    Issues closed
    1,148
    In the last full week
    338
    Issues closed, week by week
  2. 2

    Build

    Each car in its own copy of the code.

    Go to pull request, week of 26 Oct
    19 min
    Pull requests merged
    964
    Median pull request size, week by week
  3. 3

    Review

    Several AI reviewers, every finding checked.

    Review runs
    4,048
    Findings confirmed
    1,311
    Confirmed findings, week by week
  4. 4

    Test

    The full suite in isolated cloud runs.

    Cloud test runs
    2,806
    Line coverage
    91.4%
    Coverage, nightly from 14 Oct
  5. 5

    Gate

    Metrics decide; quality may never slip.

    Duplicated lines
    0.54%
    Import cycles
    0
    Confirmed findings per car, weekly
  6. 6

    Release

    Behind a flag, checked in production.

    Releases
    95
    Production incidents
    1, fixed the same day
    Pull request to production, week of 26 Oct
    4.1 h

Why do most AI software factories drift?

An AI software factory drifts when every single change looks fine on its own while the codebase as a whole gets worse. One task copies a helper instead of reusing it. Another skips a test because the deadline is close. A third adds a dependency that loops back on itself. Each passes review. After a few hundred changes, the code is slower to change and easier to break.

Critics of dark factories point at exactly this. On old, messy codebases, autonomous agents get fragile, and most impressive demos are built on fresh, green-field code. LaunchDarkly rewrote its oldest frontend, about 66,000 lines, this way (opens in a new tab): fully autonomous agents struggled on the legacy code, and the work succeeded once it moved to phase-by-phase steps with a human steering. The criticism is fair.

How do gates and a ratchet stop drift?

A ratchet is a rule that each quality figure may hold or improve on every merge and may never slip. If test coverage is 88.4% today, no change can merge that takes it to 88.3%. If duplication is 1.1%, no change can push it to 1.2%.

Gates make that rule mechanical. The factory measures every car with the same standard tools, compares the result with the best figure so far, and blocks the merge if anything got worse. A human reviewer can be tired or persuaded. A gate cannot. The rule and the figures it guards are on how the quality ratchet works, and the full list of measures is on the quality scorecard.

The result is a codebase that gets cleaner as it grows, which is the opposite of drift. The page on no sprawl, no drift shows each measure over time.

What does a real AI software factory deliver? Dated figures

The figures below come from a published experience report on a Rational Trains factory building a production web app, run by one operator who is not a programmer. Unless stated otherwise, they cover its thirty-day window, 12 October to 10 November 2026; from its last full week, the counts include every repository the factory delivered to. The report, its window and the rows behind its figures are published, with the dataset, on research. The report leaves cost out, so the cost figures below keep their own earlier date.

What does $1,000 buy?

At full list price, with no subscription discount and no credits, $1,000 of factory time bought 844 to 1,512 hours of professional work as of 25 October 2026. The same $1,000 buys 30 hours from a five-person team in Poland working without AI, and 34 hours from the same team with AI assistants. That is 28 to 50 times more work per dollar. The method is on what a dollar buys.

How much does it cost to catch a defect?

In the week of 26 October 2026, the reviews cost at least $1.43 per confirmed finding at list prices. Earlier, in the two weeks to 25 October 2026, catching one confirmed defect before merge cost $1.25 with review only, and $1.81 including tests. Careful human review runs at 200 to 400 lines an hour (SmartBear). At that pace and €30 an hour, reviewing those changes by hand would have cost $37 to $74 per defect. Today’s figures are on cost per defect.

How many defects were stopped?

In thirty days, 4,048 review runs produced 1,311 findings that were checked against the code and confirmed; 57 of them were serious, and 200 more were checked and dropped as false. The share of findings that held up was 85% in the first week and 97% in the last two days. Most confirmed findings, and most serious ones, came from one reviewer only, which is the case for several reviewers over a single best one. A confirmed finding is one an agent agreed was real on reading the code, not a bug known to have hurt a user. Today’s figures are on defects caught by review.

Confirmed findings per car fell from 2.2 to 1.46 to 1.35 over the first three weeks, while the volume of work grew, and stood at 1.38 in the fourth, the first week counted over the factory’s own repository too.

How much did it ship?

In the thirty days the factory merged 964 pull requests, closed 1,148 issues and shipped 95 releases. Merged pull requests rose week by week, from 158 to 189 to 212 to 290, while the median pull request shrank from 570 changed lines to 241: from 29 October a car may hold at most 250 lines of code, comments excluded. Today’s delivery figures are on delivery metrics.

How fast is it?

In the week of 26 October 2026, a car took a median of 19 minutes from the go signal to its pull request, and 41 minutes to merge. A pull request took a median of 4.1 hours from being opened to running in production.

How does it compare with published standards?

By DORA’s definitions, deployment frequency and lead time for changes were in the 2024 Elite band in the week of 26 October 2026. That week no release of 18 failed, and recovery time could not be measured because nothing failed. Over the whole window there was one production incident, fixed the same day. With one early user, there was almost nobody to find a failure, so these counts say little about reliability on their own.

The code quality figures, against the thresholds the industry publishes:

Measure First measured (14 Oct) End of window (10 Nov) Published threshold
Line test coverage 87.38% 91.40% 90% is “exemplary” (Google Testing Blog)
Duplicated lines 1.56% 0.54% At most 3% on new code (SonarQube default gate)
Import cycles 6 0
Files under type checking 19.4% (17 Oct) 84.4%
Files over 800 lines 8 0
Vulnerable dependencies, high 13 0

On 2 November the repository held 297,451 lines of code, 54% of them tests. The ratchet only stops a number from getting worse: the gains came from trains planned to make them, such as one cleanup train that raised the share of type-checked files by 27.2 points on the window’s last day. The report also says where the ratchet leaked: an analyser that timed out and passed as “no findings”, a nightly build left red long enough to hide failing tests, and three baselines raised by hand. No gate caught them; a weekly audit did. Today’s comparison sits on against published standards.

How much human work is that?

Two weeks of the factory to 25 October 2026 (12.6 days) equal 23.7 to 61.7 weeks of a five-person team, by three separate estimation methods. Those two weeks cost about $303 in cash on the founder’s own plans, and about $5,625 at full list prices. The three methods are explained on the human equivalent. Every metric in one place is on the full report.

Is a dark factory safe? What stays human

Rational Trains is dark for the build and keeps the lights on for decisions that carry risk. On the Shapiro scale, that places it between Level 4 and Level 5: dark on the build floor, with the founder holding the levers.

The factory never does four things on its own:

  • It never asks for, or creates, a key, token or password.
  • It never grants itself access to any system.
  • It never applies a database change unattended.
  • It never ships a risky feature without a feature flag that the founder can turn off.

Every delivery is also scanned for leaked keys and secrets. If a scan finds one, the factory stops on its own.

These limits are deliberate. Keys, access and data are where a single mistake costs the most and is hardest to undo. Everything else, from writing code to reviewing it, is cheap to check and cheap to reverse, so it runs dark.

The person’s decision is made at grooming, when the task is formulated, not at the start of a release. From then on the trains run on their own, asynchronously, for days: five trains groomed on a Monday can run on full autopilot until Saturday.

The founder can watch every train live, from a phone or from GitHub, and pull the brake on any feature. The brake and the live view are on watch and steer live.

The factory also reports what every car cost, so spending is visible per task.

Where does an AI software factory fit, and where does it not yet?

An AI software factory fits best on green-field code and on active products that are still growing. There, the gates can be set from the first commit and the ratchet only ever tightens.

Large legacy codebases are harder. If a system has no tests, high duplication and tangled dependencies, there is nothing for a ratchet to hold. The order of work matters: first measure, then put gates around the worst areas, then let the factory work inside them. The factory in this article started its published window at 87.38% coverage and six import cycles. A codebase starting at 10% coverage would need weeks of groundwork before the same results.

Teams with strict separation of duties also need to decide which levers stay with which person, since the factory hands the risky ones to a human by design.

Frequently asked questions

Short answers, in the words people search with.

What is a dark factory in software development?

A dark factory in software development is a fully autonomous production line where specifications go in and working software comes out, with no human writing or reviewing the code. It is Level 5 on Dan Shapiro’s five levels of AI-assisted programming, published in January 2026. The name comes from lights-out manufacturing plants, such as Fanuc’s, that run with no people on the floor.

Is a black factory the same as a dark factory?

Yes. “Black factory” is a less common synonym for “dark factory”. Both describe a software factory where AI agents do all the coding, review and testing without a human in the loop, which is Level 5 on the five-level scale. Both names borrow from lights-out manufacturing, where a plant runs in the dark because nobody is inside.

What is the difference between an AI factory and a software factory?

An AI factory, as NVIDIA and Cisco use the term, is a data center that trains and serves AI models. A software factory produces working software. An AI software factory uses AI agents to plan, code, review, test and release features from a written specification. The first sells compute; the second ships products.

Can an autonomous software factory ship production code safely?

Yes, when measured gates decide what merges and humans keep control of risk. Over thirty days, 12 October to 10 November 2026, a Rational Trains factory shipped 95 releases with one production incident, fixed the same day; with one early user, that low count says little about reliability on its own. It never handles keys, never grants itself access and never applies database changes unattended, and every delivery is scanned for leaked secrets: a leak stops the factory.

How much does an AI software factory cost to run?

A Rational Trains factory runs on the founder’s own Claude plan and Google Cloud project. In the two weeks to 25 October 2026, it cost about $303 in cash, or about $5,625 at full list prices, for 147 features and 162 fixes. At list price, $1,000 bought 844 to 1,512 hours of professional work. The factory reports the cost of every task.

Do I need to be a programmer to use an AI software factory?

You need to know what you want built and be able to answer questions about it. In Rational Trains, the founder grooms each idea in a conversation with an AI that asks the right questions and writes the tasks, and decides there, when the task is formulated. You approve risky steps, such as database changes and access, and you hold the feature-flag brake. Reading code helps but is not required.

What is a quality ratchet in software development?

A quality ratchet is a rule that each quality measure, such as test coverage or duplicated lines, may hold or improve with every merge and never get worse. It stops the slow drift where every change looks fine but the codebase degrades. Under a ratchet, a Rational Trains factory’s line coverage went from 87.38% to 91.40% between 14 October and 10 November 2026; the gains came from work planned to make them, and the ratchet held them.

Which AI agent does Rational Trains use?

Rational Trains is a full-cycle harness around Claude Code. It adds what a single coding agent lacks: grooming, task isolation, review by several AI reviewers from different providers, tests in isolated cloud runs, measured quality gates, a ratchet and a full journal in BigQuery. It works with any stack Claude Code understands.

Is there a published study of an AI software factory in production?

Yes. An experience report on Rational Trains, published on Zenodo on 12 November 2026 (doi:10.5281/zenodo.24169186) with its dataset (doi:10.5281/zenodo.24169188), covers thirty days, 12 October to 10 November 2026, of one factory run by one operator who is not a programmer. It measures what the line delivered (964 pull requests merged, 95 releases), what its AI reviewers found that held up against the code (1,311 findings) and how the quality figures behind the ratchet moved. Its main limitation: one operator, one factory, thirty days: an experience report, not a controlled study. Every figure is self-reported by the system under study.

Ship like a factory, keep the levers

Rational Trains is built and run by one operator, and every figure on this page comes from the factory in daily production use. The waitlist is open.

Join the waitlist