Artificial intelligence is making program code easier to produce, but determining whether that code works properly within a complex system remains difficult. Tariq Shaukat, CEO of Sonar, says confidence in code is becoming scarce even as code itself becomes increasingly abundant.
Shaukat discussed the issue at the AI Dev conference in New York, hosted by Andrew Ng’s organization DeepLearning.ai. A recurring subject at the event was how to operate so-called software factories: effective AI-driven development requires careful design not only of the models, but also of the tools, instructions and context around them. Shaukat was previously president of Google Cloud.
Verification cannot be solved simply by adding agents
According to Shaukat, AI coding capabilities are often demonstrated in ideal conditions. Checking a small piece of code may be manageable, but reviewing a codebase of as many as a million lines is much more complex and still requires substantial human judgment.
He described one codebase where Claude Code found 40 issues in one run, 11 in another and 18 in a third. A further agent could be asked to judge the results, but its own answers could also vary. Adding more agents therefore does not necessarily improve the outcome, Shaukat said, while increasing token consumption and the time required.
He considers it more useful to give an agent a precise task and verification criteria: for example, defining the kind of security issue it should seek and what a correct or incorrect result looks like. The expertise needed for that assessment can then be built into the operational and verification framework surrounding the model.
Risk determines the degree of automation
Whether development can be fully automated depends on the level of risk an organization is willing to accept, Shaukat said. At many of the world’s 2,000 largest companies, core software is critical, but less consequential areas may be suitable for a fully automated “dark factory” model without human review. Elsewhere, regulations require a person to review the code, making a process built around human oversight necessary.
The Sonar CEO expects most software at large companies to follow a middle path: not every individual item would be checked, but automation would remain under supervision. Low-risk processes, or those that have proved reliable, could receive lighter scrutiny, while other areas would need more rigorous review. The latter would not necessarily mean inspecting every line of code, but it would require assessing the work as a whole.
Shaukat argued that checking does not necessarily indicate a lack of confidence; it provides evidence that a system is working properly. The point is for an organization to support its trust with experience and results.
Developers’ responsibilities will change
Human developers, Shaukat said, must first define what they want to build, how it should work and the conditions under which it can be considered good and complete. They must also plan verification, accounting not only for functionality but also for architecture and compatibility with the existing codebase.
A human developer can be expected to produce a solution that fits the existing system; an agent, by contrast, may take the shortest path to an answer without appropriate guidance. For the foreseeable future, supplying the necessary information and context, and establishing checks and reviews, will therefore remain important human responsibilities.
Shaukat expects developers to write very little of the actual code themselves. That does not mean, however, that they can simply give an instruction and leave the system entirely on its own, particularly for critical applications.



