TL;DR: Fable 5 can self-verify code by writing tests, reflecting on reasoning, and checking output, but Sonar argues that this remains a probabilistic inner loop with blind spots, so autonomous coding still needs an independent deterministic outer loop to catch security and conformance failures. The structural lesson is that model self-checks can improve speed and intent, but only rule-based verification can provide merge-time certainty.
NHIMG editorial — based on content published by Sonar: self-verification in autonomous coding loops and the AC/DC framework
Questions worth separating out
Q: How should security teams govern autonomous coding agents in software delivery pipelines?
A: Treat the agent, its sandbox, and its tool access as a single governed execution path.
Q: Why do autonomous agents need an outer verification loop if they can run tests themselves?
A: Because tests written by the same agent still reflect the same assumptions that produced the code.
Q: What do teams get wrong about self-verifying AI coding systems?
A: The common mistake is assuming a model that can reflect on its work can also certify it.
Practitioner guidance
- Implement an independent merge gate for agent output Require every autonomous coding task to pass a deterministic verifier before changes can merge, even when the agent reports that tests passed.
- Separate intent checks from invariant checks Allow the agent to use self-verification for reasoning, test generation, and output inspection, but keep security and policy enforcement in a rule-backed analysis stage.
- Instrument agent workflows for reproducible findings Log the exact code path, rule, and output that triggered a failure so reviewers can trace the verdict independently of the agent’s narrative.
What's in the full article
Sonar's full analysis covers the operational detail this post intentionally leaves at the control-design level:
- The inner-loop versus outer-loop architecture for autonomous coding systems, including how verification is nested around model output.
- The specific failure mode where self-written tests pass while a deterministic gate still finds a blocker issue.
- The role of Agentic Analysis in tracing tainted input through code paths and enforcing reproducible findings.
- The remediation sequence that closes the loop before code is eligible to ship.
👉 Read Sonar's analysis of self-verification in autonomous coding loops →
Autonomous code verification: where the governance gap still is?
Explore further
Autonomous code review without an independent verifier creates a structural assurance gap. A model can inspect its own work, but it cannot reliably distinguish what it merely satisfied from what a security gate must enforce. That is why self-verification should never be treated as an accountability control. Practitioners should classify agent self-checks as advisory and keep deterministic verification as the authoritative gate.
A question worth separating out:
Q: How do organisations decide whether agent self-checks are working well enough?
A: Measure whether the self-check is improving intent and test coverage, then measure whether an independent verifier still finds blockers the model missed. If the second control continues to surface security or conformance defects, the self-check is not strong enough to be the final gate.
👉 Read our full editorial: Why autonomous code verification still needs a deterministic outer loop