Foredeck
DocsOpen ForedeckRequest access
  1. Foredeck
  2. Software factory guide

Guide · Published November 19, 2026

What is a software factory?

A software factory is a repeatable system for turning a queue of work into shipped software: the same stations, run the same way, every time. Work comes in, someone or something builds it, checks decide whether it can merge, and a release takes it to users. The idea is older than most of the software it describes. What's new is who does the building. In 2026 the workers are increasingly AI coding agents, and the hard question has moved from “how much can we build?” to “what did the things we built actually do?”

On this page

  1. Definition
  2. History
  3. With AI agents
  4. How to measure one
  5. Controls
  6. Where Foredeck fits
  7. More guides
  8. FAQ

The short answer

Every software factory, from 1969 to now, has the same parts, even when they go by different names:

  • A queue. Work is written down before anyone builds it: a ticket, an issue, a spec, a Feature.
  • Workers and tools. People, and now agents, building with shared tools, templates and reusable parts instead of starting from scratch each time.
  • Checks. Tests, reviews and policies that a change has to pass.
  • A gate. The point where a change is accepted: the merge, then the release.
  • A record. Data on past work, so the factory can tell whether it's getting better.

Most factories skimp on the last part. The ones that lasted had it in common.

A short history of the software factory

“Software factory” has meant at least four different things since the late 1960s. Each version borrowed something from manufacturing, and each ran into the same limits.

The first factories: General Electric, Hitachi and Japan

In 1968 Bob Bemer, then at General Electric, argued for a “software factory”: standard tools, a computer-based interface and a database of historical data for financial and management control, to make programmer productivity less variable (Cusumano, MIT Sloan).

Hitachi acted first. In 1969 it split its software work out of its Kanagawa plant into a separate Software Works, which Hitachi describes as the world's first establishment dedicated to software (Hitachi, in Japanese). Toshiba, NEC and Fujitsu followed in the 1970s. Michael Cusumano's study of them, Japan's Software Factories (Oxford University Press, 1991), describes factories that improved quality and productivity over years through process discipline, quality measurement and the reuse of proven code. They weren't literal assembly lines. What set them apart was memory: they kept track of what had gone wrong before, and they measured it.

SDC: the factory that split design from building

In the United States, System Development Corporation built its own Software Factory in the mid-1970s. Harvey Bratman and Terry Court described it in “The Software Factory” (Computer, 1975): an integrated set of tools for a disciplined, repeatable way of developing software. By Cusumano's account, SDC designed systems at customer sites and built them in the factory, and the effort lapsed by 1978, partly because project managers preferred to build their own software rather than hand specifications to a central shop (Cusumano, MIT Sloan). The lesson comes back with AI agents: separating the people who decide what to build from the people who build it is fragile.

Microsoft's Software Factories (2004)

In 2004 Jack Greenfield and Keith Short of Microsoft, with Steve Cook and Stuart Kent, published Software Factories: Assembling Applications with Patterns, Models, Frameworks, and Tools (Wiley; see Keith Short's announcement and Greenfield's conference paper). Their software factory was a product line: for one kind of application, build the reusable assets once (patterns, domain-specific languages, frameworks and tooling) and assemble each new application from them, with models treated as source rather than documentation. It was about how code gets produced. It said little about what the code did once it shipped.

The DoD software factories: Kessel Run and Platform One

The term came back in the US military. The Air Force created Kessel Run in 2017 as an Airmen-led software factory, a partnership between military teams and commercial engineers, after problems with an air operations center program. It scored early wins with Jigsaw, a tanker refueling planning tool that NATO adopted in 2020 (Air & Space Forces Magazine). Its success helped start a network of software factories across the Air Force.

Platform One is the shared base underneath many of them: the DoD's enterprise DevSecOps services, with hardened container images (Iron Bank) and a deployable platform (Big Bang), so a team can stand up its own software factory without building everything from scratch (Big Bang docs). What gave the DoD factories their credibility was software that users relied on, not lines of code counted. Even Kessel Run has since changed shape: in 2025 it moved to a government-led, vendor-managed model, and its leadership now says that “as far as organic delivery for Kessel Run, we're no longer a software factory” ( Air & Space Forces Magazine).

The software factory with AI agents

