By NHI Mgmt Group Editorial TeamBased on Sonar: “Why a second, independent verification loop is critical for using Fable 5” (June 11, 2026)

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.


At a glance

What this is: Sonar says autonomous code verification can help an agent check its own work, but it cannot replace an independent deterministic gate for catching systematic defects.

Why it matters: For IAM and NHI practitioners, the governance lesson is that model self-checks improve speed and intent, but certainty still has to come from a separate control layer that does not share the model’s blind spots.


Context

Autonomous code verification is the practice of letting a model test or inspect its own output before it ships. The security and governance gap is that self-checks can confirm intent, but they do not reliably prove correctness, conformance, or absence of defects when the same system produces and judges the work.

That matters as autonomous coding and agentic AI move from experimentation into production workflows. In identity and access programmes, the wider lesson is familiar: controls that inspect their own outputs are useful, but they are not independent controls, so the assurance boundary must sit outside the actor being judged.


Key questions

Q: What breaks when autonomous code verification is the only control gate?

A: The main failure is that the same system that produced the code is also judging it, so blind spots, incomplete tests, and overconfident summaries can all pass through. That leaves security and conformance defects visible only after release. An independent deterministic gate is needed to catch what self-verification cannot reliably see.

Q: Why do probabilistic self-checks still need deterministic verification?

A: Probabilistic self-checks are good at interpretation, but they vary run to run and can miss systematic faults. Deterministic verification gives the same answer for the same input, which is essential when the organisation needs repeatable enforcement of security, policy, and build standards. The two control types solve different problems.

Q: What are the signs that an autonomous workflow is over-trusting model self-review?

A: The warning signs are green tests with unresolved security findings, self-summaries that claim end-to-end verification without runtime proof, and merge decisions that rely on model confidence instead of external evidence. If the review layer cannot produce a repeatable rule-backed verdict, it is not a real gate.

Q: How should teams govern autonomous agents that can create and validate their own work?

A: Treat the producer and the verifier as separate control functions, even if both are software. The actor can draft, test, and refine, but a different system must decide whether the work is acceptable. That separation preserves accountability, limits blind spots, and gives auditors a defensible decision path.


Technical breakdown

Why probabilistic self-verification cannot act as a final gate

A model that writes code and then checks its own work is still sampling from the same underlying probability distribution. That makes its verdict useful for intent, refinement, and obvious mistakes, but not for hard guarantees. The model can miss defects when its tests are incomplete, when its vision check does not exercise runtime behaviour, or when its summary overstates what was actually verified. In governance terms, the verifier shares the same blind spots as the author, so it cannot be the final authority on correctness or security.

Practical implication: Use self-verification as a draft-quality control, not as the merge gate.

Deterministic analysis is about invariants, not intuition

Deterministic analysis applies fixed rules to code and produces the same result every time for the same input. That makes it suited to security, complexity, conformance, and policy enforcement, because those checks depend on invariants, not interpretation. The article’s point is architectural: a probabilistic model may understand user intent better, but a rule-based engine is better at identifying specific violations such as unsafe data flow, policy breaches, or dependency issues with traceable evidence. The two checks are complementary, not interchangeable.

Practical implication: Place deterministic controls where the organisation needs repeatable proof, auditability, and policy enforcement.

Outer loops matter whenever the system can grade its own output

The structural weakness is not that the model is poor at reasoning. It is that a system cannot reliably judge the class of errors it is structurally disposed to make when its own output becomes its evidence. That is why the article argues for nesting the inner loop inside an independent outer loop. The same logic applies to agentic systems, NHI governance, and any workflow where the actor can write, verify, and summarise its own actions. The assurance problem moves from performance to accountability.

Practical implication: Design an independent verification layer whenever an autonomous system can create and assess the same artefact.


NHI Mgmt Group analysis

Independent verification is the control boundary, not the model’s confidence score. A system that grades its own work can improve iteration speed, but it still cannot substitute for a verifier that is structurally separate from the actor being assessed. That is true in code generation, and it is equally true in identity governance when an actor can issue, use, and explain its own access path. Practitioners should treat independence as the assurance requirement, not a nice-to-have.

Determinism is the missing governance property in autonomous workflows. Probabilistic self-checks are good at interpretation and intent, but governance needs repeatability, traceability, and the ability to prove that a rule was enforced the same way every time. That is the same reason access decisions, privilege grants, and policy exceptions cannot rely on the subject of the decision to self-attest. Practitioners should separate generation from validation wherever a control decision has material risk.

