AI Can Build the Factory, But Who Verifies the Code?

Anthropic packaged the software factory. The next challenge is harder to ignore: verification is the piece you need to build.
AI agents can bring software together at remarkable speed. Features that once took days could be built in hours, but getting that AI-built code into production was another story. Pull requests piled up, and validating the work often took longer than building it.
The Bottleneck Moved From Code to Confidence
AI has not removed the bottleneck in software development. AI moved the bottleneck from writing code to deciding whether the code is correct, secure, reliable, and compatible with a sprawling codebase.
That tension shaped discussion at the AI Dev conference in New York, hosted this week by Andrew Ng’s DeepLearning.ai. The software factory model remains popular among AI-focused developers, but making these factories work requires careful tinkering with the core models, the harnesses, and the context surrounding them.
Sonar CEO Tariq Shaukat used his opening talk to focus on the growing confidence gap. Formerly the president of Google Cloud, Shaukat argued that AI has made writing code easier than ever, while confidence in the code has become scarce.
“The model can verify a small piece of code, but verifying a million lines of code, a whole codebase, is a much, much harder thing,” Shaukat said. A complete codebase still requires judgment, and the results from repeated AI checks can raise more questions than they answer.
“Claude code found 40 issues. Then I ran it again and it found 11. I ran it again, and it found 18. So what’s right?” Shaukat said.
That example exposes the limits of treating one agent as a final judge. Asking another agent to decide what is right and wrong can compound the problem because the second agent brings its own variance. “I don’t think you can throw more agents at a problem and expect it to have a better outcome,” Shaukat said.
More agents also mean more tokens and more time, without a guarantee that the problem will disappear. The answer is not simply adding another layer of model output. The answer is building a verification process that carries real expertise into the workflow.
When Code Becomes Disposable, Tests Must Last
A new habit can form when engineers use coding agents. A service gets tangled, and instead of scheduling a refactor, someone deletes the module, gives the agent the interface and existing tests, then merges a fresh implementation that afternoon.
That approach can feel like a superpower. A few rounds of it, however, may leave the code your team ships in March sharing little with what it ships in September.
The answer is the tests. For decades, teams treated code as the expensive asset and tests as the insurance policy protecting it. Coding agents flip that relationship: when an implementation takes an afternoon to regenerate, the executable record of what the software must do becomes the asset worth protecting.
Teams that work this way still maintain something. The test suite records the expected behavior across changing implementations, giving the team a durable measure of whether the new code still works.
That shift changes what “done” means. It is not enough for an agent to produce code that runs. The team must define what good means, what done means, and how the system will prove that it reached those conditions.
Verification Needs Context, Risk, and Human Judgment
Shaukat’s process starts before the agent writes anything: figure out what you want to build, then plan the verification process. That plan must cover the functional requirements, the architecture, and adherence to the existing codebase.
Human developers can often be trusted to build in a way that fits the codebase. Agents do not know to be compatible by default; they find the shortest path to the answer. That makes context and review part of the software factory itself, not optional steps after generation.
Teams can also teach agents what to inspect. Shaukat described giving a model a specific security issue to find, explaining what a good result looks like, and showing what does not qualify. “You teach the agent how to verify its own results, and build that knowledge into the harness itself,” he said.
That work comes down to finding expertise and encoding it into the harness. The right level of oversight depends on an organization’s appetite for risk. For most global 2,000 companies, the core software matters, while certain lower-stakes parts may support full automation in what Shaukat called a “dark factory.”
Other parts cannot follow that path. Regulations may require a human to review the code, creating what Shaukat called a “light factory.” Sonar also discusses “dim factories,” where teams do not check every single piece but maintain oversight through a trust-but-verify approach.
“There’s plenty of things we have confidence in that you still check, right?” Shaukat said. The goal is evidence that the process works, much like knowing a washing machine cleans clothes without checking every cycle. If the clothes become dirty, the evidence changes and the process needs attention.
The future of software development will not remove people from the loop, particularly for mission-critical applications. Developers may write almost none of the actual code, but that does not mean they can tell an agent what to build and walk away.
Human beings still need to provide the right information, the right context, verification steps, and reviews. AI can augment much of that work, but the software factory only becomes dependable when its tests, evidence, and judgment keep pace with its ability to generate code.
Based on
- Anthropic packaged the software factory. Verification is the piece you need to build. — thenewstack.io
- Every AI Software Factory Has Two Jobs, And One Is Falling Behind — forbes.com
- When Code Becomes Disposable, The Tests Have To Last — forbes.com
- AI software factories still need human help, says Sonar CEO Tariq Shaukat | TechCrunch — techcrunch.com




