Despite the rise of AI-driven development, the software factory model still requires significant human oversight to ensure code quality and security, according to Sonar CEO Tariq Shaukat.

What Happened

Speaking at the AI Dev conference in New York, hosted by Andrew Ng’s DeepLearning.ai, Shaukat addressed the growing tension in AI software development: the ease of generating code versus the difficulty of verifying it within complex systems. Shaukat, formerly the president of Google Cloud, stated that while code is now abundant, confidence in that code has become increasingly scarce. He highlighted that demonstrations of AI coding often occur in pristine environments, but real-world application involves verifying millions of lines of code, a task that remains difficult for automated systems.

Shaukat illustrated the inconsistency of AI verification with a personal example involving Claude Code. He reported that when running the tool on a specific codebase, it identified 40 issues in the first pass, 11 in the second, and 18 in the third. He argued that adding more agents to resolve this variance compounds the problem, increasing token costs and time without necessarily improving outcomes. Instead, he suggested that developers must teach agents to verify their own results by encoding specific expertise and definitions of 'good' results into the software harness.

Why It Matters

The insights shared by Shaukat challenge the notion that AI can fully automate software development in the near term. He described a spectrum of automation, from 'dark factories' for low-stakes components to 'light factories' for mission-critical applications where regulations mandate human review. For most global 2,000 companies, he predicts a 'dim factory' approach, where oversight is applied selectively based on risk and confidence levels. This distinction is crucial for enterprises balancing the efficiency of AI agents with the necessity of architectural compatibility and regulatory compliance.

According to Shaukat, the role of human engineers is shifting from writing code to defining it. Engineers must specify what should be built, define 'done' and 'good,' and ensure agents have the correct context to maintain compatibility with existing codebases. While AI can augment the verification process, Shaukat asserted that humans will remain essential for providing judgment and oversight, particularly for applications where errors carry significant consequences.

The Bottom Line

AI software factories are not yet fully autonomous. As highlighted by Sonar’s leadership, the industry is moving toward hybrid models where humans define goals and verify outcomes, while AI handles code generation and initial checks. The scarcity of reliable verification, rather than code generation, remains the primary bottleneck for large-scale AI adoption in software engineering.