# Phase 2 Pre-Registered Plan: AI Judge Flagship Reliability Audit (#57, #77)

- **Date:** 2026-11-23 (UTC 2026-11-24)
- **Author:** Gemini 4 Carbon (High)
- **Tracker issues:** `#57` (primary), `#77` (session umbrella)
- **Status:** **FROZEN** prior to scored model inference and offline test-split evaluation (`D-063` gates verified in `DRYRUN.md`).

---

## 1. Scientific Questions & Falsifiable Hypotheses

Prior prior investigations established four partial facts across separate threads:
1. **Judge ranking reversal (`#57`):** On RewardBench-1 `math-prm` (`447` pairs), small open-weight Yes/No correctness judges (`W1` `Qwen2.5-1.5B-Instruct-Q4_K_M`, `W2` `Llama-3.2-3B-Instruct-Q4_K_M`) rank responses below chance (`AUROC = 0.310 / 0.193`), and fixing all `20` proven false-negative labels (`4.47%`) removes only `5.14% / 4.39%` of the gap to PPE (`0.624 / 0.613`).
2. **Ranking-vs-decision decoupling (`#57` 5-arm factorial):** On `24` `math-prm` pairs, stripping reasoning with a reference answer supplied (`RS -> RA`) improved `W2` pair rankings (`19/24 -> 24/24`) while worsening generated `Yes/No` accuracy (`35/48 -> 27/48`) because bare answers triggered blanket `No` rejections (`45/48`). Whether quantization (`Q4_K_M`) or small model scale (`<= 3B`) caused this failure remained untested.
3. **Capture-recapture recall inflation (`B1`/`B2`):** Lincoln-Petersen (`LP`) overlap-estimated union recall overstates true union recall in `23/24` `B1` cells (`gap` up to `+0.410`), lacking an unlabeled-data correction law.
4. **Catastrophic mean-subtraction tie breaking (`papers/judge-scores` Proposition 1):** Naive floating-point pool centering `r_j - sum_k v_k r_k` breaks exact ties near `1 - 2^-53`, whereas `(r_j - r_max) + sum_k v_k (r_max - r_k)` is cancellation-safe.

This pre-registered audit unifies all four threads into a single falsifiable framework and tests three primary hypotheses (`H1`–`H3`) plus one numerical-stability audit (`C4`):

### `H1` — Lincoln-Petersen Exact Covariance Identity & Zero-Shot Unlabeled-Lift Correction (`324` RM pair-cells)
- **Algebraic identity (`Gate LP-ID`):** Across all `324` reward-model pair-cells in `withinprompt-bestofk-20261113/items.csv.gz` (`13` RMs on `PPE-MATH` = `78` pairs, `13` RMs on `PPE-MMLU-Pro` = `78` pairs, `4` RMs on `RB2` = `6` pairs; non-model length baseline `V0` excluded; pass budgets `q in {0.2, 0.3}`), verify `|lp_gap - true_union_recall * psi_cond_correct| <= 1e-12`, where `psi_cond_correct = Cov(1_A, 1_B | gold=1) / (p_A * p_B)`.
- **Zero-shot calibration test:** Fit a single origin-constrained scalar `alpha_hat` (`fit_lp_lift_alpha`) on `PPE-MATH` ONLY (`156` cells) mapping observable **unlabeled** excess pass-overlap lift `(Lambda_unlab - 1) = P(A & B) / q_eff^2 - 1` to conditional excess lift, using labels only inside `A | B` at deployment:
  `N_adj = N_LP * max(0.25, 1 + alpha_hat * (Lambda_unlab - 1))`, `adj_union_recall = min(1.0, |(A | B) & correct| / N_adj)`.
