ART-CLD-014 · ·

The AI Software Factory: Verification Is the Factory

Agents can write most of the code now. Whether the line holds depends on the checks between its stages, and on whether every failure turns into a rule a machine enforces.

Download the PDFCite on Zenodo (DOI)

Contents11 sections

The AI software factory is usually drawn as a line of agents that plan, code and review, with CI/CD (continuous integration and delivery, the automatic build, test and deploy steps) near the end. The line is mostly right, and CI/CD stays in it. Across nine repositories and 3,332 pull requests, every expensive failure we had happened in the joins between stages: a check reported green without looking, a rule lived as a sentence that agents broke under pressure, and a cost moved onto a meter nobody read. The design that held gives every stage a gate with three answers — pass, fail and could not look — and treats could not look as a stop. Every failure then goes through one loop that ends in a rule a machine enforces. Agents produce the code, and the factory is the set of checks that can tell when that code is wrong.

The claim going around

A post making the rounds says CI/CD is dead and the AI software factory has replaced it. A few paragraphs later it calls CI/CD an integral part of the factory that's here to stay. The second statement is the true one. So what should the word factory mean once agents write most of the code?

The post draws the factory as a line. A developer states intent, a planning agent writes a specification, a human approves the plan, and a coding agent builds the change and opens a pull request, the proposed change a reviewer reads before it's merged. A review agent and a human review it, CI/CD builds and deploys it, and agents help out in production. Figure 1 is that drawing.

Follow the arrows left to right: each one assumes the stage before it handed over a correct result.
Figure 1. Follow the arrows left to right: each one assumes the stage before it handed over a correct result.

Most of that line is right, and we run something close to it every day across nine repositories. M.U/T.H/E.R (Model Unification / Tool Harness / Execution Runtime), the Collective's operations agent, schedules the work, and the runners, the machines that execute each CI job, sit on one desktop PC. What the drawing leaves out is the place where every one of our expensive failures happened.

What the post gets right

Table 1 sets the post's claims beside our record, and on most of them the two agree.

Table 1. Where the post and our record agree.

The post saysOur experienceVerdict
Intent, then a plan, then human approval, then code.Acceptance tests written first are the agent's best specification, and a plan a human approved saves rework.Agree
Humans still approve changes.Builders report green and stop. No agent and no reviewer merges on its own authority.Agree, and make it a hard rule
CI/CD stays in the factory.It does, and its inputs are now the bottleneck: the volume, the reviews and the tests that feed it.Agree with the body; the headline overstates it
A platform brings context, agents, tools, guardrails and oversight together.A platform hosts the work. Gates that tell the truth, meters and a learning loop still have to be built on top of it.Needed, and short of enough

Where the factory breaks

When agents make code cheap, every bottleneck moves downstream: review, CI capacity, tests that can't fail, instruction files too large for the tools that read them, and the bill. Figure 1 shows none of them. Our own line hit every one, and Table 2 records where.

Table 2. The failures the usual drawing leaves out.

What brokeWhat we measuredSource (MRC article)
Volume3,332 pull requests opened and 3,222 merged across 9 repositories, running 33,799 CI workflow runs. In the first 13 days of November, each pull request that ran CI averaged 9.5 runs.What Breaks When AI Agents Ship Software at Volume
Rules written as proseAt least 9 pull requests across 3 repositories merged over red, running or absent checks while "merge only on green" was a written rule. One merged 3 seconds after a reviewer posted 9 findings.Building Software With AI Agents: The Rule That Stayed Text
Green that wasn't checkedA gate printed fails=1 and exited 0, the code for success. A reviewer's configuration parsed and was never applied. Tests that checked a file for a string passed forever and caught nothing.False Green; Hosted Code Review; The Scaffolding Comes First
Hosted review capacityOne hosted reviewer answered 749 of 1,322 requests (57%), and another answered 60 of 822 (7%). A configuration 159 characters over its vendor's 20,000-character limit was rejected, and reviews quietly ran on defaults.What Breaks When AI Agents Ship Software at Volume
Moving the costSelf-hosting CI cut the monthly GitHub bill from about $108 to $24.74, and the average wait for a runner rose from 6 seconds to 15.4 minutes.What Building With AI Really Costs
Where the money goesCoding agent about 65%, CI about 28%, review about 5%. The estimate built from pricing pages came in five times low.The Scaffolding Comes First

Every row has the same cause: a stage reported a result that nobody, and nothing, had checked. Speed made it worse; an agent that investigates a failure inside a pipeline able to report false green reaches the wrong conclusion sooner.

The design we run

