# E145 Research Plan and Preregistration

CAIN-42 · FIRME AI CORPORATION · Evolution 145 · **AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL**

Code SHA-256 (e145/families.py + rsi.py + director.py): `87ddba0bc776d014c3bb347d42a5220ef810ffa8ff287fd93c3bb79c4545416e`. Every experiment's preregistration record carries this hash and the commit of this document; the engine refuses to start without that commit.

## 1. What E145 is, and is not

E145 is one research campaign on the existing E141 durable engine (an isolated instance, state `/root/.cain-e145`). It adds 23 constructed research families, a governed RSI lineage with a meta-RSI comparison, and an information-gain research director. It adds no CAIN moat, no authority path and no second engine. All environments are constructed and generated from (parameters, seed); none is an external benchmark. No model is called, no weights change, paid API spend is $0.

A *valid experimental unit* is one preregistered paired comparison: a fresh seed generates `n` environment instances; the treatment and every control solve every instance under the same budget; the evaluator (a separate host process that the sandboxed workers cannot read) regenerates the instances with ground truth, rescores every arm from the worker's raw predictions, and signs a verdict. Retries, re-renders, adversarial audit units, generated hypotheses and worker registrations are **not** units. A unit is *completed and valid* when the evaluator signs VERIFIED (or PARTIAL: measurement verified, every instance tied); REJECTED and FAILED units are counted separately as invalid.

## 2. Schedule (fixed before any unit runs)

* Confirmatory, per family: **40 primary units** on development cells (seeded round-robin), **12 held-out units** on the preregistered held-out cells, **8 fresh-seed replications** of completed primary units. Total confirmatory target: 23 x 60 = **1380**.
* Exploratory, shared pool: **700 adaptive units** allocated by the director (expected information gain; see `e145/director.py`). Adaptive units never enter a confirmatory test.
* RSI lab: 12 branches (6 fixed, 6 adaptive) x 8 generation attempts + 1 final audit each = **108 RSI units**.
* Campaign target: **2188 units** (spec target: at least 2,000). The completed count is reported as measured; if resources stop the campaign the partial count is published as such.
* Development cells: 224; held-out cells: 140. Held-out cells are never used for a primary unit.
* One adversarial audit unit per family (a worker that fabricates a perfect summary). The evaluator must reject it. Audits are not counted as experiments.

## 3. Hypotheses, controls and held-out cells

Each family has one confirmatory hypothesis: the treatment beats the **primary control** (the strongest or the compute-matched non-treatment baseline). Directions are fixed below. Pilot runs before this commit were crash/shape/timing checks and a tie-share check on seeds 1-11 that printed no arm-level outcome; three outcome metrics were made continuous after the tie check (sorting networks, repair, planning budget grid). One 200 s end-to-end pipeline test ran on a scratch instance (state counts only were read; the store was deleted).

| # | Family | Spec family | Treatment | Primary control | Other controls | Better | Held-out cells | Hypothesis |
|---|---|---|---|---|---|---|---|---|
| 1 | `e145_adversarial` | adversarial robustness | adv_train | standard | l1_reg | higher | norm=['l2'] | Robust test accuracy under the attack is higher for adversarial training than for standard training. |
| 2 | `e145_algorithm` | algorithm discovery | greedy_restart | hill_climb | random_search | lower | n_in=[7] | Comparator count of the shortest valid network found (3x target if none) is lower for greedy restarts than for hill-climbing. |
| 3 | `e145_bestarm` | resource-efficient research | successive_halving | uniform | ucb | lower | K=[64] | Simple regret of the chosen arm is lower for successive halving than for uniform allocation. |
| 4 | `e145_causal_intervene` | causal inference | screen_intervene | random_intervene | obs_only | higher | n_vars=[24] | F1 of the recovered cause set is higher for screened intervention than for random intervention. |
| 5 | `e145_collective` | collective intelligence | independence_weighted | median | mean, best_single | lower | g=[0.9] | Mean absolute error is lower for independence-weighted aggregation than for the median. |
| 6 | `e145_composition` | compositional abstraction | library | flat | - | higher | depth=[8] | Exact held-out-input solve rate is higher with the self-learned library than with flat enumeration. |
| 7 | `e145_continual` | continual learning | replay | naive_sgd | ewc | higher | tasks=[10] | Average accuracy over all tasks after the sequence is higher with replay than with naive SGD. |
| 8 | `e145_counterfactual` | counterfactual reasoning | abduction | interventional | naive | lower | nonlinear=[2] | Mean counterfactual error is lower for abduction than for the interventional prediction. |
| 9 | `e145_explore` | open-world exploration | frontier | lawnmower | random_walk | higher | size=[16] | Fraction of hidden objects found is higher for frontier exploration than for the lawnmower sweep. |
| 10 | `e145_forgetting` | catastrophic forgetting | ewc | naive_sgd | replay | higher | tasks=[10] | First-task accuracy after the whole sequence is higher with EWC than with naive SGD. |
| 11 | `e145_hidden_goal` | hidden-goal discovery | hyp_thompson | ucb_object | random | higher | rule=['disj'] | Mean reward per episode is higher for rule-level Thompson sampling than for object-level UCB. |
| 12 | `e145_hypothesis` | scientific hypothesis generation | discriminate | one_factor | random_exp | higher | noise=[0.2] | Score (identified - 0.3 x experiments/budget) is higher for information-gain design than one-factor-at-a-time. |
| 13 | `e145_law_discovery` | novel rule (law) discovery | sparse_basis | poly3 | linear | lower | form=['out_of_basis'] | Extrapolation relative RMSE (x in [3,6] after training on [1,3]) is lower for the sparse basis than for poly3. |
| 14 | `e145_math` | mathematical reasoning | recurrence | finite_diff | last_diff | higher | order=[5] | Exact next-5-term accuracy is higher for the recurrence solver than for finite differences. |
| 15 | `e145_memory` | memory reliability and poisoning resistance | provenance_verified | majority | latest | higher | sleeper=[1] | Query accuracy on attacked keys is higher for provenance-verified memory than for write-count majority. |
| 16 | `e145_ood` | out-of-distribution generalisation | env_invariant | erm | ridge_heavy | higher | rho_test=[-0.9] | Test accuracy under the shifted correlation is higher for the invariant-feature learner than for ERM. |
| 17 | `e145_planning` | long-horizon planning | hierarchical | flat_bfs | greedy | higher | keys=[3] | Success rate (goal within 3x optimal steps) is higher for hierarchical planning than for flat BFS. |
| 18 | `e145_repair` | software engineering | sbfl | random_order | top_down | higher | bugs=[2] | Hidden-test pass rate of the repaired program is higher with Ochiai-ranked repair than random-order repair. |
| 19 | `e145_revision` | model revision under contradictory evidence | cusum_refit | sliding_window | never_revise | lower | drift=['gradual'] | Online squared prediction error is lower for CUSUM revision than for a 20-step sliding window. |
| 20 | `e145_selective` | metacognitive calibration | target_conformal | source_threshold | accept_all | higher | shift=[2.0] | Score (coverage if target error <= alpha, else 0) is higher for target-conformal thresholds than source thresholds. |
| 21 | `e145_specialization` | multi-agent specialisation | learned_routing | best_generalist | random_assign | higher | shift=[1] | Task success rate is higher for learned per-type routing than for the best generalist. |
| 22 | `e145_transfer` | transfer learning | subspace_transfer | scratch_ridge | pooled_source | lower | sub_noise=[0.8] | Normalised target MSE is lower for subspace transfer than for scratch ridge. |
| 23 | `e145_world_predict` | predictive world modelling | sysid | ar_diag | persistence | lower | d=[10] | Normalised k-step prediction MSE is lower for system identification than for per-dimension AR(1). |

