What Is an AI Software Factory? How It Is Built and Run
-
595
-
1
-
Your engineers already use Claude Code, Cursor or Copilot. Security still will not let agent-written code into production at scale, and the objection is fair: nobody can show who wrote a change, what checked it and who signed it off.
What an AI software factory is
An AI software factory is the line between a coding agent and production. Agents write the change, automated gates check it, and a named engineer decides whether it ships. Teams that practice agentic engineering need this line, because it answers the question a security lead or an auditor will ask first.
The need is not exotic. The 2025 DORA report (Google Cloud, September 24, 2025) found that 90 percent of respondents use AI at work, and that AI adoption still has a negative relationship with delivery stability.1 Veracode’s update of October 29, 2026 tested 18 models on code generation in four languages and found vulnerabilities in 38 percent of the tasks, down from 44 percent in its July 2026 report.2 Better, and still more than one task in three. The code arrives faster than anyone can read it, so the control has to be built into the line.
A factory is not a single coding agent. An agent is one worker with whatever access its user has. A factory is the rules around the workers: what each may touch, which checks run, who signs, what is recorded. It is not an agent platform either. Platforms and coding tools are products you buy, and the factory is the system you run around them. Some teams use the name “dark factory” for a line that runs without people. Ours does not: every change has a named engineer’s sign-off.
The five parts of an AI software factory
The structure we use is Spec, Build, Gates, Release, Run. Across the agentic SDLC, the factory takes the spec in and puts a signed and logged change out.
| Part | What happens | Who decides |
|---|---|---|
| 1. Spec | The task is written down with acceptance tests | Engineer and product owner |
| 2. Build | Agents write code, tests and infrastructure in sandboxes | Agent, within scoped access |
| 3. Gates | Tests, scans, policy checks and sign-off | Pipeline, then a named engineer |
| 4. Release | Canary, automatic rollback, change log | Pipeline, with an engineer on call |
| 5. Run | Monitoring, incident response, load tests, autoscaling | Engineer on call |
1. Spec
Every task starts with a written spec and acceptance tests. Agents build against them, so they build what was asked for and not what looks plausible. The acceptance tests exist before the code, and the agent does not edit them.
2. Build
Agentic coding tools such as Claude Code or Cursor write code, tests and infrastructure inside sandboxes. Each agent has its own service account with only the access its task needs, and short-lived credentials. Any agent can be stopped in one action, a kill switch that engineers on call can reach without a deploy.
These are runtime controls, and they matter. The Salt Security “State of Agentic AI and API Security 2H 2026” report, covered by Campus Technology on October 21, 2026, found that 49.8 percent of the 380+ security and technology professionals surveyed confirmed or suspected unexpected or unauthorized AI agent activity.3 A CI check cannot stop an agent that acts at runtime. A narrow account, an expiring credential and a stop button can. We treat a sandbox, a scoped account and a stop button as the minimum for running agents.
3. Gates
A gate is a check a change must pass before it moves on. A change that fails does not move. Typical gates in CI:
- Tests, including the acceptance tests from the spec.
- Static analysis (SAST) and secrets scanning.
- Dependency checks: a software bill of materials (SBOM) and license rules.
- Policy as code: rules such as “no public storage bucket” or “no new IAM wildcard”, enforced by the pipeline.
- A named engineer’s sign-off.
Two rules do the work. Agents never approve their own work: the account that wrote a change cannot approve it. And every change carries a named human signer, so “who is accountable for this” has a person as the answer.
4. Release
A passing change still ships carefully: a canary release first, so a small share of traffic meets it before everyone does, with automatic rollback when health checks fail. Every release is logged with the change it carried. Hotfixes go through the same gates, because an emergency path around the gates becomes the path everyone uses.
5. Run
Someone operates what the factory ships: monitoring, incident response, load tests and autoscaling. The on-call rotation is made of engineers. Agents can draft a runbook step or summarize an alert, and the person on call decides. Engineers on call can stop an agent in one action as the first move in an incident. You can run this part with your own team or hand it over; the code, configs and runbooks stay yours.
Three lanes: how much human review each change gets
Not every change deserves the same scrutiny. A dependency patch and a change to the billing code carry very different risk. A factory sorts work into lanes by risk. The lane decides how deep the human goes, and in every lane an engineer signs.
| Lane | What travels on it | What closes it |
|---|---|---|
| 1. Agent does, gates check, engineer signs | Dependency updates behind tests, test generation, documentation, library patches, drift reports | Automated gates pass, the change is logged, an engineer signs off on the gate results |
| 2. Agent does, engineer reviews and approves | Non-critical features, previewed database migrations, Terraform changes including drift fixes | Gates pass, then a named engineer reviews the diff by risk and approves |
| 3. Engineer leads, agent helps | Authorization, billing, data deletion, production schemas, security code | The engineer writes or directs the change, a second person reviews it, duties are separated |
The map is a starting example. Which lane a type of change takes is decided with the team that owns the system, and it moves over time: a class of change can move from lane 2 to lane 1, where review is lighter but the signature stays, once its tests have earned trust. It can move back.
What the auditor can see
The question an auditor asks is about change control: for each change, who made it, what tested it, who approved it and when it went out. The SOC 2 Trust Services Criteria (2017) cover this under change management, CC8.1, and ISO 27001 has its own change-control requirements.
A factory helps here because the evidence is a by-product of the line. Each change carries its provenance: who or what wrote it, which gates it passed and who signed. That is evidence an auditor will ask for. Whether it satisfies a given control is the auditor’s decision, and we do not claim otherwise.
What we say about our own factory
We run our factory on our own SaaS product first. We call it Customer Zero. On that product a named engineer signs off every change, and changes pass through gates. The five parts above are the structure we build to. More about the company is on the About us page.
Book a call to map your own repositories to the five parts and three lanes.
What to ask before you build one
Take these six questions to your security lead. If you cannot answer them today, that is the work.
- Which repositories would agents work in first?
- Which agents and tools are in use, and which accounts do they use?
- What can each agent touch: branches, secrets, cloud accounts, production?
- Which lane does each kind of change belong to?
- Who signs at each gate, and can the author of a change also approve it?
- What is logged for each change, and where would an auditor read it?
Our home page describes the same structure: AI software factories.
Questions CTOs ask
What is a software factory, and how is an AI one different?
A software factory is a standardized line for building software. In an AI software factory, coding agents do the writing on that line and engineers own the rules, the gates and the release decision.
Does an AI software factory replace engineers?
No. Agents do the labor; engineers write the spec, sign the gates and run production. Without them you have a coding agent and no factory.
Which changes can agents ship without a human?
None, in our model. Every change has a named engineer’s sign-off. What varies by lane is the depth of review, from signing off on gate results to leading the change.
Sources
- Google Cloud, 2025 DORA State of AI-assisted Software Development report, September 24, 2025.
- Veracode, GenAI Code Security Report update (press release), October 29, 2026.
- Campus Technology on the Salt Security State of Agentic AI and API Security 2H 2026 report, October 21, 2026.