Deep Dive · AI Quality Management · Governance
AI doesn't suffer from a lack of intelligence. It has a reliability problem.
The gap between an AI that sometimes works and an AI you can rely on collapses into one word: verification. This deep dive shows how to build it — and how to hold vendors to it in your contracts.
or email Jansen@j-law.de
Companion deck
A recent paper from Stanford and Berkeley ("LLM-as-a-Verifier", arXiv:2607.05391) quantifies a remarkable phenomenon. When an AI agent attempts a difficult task multiple times, at least one attempt is correct in nearly 99% of cases — tested on demanding coding and medical benchmarks. Ask the model only once and you get the average attempt. Not the best.
The entire distance between an AI that sometimes works and an AI you can trust reduces to a single concept: verification. Reliably telling the good attempt from the bad.
The 99% Solution — visualizedStage 1 · Drafter agent
Dynamic risk threshold · ISO 31000 Tier 2
Calibrated verifier selects Candidate 2 (98% confidence) — bypassing binary PASS errors.
Instead of asking an AI judge for a letter grade (where almost everything gets waved through), the researchers read out the model's underlying probability distribution across all possible grades.
Think of the difference between two scenarios. You ask a colleague whether their draft is good. In the first, they answer "yes" instantly. In the second, they hesitate, clear their throat, then say "yes". The researchers' method makes that hidden hesitation visible.
Statistical ties between candidate answers dissolve. Simply picking the best of a few attempts then beats every current frontier model. No new models, no fine-tuning — just a better way of asking.

Build agents that work autonomously and improve themselves and a fatal weakness appears. A second recent paper ("The Blind Curator", arXiv:2607.07436v1) shows how these systems collapse silently.
Self-evolving agents maintain long-run performance by continually synthesising new skills and retiring broken ones. Skill retirement is what stops the agent from becoming a landfill of faulty code — the pathology known as Library Drift.
The whole architecture rests on a shaky assumption: that the evaluation node — the judge — actually knows what a defect looks like. For complex tasks without hard unit tests, developers almost always fall back on LLMs-as-judges.
The paper proves mathematically that LLM judges do not merely add noise. They are systematically biased. They love a fluent lie: they look at a fully hallucinated citation or a fluent but functionally broken script and stamp it PASS. This is the false-pass bias.
Once the false-pass rate crosses a specific mathematical threshold, the curator goes blind. The agent permanently stops retiring bad skills. The degradation is silent and only surfaces in aggregate metrics once the system is already compromised.

The paper recommends a defect-injection audit to establish which side of the survival line your judge is on. Never deploy an LLM-as-a-judge for agent evolution without proving its false-pass bias sits below the critical threshold.
The test system is minimal. Feed the judge clean samples and mutated ones that contain a subtle, fluent defect (flip a boolean, hallucinate a metric, invert a citation). Measure how often the judge waves the poisoned output through. That rate is your ceiling on trustworthy autonomy.

# defect_injection_audit.py
# Zero-friction system for auditing LLM-as-a-judge false-pass rates.
# Run this BEFORE deploying a self-evolving agent architecture.
from typing import Callable
def run_defect_audit(
judge_function: Callable[[str, str], bool],
clean_samples: list[dict],
defect_injector: Callable[[str], str],
) -> dict:
"""Evaluate a judge's susceptibility to false-pass bias."""
total = len(clean_samples)
false_passes = 0
for sample in clean_samples:
task = sample["task"]
poisoned = defect_injector(sample["clean_output"])
# Judge SHOULD return False. If it returns True: false-pass.
if judge_function(task, poisoned):
false_passes += 1
rate = false_passes / total
print(f"False-pass rate: {rate:.2%}")
if rate > 0.15:
print("CRITICAL: judge is blind. Skill retirement will fail.")
print("ACTION: upgrade judge or anchor to deterministic verifiers.")
else:
print("GREEN: judge rigor within tolerance.")
return {"false_pass_rate": rate}
Stop relying exclusively on LLM-as-a-judge for skill curation. Do not trust an LLM to grade another LLM's homework on open-ended tasks without a mathematically verified baseline.
For high-stakes systems, bind agents to deterministic verifiers — unit tests, compiler checks, static analysers, schema validators, formal rules. If a task is so ambiguous that only another LLM can judge it, the agent has no business developing skills for that domain unsupervised in production.
Interlude · Prompting
The era of humans manually guessing the magic words is ending. Prompts are becoming tunable hyperparameters, optimised by algorithms rather than adjectives.
You tweak the wording to fix the edge case in front of you and silently break fifty cases you forgot to check.
You bolt on rules and few-shot examples until token count balloons, latency spikes, and the API bill spirals.
Tools like Microsoft's PromptWizard and frameworks like DSPy treat prompts as models: fixed evaluation dataset, defined metric, evolutionary loop.
An LLM generates dozens of variants of the initial instruction, exploring the prompt space far faster than a human can type.
Candidates run against a fixed test set and are scored on hard metrics — JSON adherence, task completion, token cost.
The system analyses failing outputs, critiques the mistakes, and generates targeted improvement recommendations.
A new generation of prompts is synthesised from the critique. Advanced tools jointly optimise instructions and few-shot examples for the most token-efficient combination.
For any team running LLMs in production, manual prompting is an unacceptable bottleneck. APO gives you a data-backed winner you can commit to version control, trace in logs, and roll back like any other change. In contracts, treat the vendor's prompt-optimisation methodology, evaluation datasets, and regression testing as first-class due-diligence items — not tribal knowledge locked in a Slack thread.
AI vendor contracts have shifted from static SaaS templates to dynamic risk governance. The clauses that matter depend on how much autonomy the system has. Below: the core liability tension, a three-tier framework, and the due-diligence checklist that turns answers into binding terms.
Models are inherently unpredictable. Service is provided "as is"; deployer-specific use cases and prompts are out of scope. Liability capped at 12 months of fees, indirect damages excluded — otherwise the business is uninsurable.
↪︎The deployer carries the regulatory and reputational exposure. If the system hallucinates, discriminates, infringes IP, or takes an unauthorised action, the vendor built the defect and must indemnify. Broad third-party carve-outs are non-negotiable for regulated use.
Human fully in the loop. Stateless retrieval, summarisation, translation, drafting. Risk sits in data leakage and IP.
Microsoft 365 Copilot · ChatGPT Enterprise API · Notion AI · Jasper
"Vendor shall not use Customer Data, including any inputs submitted to the AI Feature or outputs generated by the AI Feature, to train, fine-tune, or otherwise improve any artificial intelligence models, machine learning algorithms, or underlying foundational technologies, whether owned by Vendor or any third-party subprocessor."
Tier 2Bounded autonomy with tool use, memory and cross-system calls. Risk shifts from IP to operational harm and vicarious liability (agent acts on your behalf).
Salesforce Einstein Service Agent · Sierra · Jira Service Desk AI
"Vendor warrants that the Agentic AI Service will maintain immutable logging of all decision pathways and API executions. Upon written request, Vendor shall provide Customer with an explainability report detailing the probabilistic weighting and specific data inputs that led to any automated action taken by the Agentic AI Service."
Tier 3Highly autonomous systems that adapt their own parameters and execute open-ended goals. The system audited on day one is not the system running on day 300. Static compliance assurances are useless.
Algorithmic trading engines · autonomous supply-chain routing · production AutoGPT-style frameworks
"Vendor acknowledges that the Autonomous System adapts over time. Vendor guarantees that the System will be monitored continuously for Model Drift. If the System deviates from the baseline accuracy metrics defined in Schedule A by more than five percent (5%), Vendor shall immediately notify Customer and trigger the automated suspension protocol (the "Kill Switch") until the System is retrained and recertified."
Is the reviewer a separate model or the same model that produced the output? Demand structural separation of drafter and reviewer; log both.
Which parts of the output are checked by rules, schemas, or tests rather than by another LLM? Require these to be enumerated.
Ask for the vendor's most recent false-pass audit results, methodology, and the threshold they operate to. No numbers, no deal.
How is Library Drift detected? What triggers a rollback? Bake SLAs for detection latency and remediation into the contract.
Where is human review mandatory, where advisory, where absent? Map this to your professional-duty perimeter.
Reserve the right to run your own defect-injection audit against a mirror of the production judge. Log retention long enough to defend against downstream litigation.
Model swaps and prompt changes must be notified in advance and re-audited. 'Silent upgrades' are how quality regressions enter production.
Allocate liability for hallucinated citations, broken automations, and privilege breaches. Cap on paper is fine; carve-outs for gross negligence and IP infringement are non-negotiable.
Show me your last defect-injection audit.
What to lock in the contractRight to receive audit reports; minimum audit cadence; false-pass ceiling as SLA.
Is the reviewer independent from the drafter?
What to lock in the contractWarranty of architectural separation; disclosure of any shared weights or prompts.
Which outputs are checked deterministically?
What to lock in the contractSchedule listing rule-based checks by output type; changes require prior notice.
How do you detect Library Drift?
What to lock in the contractMonitoring SLA; time-to-detect and time-to-rollback commitments.
What happens when the judge upgrades?
What to lock in the contractChange control clause; re-audit before rollout; opt-out for material changes.
The maker-checker principle must be baked in at the system level. Expect this exact question in future litigation and audits: what did the system's own verifier say before the output was used, and how was that verifier tested for false-pass bias?
The tools that check the work have officially become as important as the tools that do the work. Lawyers have known this principle for centuries. Artificial intelligence is learning it the hard way.
For legal teams, this is not abstract. It determines which AI vendors clear your due diligence, which clauses your Legal Ops team must negotiate, and where your firm's professional duty of care actually lives in the agent stack. That is where I can help — designing the QM regime, running the vendor DD, and drafting the contract terms that hold it together.
or email Jansen@j-law.de