1. Home
  2. Journal
  3. AI Software Factory: A Field Guide From the Factory Floor

AI Software Factory: A Field Guide From the Factory Floor

An AI software factory is a production line where agents plan, build and test code under human gates. Stations, metrics, roles and a 90-day rollout plan.

YITEC Research··11 min read
Diagram of an AI software factory: parallel production lines of AI agents moving work orders through planning, build, browser QA, review and a human-controlled release gate

An AI software factory is a production line for software: AI agents plan, write, test and review code in parallel, while humans set intent, own the quality gates and press the release button. It is not one coding assistant. It is a system of stations, queues and checks that turns a specification into shipped, verified software, many work items at a time.

We run one for client work. On a government KPI platform serving 81 government units, our factory went from first commit to public production in about 27 hours. This guide explains how an AI software factory works station by station, which metrics prove it, where humans must stay in control, and how to stand up your first line in 90 days. Every number about our practice is our own measurement, not a vendor claim.

What is an AI software factory?

Definition. An AI software factory is an engineering system in which AI agents carry out most of the planning, coding, testing and review in parallel production lines. Every change moves through fixed stations with automated quality gates, and named humans own the specification, the exceptions and the release decision.

Three things separate a factory from "developers using an AI assistant":

  1. Parallelism. Many agents work many work orders at once, each in its own isolated branch and environment.
  2. Stations. Every change passes the same intake, build, QA, review and release steps. Nothing skips the line.
  3. Evidence. Each station leaves an artifact a human can audit: a plan, a test run, a screenshot, a review comment, a signed release.

If one of the three is missing, you have faster typing, not a factory.

AI software factory vs AI factory vs DoD software factory

Search results mix three different ideas:

  • AI factory (the NVIDIA usage) means data center infrastructure that trains and serves models. It produces tokens. It does not ship your application.
  • Software factory in the US defense sense means DevSecOps teams and platforms that deliver software under an accreditation path. Humans write the code; the "factory" is the pipeline and the authority to operate.
  • AI software factory means a delivery system where agents do most of the building. Cortex draws the same line: it is about the software development lifecycle, not about model infrastructure.

Where the term came from

The current meaning crystallized in 2026. In January, Dan Shapiro published five levels of AI coding, ending in a "dark factory" named after robot-run manufacturing plants. In February, StrongDM described its Software Factory with two blunt rules: "Code must not be written by humans" and "Code must not be reviewed by humans." In July, Addy Osmani argued in "Software Factories, Light and Dark" that "verification, not generation, is the real constraint on a factory."

We agree with Osmani. The label matters less than the stations, and the station that decides whether a factory is safe is quality control.

The six stations of an AI software factory

Every factory we have seen that works has the same six stations. Each has an input, an output and an owner.

1. Intake and specification

Agents misread prose. So in our factory the source of truth is a clickable prototype built by business analysts, not a requirements document. Analysts build and change it by chatting with an agent, with no code or Git required. The factory polls each prototype push every 60 seconds and, after 3 quiet minutes, queues one delta run for whatever changed.

A clickable screen is less ambiguous than a paragraph. It shows fields, states, labels and flows. It also doubles as the test oracle: if the built feature does not behave like the prototype, it fails.

2. Planning and work orders

A planner agent running a frontier reasoning model reads the change and writes three files: a plan, a set of user acceptance test (UAT) cases, and a manifest of work orders with dependency edges between them.

The most valuable lesson we measured here was about batch size. Work orders that bundle 8 to 15 related items ran about 6x faster and about 10x cheaper per feature than small orders. The reason is simple: every work order pays a fixed cost to load context and to merge. Related items share that context, so batching amortizes it.

3. Build cells

Each work order gets its own git worktree, its own branch and its own preview stack. Isolation is what makes parallelism safe: two agents cannot trample each other's files or databases.

