Agentic AI
Who Should Trust AI-Built Code? Researchers Propose Independent Verification Framework
A new study argues that when AI agents both build software and verify it, the evidence of correctness becomes compromised—and proposes separating verification into an independent assurance plane.
When AI coding agents write software, run tests, and declare it production-ready, there's a hidden risk: the same system that built the code also wrote the tests meant to validate it. That circularity undermines confidence, according to a new paper from computer scientists exploring independent assurance for agent-produced software.
The Problem with Self-Certification#
The core issue is one of independence. When a builder agent generates both code and its test suite, the tests are no longer neutral evidence of correctness. Instead, they become an optimization target for the same system that created the code. Tests may pass not because the software is sound, but because the builder—and its tests—share a common misunderstanding of the original specification. Worse, the builder's own tests may simply be incomplete, missing edge cases or subtle interactions that matter in production.
A Framework for Separation#
Researchers propose addressing this gap through a Verification Contract: a formal statement of what must be demonstrated before software can be released. The framework separates building and verification into two distinct planes:
- Specification-first verification: A human-independent verifier examines the requirements without access to the implementation
- Implementation-aware verification: After seeing the code, the verifier deploys mutation analysis, property-based testing, and fuzzing to stress-test the software
The approach identifies four structural gaps that can arise between stakeholder intent and production: requirement gaps (unclear specifications), conformance gaps (code doesn't match spec), evaluation gaps (tests don't capture correctness), and model gaps (AI misunderstands the task).
Testing Against Real-World Code#
The team evaluated the framework on three stateful services, including two written by third-party AI models, plus a pilot using the EvalPlus benchmark. The results showed the builder's programs were generally correct, but its own tests missed subtle interactions. When a fresh verifier reviewed the code, it detected more of the 46 seeded faults than the builder's tests did (Holm-corrected p = 0.006) and surfaced ambiguities lurking in the specification itself. The cost was occasional false alarms.
Interestingly, bringing in a verifier from a different provider added no additional fault detection—suggesting verification gains may depend more on the separation principle than on vendor diversity.