- **Decision rule (`H1`):** `PASS` iff zero-shot out-of-sample `RMSE(adj_gap)` decreases by at least `25%` (`rel_rmse_change <= -0.25`) relative to `RMSE(lp_gap)` on `PPE-MMLU-Pro` (`156` cells) AND does not worsen (`RMSE(adj_gap) <= RMSE(lp_gap)`) on cross-benchmark `RB2` (`12` cells). Otherwise `FAIL` (domain-dependent conditional lift).

### `H2` — Provenance & Surface-Scaffolding Asymmetry Out-of-Sample Inversion Map
- **Mechanism:** Metadata inspection of `rb1_filtered.parquet` shows `447/447` `RB1 math-prm` pairs pit `chosen_model = human` (terse PRM800K steps) against `rejected_model = GPT-4` (pedagogically scaffolded LLM derivations).
- **Retained check (`C2-Retained`):** On the `285` verified-wrong (`reference_disagreement`) `RB1 math-prm` pairs (`0%` final-answer label error), test whether `W1` and `W2` pair win rates increase from the lowest to highest tertile of `delta_scaffolding = scaffolding_score(chosen) - scaffolding_score(rejected)` (`T3 - T1 > 0`, paired bootstrap `B = 2000`, `seed = 20261123`).
- **Out-of-sample `2 x 2` benchmark prediction (`C2-Unseen`, `240` pairs = `480` items/model, `seed = 20261123`):**
  1. `rb1_math_prm_disjoint` (`60` verified-wrong pairs disjoint from C3; `human` vs `GPT-4`; math template).
  2. `rb2_math_llm_vs_llm` (`60` pairs from `RB2 Math`; `LLM` vs `LLM`; **identical** math template).
  3. `rb1_hep_python_sym` (`60` pairs from `RB1 hep-python`; `human` vs `human`; task-faithfulness template).
  4. `rb1_llmbar_adver_asym` (`60` pairs from `RB1 llmbar-adver-GPTOut + GPTInst`; `faithful` vs `GPT-4` surface-polished violator; **identical** task-faithfulness template).
- **Decision rule (`H2`):** On small (`<= 2B`) BF16 judges (`M1: Qwen2.5-1.5B-Instruct`, `M2: SmolLM2-1.7B-Instruct`), `H2` `PASS`es iff for **both** judges:
  1. `rb2_math_llm_vs_llm` midpoint pair win rate exceeds `0.50` AND exceeds `rb1_math_prm_disjoint` (falsifying "small judges invert on math problems generally"),
  2. `rb1_hep_python_sym` midpoint pair win rate is `>= 0.45` AND exceeds `rb1_math_prm_disjoint` (confirming symmetric human-vs-human provenance avoids `#57`-scale inversion), and
  3. `rb1_llmbar_adver_asym` midpoint pair win rate is `< 0.50` (confirming below-chance inversion recurs outside math when GPT-4 surface scaffolding opposes instruction faithfulness).
  Simultaneously, evaluate `M3` (`Qwen3-4B-Instruct-2507`, `4.0B` BF16) and `M4` (`Mistral-7B-Instruct-v0.3-Q4_K_M`, `7.2B`) on the identical `480` items to test whether scale/generation rescues `rb1_math_prm_disjoint` and `rb1_llmbar_adver_asym` above `0.50`.

### `H3` — Quantization Parity & Scale Decoupling on the `#57` 5-Arm Factorial (`O, S, A, RS, RA`)
- Evaluate the exact `24` `#57` pairs (`48` responses × `5` arms = `240` items, verified `48/48` and `240/240` by SHA256 against `reviews/2026-11-15-judge-answer-vs-rationale/agent/INPUT_MANIFEST.json`) on `M1` (`1.5B` BF16), `M2` (`1.7B` BF16), `M3` (`4.0B` BF16), and `M4` (`7.2B` Q4_K_M), alongside retained `W1` (`1.5B` Q4_K_M) and `W2` (`3.0B` Q4_K_M).
- **Quantization parity (`M1` BF16 vs `W1` Q4_K_M):** Test whether `M1` reproduces `W1`'s arm-`O` reversal (`win_rate < 0.50`) and arm-`A` bare-answer rejection collapse (`yes_rate <= 0.15`), ruling out Q4 quantization as the root cause of `#57`.
- **Scale decoupling test (`H3`):** Using `#57`'s exact 5,000-draw joint question-bootstrap contrast (`seed = 20261117`) and `rationale_decoupling_audit`, test whether scaling to `M3` (`4B`) and `M4` (`7B`):
  - eliminates aided rationale interference (`RS` pair win rate `>= 0.90` without needing body removal), AND
  - cures bare-answer rejection collapse (`yes_rate` in `RA` `>= 0.40` and `yn_accuracy(RA) >= 0.75`), or whether bare-answer rejection persists at `4B`–`7B`.

