# Independent Blind Recomputation & Code Audit (`D-050`) — Phase 2 AI Judge Flagship Reliability Audit (`#57`, `#77`)

- **Date:** 2026-11-24 (UTC)
- **Protocol:** `D-050` Strict Two-Stage Blind Recomputation
- **Overall Verdict:** **VERIFIED (`PASS` on numeric reconciliation, input/inference integrity, and pre-registered hypothesis logic)**
- **Independent Artifacts:**
  - `scout/repro/20261123-judge-flagship-audit/independent/recompute.py` (`SHA256: e681c04eb03ca17aa24f7d1eac262c8461049c15b848d48ae78451725e5a701b`)
  - `scout/repro/20261123-judge-flagship-audit/independent/RECOMPUTED.json` (`SHA256: 108256217f8f728caa934a51dcea6bff3eda3f40761838944fe26adcfa9756e0`)

---

## 1. Blindness Attestation & Audit Scope

1. **Stage 1 — Strictly Blind Recomputation:** Prior to reading `code/run_c1_c4_offline.py`, `code/analyze_flagship.py`, `code/prepare_c2_c3_inputs.py`, `code/score_hf_mps.py`, `code/score_llamacpp_offline-worker.py`, `scout/checks/judge_diagnostics.py`, `out/c1_c4_offline.json`, `out/RESULTS.json`, or any `RESULT.md`, we read only `PLAN.md`, `DRYRUN.md`, and the pinned raw inputs / per-response score files:
   - `runs/2026-11-14-0921-box/judge-table/cells/withinprompt-bestofk-20261113/items.csv.gz`
   - `reviews/2026-11-14-judge-mismatch-prevalence/agent/LABELS_FROZEN.json`
   - `reviews/2026-11-15-judge-answer-vs-rationale/agent/RESPONSE_RESULTS.json`
   - `runs/2026-11-14-0921-box/judge-table/cells/C1-debate-lite-harness/inputs/{rb1mp__W1.jsonl,rb1mp__W2.jsonl}`
   - Pinned scratch parquets `{rb1_filtered.parquet, rb2_test.parquet}` (passed via `--data-dir`)
   - `scout/repro/20261123-judge-flagship-audit/out/INPUT_MANIFEST.json`
   - `scout/repro/20261123-judge-flagship-audit/out/scores_{M1_qwen25_1p5b,M2_smollm2_1p7b,M3_qwen3_4b,M4_mistral_7b_q4km}.json`

   From these raw sources alone, we implemented `independent/recompute.py` from scratch and wrote `independent/RECOMPUTED.json` on disk before unblinding.

2. **Stage 2 — Unblinded Reconciliation & Code Audit:** Only after `independent/RECOMPUTED.json` was frozen on disk did we inspect `out/RESULTS.json`, `out/c1_c4_offline.json`, `code/*.py`, and `scout/checks/{judge_diagnostics.py,test_judge_diagnostics.py}` (`4/4` unit tests and `selftest` re-executed and passing).

---

## 2. Source Pinning & Model Inference Gate Audit

All pinned input SHA256 digests and per-model execution gates matched `PLAN.md` with zero discrepancies:

