Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:2akouwu Reverify hallucination probes run

From Leeroopedia
Knowledge Sources
Domains Benchmarking, Hallucination_Detection
Last Updated 2026-10-24 12:00 GMT

Overview

Concrete tool for the multi-prior hallucination scorecard that independently re-checks VERIFIED verdicts against raw bytes across five adversarial probes, provided by the Reverify library.

Description

The run function in hallucination_probes.py runs five independent probes: prologue (frame-pointer prior), md5_const (MD5 init constants), import_gets (GetMessage/DispatchMessage prior), section_rodata (.rodata presence), elf_shoff (ELF section header offset). Each probe applies an adversarial prior and independently re-checks VERIFIED verdicts against the raw bytes. The global false VERIFIED count must be 0.

Usage

Use this function when you need to:

  • Test hallucination detection across multiple adversarial priors.
  • Independently re-verify VERIFIED verdicts (not trusting the verifier's own judgment).
  • Run the hallucination probes benchmark in CI.

Code Reference

Source Location

  • Repository: Reverify
  • File: benchmarks/hallucination_probes.py
  • Lines: probe functions and run at L189-232

Signature

def run(
    dirs: List[str],
    per_dir: int = 12,
    only: Optional[List[str]] = None,
) -> None:
    """Run hallucination probes; print per-binary table and scorecard."""

Import

from benchmarks.hallucination_probes import run

I/O Contract

Inputs

Name Type Required Description
dirs List[str] No Corpus directories
per_dir int No Files per dir (default 12)
only List[str] No Filter to specific probes (e.g. ["prologue", "md5_const"])

Outputs

Name Type Description
(stdout) str Per-binary table (binary, fmt, arch, probe, verdict, observed), scorecard per probe, global false VERIFIED count

Usage Examples

CLI Usage

# Run all probes
python benchmarks/hallucination_probes.py

# Run specific probes
python benchmarks/hallucination_probes.py corpus_output/ --probe prologue md5_const

Related Pages

Implements Principle

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment