VeriWiki Corpus Benchmark
Reproducible empirical evaluation produced by veriwiki benchmark (src/veriwiki/benchmark.py) across the curated 1,063-page public AI/Systems/Research corpus (1,938+ extracted structured claims and 5,672+ resolved wikilink edges).
supports veriwiki-architecture supports submodular-context-packaging compares agentic-knowledge-systems-2026
1. Compiler Footprint & Incremental Merkle Latency
| Metric | Legacy Full-Body Catalog (v2) | VeriWiki Compact Catalog (v3) | Improvement |
|---|---|---|---|
Serialized wiki/catalog.json Size | 29.76 MB (32.0 MB pre-curation) | 5.93 MB | -80.1% (−81.5% vs. raw v2) |
| Cold Full-Corpus Compile | — | 5,967 ms (1,063 pages) | Full AST/IR + Tarjan SCC Merkle DAG |
| Warm Incremental Merkle Compile | — | 482 ms | 12.4× speedup (0 unchanged pages re-parsed) |
2. Budgeted Context Packaging Quality (max_chars = 3,600, top_k = 5)
Evaluated across 8 multi-aspect synthesis queries spanning compiler architecture, calibrated recommendation uncertainty, ReAct agents, static publishing, and privacy boundaries:
| Retrieval & Packaging Method | Aspect Coverage ↑ | Pairwise Jaccard Redundancy ↓ | Off-Query Hub Pollution ↓ | Unique Terms / 1k Chars ↑ |
|---|---|---|---|---|
| B1: Naive Top-K Lexical | 62.5% | 0.2500 | 18.8% | 46.1 |
| B2: BM25 + Uniform 1-Hop (v2) | 72.9% | 0.1334 | 10.0% | 57.9 |
| VeriWiki (BM25F + Typed-PPR + Submodular) | 85.4% | 0.0372 | 12.5% | 82.5 |
- EXTRACTED: Submodular marginal-gain section selection raises multi-aspect query coverage from 62.5% (Naive Top-K) and 72.9% (Uniform 1-Hop v2) to 85.4%, while cutting pairwise citation overlap by 6.7× (
0.2500 → 0.0372) and increasing conceptual density by +78.9% (46.1 → 82.5unique terms per 1k characters).
3. Deterministic Epistemic & Security Fault-Injection Suite
| Injected Fault Class | Verification Pass | Detected |
|---|---|---|
Broken wikilink ([[broken-missing-node]]) | Symbol-table resolution | Pass |
| Private-layer directory reference | Boundary confinement scan | Pass |
Explicit contradiction (contradicts [[...]]) | Typed-edge tension audit | Pass |
| Unbalanced signed triangle () | Signed triangle consistency | Pass |
Uncollapsed 2-hop supersession (alpha → beta → gamma) | Supersession chain audit | Pass |
| Active page citing superseded node without replacement | Stale-citation-to-superseded check | Pass |
API secret (sk-proj-...) & local workstation user path | Pre-ingest veriwiki scrub | Pass |
- EXTRACTED: Fault-injection recall across all 7 structural, epistemic, and privacy failure modes is 7 / 7 (100.0%).
Counterpoints and Gaps
- INFERRED: The retrieval benchmark measures deterministic aspect coverage, lexical non-redundancy, and conceptual density rather than downstream LLM answer accuracy; pairing
veriwiki benchmarkwith task-specific QA evaluation sets is the natural next extension for domain deployments.