- Category: C. AI Engineering & LLM Ops
- English term: Independent Verification / Verifier
- Related: Deterministic Verification · LLM-as-a-Judge · Receipt and Definition of Done · Structured Output and JSON Contract · Content-Addressable Hash Verification
General Meaning
When an AI agent produces an artifact and the same agent is asked whether its output contains errors, it frequently suffers from self-confirmation bias and fails to spot its own mistakes. Furthermore, a generation process exiting normally does not guarantee that the artifact was produced as expected.
Independent Verification places a separate verifier downstream of the generating AI to objectively cross-check schema validity, deterministic rules, unit tests, and external logs. Clearly separating the probabilistic generator from the deterministic verifier ensures end-to-end system reliability.
Why It Matters
- Preventing self-confirmation bias and oversights: Because the generator rarely notices its own hallucinations or inconsistencies, an independent third party performs strict validation.
- Blocking corrupted artifacts: Prevents malformed data or rule-violating code from entering downstream pipelines or production environments.
- Clarifying completion criteria: Distinguishes between a generation command finishing and the work actually being completed correctly, proving completion with objective evidence.
How the Site Factory Uses It
In the Site Factory, every text, data row, code change, and judgment generated by AI must pass through an independent verification program (Verifier) completely decoupled from the generator. Public data rows generated by engine/extract.py (LLM) are verified by engine/check_sources.py (Python) for exact source quote matches, current fiscal year mentions, and numerical inclusion; entire sites built by engine/build.py are checked by engine/review.py for test passes, forbidden words, ad disclosures, CSP, and broken links.
Similarly, task completion by AI workers is verified via tools/work.py receipt by inspecting artifact SHA-256 hashes, PR numbers, and commit timestamps, while top-tier LLM Judge proposals are verified by the parent worker checking actual model execution logs. If check_sources.py finds even a minor discrepancy when checking subsidy drafts (drafts.json) against fetched source text, it forcibly marks the field as unknown and blocks it from public records.
Caveats & Operational Rules
- Never ask the generating model to re-verify itself: Asking the same LLM if it made a mistake tends to repeat the same hallucination; the verifier must be a rule-based program or an independent evaluator.
- Never trust exit code 0 alone: A program exiting without error (
exit 0) is not proof that the expected artifact was created; always inspect hashes and diffs viareceipt. - Do not immediately discard failed verifications: Data rejected during inspection is kept in
candidates.jsonalong with the failure reason so logs can support re-extraction and root-cause analysis.
Related Terms
- Deterministic Verification
- LLM-as-a-Judge
- Receipt and Definition of Done
- Structured Output and JSON Contract
- Content-Addressable Hash Verification
References
- Book: Mark Richards and Neal Ford, "Fundamentals of Software Architecture", Chapter 7 (Measuring and Governing Architecture Characteristics)
Verified: 2026-11-08