| Artifact / Model | Expected / Pinned Check | Verified Value | Status |
| :--- | :--- | :--- | :--- |
| `rb1_filtered.parquet` | `65473c20...b95e70ca29` | `65473c20...b95e70ca29` | `EXACT` |
| `rb2_test.parquet` | `c8ec60ef...2c7ae886265958` | `c8ec60ef...2c7ae886265958` | `EXACT` |
| `items.csv.gz` | `375cc747...32d488bb` | `375cc747...32d488bb` | `EXACT` |
| `LABELS_FROZEN.json` | `3cdb11e3...d60d786d` | `3cdb11e3...d60d786d` | `EXACT` |
| `out/INPUT_MANIFEST.json` | `08274860...f43f899` | `08274860...f43f899` | `EXACT` |
| `scores_M1_qwen25_1p5b.json` | `720 + 16 = 736` calls, `id_diff = 0` | `736` calls, `id_diff = 0.0`, `iv_err = 0.0` | `PASS` |
| `scores_M2_smollm2_1p7b.json` | `720 + 16 = 736` calls, `id_diff = 0` | `736` calls, `id_diff = 0.0`, `iv_err = 0.0` | `PASS` |
| `scores_M3_qwen3_4b.json` | `720 + 16 = 736` calls, `id_diff = 0` | `736` calls, `id_diff = 0.0`, `iv_err = 0.0` | `PASS` |
| `scores_M4_mistral_7b_q4km.json` | `720 + 16 = 736` calls, `id_diff <= 1e-6` | `736` calls, `id_diff = 0.0`, `iv_err = 0.0` | `PASS` |

---

## 3. Component-by-Component Reconciliation (`RECOMPUTED.json` vs `RESULTS.json`)

### 3.1 `C1` (`H1`) — Lincoln-Petersen Covariance Identity & Zero-Shot Lift Calibration (`324` RM Pair-Cells)

Across all `324` RM pair-cells (`V0` excluded; `q in {0.2, 0.3}`, `k = round(q * n)` stable top-`k`), every summary statistic in `RECOMPUTED.json` matches `out/RESULTS.json` and `out/c1_c4_offline.json` to machine precision (`max |diff| = 1.11e-16`):

| Quantity / Pool | Cells | `RECOMPUTED.json` | `RESULTS.json` | `|Diff|` |
| :--- | ---: | ---: | ---: | ---: |
| `Gate LP-ID` `max |lp_gap - R_union * psi_cond|` | `324` | `3.3306690738754696e-16` | `3.3306690738754696e-16` | `0.0` |
| `alpha_hat` (`PPE-MATH` origin-constrained OLS) | `156` | `0.4212235747176475` | `0.4212235747176475` | `0.0` |
| `PPE-MATH` (in-sample) `RMSE(lp_gap)` -> `RMSE(adj_gap)` | `156` | `0.244168` -> `0.021750` (`-91.09%`) | `0.244168` -> `0.021750` (`-91.09%`) | `0.0` |
| `PPE-MMLU-Pro` (zero-shot OOS) `RMSE(lp_gap)` -> `RMSE(adj_gap)` | `156` | `0.290458` -> `0.071122` (`-75.51%`) | `0.290458` -> `0.071122` (`-75.51%`) | `0.0` |
| `RB2` (cross-benchmark OOS) `RMSE(lp_gap)` -> `RMSE(adj_gap)` | `12` | `0.265108` -> `0.093173` (`-64.85%`) | `0.265108` -> `0.093173` (`-64.85%`) | `1.11e-16` |

- **`H1` Verdict:** **`PASS`** (`PPE-MMLU-Pro` relative RMSE change `-0.755139 <= -0.25`, `RB2` `0.093173 <= 0.265108`, `Gate LP-ID <= 1e-12`).

---

### 3.2 `C2` (`H2`) — Provenance & Surface-Scaffolding Asymmetry Inversion Map

1. **Provenance & Scaffolding Verification:**
   - All `447/447` `RB1 math-prm` pairs confirmed `chosen_model = human` vs `rejected_model = GPT-4`.
   - All `528/528` manifest `scaffolding_score` entries (`480` `C2` + `48` `C3`) independently reproduced from raw parquet texts with `max_abs_diff = 0.0`.
2. **`C2-Retained` (`285` `reference_disagreement` Pairs, `95 / 95 / 95` Tertiles):**
   - `W1`: overall win rate `0.287719` (`82/285`), tertiles `T1 = 0.305263`, `T2 = 0.231579`, `T3 = 0.326316`, `T3 - T1 = +0.021053` (`0.0` diff vs `RESULTS.json`).
   - `W2`: overall win rate `0.157895` (`45/285`), tertiles `T1 = 0.115789`, `T2 = 0.147368`, `T3 = 0.210526`, `T3 - T1 = +0.094737` (`0.0` diff vs `RESULTS.json`).
   - *Bootstrap CI methodological note:* Primary `run_c1_c4_offline.py` resampled the `285` pairs against fixed sample tertile cutpoints (`W1`: `[-0.1094, +0.1566]`, `W2`: `[-0.0033, +0.1925]`), whereas `independent/recompute.py` evaluated both stratified within-tertile resampling (`W1`: `[-0.1158, +0.1579]`, `W2`: `[-0.0105, +0.2000]`) and per-draw re-tertilization (`W1`: `[-0.1263, +0.1368]`, `W2`: `[-0.0316, +0.1789]`). All three bootstrap specifications yield identical substantive conclusions (`T3 - T1 > 0` point direction, 95% CIs straddling `0` within the uniformly confounded `human`-vs-`GPT-4` pool).
3. **`C2-Unseen` (`4 Slices x 4 Models = 16` Out-of-Sample Cells):**
   - Across all `16` cells × `10` metrics (`160` values total: `pair_win_bounds`, `midpoint_pair_win_rate`, 2,000-draw bootstrap 95% CIs, `pooled_auroc`, `yes/no/other` counts, `yn_accuracy`), `RECOMPUTED.json` and `RESULTS.json` agree with **`max |diff| = 0.0` (bit-identical)**:

| Model | Slice (`60` pairs / `120` items) | Win Bounds | Mid Win | 95% Boot CI (`B=2000`) | Pooled AUROC | `Yes / No / Oth` | `Y/N` Acc |
| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: |
| `M1` (`Qwen2.5-1.5B` BF16) | `rb1_math_prm_disjoint` | `[0.3333, 0.3333]` | `0.3333` | `[0.2167, 0.4500]` | `0.3556` | `91 / 29 / 0` | `0.4250` |
| `M1` (`Qwen2.5-1.5B` BF16) | `rb2_math_llm_vs_llm` | `[0.6833, 0.6833]` | `0.6833` | `[0.5667, 0.8000]` | `0.6792` | `96 / 24 / 0` | `0.5833` |
| `M1` (`Qwen2.5-1.5B` BF16) | `rb1_hep_python_sym` | `[0.9333, 0.9333]` | `0.9333` | `[0.8667, 0.9833]` | `0.7181` | `87 / 33 / 0` | `0.6250` |
| `M1` (`Qwen2.5-1.5B` BF16) | `rb1_llmbar_adver_asym` | `[0.4833, 0.4833]` | `0.4833` | `[0.3667, 0.6167]` | `0.4653` | `103 / 17 / 0` | `0.4417` |
| `M2` (`SmolLM2-1.7B` BF16) | `rb1_math_prm_disjoint` | `[0.4500, 0.4500]` | `0.4500` | `[0.3167, 0.5667]` | `0.4308` | `30 / 90 / 0` | `0.4167` |
| `M2` (`SmolLM2-1.7B` BF16) | `rb2_math_llm_vs_llm` | `[0.7167, 0.7167]` | `0.7167` | `[0.6000, 0.8333]` | `0.6881` | `49 / 71 / 0` | `0.6417` |
| `M2` (`SmolLM2-1.7B` BF16) | `rb1_hep_python_sym` | `[0.6667, 0.6667]` | `0.6667` | `[0.5500, 0.7833]` | `0.5744` | `14 / 106 / 0` | `0.5167` |
| `M2` (`SmolLM2-1.7B` BF16) | `rb1_llmbar_adver_asym` | `[0.3667, 0.3667]` | `0.3667` | `[0.2500, 0.4833]` | `0.3919` | `19 / 101 / 0` | `0.4417` |
| `M3` (`Qwen3-4B-2507` BF16) | `rb1_math_prm_disjoint` | `[0.5500, 0.5500]` | `0.5500` | `[0.4333, 0.6833]` | `0.5247` | `59 / 61 / 0` | `0.4750` |
| `M3` (`Qwen3-4B-2507` BF16) | `rb2_math_llm_vs_llm` | `[0.8500, 0.8500]` | `0.8500` | `[0.7500, 0.9333]` | `0.7931` | `61 / 59 / 0` | `0.6917` |
| `M3` (`Qwen3-4B-2507` BF16) | `rb1_hep_python_sym` | `[0.9333, 0.9333]` | `0.9333` | `[0.8667, 0.9833]` | `0.9156` | `40 / 80 / 0` | `0.7667` |
| `M3` (`Qwen3-4B-2507` BF16) | `rb1_llmbar_adver_asym` | `[0.8333, 0.8333]` | `0.8333` | `[0.7333, 0.9167]` | `0.7699` | `65 / 55 / 0` | `0.7083` |
| `M4` (`Mistral-7B-v0.3` Q4_K_M) | `rb1_math_prm_disjoint` | `[0.3333, 0.3333]` | `0.3333` | `[0.2167, 0.4667]` | `0.3619` | `115 / 5 / 0` | `0.4750` |
| `M4` (`Mistral-7B-v0.3` Q4_K_M) | `rb2_math_llm_vs_llm` | `[0.7000, 0.7000]` | `0.7000` | `[0.5833, 0.8167]` | `0.6642` | `114 / 6 / 0` | `0.5333` |
| `M4` (`Mistral-7B-v0.3` Q4_K_M) | `rb1_hep_python_sym` | `[0.8667, 0.8667]` | `0.8667` | `[0.7829, 0.9500]` | `0.7053` | `98 / 22 / 0` | `0.6000` |
| `M4` (`Mistral-7B-v0.3` Q4_K_M) | `rb1_llmbar_adver_asym` | `[0.6500, 0.6667]` | `0.6500` | `[0.5333, 0.7667]` | `0.6375` | `95 / 25 / 0` | `0.5917` |