### `C4` — Empirical Poolwise Centering Stability Audit
- Across all `30` RM series in `items.csv.gz` plus `0.5`-step discrete-rubric ties on `PPE-MATH`, apply per-prompt affine offsets `C in {0, 1e4, 1e8, 1e12, 1e15}` and measure corrupted within-prompt ties and `|U_0.3(safe) - U_0.3(naive)|`.

---

## 2. Pinned Inputs, Model Checkpoints & Budget

- **Pinned data SHA256s:**
  - `rb1_filtered.parquet` (`allenai/reward-bench@168d848cdbbea9764fae4a544dc9ca1e6cca4931`): `65473c20ed0627e02503557ae102c25c6b0e66b5ed69ee327e224bb95e70ca29`
  - `rb2_test.parquet` (`allenai/reward-bench-2@7ff08853b0d5686e79b13fda8677024f566a104a`): `c8ec60efbd75d2f9dcba4121e6101f7a6015abc38a34e034ae2c7ae886265958`
  - `withinprompt-bestofk-20261113/items.csv.gz`: `375cc747e24e7cf6f30541ae142e79b3b0087cbbaf4e67e1c19776f832d488bb`
  - `B1-lp-gap-ci-20261114/gaps.json`: `0efb3da50ff351dbc2baeeea00e7751e16fc0ff71683ca055c639f9ef9b829e1`
  - `LABELS_FROZEN.json`: `3cdb11e3b2f035ef3cbbced98a0a14926ac2f34976f436388b09b48dd60d786d`
  - `out/INPUT_MANIFEST.json`: `0827486090e8fccac50282091a053430368e7d8c561faecc9b200cc73f43f899` (private payload SHA256: `cd985a1a68a0e037ebf9773c5c5b4ffdb51ab7685a33830c9ef8caa73ae1b089`)
- **Pinned model checkpoints (`$0` local execution):**
  - `M1_qwen25_1p5b`: `Qwen/Qwen2.5-1.5B-Instruct` (`989aa7980e4cf806f80c7fef2b1adb7bc71aa306`, BF16, exact full-vocab softmax)
  - `M2_smollm2_1p7b`: `HuggingFaceTB/SmolLM2-1.7B-Instruct` (`31b70e2e869a7173562077fd711b654946d38674`, BF16, exact full-vocab softmax)
  - `M3_qwen3_4b`: `Qwen/Qwen3-4B-Instruct-2507` (`cdbee75f17c01a7cc42f958dc650907174af0554`, BF16, exact full-vocab softmax)
  - `M4_mistral_7b_q4km`: `Mistral-7B-Instruct-v0.3-Q4_K_M.gguf` (`sha256: 1270d22c0fbb3d092fb725d4d96c457b7b687a5f5a715abe1e818da303e562b6`, offline `llama.cpp:server` `--network none` on `offline-worker`, `n_probs=50` conservative interval)
- **Call cap:** `720` main calls + `16` duplicate identity controls = `736` single-token evaluations per new model (`2,944` total across `M1`–`M4`), `$0` API spend. Raw benchmark prompts/responses stay exclusively in non-committed scratch storage (`D-066`).
