Independent Verification (Verifier)

A design where artifacts are checked by a mechanism completely separate from the generator. Rather than asking the generating AI if its own work is correct, an isolated verification program strictly inspects contracts and factual accuracy.

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 via receipt.
  • Do not immediately discard failed verifications: Data rejected during inspection is kept in candidates.json along with the failure reason so logs can support re-extraction and root-cause analysis.

Related Terms

References

  • Book: Mark Richards and Neal Ford, "Fundamentals of Software Architecture", Chapter 7 (Measuring and Governing Architecture Characteristics)

Verified: 2026-11-08