Keep the stages and change what sits between them. Every stage ends in a gate with three answers: pass, fail and could not look. Could not look always stops the line. Every fail and every could not look becomes a finding, and every finding feeds one loop that turns it into a rule a machine enforces. That rule is a lint rule (an automatic check on code as it's written), a test, or a required status check, which the repository won't merge without. Figure 2 shows the shape.

Read each stage across to its gate: dashed arrows carry a fail or an unknown into the loop, and solid arrows carry the rule it produced back to the gate.
Figure 2. Read each stage across to its gate: dashed arrows carry a fail or an unknown into the loop, and solid arrows carry the rule it produced back to the gate.

Table 3 gives each stage its owner, its gate, what it meters and the failure that put the gate there.

Table 3. Each stage with its owner, its gate and its meter.

StageWho does itThe gateWhat it metersFailure we saw
Intent and acceptanceHumanAcceptance tests exist before codeScopeCapabilities shipped stubbed or switched off by default
Specification and planAgent drafts, human approvesThe plan can be checked from its text aloneReworkA handoff re-briefed by hand 5 times drifted every time
BuildAgent in an isolated worktree, its own copy of the repositoryThe agent never edits its own pipelineTokens, the units a model bills byAll-heavyweight builders cost roughly 3 to 5 times a tiered scheme
TestsAgent writes, a script runsEach regression test is proved by breaking the fixCI minutesTests that matched a string in the source counted toward coverage and caught nothing
ReviewLocal reviewer first, one hosted reviewer at mostReviewers add findings and never approve; silence reads as not reviewedReview quotaA pull request merged before its 10 findings arrived
MergeHuman, or a rule the human setRequired status check on the exact commitQueue timeMerges over red while the rule was a sentence
Release and watchPipeline, with agents assistingUnknown counts as unhealthy; agents may raise an alarm and never clear oneIncidentsA network guard cut the house off while its own checks reported healthy

A third answer for every gate

Most pipelines have two states, and ours needed three. The most damaging defect class we found was a check that couldn't look and said yes anyway, so could not look gets a name and a rule of its own in Table 4.

Table 4. The three answers every gate gives.

AnswerWhat it meansWhat the factory doesExample
PassThe check ran, and its evidence supports the result.The next stage may start.Tests ran on the exact commit being merged.
FailThe check ran and found a defect.It stops, and the failure becomes a finding.A reviewer flags the string "false" being read as true.
Could not lookThe check didn't run, timed out, was rate-limited or couldn't read its input.It stops and says so, in a state of its own that never shows as zero, green or none.A reviewer out of quota reports "not reviewed".

The loop is the factory

Any factory improves its own line. Ours does it through one workflow, the same for every repository, shown in Figure 3. Four failure ledgers, the append-only records of what went wrong and why, hold 1,151 entries. Each agent run starts from a better floor than the one before it because of the lint rules and tests those entries produced.

Go round clockwise from the top: a finding becomes a ledger entry, then a rule in code, then a guard proved by breaking it, then an alarm that watches the whole class.
Figure 3. Go round clockwise from the top: a finding becomes a ledger entry, then a rule in code, then a guard proved by breaking it, then an alarm that watches the whole class.
  1. Find it. Anything that shows a defect starts the loop, whether it's a review finding, a failing test or an incident.
  2. Write it down. The ledger entry names a failure family and states the root cause as the decision that wrote the faulty line, which sits one level below the line itself.
  3. Make it executable. The entry becomes a lint rule, a test or a required status check. A sentence in an instruction file only reminds an agent, and an agent under a long queue stops heeding it.
  4. Prove it by breaking it. Revert the fix, watch the new guard fail, then restore the fix. A guard nobody has seen fail hasn't been tested.
  5. Watch the class. An alarm fires when a fixed family shows up again, because a recurrence means the guard sits in the wrong place. One error recorded as fixed at 11 a day was back at 1,759 a day a week later, 160 times as often, and no session had read it. That entry is why the alarm exists.

What the research says

Outside evidence points the same way, and Table 5 sets each finding beside what it means for a factory.

Table 5. Outside evidence.

SourceFindingWhat it means for a factory
Anthropic, Building Effective Agents (December 2024)Start with the simplest solution that works, and add complexity only when it demonstrably improves outcomes.A flowchart that can be drawn before runtime belongs in a script, and the agent belongs where it can't be drawn.
Anthropic, Claude Code best practices (2025)Explore, then plan, then code, and give the agent a check it can run on its own work.Verification is a stage of its own and deserves its own gate.
Anthropic, Effective Context Engineering for AI Agents (2025)Context is a finite budget, and adding more of it can make an agent worse.Instruction files need budgets and indexes, or the reviewer stops reading them.
METR randomized trial, 16 experienced developers (July 2025)They took 19% longer with AI tools, and afterwards estimated the tools had made them 20% faster.Measure where the cost lands; the feeling of speed is a poor meter.
DORA reports, 2024 and 2025In 2024, each 25% rise in AI adoption came with an estimated 7.2% drop in delivery stability. The 2025 report describes AI as an amplifier of the process it lands in.A factory amplifies a weak process as faithfully as a strong one.
Faros AI, AI Engineering Reports, 2026 (22,000 developers, 4,000 teams)From teams’ lowest to highest AI adoption, incidents per pull request rose 242.7%. As adoption deepened, they rose 14.5%, pull requests merged with no review rose 76.3%, and pull requests grew 71.8% larger. The findings are correlations, from a vendor that sells measurement.Volume overruns review first, so a skipped review has to show as not reviewed, never as a pass.

Why it matters

Agents push more change through a pipeline than a team of people ever did, so every check that fails open now fails open more often. At 9.5 CI runs a pull request, a gate that says green without looking gets consulted on every one of those runs, and each false green is a merge that somebody else's work then builds on. Money takes the same path. About two-thirds of the bill is the coding agent, every fix to one meter moves cost onto another, and a meter nobody reads reports its number on the invoice.

The first rule to move from a sentence into the repository is merge on green, made a required status check on the exact commit, since it's the rule most likely to erode while it's text. Next comes the third answer, at every gate. After it come agents kept out of the pipeline that judges them, reviewers that can block and never approve, and a meter on every stage that shows NOT READ when nobody has read it, where a $0 would pass for good news. Work whose flowchart is already known, such as version bumps and ledger checks, goes to scripts, which don't drift.

The same gates are what make it safe to change the agent. A gate that judges the output doesn't care which harness wrote it, so a team that swaps harness or model keeps its standards in the checks, not in the agent's instructions.

That post asked whether CI/CD survives the agents. It does, and the harder question is whether anything in the line can tell when the agents are wrong. That part is the factory. Each failure it writes down leaves it a little harder to fool, and a line without it only gets faster at being wrong.

Sources

  • Anthropic, "Building Effective Agents", December 2024.
  • Anthropic, "Claude Code: Best Practices for Agentic Coding", 2025.
  • Anthropic, "Effective Context Engineering for AI Agents", 2025.
  • METR, "Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity", July 2025.
  • DORA, "Accelerate State of DevOps Report", 2024, and "State of AI-assisted Software Development", 2025.
  • Faros AI, "AI Engineering Report 2026: The Acceleration Whiplash", April 2026, and "The Speed Trap: 8 takeaways from Faros’s latest AI engineering research", September 2026.
  • The Max Research Collective: Building Software With AI Agents: The Rule That Stayed Text; What Breaks When AI Agents Ship Software at Volume: Wolves at the Gate; False Green; Hosted Code Review: The YAML Parsed and Nothing Read It; Local-First Code Review: The Guard Dog and the Ledger; The Scaffolding Comes First; What Building With AI Really Costs: The Whole Bill; An Engineering Organization Run by AI Agents; The M.U/T.H/E.R Project: How One Desktop App Became the Engineer That Runs the House; AI Evolution and the MAX3 Case Study.

About the tables

Tables 1, 3 and 4 are complete as printed and take no appendix. Table 2 selects figures from the Collective's published articles named in its third column, and each figure appears there as printed. Table 5 summarizes the six outside sources listed under Sources.

Glossary

TermDefinition
Acceptance testA test written from what the person asking for the change wants, before any code exists. It's the agent's clearest specification.
AgentAn AI model given tools and a task, which acts in steps rather than answering once. Here agents plan, write code and review it.
CI/CDContinuous integration and delivery: the automatic steps that build, test and deploy every change. It's the part of the line most people already trust.
Could not lookThe third answer a gate gives when its check didn't run or couldn't read its input. It stops the line, the same as a fail.
GateThe check at the end of a stage that decides whether the next stage may start.
LedgerAn append-only record of failures, each with its family, root cause and the rule it became. Four of them hold 1,151 entries.
Lint ruleAn automatic check on code as it's written, which catches a known bad pattern before a pull request opens.
M.U/T.H/E.RModel Unification / Tool Harness / Execution Runtime, the Collective's operations agent, which schedules work and reads the meters.
MeterA reading of what a stage used: tokens, CI minutes, review quota or queue time.
Pull requestA proposed change to the code, opened for review and checks before it's merged.
Required status checkA check the repository won't merge without, enforced by the platform rather than by a written rule.
RunnerThe machine that executes a CI job, either hosted by the platform or self-hosted on the Collective's own hardware.
TokenThe unit a language model reads, writes and bills by.
WorktreeA separate working copy of a repository, so one agent's build can't disturb another's.
Cloud / DevOpsART-CLD-014
Hashtags

About the author

Jason Newell leads organizations and people in technology, and is a researcher, deep technologist and builder — from a CRAY to agentic AI. He founded MAX Research Collective to build AI for regulated industries that runs where its owner has control, with healthcare as its strongest focus. About Jason → Connect on LinkedIn → ORCID →

Free to read, share and quote: credit Jason Newell, MAX Research Collective, and link to this article’s original page, https://www.maxresearchcollective.com/articles/the-ai-software-factory.html. License & copyright →

Keep reading

More field notes

This piece is part of the MAX Research Collective library. Browse the rest, or connect on LinkedIn.

Follow the collective

New research, projects and field notes as they publish. Following happens on LinkedIn — we never see an address, and there is nothing to unsubscribe from.

Or get it by email

An occasional summary of new research, each with a link to the full piece.