In 2025 and 2026 the term took on its newest meaning. Coding agents can now take a written task, work on it in their own environment and return a pull request. Run many of them against a queue and you have a factory whose workers are agents. Its stations:

  1. Queue. Work is filed as small, specific tasks, from people, issues, alerts or other agents. Small matters: one change that does one thing can be checked, measured and undone on its own.
  2. Isolated workspaces. Each agent works in its own branch, worktree or container, so parallel agents don't trip over each other and a bad run can be thrown away.
  3. Checks. Tests, type checks, linters, automated review and policy checks run on every change. The agent fixes what fails before a person looks.
  4. Merge gate. A rule decides what merges on green and what waits for a person, usually by risk: docs and small fixes go through, while migrations, auth, billing and infrastructure wait.
  5. Release and outcome. The change deploys, often behind a feature flag, and its production behavior is watched. It's the station AI factories most often leave out.

Light and dark factories

In manufacturing, a dark or “lights-out” factory runs with no one on the floor. Dan Shapiro borrowed the image for the top of his five levels of AI coding (January 2026): a dark factory is “a black box that turns specs into software.” Two weeks later StrongDM's AI team described running one, under two rules: “Code must not be written by humans” and “Code must not be reviewed by humans” (StrongDM; see also Simon Willison's write-up).

A light factory keeps a person at the helm. Agents do the building, and a person decides what to build next, when users see a change and what can't be undone. Kief Morris draws the useful line on martinfowler.com: a person “in the loop” fixes each output, while a person “on the loop” changes the harness that produced it. A light factory puts people on the loop. They don't read every diff; they improve the instructions, tools and checks the agents run with, and they make the decisions that carry risk.

Working on the loop has a catch: you have to be able to tell whether a change to the harness helped. That means treating the harness like code that ships. Give each version a name, and compare what the changes made under one version did in production with what the changes made under the last one did.

Choosing between them comes down to evidence. An agent, model or prompt earns more unattended scope when its changes keep surviving in production. Without that record, a dark factory is a bet that the checks catch everything. The SDC lesson applies here too. Writer Jina Yoon argues that most AI factories enforce a clean separation between deciding what to build and building it, and that agents decide better with production signals in front of them (PostHog, August 2026).

How to measure a software factory

What counts is what a factory ships, so measure outcomes in production, per change, and compare like with like. These five measures cover most of it. The software factory metrics guide has the formulas and the data each one needs.

Change survival
The share of shipped changes that lived through a set window in production (a week is a common choice) without being reverted, rolled back or tied to an incident. It's the closest thing a factory has to a yield rate.
Defect escape rate
The share of defects found after release rather than by the factory's own checks. A rising escape rate means the checks are no longer catching what the workers get wrong.
Cost per surviving change
What the factory spent (agent runs, tokens, compute) divided by the changes that survived, not the changes that merged. Changes that had to be reverted still cost money, so they stay in the numerator.
Human touch rate
How often a person had to step in on a change: rewriting it, fixing a failed check by hand or rescuing a stuck run. Measure it per agent, model and prompt, never per person. It tells you where autonomy is earned and where it isn't.
Time to roll back
How long it takes to contain a bad change once it's found. DORA calls the deploy-level version failed deployment recovery time, next to change fail rate (DORA). A factory that ships more changes needs this number to fall, not stay flat.

Why tokens and PR throughput mislead

The easiest numbers to collect are inputs and volume: tokens used, pull requests opened, lines merged. They're useful for cost control and capacity planning, but as measures of a factory they mislead, because they rise whether or not the work was good. An agent that opens three pull requests to land one fix looks three times as productive. A large change that gets reverted counts the same as one that survived. Engineering leaders have noticed: in LeadDev's 2026 AI Impact Report, 58% called token-usage metrics ineffective (LeadDev).

Join each change to what it cost and what it did, and volume becomes useful again: more changes at the same survival rate, with a lower cost per surviving change, is real progress.

Foredeck reports two of the five today: change survival and cost per surviving change, for each agent, model, prompt and version of your harness, on the factory scorecard. It records reverts and rollbacks as outcomes. It doesn't report defect escape rate, human touch rate or time to roll back yet.

Controls: how to steer what the factory ships