Autonomous systems create verification debt when the review layer shares the same failure modes. The article’s named concept is the deterministic outer loop, and it captures the shift from model confidence to system accountability. This is not a tooling debate, it is a governance design choice about where certainty lives. Practitioners should place the burden of proof outside the actor and keep the model inside the boundary of advisory checks.

Self-verification helps with speed, but it does not resolve the trust gap created by autonomous action. The more independently a system can act, the more dangerous it becomes to let it also certify itself. In identity and AI governance, that means the organisation must be explicit about who, or what, has final authority over correctness, policy, and release. Practitioners should assume self-checking reduces friction, not accountability.

Agentic workflows need nested controls because the same loop cannot create and validate trust. When an autonomous workflow can write code, run tests, and summarise results, the assurance model must ask who checks the checker. That requirement maps cleanly to broader NHI and agentic AI governance: issuance, action, and verification need distinct control points. Practitioners should design for separation of duties even when the actor is software.

From our research library:

What this signals

Deterministic outer loops are becoming the governance boundary for agentic work. As systems take on more of the code-writing and validation cycle, organisations need a separate control layer that can prove a rule was enforced, not just infer that the model meant well. The practical shift is away from trusting the agent’s summary and toward requiring an independently reproducible verdict.

Verification debt appears when autonomous systems are allowed to self-attest. That debt accumulates fastest in environments where speed pressure encourages teams to treat model-generated tests as proof of correctness. The safer operating model is to reserve deterministic checks for the decisions that matter most, especially where release risk, policy compliance, or access control consequences are high.


For practitioners

  • Separate generation from release gating Allow the model to draft code, tests, and explanations, but require an independent deterministic verifier to decide whether the change can merge.
  • Treat self-verification as advisory evidence Use model-run tests and reflections to speed debugging, but never let self-reported confidence override rule-based findings or policy violations.
  • Define which invariants only external controls may enforce List the checks that must remain outside the model, such as security rules, complexity thresholds, dependency policy, and conformance requirements.
  • Build separation of duties into agentic workflows Ensure the system that produces an artefact is not the only system that can approve it, especially when autonomous execution runs for hours without review.
  • Measure where probabilistic checks are still blind Track the classes of defects that pass self-tests but fail deterministic review, then move those defect types behind mandatory outer-loop controls.

Key takeaways

  • Autonomous code verification helps models refine their own work, but it does not eliminate the need for independent control over security and conformance.
  • The core governance problem is structural: a system cannot reliably find the faults it is most likely to reproduce in its own output.
  • A deterministic outer loop remains the practical control for organisations that need repeatable proof before autonomous work is allowed to ship.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseAutonomous self-verification raises control concerns when the same actor produces and approves work.
ASI08 — Cascading FailuresA weak self-check can let defects cascade from draft code into shipped systems.
Recommendation — Separate approval authority from autonomous generation so the same agent cannot certify its own output. Place a deterministic verifier after autonomous generation to stop error propagation before release.
NIST AI RMFMANAGE — AI Risk Management and ResponseThe article is about managing residual risk when AI performs and verifies tasks.
Recommendation — Build independent verification into AI operating procedures so residual model risk is handled before deployment.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe governance lesson generalises to separation of authority and approval in high-risk workflows.
Recommendation — Apply independent approval controls wherever a system can both act and attest to its own compliance.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementThe article’s structural warning mirrors how unchecked trust in an actor can allow error propagation.
Recommendation — Map autonomous workflow failures to attacker movement paths and verify where errors can propagate unchecked.

Key terms

  • Deterministic Outer Loop: A separate verification layer that applies the same rule set to the same input and returns the same verdict each time. In autonomous workflows, it provides repeatable assurance that a model’s output meets defined security, correctness, or policy requirements before release.
  • Probabilistic Verification: Any identity check that produces a confidence score or human judgment rather than a deterministic proof. It can be useful for low-risk interactions, but its assurance degrades when attackers can forge media, clone voices, or assemble personal facts from breached data.
  • Verification debt: The accumulated gap between the identities an organisation manages and the confidence it can still have in validating them at the moment of access. It grows when verification, entitlement review, and offboarding do not keep pace with identity sprawl.
  • Control boundary: The line that defines who can administer, observe, and change a system. For NHI and IAM programmes, the control boundary matters because auditors and risk teams care about where authority sits, not just where the software runs. Clear boundaries make assurance easier; blurred ones create governance debt.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, machine identity security, and secrets management. It helps security and identity practitioners apply control separation and verification discipline across modern identity programmes.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 19, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org