Limitations per family are recorded in `e145/families.py:META` and copied into every unit's preregistration.

## 4. Analysis (confirmatory)

* Unit: paired per-instance differences, treatment minus primary control (sign flipped when lower is better); the engine's exact one-sided sign test.
* **H_f (family f, primary):** over the family's completed `kind=primary` units, the unit mean difference is positive. Test: one-sided exact sign test over units (ties dropped). Effect: mean unit difference, 95% t-interval, and win/loss/tie counts. **Holm correction across the 23 families at alpha = 0.05.** Status: SUPPORTED (Holm-significant, positive), CONTRADICTED (one-sided test in the opposite direction significant at Holm level), INCONCLUSIVE otherwise, UNDERPOWERED if fewer than 30 primary units completed.
* **Generalisation (held-out):** for each family, the same test on `kind=heldout` units, reported separately (Holm across families). A family generalises if H_f is SUPPORTED and the held-out test is positive and significant; it *fails to generalise* if the held-out direction reverses.
* **Replication:** each replication is compared with the unit it replicates (same cell, new seed); the replication rate is the share whose unit-level direction matches.
* P-values are reported in log10 when below 1e-300; a p-value is never written as 0.
* No pooling across families: there is no single E145 score.

## 5. RSI and meta-RSI (preregistered)

Object of improvement: the experiment-selection policy of the active hypothesis-identification agent (G0 = `{'w_ig': 1.0, 'w_split': 0.0, 'w_novel': 0.0, 'eps': 0.05, 'stop': 0.95, 'n_cand': 32}`); compute per decision is fixed (n_cand = 32). Each generation attempt: the branch's improver proposes 6 children, screens them on 24 visible dev tasks, and submits the best. The evaluator re-runs the screening (mismatch = REJECTED) and scores parent, child, the first unscreened proposal (selection control) and the parent with 2x compute (compute-only control) on 40 salted hidden in-domain tasks and 40 hidden tasks from an unfamiliar domain (2-D integer threshold laws).

* **Promotion rule:** child beats parent on hidden tasks (sign test p < 0.05), unfamiliar-domain delta >= -0.02, and dev improved. Otherwise the branch keeps its parent.
* **R1 (RSI, confirmatory):** across the 12 final audits (120 fresh hidden tasks each), the final promoted config beats G0 (sign test over branches of the mean difference, and the per-audit sign tests reported individually). Also reported: the unfamiliar-domain difference (transfer), the child-vs-2x-compute contrast (compute), the child-vs-random-child contrast (selection).
* **R2 (meta-RSI, exploratory: 6 vs 6 branches is underpowered):** adaptive-improver branches reach a larger final-audit gain over G0 than fixed-improver branches (Mann-Whitney U, exact), and have a higher promotion rate. Both improvers screen the same number of children on the same number of dev tasks.
* RSI is called established by nothing in E145. A positive R1 would be bounded RSI on one constructed agent.

## 6. Governance

AGENT PROPOSES -> CAIN DECIDES -> MCPGATE ENFORCES -> SYSTEM EXECUTES -> EVALUATOR VERIFIES -> CLAWX RECORDS. Workers run in bubblewrap (no network, read-only file system, empty tmpfs over the evaluator's key and salt, memory cap, nice 10). The director may create experiments only; it cannot change the evaluator, the salt, the signing key, verdicts or history. Results are accepted only from the worker holding the current fence. Kill switch: `control.kill = 1` stops all workers and the store refuses later submits; a kill drill is run on this instance and its post-kill effect count is reported.

## 7. What would change the status labels

Nothing in E145 changes them. AGI remains NOT ESTABLISHED and RSI remains EXPERIMENTAL regardless of outcome.