At peak our factory ran up to 26 parallel production lines (one per repository) and 30 concurrent agents behind a shared waiting room, with 18 agents on a single product at once. Every agent reads the same architecture document and glossary before it starts. Getting that shared context right is most of the craft; we cover it in our guide to context engineering.

4. Quality control: the station most factories skip

This is where most "factories" are thin. Ours works like this:

  • A QA agent drives a real browser through every UAT case on the work order's preview stack and saves screenshots as evidence.
  • Every UAT case becomes a named Playwright test, so the regression suite grows with every feature.
  • A visual gate built on our open-source RenderLint blocks broken layouts. In a trial of 22 AI coding sessions, the apps built without it had 229 visual defects; the apps built with it had 0.
  • Human-uploaded UAT cases outrank generated ones.

Two rules we enforce on agents: never call a feature working from a health check alone, and never report a bug "fixed" without first reproducing it. Both rules came from failures.

5. Review, merge and release gates

A reviewer agent checks every change. On a national platform where we supported a 20-developer partner team, our AI review bot ran 1,623 reviews on 899 merge requests, at a median of 7.7 minutes each. A resolver agent settles merge conflicts under an integration lock. Merges go in batches of 6 to 10, and a red batch is bisected automatically. That design cut one backend merge gate from 4 hours to 81 minutes.

Release has three versioned lanes: dev, staging and production. Production requires a named human administrator to press the button, a database dump first, and a release branch with its own merge request.

6. Operations: durability, self-healing and self-improvement

A factory that stops at 2 a.m. is a demo. Agent sessions are started and supervised by rmux, our in-house agent orchestration layer, which spawns role-based agents (planner, builder, QA, reviewer, security), waits on their state and hibernates idle ones. Every work order is a Temporal workflow, so the run survives crashes and restarts. In a crash test we killed the worker at step 3 of a 12-step run; it resumed at step 4. Prometheus, Grafana and Loki watch the hosts, and Langfuse traces every model call with its cost. The full stack, and the failures that shaped it, are in AI agent orchestration in production.

A "doctor" checks every line, host and environment every 3 minutes. Known faults are fixed automatically. Anything else spawns a fixer agent, which reported "fixed" in about a minute in our end-to-end test. A supervisor agent unblocks stuck lines every 3 hours. At midnight an improver agent reads the day's lessons, updates prompts and lesson files, and opens a merge request for any code change. When something does need a human, a briefer agent writes a plain-language summary first: what the feature is, where it sits in the prototype, and why it is blocked.

Light vs dark: how much autonomy should the factory have?

A "dark" factory ships code no human reads. A "lit" factory runs the same pipeline but keeps humans where judgment matters. Ours is lit by design. On the government platform, roughly 3,000 of its 4,459 commits were authored directly by the factory's agent identity, yet humans own the prototype, approve acceptance cases and press the production button.

Our rule of thumb: autonomy should follow reversibility. Throwaway prototypes and test generation can run dark. Authentication, payments and government systems stay lit. We lay out the full decision matrix in Dark software factory: when to let code ship unread.

How roles change inside a factory

Fewer people type code. More people decide what "correct" means and check that it holds.

Role before Role in a factory What they own
Business analyst Spec author The clickable prototype; approving generated UAT cases
Senior engineer Factory engineer Stations, prompts, gates, batch rules; reading failure patterns
QA engineer Verifier The acceptance suite, evidence review, human UAT cases that override generated ones
Architect / tech lead Architecture owner The architecture document every agent must read; escalation decisions
Product or domain owner Release owner Priorities, sign-off, the production button

The hardest change is cultural. Engineers who measured themselves by code written now measure themselves by defects prevented and lines unblocked.

Metrics that prove an AI software factory works

Start with the five DORA metrics: change lead time, deployment frequency, change fail rate, failed deployment recovery time and deployment rework rate. They tell you whether speed is turning into stable delivery. Then add factory-specific measures: cost per merged work order, review latency, defects caught before users, and regression suite growth.