- **`H2` Verdict:** **`PASS`** — all three pre-registered clauses hold simultaneously on both small BF16 judges (`M1` and `M2`). Scale comparison further shows that stronger modern instruction tuning (`M3` `Qwen3-4B-2507`) lifts both asymmetric slices above `0.50` (`0.8333` on `llmbar-adver`, `0.5500` on `math-prm`), whereas older `7.25B` scale alone (`M4` `Mistral-7B-v0.3-Q4_K_M`) rescues `llmbar-adver` (`0.6500`) while still inverting severely on `rb1_math_prm_disjoint` (`0.3333`, accepting `115/120` derivations).

---

### 3.3 `C3` (`H3`) — 6-Checkpoint × 5-Arm Factorial (`24` Pairs), Quantization Parity & Decoupling

Across all `6` checkpoints (`W1, W2, M1, M2, M3, M4`) × `5` arms (`O, S, A, RS, RA` = `210` arm metrics) and all `30` pre-registered contrasts (`RA - RS`, `A - S`, `RS - S`, `RA - A`, `S - O` interval bounds + 5,000-draw joint question-bootstrap envelopes at `seed=20261117` = `120` contrast metrics), `RECOMPUTED.json` and `RESULTS.json` match with **`max |diff| = 0.0` (bit-identical)**:

| Checkpoint | `O` Win (`Y/N` Acc) | `S` Win (`Y/N` Acc) | `A` Win (`Yes` / `Y/N` Acc) | `RS` Win (`Y/N` Acc) | `RA` Win (`Yes` / `Y/N` Acc) | `RA - RS` Win `[95% CI]` |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: |
| `W1` (`Qwen2.5-1.5B` Q4_K_M) | `0.3333` (`0.4583`) | `0.5417` (`0.5417`) | `0.6667` (`1/48`, `0.4792`) | `1.0000` (`0.8750`) | `1.0000` (`16/48`, `0.8333`) | `0.0000` `[0.0000, 0.0000]` |
| `M1` (`Qwen2.5-1.5B` BF16) | `0.2917` (`0.4375`) | `0.5833` (`0.5208`) | `0.6667` (`1/48`, `0.4792`) | `1.0000` (`0.8958`) | `1.0000` (`20/48`, `0.9167`) | `0.0000` `[0.0000, 0.0000]` |
| `M2` (`SmolLM2-1.7B` BF16) | `0.5417` (`0.5208`) | `0.2083` (`0.4167`) | `0.5833` (`0/48`, `0.5000`) | `0.7083` (`0.6458`) | `1.0000` (`10/48`, `0.7083`) | `+0.2917` `[+0.1250, +0.5000]` |
| `W2` (`Llama-3.2-3B` Q4_K_M) | `0.1667` (`0.2917`) | `0.2500` (`0.3542`) | `0.4583` (`0/48`, `0.5000`) | `0.7917` (`0.7292`) | `1.0000` (`3/48`, `0.5625`) | `+0.2083` `[+0.0833, +0.3750]` |
| `M3` (`Qwen3-4B-2507` BF16) | `0.7500` (`0.5625`) | `0.7500` (`0.5625`) | `0.5833` (`26/48`*, `0.5000`) | `1.0000` (`0.9583`) | `1.0000` (`22/48`, `0.9167`) | `0.0000` `[0.0000, 0.0000]` |
| `M4` (`Mistral-7B-v0.3` Q4_K_M) | `0.2500` (`0.4583`) | `0.4583` (`0.5000`) | `0.6667` (`17/48`, `0.5208`) | `1.0000` (`0.6667`) | `1.0000` (`24/48`, `1.0000`) | `0.0000` `[0.0000, 0.0000]` |

*\*Note: `M3` arm `A` emitted `26` `yes`, `17` `no`, and `5` `other` greedy first tokens.*

- **Quantization Parity (`M1` BF16 vs `W1` Q4_K_M):** **Confirmed.** Full-precision BF16 `M1` reproduces `W1`'s arm-`O` inversion (`0.2917 < 0.50` vs `0.3333`) and identical arm-`A` bare-answer rejection collapse (`1/48 = 0.0208 <= 0.15`), matching `230/240` (`95.83%`) item-level greedy decisions and ruling out `Q4_K_M` quantization as the root cause of `#57`.
- **Scale & Decoupling (`H3`):** Both `M3` (`4B`) and `M4` (`7B`) satisfy the formal aided `RS`/`RA` thresholds (`RS` pair win rate `1.0000 >= 0.90`; `RA` `yes_rate` `0.4583` / `0.5000 >= 0.40` and `yn_accuracy(RA)` `0.9167` / `1.0000 >= 0.75`). However, `M4` (`7B`) still exhibits rationale-induced affirmative bias in `RS` binary decisions (`yes_rate = 0.8333`, `yn_accuracy = 0.6667` vs `1.0000` in `RA`), and in **unaided** bare-answer evaluation (`arm A`), decision accuracy remains stuck at chance (`0.5000` on `M3`, `0.5208` on `M4`).

---

### 3.4 `C4` — Safe vs Naive Poolwise Centering Numerical Stability