Measurement tells you what happened. Controls limit how much harm a bad change can do before you find out. Rollback contains a bad change, but it doesn't replace checks before the merge. The controls that matter most are these. For the detail, see feature flags for AI agents.

  • Feature flags. Ship the code dark, then turn it on separately. A flag turns “deployed” and “released” into two decisions, and the second one can be a person's.
  • Progressive rollout. Expose a change to your own team first, then to a small share of users, then to everyone, with guardrail metrics at each step.
  • Kill switches. One action that turns a change off everywhere, which anyone (person or agent) can always take, because containing damage shouldn't wait for approval.
  • Merge and ramp policy. Rules for what agents may merge or ramp on their own, set by risk and widened as their record improves.
  • An audit trail. Who or what changed which flag, ramp or policy, and when. When agents act at volume, this is how you reconstruct what happened.

Where Foredeck fits

Foredeck is the stats and control plane for your software factory: it shows what every change your agents ship actually does in production, and brings that record back to the person deciding what the factory does next. Each pull request becomes a Change, tied to the agent run, prompt and model that made it, its checks and its deploys. After its survival window it gets an outcome: survived, regressed, reverted, rolled back or turned off. The factory scorecard compares agents, models, prompts and versions of your own harness on survival and cost per surviving change.

The harness comparison is the part to start with. Your harness is everything that steers your agents: CLAUDE.md or AGENTS.md, the skills, hooks and settings committed under .claude/, and any other files you add, such as your CI pipeline, test settings or a style guide. You choose which files count, and which never do. Foredeck fingerprints it on each agent Change that foredeck work or the GitHub Action reports, so when you change it you can see whether the Changes that followed survived more often or cost less, with how many Changes each rate is based on. It's how a person on the loop finds out whether last week's harness change helped.

For control, a Feature can ship behind its own Flag: agents can turn production off or show it to your own team, and only a signed-in person ramps it to customers. Flag changes are audited. Where agents run on your machines, the factory reads Foredeck's state and acts on it. It's a light factory, with you at the helm.

If you don't run a factory yet, Foredeck can run the queue too: file work as Features, and foredeck work fleet keeps coding agents working it on your own machines and keys.

Request accessSee how Foredeck works →

More software factory guides

  • Software factory metrics: Change survival, defect escape, cost per surviving change, human touch rate and time to recover: how to compute each, and what to skip.
  • AI code attribution: Tie each change to the agent run, prompt and model that made it, then judge them on what happened in production.
  • Feature flags for AI agents: Progressive rollout, kill switches and stopping on evidence for changes your agents write.
  • Foredeck vs LaunchDarkly: Where the two overlap, where each is stronger, and when to use both.

Software factory FAQ

What is the difference between a software factory and CI/CD?

CI/CD is one station in a software factory: it builds, tests and deploys what someone already wrote. A software factory is the whole line, from the queue of work through the people or agents that write the change, the checks and the merge gate, to the release and what the change did in production. You can have CI/CD without a factory. You can't run a factory without something like CI/CD.

Is a software factory the same as an AI factory?

No. "AI factory" usually means infrastructure for training and serving models: data centers, GPUs and the pipelines that produce models. A software factory produces software. In 2026 many software factories use AI coding agents as workers, but the product is still code that ships to users.

How is a software factory different from platform engineering?

Platform engineering builds the internal platform teams build on: environments, pipelines, templates and paved roads. A software factory is a way of producing software that runs on such a platform. The US Department of Defense draws the same line: Platform One provides the shared DevSecOps services, and the software factories use them to build mission applications.

Do you need AI agents to have a software factory?

No. Hitachi ran a software factory in 1969 and the DoD's factories were built around human teams. Agents change who does the work and how much of it there is, so measuring what ships matters more with them.

What is a dark software factory?

A factory where agents write, test and ship code with no person reviewing it, named after lights-out manufacturing plants. A light factory keeps a person at the helm: agents do the work, and a person decides what to build next and when users see a change, using what earlier changes did in production.

What should a software factory measure?

What survived in production, not how much was produced. Useful measures are change survival, defect escape rate, cost per surviving change, human touch rate and time to roll back. Token counts and pull request throughput measure effort and volume, and both can rise while outcomes get worse.

© 2026 ForedeckBuilt for light factories, with people at the helm.HomeDocsinfo@foredeck.ai