What is a software factory?#
In our value-stream assessments, we routinely find features that need two or three days of engineering but take five or six months to reach production. Engineers may finish coding, then wait for someone to review it, approve a decision or schedule a release. Coding agents can shorten the implementation, perhaps from three days to an afternoon. But if those approvals and reviews still take months, customers will still wait months for the feature. Improving delivery means addressing those delays too.
A factory defines the specification, agent workflow, checks and release approvals for each task. It runs through the organisation's existing DevOps practices, CI/CD pipelines and platform capabilities.
| Dimension | AI-assisted team | AI software factory |
|---|---|---|
| Execution | Engineers drive most steps, with tools assisting | Agents execute bounded workflows; people own intent and consequential decisions. |
| Intent | Requirements interpreted per task, mostly in conversation | Intent becomes a specification with acceptance conditions validation can compare against. |
| Context | People assemble it from code, documents and memory | Curated, versioned and served as infrastructure. |
| Validation | Review plus CI, with humans judging most changes | Layered assurance at machine speed, human gates placed by risk. |
| Comprehension | Understanding is a by-product of writing the code | Understanding has to be produced deliberately, because nobody wrote the code. |
Mature teams already do several of these things and can build on them incrementally.
What are the parts of a software factory?#
Our software factory model has six capabilities, with an approved specification defining what the agents should build:
- Orchestration assigns tasks and handles dependencies. A reusable workflow, or blueprint, defines the steps, tools, context and checks.
- Isolated environments give agents separate sandboxes and toolchains so they can build and test without interfering with one another.
- Context and memory supply repository conventions, architecture decisions and relevant service information. AGENTS.md files and MCP servers make that knowledge available to agents.
- Validation checks behaviour against the specification through tests, scans and independent review. The implementation agent cannot edit its own acceptance evidence.
- Governance controls permissions, credentials and tool access. Audit logs record which person delegated a task and which agent performed it; telemetry records usage and cost.
- Learning turns review findings and production failures into updated tests, instructions and reusable workflows. A named owner reviews those updates before other teams adopt them.
How does a feature move through a software factory?#
Suppose you ask an agent to build a tenant-onboarding API. You explain how to create a customer account but leave out what should happen if the account is created and setting up its environment fails. The agent has to choose a response without knowing what you intended. Engineers then have to spot that assumption during review or discover the problem in production. The specification should settle that behaviour before the agent starts coding.
- Agree the spec. Define caller permissions, tenant isolation, data ownership and partial-failure behaviour. Specify how retries avoid creating duplicate tenants.
- Supply context and build. The agent receives the service catalogue and repository instructions, then implements the API in an isolated environment.
- Validate independently. Compare the implementation with the approved spec, including tenant-isolation tests and security checks. Give the reviewer fresh context, protect acceptance tests from editing, and rerun validation after every repair.
- Approve and release. For this application workflow, a person approves the pull request. Deploy with rollback available. If production reveals a missed case, add a test so subsequent versions must handle it.
Where does the bottleneck move in a software factory?#
Let's say a team adopts coding agents and opens pull requests faster. The same engineers still have to review them. Once new requests arrive faster than those engineers can review them, the team has a growing backlog of code it cannot yet merge.
When building software was the bottleneck, slower reviews and releases could go unnoticed because engineers were still writing the code. Agents shorten that coding time, so the delays elsewhere start to limit how quickly the team can deliver. Resolving one bottleneck exposes the next.
Our eight-state model describes how the constraint moves as teams solve one problem and encounter the next. For example, better instructions may reduce the number of mistakes agents make. But if reviewers already have more correct pull requests than they can handle, improving those instructions again will do little to help. The team needs to address review capacity before it can benefit from producing more code.
Why do software factories fail?#
Imagine a platform team builds a factory around a new TypeScript application, then asks the team maintaining a fifteen-year-old Java system to adopt it. The factory assumes tests will catch mistakes before code is merged, but the Java application has little test coverage and behaviour understood only by its maintainers. Those engineers must still check that behaviour themselves. Giving their agents the same autonomy as the TypeScript team would remove a safeguard they still depend on.
- One workflow is imposed on every team. Teams must either rebuild it around their requirements or keep using their existing tools, leaving the central investment underused.
- Every team builds its own. Each pays to maintain sandboxes, integrations and approval logic. Security teams then have several permission systems and audit trails to reconcile, while useful improvements stay local.
- Autonomy exceeds the available evidence. An agent working unattended on a poorly tested legacy system can produce plausible code that breaks behaviour nobody documented. Engineers inherit the investigation and repair work.
- The agent can alter its own acceptance checks. It can make a failing test pass by weakening the test. Independent validation needs protected evidence of the required behaviour.
- Access and ownership are unclear. Shared credentials hide which agent acted; unprotected configuration can redirect its work. The Miasma worm demonstrated configuration injection across more than 120 repositories. Each workflow needs explicit permissions, accountable owners and reviewed updates.
How do you build a software factory?#
We start with one or two production applications, building a specification-to-deployment workflow that the next team can reuse.
- Assess the applications. Inspect architecture, test coverage, delivery delays and engineering practices. Choose a bounded production workflow for the factory MVP and define its acceptance criteria.
- Prepare intent and context. Agree who approves the specification. Capture the repository's conventions and service dependencies so agents can follow decisions engineers have already made.
- Build verification before extending autonomy. Establish protected tests, independent evaluation and release permissions. Keep engineers involved where the evidence is insufficient, especially in legacy systems.
- Prove the MVP. Run real backlog work through implementation, validation and deployment. Record lead time, defects, review effort and cost per useful outcome, including failed attempts.
- Onboard a second team. Can it reuse the workflow, add its own checks and ship an auditable feature? Record what it reused, what it rebuilt and the engineering hours required.
We propose three tiers of ownership. The platform team runs identity, audit logs and the blueprint registry. Domain owners maintain shared rules, such as preventing duplicate refunds. Teams own their sandboxes, repository context and application tests. Agents access tools through MCP, with a gateway enforcing permissions and logging calls.
Teams can therefore share infrastructure while choosing an autonomy mode appropriate to their software. Train engineers alongside the rollout, using real backlog work.
| Class of change | Mode | Why |
|---|---|---|
| Documentation | Merges automatically after validation. | Cheap to reverse, and the checks are meaningful. |
| Application code | A person approves the pull request. | One reviewer, with the tier set by risk. |
| Migrations | Two people authorise. | Irreversible, and NIST SP 800-53 and PCI DSS already require this shape. |
| Regulated changes | Never unattended. | A legitimate end state, not a failure to mature. |
What does a software factory cost to run?#
Running costs include model calls, infrastructure and human review, on top of the engineering needed to build and maintain the platform. Published examples give some indication of scale.
Cloudflare's AI code review averaged $1.19 per run, with 2.7 runs per merge request. At those rates, 1,000 merge requests would cost about $3,200 in AI review alone. Generation, infrastructure and human time would be additional.
In one engineer's published test, the same feature cost roughly $3 to $33 to implement and pass automated review, depending on the model and tools. Some accepted implementations still failed tests, so these were not all successful outcomes.
Over one weekend, our Lore agents built 54 tickets into pull requests; 23 merged by Monday. We estimated that running lint and spec-link checks before pushing could have avoided at least 170 extra rounds and $300 in AI costs. Running cheap, deterministic checks before agent review can prevent that repeated expense.
What are examples of software factories?#
Stripe's Minions produce over a thousand human-reviewed, agent-written pull requests a week. They use over three million tests and more than 400 internal tools.
Uber reports more than 70% of pull requests coming from agents. Cloudflare has generated AGENTS.md files for roughly 3,900 repositories, while Spotify runs background coding sessions in Kubernetes pods. Steve Yegge describes running dozens of agents in our conversation about his software factory.
Where does the term software factory come from?#
Hitachi established its Software Works in 1969 as a separate organisation dedicated to software development.
Hitachi faced growing demand for railway seat reservations and online banking systems. Software needed its own production organisation as that business expanded.
Greenfield, Short, Cook and Kent's 2004 book Software Factories later focused on assembling applications from models and patterns. US defence uses the term for DevSecOps organisations, including Platform One. Each generation promised to move people from writing software to supervising it, and each hit the same problem: supervision needs understanding, and understanding used to come free with doing the work.