1. **Blind `RECOMPUTED.json` check:** Confirmed exact Proposition 1 failure at `x = 1 - 2^-53` (`n = 3` uniform pool: naive residual `1.11e-16 != 0` vs safe `0.0`), zero within-prompt `s[i] == s[j]` tie breakage (`0`), and exact preservation of all `130,249,205` pooled `0.5`-step rubric ties on `PPE-MATH` at `C = 1e15` under safe centering vs corruption to `193,418,265` under naive centering (`max |z_safe - z_naive| = 0.359` on continuous RM scores at `C = 1e15`).
2. **Unblinded exact verification of `papers/judge-scores` eq. 2 `poolwise_u_alpha` (`c1_c4_offline.json`):** Recomputing `poolwise_u_alpha` with proportional tie-block mass splitting and importance weights `w_k = (1 + 0.01 k) / sum` under `shift = C * (1 + 0.13 * sin(prompt_idx + 1))` reproduced all `5` offset levels (`0`, `1e4`, `1e8`, `1e12`, `1e15`) with **`0.0` discrepancy**:
   - Continuous `30` RM series `max |U_0.3(safe) - U_0.3(naive)|`: `3.33e-16` (`C=0`), `8.33e-16` (`1e4`), `3.89e-16` (`1e8`), `6.330595e-4` across `12/30` series (`1e12`), and `0.02565858` across `30/30` series (`1e15`).
   - Discrete `0.5`-step rubric (`PPE-MATH J1`, `5,852` within-prompt ties, `0` within-prompt ties broken): `|U_0.3(safe) - U_0.3(naive)| = 0.0` (`C=0, 1e8`), `1.11e-16` (`1e12`), and `4.487324e-5` (`1e15`), with `U_0.3(safe) = 0.4891542506573182` bit-invariant across all offsets.

---

## 4. Code & Provenance Audit Findings (Non-Blocking)

1. **`score_llamacpp_offline-worker.py` `TOLERANCE = 1e-5` & `M4` Runtime Metadata Label:**
   - **Verified sound:** `TOLERANCE = 1e-5` (line 25) appropriately accommodates `llama.cpp`'s decimal JSON serialization of `float32` `top_logprobs`; across `M4`'s `720` scored items, `570/720` rows have `returned_mass` slightly above `1.0` due to `float32` roundoff near `p = 1`, with observed maximum `1.0000010827` (`+1.08e-6 <= 1e-5`) and minimum `0.9998264306`, and `omitted = max(0.0, 1.0 - mass)` cleanly clamps tiny positive roundoff to `0.0`.
   - **Metadata label note:** `score_llamacpp_offline-worker.py` line 223 hardcodes `"runtime": "llama.cpp-server-cpu"` (copied into `out/scores_M4_mistral_7b_q4km.json` and `out/RESULTS.json`), whereas `M4` was actually executed locally on Apple Metal via loopback `llama-server` (`b12674`). Downstream writeups (`RESULT.md` / paper tables) should record the actual local Apple Metal `llama-server b12674` runtime rather than the hardcoded `"llama.cpp-server-cpu"` string.
2. **Thresholded `cond_p_yes >= 0.5` (`rationale_decoupling_audit`) vs Greedy `generated_decision` (`arms.*.decisions.yn_accuracy`):**
   - `analyze_flagship.py` lines 207–212 evaluate `rationale_decoupling_audit` on midpoint `cond_p_yes` (`threshold = 0.5`), whereas `arms.*.decisions.yn_accuracy` evaluates greedy top-1 `generated_decision`. Because `cond_p_yes` sums probability mass across surface case/whitespace variants (`"Yes"`, `" Yes"`, `"yes"`, etc.) while greedy decoding picks the single argmax token ID (and `M3` arm `A` emits `5` `"other"` tokens), `decoupling_*.yn_acc_*` differs slightly from `arms.*.decisions.yn_accuracy` on `M2` (`RA`: `0.8125` vs `0.7083`; `RS`: `0.5625` vs `0.6458`) and `M3` (`A`: `0.5208` vs `0.5000`). Both definitions are mathematically valid; prose summaries should state explicitly which decision rule (`generated_decision` vs `cond_p_yes >= 0.5`) is cited.
3. **Minor Comment Typo in `scout/checks/judge_diagnostics.py` (Line 221):**
   - Inline comment reads `max(1.0, 1 + alpha_lift * (lambda_unlab - 1))`, whereas line 223 implements the pre-registered `max(0.25, 1.0 + alpha_lift * (lambda_unlab - 1.0))` from `PLAN.md`. Purely cosmetic; computation is unaffected.