The counter-evidence deserves attention. Cortex's 2026 benchmark found that PRs per author rose 20% year over year while incidents per PR rose 23.5% and change failure rate rose 30% (Cortex; the report notes this is correlation, not proof that AI code caused it). The Faros 2026 report, as cited by LaunchDarkly, found that at high AI adoption the time a pull request spent in review nearly tripled, while PRs merged per developer rose only 16%.

The lesson: generation without a QC station moves the bottleneck to review and to production. Here is what we measure, with our own numbers.

Metric Why it matters YITEC measured value
First commit to public production True lead time for a new product About 27 hours (government KPI platform)
First prompt to production Lead time including architecture Under three weeks (national data gateway)
Release cadence Deployment frequency 77 tagged releases in 7 weeks
AI review latency Removes the review bottleneck Median 7.7 minutes over 1,623 reviews
Merge gate duration Integration throughput 4 hours cut to 81 minutes
Cost and speed per feature Unit economics About 10x cheaper and 6x faster with batched work orders
Defects caught before users Escape prevention 1,006 issues filed by the QA bot, 603 of them security findings
Open UAT failures at go-live Acceptance quality 0 open across 1,000+ cases (gateway)

Build, buy or partner

You can assemble a factory yourself, buy a platform, or hire a team that already runs one. Each choice fits a different situation.

Option What you get Good fit Watch out for
Build on coding agents from several vendors, an agent orchestration layer, your CI and a durable workflow engine Full control of stations, prompts and data Organizations with platform engineers and a long product roadmap Two to three months before the line is stable; the QC station is the hard part
Buy a factory or agent platform Faster start, vendor-maintained tooling Teams that want standard workflows Your process bends to the tool; consumption pricing; data residency
Partner with a delivery company that runs its own factory Shipped outcomes, not tooling First product on a deadline; regulated buyers who need evidence Make sure you own the code, tests, UAT suite and evidence, and can run without the partner

Our opinion: most enterprises should ship their first factory-built product with a partner while they train two or three of their own factory engineers. Write artifact ownership into the contract from day one.

How YITEC does it

YITEC is a US company (YITEC LLC) with its R&D lab in Hanoi (YT AI CO LTD). We use our AI Software Factory on client work, including government work where the bar for evidence is highest.

A government KPI platform in about 27 hours. A central-government steering office (Resolution 57) needed to track 2,042 national tasks and a 32-indicator KPI set across 81 government units. The factory turned the analysts' prototype into 22 work orders. Parallel agents built them, a QA agent tested each in a real browser, and agents reviewed and merged all 22 the same day. Public production went live the next morning. Seven weeks later the platform had 4,459 commits, about 342,000 lines of code, 1,143 test files and 77 releases. Read the government KPI platform case study.

A national data-integration gateway, live in under three weeks. The client needed a security gateway for a national government data platform. Rival architect agents proposed designs and a critic agent merged them; the design was chosen in about 30 minutes. Parallel AI audits found issues that were all fixed before go-live. Every acceptance (UAT) case was an automated test, and more than a thousand cases passed with none open. An engine rewrite from the prototype language to a production language ran about 10x faster, and we switched over only after parity tests matched. See the national data-integration gateway.

The factory itself. On the national integration platform the factory grew from 8 to 26 production lines in 4 days. The details are in AI software factory for a national platform.

Where humans stay. Analysts own the prototype. People approve UAT cases. A named administrator presses the production button. Releases are signed and can be installed air-gapped, and the build fails if anyone tries to waive a vulnerability rated medium or above. At one handover, three parallel security-review agents plus dependency and secret scanners reported 0 high or critical vulnerabilities.

When a problem has no known answer, such as a speech model that mis-hears domain terms, we run the factory in research mode: rival approaches built in parallel and judged by a scorer fixed before the experiment. That is how a Vietnamese meeting transcription system went from 30.8% to 10.7% word error rate in about three days.

