# Dark Software Factory: When to Let Code Ship Unread

_November 29, 2026 · YITEC Research_

A dark software factory ships code no human reads. The 5 autonomy levels, which workloads can go dark, which must stay lit, and what a dark line costs.

A dark software factory is a delivery pipeline in which AI agents write, test and ship code that no human writes or reviews. People supply specifications and scenarios; machines do the verification. For some workloads that already works. For others it is reckless. The useful question for engineering leaders is not "should we go dark?" but "which workloads, and how far?"

We run an AI software factory for government and enterprise clients, and we deliberately keep most of it lit. This article explains the levels of autonomy, what makes "dark" possible, where it breaks, and the risk-by-reversibility matrix we use to set autonomy per workload.

## What is a dark software factory?

The term comes from manufacturing. A lights-out plant runs with the lights off because only robots are on the floor; Dan Shapiro uses Fanuc's robot-staffed factory as the reference in his [five levels of AI coding](https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-factory/), published in January 2026. In software, "dark" means no human reads the code before it ships.

The best-known example is StrongDM. Its [Software Factory](https://factory.strongdm.ai/) charter has two rules: "Code must not be written by humans" and "Code must not be reviewed by humans." That is a dark factory in the strict sense.

A dark factory is not vibe coding. Vibe coding is a person accepting output they have not read. A dark factory replaces human reading with engineered machine verification: hidden scenarios, simulated dependencies and automated gates. If you drop the verification, you do not have a dark factory. You have an unreviewed codebase.

## The five levels of AI coding, from autocomplete to dark factory

Shapiro's scale starts at zero, so it has six rungs. We added the right-hand column from our own experience.

| Level | What the human does | Who reviews the code | Where it fits |
|---|---|---|---|
| 0 | Writes all code; AI is at most a search tool | Humans | Legacy habits |
| 1 | Writes core code; hands off small tasks such as unit tests or docstrings | Humans | Early assistant use |
| 2 | Pairs with an AI tool as a colleague | Humans | Common today |
| 3 | Manages: reviews a constant stream of AI-written code | Humans, and it becomes the bottleneck | Where many teams stall |
| 4 | Writes specs, plans and skills; leaves agents running for hours; checks the tests | Machines first, humans at gates | A lit factory |
| 5 | Supplies specifications to an opaque process that produces software | Machines only | A dark factory |

Level 3 is the trap. Teams generate more code than people can review, and review time explodes. The way out is not more reviewers. It is better verification, which lets you move to level 4 and, for selected workloads, level 5.

## Light vs dark factory: the same pipeline, different switches

Addy Osmani's essay ["Software Factories, Light and Dark"](https://addyosmani.com/blog/software-factories/) gives the clearest framing. A dark factory ships code with no human reading it. A lit factory is "the same pipeline with the lights left on where judgment lives." His central point: "Verification, not generation, is the real constraint on a factory."

He also names the long-term cost of going dark: **comprehension debt**, "the widening gap between how much code exists and how much any human still understands." You do not notice comprehension debt until an incident forces someone to understand a system nobody has read.

So light and dark are not two different architectures. They are switch positions on the same stations. You can run test generation dark and keep the release gate lit inside one factory.

## What makes "dark" possible

Four techniques do the work that human reviewers used to do.

### Scenarios as holdout tests

StrongDM stores end-to-end user stories, which it calls scenarios, outside the codebase, much like a holdout set in model training. As [Simon Willison explains](https://simonwillison.net/2026/Feb/7/software-factory/), the coding agents cannot see the tests they are judged against, so they cannot game them. Success is measured as "satisfaction": the share of observed runs that likely satisfy the user.

### Digital twins of dependencies

StrongDM built a "Digital Twin Universe": behavioral clones of services such as Okta, Jira and Slack. Agents can run thousands of scenarios per hour without touching production. We use the same idea at a different layer. For one national integration platform, our factory generated a simulation of the client's network from a single YAML model, so integration tests ran against a realistic network before anything reached the real one.

### Evals as the gate

Every gate must be a machine check with a threshold: scenario satisfaction, test pass rate, parity with the old system, visual defects, security findings. "Looks good to me" cannot be a gate in a dark factory.

### Durable, self-healing orchestration

Nobody is watching at 3 a.m., so the pipeline must recover alone. Our lines run on a durable workflow engine and a "doctor" checks every line every 3 minutes, spawning a fixer agent when something breaks.

## The risks of a dark software factory

- **Comprehension debt.** Code nobody understands is code nobody can debug quickly under pressure.
- **Incident rates.** Cortex's 2026 benchmark found PRs per author up 20%, but **incidents per PR up 23.5% and change failure rate up 30%** year over year ([Cortex](https://www.cortex.io/post/what-is-an-ai-software-factory)). Cortex notes the data does not isolate AI code as the cause. Still, more throughput with the same verification means more failures shipped.
- **Security.** An agent that writes an authorization bug will also write a test that passes with it, unless the tests come from somewhere the agent cannot influence.
- **Accountability.** Regulators, auditors and courts ask who approved a change. In a dark factory the honest answer is "a threshold."
- **Cost.** Tokens replace review hours, and the bill is real (see below).

## A workload decision matrix: risk times reversibility

This is the matrix we use. Two questions decide the switch position: how bad is the worst plausible failure, and how cheaply can you undo it?

| Workload | Blast radius | Reversibility | Recommended mode |
|---|---|---|---|
| Throwaway prototypes and demos | Low | Total | Dark |
| Internal tools without sensitive data | Low | High | Dark, with a human smoke test |
| Test generation and regression suites | Low | High | Dark, with human-approved acceptance cases as the oracle |
| Language or framework migrations | Medium | High if the old system stays live | Dark behind a parity gate |
| Customer-facing features (non-regulated) | Medium | Medium | Lit: agents build, humans approve UAT and release |
| Authentication, authorization, payments, cryptography | High | Low | Lit, with human security review |
| Government, health, finance, safety-critical | High | Low | Lit, with a named human release owner and an audit trail |

### Good candidates for dark

Work where a failure is cheap, visible and reversible. Migrations are the underrated case. When we rewrote a gateway engine from a prototype into a production language, the switch was gated on every parity scenario matching the old engine. The new engine ran about 10 times faster. The parity suite, not a human reader, carried the risk.

### Must stay lit

Anything where the failure is silent, irreversible or legally attributable. A government reporting platform that publishes the wrong KPI ranking does not get a rollback in the public's mind. Neither does a leaked medical record.

## The economics of going dark

StrongDM's [benchmark](https://factory.strongdm.ai/) is blunt: if you have not spent at least $1,000 on tokens today per human engineer, your factory has room to improve. Over 20 working days that is about $20,000 a month per engineer, a salary-sized line item. Willison notes that this level of spend makes the patterns less interesting for most teams.

Spend only pays if verification is strong enough that nobody re-reads the output. Otherwise you pay twice: once for tokens and once for the humans checking them.

Token efficiency matters more than token volume. In our factory, batching 8 to 15 related items into one work order made features **about 10x cheaper and 6x faster** than one-item orders, because related items share the expensive context loading and merge steps.

## How YITEC does it: a dimmer switch, not an on/off switch

We set autonomy per station and per workload. Inside one factory, some switches are dark and some are lit.

**What runs dark in our factory:**

- **Self-repair.** The doctor fixes known faults automatically every 3 minutes; unknown faults spawn a fixer agent.
- **Test generation and execution.** Our QA bot ran 13,491 test-case executions and filed 1,006 issues, 603 of them security findings, before users saw them.
- **Nightly self-improvement.** Prompt and lesson-file updates merge automatically; code changes go to a merge request.
- **Internal tools.** Single sign-on, a QA bench and a security findings map each went live within about a day of the request.

**What stays lit:**

- **The specification.** Analysts own the clickable prototype. Human-uploaded acceptance cases outrank generated ones.
- **Production.** A named administrator presses the release button, after a database dump and a release merge request.
- **Security sign-off.** Releases are signed, installs can run air-gapped, and the build fails if anyone tries to waive a vulnerability rated medium or above.

The result is speed without giving up accountability. On a [government KPI platform](/project/government-kpi-platform/), roughly 3,000 of 4,459 commits came straight from the factory's agent identity, and public production went live about 27 hours after the first commit. On [a national data-integration gateway](/project/national-data-center-gateway/), more than a thousand acceptance cases passed with none open before it went live in under three weeks. Humans never read most of that code line by line. They read the evidence.

For the full station-by-station design, read our [AI software factory field guide](/ai-software-factory/). If your workload is regulated, our notes on [agentic AI for government](/agentic-ai-for-government/) and [AI agent evaluation](/ai-agent-evaluation/) cover the gates in more depth. To set the dimmer for your own portfolio, see [our services](/our-services/) or [talk to our team](/contact-us/).


## FAQ

**What is a dark software factory?**

A dark software factory is a software delivery system in which AI agents write, test and ship code that no human writes or reviews. Humans write specifications and scenarios; machines verify the result. The name comes from lights-out manufacturing plants, where robots work without lighting because no people are on the floor. It sits at the top of Dan Shapiro's five levels of AI coding.

**Is vibe coding the same as a dark software factory?**

No. Vibe coding is a person prompting an assistant and accepting output without reading it closely. A dark factory is an engineered system: written specifications, hidden scenario tests the agents cannot see, simulated dependencies, automated gates and durable orchestration. Both skip human code reading, but a dark factory replaces it with machine verification. Vibe coding replaces it with hope.

**Is a dark software factory safe for production?**

For some workloads, yes: internal tools, prototypes, test generation and migrations protected by parity tests. For authentication, payments, health, finance, government and safety-critical systems, we do not recommend it. Those need a named human who approves acceptance evidence and the release. Safety depends on how strong your verification is, not on how good the coding agent is.

**What is the difference between a software factory and a dark factory?**

A software factory is any delivery system where AI agents do most of the building through fixed stations and gates. A dark factory is the fully autonomous end of that range, where no human writes or reviews code. A lit factory runs the same pipeline but keeps humans at judgment points such as acceptance, security review and release. Most production factories in 2026 are lit.

**How much does a dark software factory cost to run?**

Token spend is the main new cost. StrongDM's public benchmark is at least $1,000 of tokens per human engineer per day, roughly $20,000 a month per engineer over 20 working days. That pays off only if verification is strong enough that nobody re-reads the output. Batching related work into larger orders cut our cost per feature by about 10x.