Skip to content
Software Factory

Light and Dark Software Factories

A dark software factory ships with no human code review. A light one keeps a person at the merge gate. Here is the difference and when to move the dial.

Seif Sgayer, founder. Published 2 October 2026, updated 5 November 2026. 6 min read.

A dark software factory ships code that no human reviewed. A light software factory automates everything around the review and keeps a person at the merge gate. They differ in exactly one place: the approval.

Both are factories in the 2026 sense: repeatable loops that turn tickets into tested pull requests. Light and dark share five of the six stations and split at the approval gate. That gate is where this guide spends its time.

The names borrow from lights-out manufacturing plants, which run with nobody on the floor. A stamping press makes the same part a million times. A coding agent makes a different change every run.

Where the terms come from

Three pieces of writing from early 2026 fixed the vocabulary. Dan Shapiro published a five-level model of AI-assisted development in January and named the top level the dark software factory. In February a team published a software factory built on two rules that remove people from both writing and reviewing code; Simon Willison wrote about it on 7 February and gave it a far wider audience. Addy Osmani then framed the whole space as light and dark.

Osmani's essay is called Software Factories, Light and Dark.

Shapiro's five levels

Shapiro's model is a ladder. Each rung moves more of the work of writing and reviewing software from people to models, and changes what the remaining people do.

  • At the bottom, a developer uses AI to type faster and reads every line.
  • Further up, the model writes whole changes and a person reviews the diff.
  • Higher still, a person judges the outcome, the behaviour and the tests, not the code.
  • At the fifth level, nobody on the team reads the code. Shapiro calls that the dark software factory.

The useful part is not the numbering. The rungs are different jobs. A team at level two needs good code reviewers. A team at level four needs good acceptance criteria and a test suite it trusts, because that is all it has left to review. A team at level five needs a way to learn it is wrong that does not involve a person reading a pull request. That is much harder to build than it sounds.

The two rules, as reported

As reported in February 2026, the published dark factory runs on two rules: code must not be written by humans, and code must not be reviewed by humans. Humans write specifications, build the harness and decide what to make.

Two things are worth keeping even if you never go dark. The rules are absolute, so there is no slow drift where someone quietly patches the agent's work by hand. And the effort moves upstream: when nobody reviews code, the specification and the tests are the product.

Osmani's light and dark framing

Osmani describes a software factory as harnessed agent loops run at scale. Not one developer with one assistant, but many agents working through a queue inside a harness that gives them context, tools, checks and limits. He then separates the light factory, where human judgment stays in at the points that matter, from the dark factory, where it is removed. He treats dark as a choice with a cost, not an inevitable endpoint.

The gate is not a speed bump on the way to automation. It is where your team's judgment is applied to the one thing the machinery cannot judge: whether this change should exist.

That sentence is ours, not Osmani's. Automate the mechanical parts completely, which is most of them. Keep the one judgment deliberately, not by inertia.

Why we build light factories

Every setup starts light, with a person approving every merge. We argue for staying light longer than most teams expect. The reasons are practical.

  • Accountability has to live somewhere. When a change breaks production, someone decided it was ready. In a light factory that is the approver, recorded on the pull request. In a dark factory the answer is "the tests passed", which describes, not decides.
  • Most test suites have not earned it. A dark factory is only as safe as its checks. Typical codebases have gaps, flaky tests and behaviour nobody wrote down. The gate catches what the suite misses and shows you where it is thin.
  • Reviewing teaches the factory. Every request for changes is information about the rules file, the tickets or the agent's limits.
  • The gate is quick when the loop is well built. A focused pull request with passing checks and a clear summary takes minutes to review.
  • Customers ask who approved it. A recorded approval on every merge answers that.

Dark factories can work. You get there by showing, class of change by class of change, that your checks judge better than your reviewers.

The autonomy dial

Light and dark are not two switch positions. Autonomy is a dial with at least three settings, and one repository can sit at different settings for different work.

  1. Every change approved. The agent opens pull requests and a person reviews each before it merges. Start here and stay until the suite is proven.
  2. Exceptions only. Routine changes that pass every check get a light review: the summary and the test list, not a line-by-line read. Anything unusual or touching a sensitive path gets a full review. The rules file defines routine.
  3. Auto-merge on green. For narrow, low-risk classes you name, such as dependency bumps within a version range or copy fixes in a content directory, a passing suite is enough. This is the only dark setting, and it is dark for a few paths, not the repository.

The tests earn each step. If auto-merged dependency bumps have caused no incident in months and the suite covers the integration points, the setting is justified. If a reviewer keeps finding things in the routine pull requests, turn the dial back. The decision rests on the factory's own history, which only a light factory produces.

Common questions

What is a dark software factory?

A delivery loop where no human reviews the code before it ships. Agents write and review the change, checks run, and it merges. It is the top level of Shapiro's model and borrows from lights-out plants.

Is a light software factory slower?

Slightly, at the merge step, and not much elsewhere. The agent still writes the change, runs tests and opens the pull request without a person. Going dark saves a reviewer's minutes and loses the decision.

When should a team allow auto-merge on green?

Only for a named, low-risk class of change, and only after months of the factory's own history show the suite catches what matters there. Treat it as a per-path setting and be ready to turn it back.

Where you need checks and people

Auto-merge on green is only as safe as the checks that make it green, and a recorded approval needs a person to give it. If you want a light factory in your own repository, see how the ten checked steps work, or read how this fits with an agentic software factory.

Next on the reading path

Build a Software Factory with Claude Code

Build a software factory on one repository: a rules file, a GitHub Actions workflow running Claude Code, branch protection and ticket status.