A 90-day plan to stand up your first AI software factory line

Days 1 to 30: one product, one line

  1. Pick one bounded product, ideally an internal tool with real users and no regulated data.
  2. Write the specification as a clickable prototype, not a document.
  3. Give every work order its own worktree, branch and preview environment.
  4. Run one planner and two to four builder agents. Keep a human merge.
  5. Record baseline DORA metrics so you can prove the change.

Days 31 to 60: add the gates

  1. Turn on AI review for every merge request and track its latency.
  2. Make every UAT case an automated browser test with screenshot evidence.
  3. Add a visual gate and a security scan that fails the build.
  4. Batch related items into larger work orders and measure cost per feature.
  5. Move orchestration to a durable workflow engine and add a health check loop.

Days 61 to 90: scale and decide

  1. Grow to three to five lines across repositories.
  2. Add a nightly improvement pass over prompts and lessons, reviewed by a human.
  3. Create release lanes with a named human production button.
  4. Publish a dashboard: lead time, cost per work order, defects caught, open UAT failures.
  5. Decide, workload by workload, how much autonomy to allow.

Exit criteria at day 90: lead time down, change fail rate flat or better, zero open UAT failures at each release, and a cost per feature you can defend to finance.

The next step is to put agents inside the product as well as inside the pipeline. Our guides to agentic AI development and generative AI application development cover that side. If you want a factory-built product on a fixed deadline, see our services or talk to our team.

FAQ

What is an AI software factory?
An AI software factory is an engineering system in which AI agents do most of the planning, coding, testing and review, working in parallel production lines. Every change passes the same stations and automated quality gates. Named humans own the specification, approve acceptance tests, handle escalations and decide what goes to production. It is a delivery system, not a single coding assistant.
Is an AI software factory the same as an NVIDIA AI factory?
No. An NVIDIA-style AI factory is data center infrastructure that trains and serves AI models. An AI software factory is a software delivery system in which AI agents build, test and review application code. One produces models and tokens; the other consumes tokens to produce working, tested software. The names overlap, the buyers and budgets do not.
What is the difference between a software factory and DevOps?
DevOps automates how code moves from commit to production: builds, tests, deployments and monitoring. An AI software factory sits on top of that pipeline and automates the work before the commit: planning, writing code, generating tests, reviewing and fixing. You still need good DevOps. Without fast CI, isolated environments and reliable deploys, agents have nowhere safe to work.
Can you build an AI software factory on top of coding agents?
Yes, but a coding agent is only the build station. A factory also needs an agent orchestration layer that spawns and supervises role-based agents, a planner that writes work orders, isolated worktrees and preview stacks, browser QA, a review gate, a durable workflow engine such as Temporal and a human-controlled release. We run our own orchestration layer, rmux, across agents from several vendors.
Does an AI software factory replace software engineers?
It changes what engineers do. Fewer people type code; more people define what correct means and check that it holds. In our factory, analysts own the clickable prototype, engineers design stations and gates, testers approve acceptance cases and a named person presses the production button. Teams ship far more per person, but judgment, architecture and accountability stay human.
How long does it take to set up an AI software factory?
A first production line on one bounded product can run within 30 days if your CI and environments are already in order. Adding review, visual and regression gates takes another month. Scaling to several lines with self-healing and nightly improvement takes a third. Our own factory grew from 8 to 26 parallel lines in 4 days, but only because each station already existed.

Sources

  1. StrongDM: Software Factory
  2. Dan Shapiro: The Five Levels, from Spicy Autocomplete to the Dark Factory (Jan 2026)
  3. Addy Osmani: Software Factories, Light and Dark (Jul 2026)
  4. Cortex: What is an AI software factory? (2026 benchmark data)
  5. LaunchDarkly: What is an AI software factory? (cites Faros 2026 AI Engineering Report)
  6. DORA: Software delivery performance metrics
Your move

Bring us the problem everyone else quoted a year for.