TL;DR: As AI coding tools increase delivery speed and defect risk, the governance challenge is not code generation itself, but controlling how trusted output is verified before it reaches production, and Sonar’s acquisition of Gitar extends its code-verification stack into AI-native review that can generate fixes and iterate until CI passes, reflecting a broader shift toward layered, zero-trust validation.
Editorial analysis by NHI Mgmt Group, based on content published by Sonar: “Welcoming Gitar to Sonar”.
Key questions
Q: How should security teams govern AI-generated code in production environments?
A: Security teams should treat AI-generated code as normal production code with extra provenance risk.
Q: When does automated code review become a governance risk instead of a productivity gain?
A: It becomes a governance risk when the reviewer can change code, not just comment on it, and when the organization cannot explain who authorised those changes.
Q: What breaks when teams rely on test coverage or complexity metrics to judge AI-generated code?
A: Proxy metrics can be gamed by agents and may not reflect real code quality.
Practitioner guidance
- Define verification as a mandatory control Treat AI-generated code as untrusted until it passes layered checks for reliability, maintainability, and security in the pull request workflow.
- Require traceable remediation for automated fixes Record what the AI changed, why it changed it, and which checks were rerun so automated repair remains auditable.
- Separate approval from test success Do not let passing CI become the only acceptance signal when an agent has proposed and applied the fix.
Bottom line: The central issue is not whether AI can write code, but whether organisations can verify AI-assisted changes before they become trusted production assets.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Verification, not generation, is becoming the real control plane for AI-assisted software delivery. The operational risk is no longer limited to whether an AI model can write code, but whether organisations can prove that what it wrote was checked with enough depth before release. That shifts governance from developer productivity to trustworthiness of the change path. Practitioners should treat validation coverage as the primary risk measure, not output volume.
A few things that frame the scale:
- By 2029, 40% of enterprises that successfully implement zero trust within cloud service provider environments will rely on the advanced visibility and control capabilities offered by CNAPP solutions.
A question worth separating out:
Q: What is the difference between code generation and code verification in AI pipelines?
A: Code generation produces a plausible implementation, while code verification determines whether that implementation is trustworthy enough to merge and ship. In AI pipelines, the distinction matters because the tool that writes code is not the same control that proves the code is safe, maintainable, and ready for production.
👉 Read our full editorial: Sonar acquires Gitar: implications for code verification governance