updated 2026-11-26·7 min read
Baseline Audit & Diagnostic Ledger
Canonical 8-node toy graph verification across all 14 retrieval baselines, dev_val post-audit results, and evaluation bugs caught along the way.
When a full benchmark run prints 0.0% or 1.0%, you cannot tell from the summary number alone whether the math is broken or the repository parser silently dropped half your edges. That is why every baseline in RepositoryRetrievalEngine runs through an 8-node toy graph first before touching dev_val (seed = 20261003).
Those sanity checks also caught several real bugs that forced retractions mid-project:
- The
retrieve_bm25List[int]bug: On the namespace-obfuscation test (SchrödingerRepo),retrieve_bm25()returned integer node IDs (List[int]) and the evaluation runner multiplied them as float scores, briefly faking a0.29%BM25 score and a+34.59 ppgraph advantage. Fixing the return path wiped out the illusion (34.59%BM25 vs34.88%PPR, ). - Uncalibrated
dev_valPPR collapse: In thedev_valmatrix below, Standard PPR collapses to1.0%(and Aider/Query-Reweighted PPR follow it down) because that baseline pass used uncalibrated dense priors and let test files act as walk sinks. Turning on sharp top-25 softmax priors and test-node filtering in later sweeps lifted Standard PPR to48.5%. - Cancelled
12B(gemma-4-12b-it) run: I cancelled the12Bscaling run onN = 58tasks unconditionally. E4B pointwise scoring already hit49/58(84.48%Acc@5), leaving at most 9 misses against McNemar’s14.25 to 16.45 pp80%-power minimum detectable effect. Worse, inspectingperron/reranker/scaling_worker.pyturned up an accidentally de-indenteddef get_input_target_devicethat had made 26 lines of GPU eval dead code, alongside a"26b" in model_idcheck pinning 12B onto a single14.56 GiBT4. - LoRA prompt leak: An early LoRA dataset generator (
prepare_lora_dataset.py) leaked# Gold target symbolcomments into training prompts, splitting performance into58.33%Acc@5 on seen repos vs15.38%(0.4846ROC-AUC) on unseen repos.
Canonical 8-Node Toy Graph Specification
The diagnostic toy graph checks one minimal question: can a retriever step across a 1-hop structural call edge to an unmentioned target without getting swallowed by a global hub?
- Seed Node S
High lexical overlap with the query text ("process_order").
- Target Node T
Located 1 call-hop from S ("calculate_tax") with low in-degree = 1 and zero lexical overlap with the query.
- Hub Node H and Fillers F1..F5
Hub H has high in-degree = 6 from S and filler nodes F1..F5; passing requires T in R[:3].
Toy Graph Evaluation Matrix (All 14 Baselines)
| # | Baseline Name | Toy Result | Category | Diagnosis |
|---|---|---|---|---|
| 1 | Okapi BM25 | FAIL (Rank 7) | Intrinsic limit | Lexical token match only; unmentioned target has zero token overlap. |
| 2 | BM25 + 1-Hop Expansion | PASS (Rank 3) | Pass | Propagates 50% BM25 score from across 1-hop edge to . |
| 3 | Dense Semantic Retrieval | FAIL (Rank 7) | Intrinsic limit | Identifier similarity without graph edge traversal scores 0.0 for . |
| 4 | Prior-Only Control () | FAIL (Rank 7) | Intrinsic limit | Teleport prior without random-walk diffusion leaves zero mass on . |
| 5 | Standard PPR | PASS (Rank 3) | Pass | Power-iteration walk flows probability mass from to 1-hop neighbor . |
| 6 | Authentic Aider Repo Map | PASS (Rank 3) | Pass | PageRank seeded on prompt identifier tags reaches . |
| 7 | Hub Blocklist + Lexical Override | PASS (Rank 2) | Pass | Masks top in-degree hub , elevating to rank 2. |
| 8 | Static Degree-Discounted Matrix | PASS (Rank 3) | Pass | Penalizes incoming transition weights to , preserving flow to . |
| 9 | Degree-Normalized PPR | PASS (Rank 2) | Pass | Post-walk division by attenuates . |
| 10 | HippoRAG Pre-Walk Prior Scaling | PASS (Rank 3) | Pass | Pre-walk prior modulation by directs flow to . |
| 11 | Query-Reweighted PPR | PASS (Rank 3) | Pass | Dynamic edge scaling prioritizes active query symbols. |
| 12 | Perron Static () | PASS (Rank 2) | Pass | Decoupled ratio suppresses and places at rank 2. |
| 13 | Perron Adaptive () | PASS (Rank 2) | Pass | Query prominence modulates suppression, placing at rank 2. |
| 14 | Oracle Upper Bound | PASS (Rank 1) | Pass | Places ground-truth target at rank 1 unconditionally. |
Stratum C Factorial Localization and Pool Truncation


Dev-Set Post-Audit Rerun (dev_val, N = 100)
Executed via python scripts/run_suite.py --suite table2 --split dev_val --seed 20261003 and recorded in results/dev_val_table2_postaudit.json:
Full Dev-Val Post-Audit Results Table (14 Baselines)
| Baseline | Fn Acc@5 | Fn Acc@10 | File Acc@5 | Cov@4k | HSI@10 | McNemar |
|---|---|---|---|---|---|---|
| Okapi BM25 | 11.0% | 20.0% | 57.0% | 26.3% | 99.7% | 0.0923 |
| BM25 + 1-Hop Expansion | 11.0% | 20.0% | 57.0% | 26.3% | 99.5% | 0.0923 |
| Dense Semantic | 8.0% | 15.0% | 42.0% | 17.3% | 99.2% | 0.7905 |
| Prior-Only Control () | 11.0% | 20.0% | 57.0% | 26.3% | 99.7% | 0.0923 |
| Standard PPR (Shared ) | 1.0% | 2.0% | 10.0% | 0.5% | 60.0% | 0.0034 |
| Authentic Aider Repo Map | 1.0% | 1.0% | 6.0% | 0.5% | 55.2% | 0.0018 |
| Hub Blocklist + Lexical Override | 2.0% | 2.0% | 16.0% | 1.5% | 90.2% | 0.0034 |
| Static Deg-Discount Matrix | 1.0% | 2.0% | 16.0% | 0.5% | 69.2% | 0.0034 |
| Degree-Normalized PPR | 2.0% | 3.0% | 22.0% | 5.5% | 97.1% | 0.0020 |
| HippoRAG Prior Scaling | 1.0% | 2.0% | 10.0% | 0.5% | 58.5% | 0.0034 |
| Query-Reweighted PPR | 1.0% | 1.0% | 14.0% | 0.5% | 60.8% | 0.0018 |
| Perron Static () | 8.0% | 13.0% | 50.0% | 10.5% | 92.3% | baseline |
| Perron Adaptive Specificity | 6.0% | 8.0% | 44.0% | 7.0% | 82.4% | 0.1250 |
| Oracle Upper Bound | 83.0% | 83.0% | 83.0% | 82.0% | 99.8% | 0.0000 |