# E248 — Independent Forensic Statistical Reanalysis of E245 (Gate G03)

**Entity:** FIRME AI CORPORATION · **Status:** **AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL**

All primary E245 paired comparisons were independently recalculated directly from raw per-task binary hit vectors and per-world MAE arrays in `artifacts/e245/E245_RUN_REPORT.json` using exact paired binomial McNemar tests and paired Wilcoxon signed-rank tests (`scipy.stats`).

## 1. E245 RSI Paired Reanalysis (`N = 168`, 3 Fresh Salts)
| Comparison (`recursive_ast_with_knowledge` vs Control) | Solved A | Solved B | Paired Wins/Losses (`n10/n01`) | Delta | Exact 1-Sided `p` | Exact 2-Sided `p` | E245 Holm `p` | Match |
|---|---:|---:|---:|---:|---:|---:|---:|---|
| vs Frozen `E243` Champion | 103/168 | 95/168 | `+15 / -7` | `+0.0476` | `0.066900` | `0.133801` | `0.3345` | Exact |
| vs Frozen `E240` Champion | 103/168 | 77/168 | `+34 / -8` | `+0.1548` | `0.000034` | `0.000069` | `0.000275` | Exact |
| vs `2× Compute` Champion | 103/168 | 95/168 | `+15 / -7` | `+0.0476` | `0.066900` | `0.133801` | `0.3345` | Exact |
| vs Greedy Param Search | 103/168 | 96/168 | `+15 / -8` | `+0.0417` | `0.105020` | `0.210040` | `0.3345` | Exact |
| vs Random AST Search | 103/168 | 94/168 | `+17 / -8` | `+0.0536` | `0.053876` | `0.107752` | `0.3233` | Exact |
| vs Evolutionary AST Search | 103/168 | 97/168 | `+15 / -9` | `+0.0357` | `0.153728` | `0.307456` | `0.3345` | Exact |
| vs Beam AST Optimizer | 103/168 | 95/168 | `+15 / -7` | `+0.0476` | `0.066900` | `0.133801` | `0.3345` | Exact |
| vs No-Knowledge Ablation | 103/168 | 96/168 | `+15 / -8` | `+0.0417` | `0.105020` | `0.210040` | `0.3345` | Exact |

### Mechanistic Per-Domain Autopsy of E245 `H01` Failure
Breaking the pooled `168` tasks down by domain reveals the exact hidden failure mode:

| Domain | `rec_know` | Frozen `E243` | Frozen `E240` | `EvoAST` | Paired `rec_know vs E243` | Root Diagnosis |
|---|---:|---:|---:|---:|---|---|
| `algebra` | 2/30 | 3/30 | 3/30 | 2/30 | `+0 / -1` (`Δ=-0.033`) | Depth-6 modular ceiling + beam starvation |
| `graph_rules` | 28/30 | 29/30 | 29/30 | 29/30 | `+0 / -1` (`Δ=-0.033`) | Branching explosion from `tier2=True` + `bw=24` |
| `bool_circuit` | 14/30 | 16/30 | 13/30 | 16/30 | `+0 / -2` (`Δ=-0.067`) | Budget exhausted before deep layer reached |
| `grid_ca` | 11/30 | 14/30 | 17/30 | 17/30 | `+0 / -3` (`Δ=-0.100`) | Severe branching regression (`bw=24 × 16 atoms = 384/460` evals in 1 layer!) |
| `pomdp_plan` | 48/48 | 33/48 | 15/48 | 33/48 | `+15 / -0` (`p=3.1e-5`) | Shift-adaptive AST succeeded cleanly |

**Three Structural Root Causes Identified:**
1. **Branching-Factor Budget Starvation:** In `cain/cain2027/e245/rsi_ast_lab.py`, `knowledge_guided_mutation` unconditionally raised `beam_width` to `24` and enabled `tier2` 4-op macros, inflating per-layer evaluations to `~384` out of `460` total budget and starving depth-4..6 search. This produced `0` wins and `7` regressions across all 4 synthesis domains, cancelling half of the `+15` POMDP gain.
2. **Static-Template Stagnation:** Generations 2–5 produced **0 promotions** across all 3 salts (`mutation_usefulness = 0.0667`, `unique_ast_digests = 4`) because `knowledge_guided_mutation` re-emitted the identical static AST template rather than performing credit-assigned, archive-backed structural program search.
3. **Lack of Structural Search-Algorithm Primitives in AST:** E245's AST could only tweak linear priority weights inside a rigid breadth-first beam loop; it could not evolve search scheduling (best-first priority queue vs breadth beam, per-parent branching caps, macro-first expansion, depth-adaptive beam tapering) or gate promotions with per-domain non-regression checks.

## 2. E245 Causal Post-Shift Paired Reanalysis (`N = 72`, 3 Fresh Salts)
| Contrast (`X - Y`, positive favors `Y`) | Mean `X` | Mean `Y` | Mean Diff | Median Diff | Wins (`X>Y`) | Wilcoxon 1-Sided `p` | Wilcoxon 2-Sided `p` |
|---|---:|---:|---:|---:|---:|---:|---:|
| `Obs - Causal_Cost_Aware` | 2.7350 | 1.7714 | `+0.9636` | `+1.0379` | `65/72` | `3.125e-11` | `6.250e-11` |
| `Rand - Causal_Cost_Aware` | 2.1951 | 1.7714 | `+0.4237` | `+0.3191` | `51/72` | `3.632e-05` | `7.264e-05` |
| `Frozen_PostShift - Active_Revision` | 2.3166 | 3.6953 | **`-1.3787`** | **`-0.9257`** | `26/72` | `1.0000` | `1.676e-05` |

**Mechanistic Autopsy of E245 `H05` Post-Shift Degradation:**
Inspecting `cain/cain2027/e245/causal_v2.py` (lines 167–177) reveals why active revision severely underperformed the stale frozen model:
1. **Amnesiac Full Model Reset:** Upon shift (`w_shift[11, a2] = -1.3 * w[11, a2]`, a sparse single-edge shift), `active_revision` instantiated a blank `CostAwareCausalModel(costs)`, discarding all invariant pre-shift interventional slopes (`do_slopes`) for unshifted ancestors (`a0`, `a1`).
2. **Confounder-Biased Post-Shift Re-Selection & High-Variance Unregularized Estimation:** Because the flipped edge aligned in sign with hidden confounder `U1`, observational correlations shifted while single-sided `(mean(Y|do(v)) - base_y)/v` suffered massive baseline variance from 3 strong confounders (`Var(U_total) ≈ 28.3`, `SE(base_y) ≈ 0.79`), causing un-intervened nodes to fall back to confounded observational slopes.

These exact diagnoses motivate E248's **Credit-Assigned Archive Recursive AST Engine (Track A–C)** and **Sparse-Shift Bayesian Model Averaging Causal Adapter (Track D)**.
