# E152 Preregistration — The Compounding Code Organism

**Hash** `f264191a4d9d6caecb49041e7ee5fe1ed76e47ec9f4c2ea5d784f37c6a6c93cc` · 2026-11-23T01:02:05Z · **AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL**

The compounding code organism: self-written research code that accumulates into a reusable operator library, and an improver that improves its own improvement strategy.

## Builds on

* binary discovery screening on 4-6 problems cannot discriminate (19/29 tied)
* the rejected champion had fewer false promotions (4 vs 10) and less budget: a discoveries-only gate discards real gains
* 11/32 proposals were syntax/runtime failures recoverable by error feedback
* proposer predicted 30-55% success; 0 accepted

## Arms

* **A** G0 frozen
* **B** D2 frozen
* **C** B3 frozen
* **LF** operator library + repair + fixed proposer strategy
* **LV** operator library + repair + evolving proposer strategy
* **N** repair + no library (ablation for library compounding); all code arms keep a signed self-improvement memory

## Metric
per problem: hidden-set gain of the submitted successor (negative for a false promotion; 0 if none) - 0.02 x research-budget share. E151 showed verified-discovery counts are too sparse to discriminate candidates on small samples.

## Development

* **generations:** 5
* **proposals_per_arm_generation:** 24
* **repair:** security/compile/dry-run failures returned to the model up to strategy.repairs times (default 2)
* **screen:** stage 1: 4 dev problems, rank by mean U; stage 2: top 4 on 12 more; champion = highest mean U over 16
* **acceptance:** on 48 fresh selection problems vs parent: mean dU > 0 with one-sided paired t p <= 0.10, discoveries >= parent - 1, false promotions <= parent, retention >= 0.75 when parent solved >= 4
* **library:** accepted L-arm procedures contribute their helper set (namespaced, security-reviewed, no free names) to the arm's signed library; library version pinned per run and bound into the MCPGate token
* **strategy_evolution:** LV: half of proposals from strategy S, half from one mutation S'; S' adopted if its executable children have higher mean stage-1 U on identical problems (>= 3 valid)
* **populations:** fresh development/selection salts per generation, bool only; thr and bool_F4 reserved as unfamiliar

## Confirmation

* **salt:** os.urandom(32), committed before any problem exists, revealed after signing
* **populations:** {'bool': 400, 'thr': 40, 'bool_F4': 40}
* **replication:** {'bool': 160, 'salt': 'second independent salt'}
* **arms_run:** A, B, C, LF_final, LV_final, N_final (+ each arm's first accepted generation when it differs)
* **cap_task_evaluations:** 1200
* **discovery_definition:** E150 evaluator unchanged

## Hypotheses

| ID | Test | Family |
|---|---|---|
| P1 | LV_final vs A on 400 bool problems: mean paired dU > 0, one-sided paired t | primary |
| P2 | library compounding: LF_final vs N_final, same test | primary |
| P3 | improving the improver: LV_final vs LF_final, same test | primary |
| S1 | verified discoveries, each final vs A (one-sided exact McNemar) | secondary |
| S2 | recursion: each arm's final vs its first accepted generation (dense paired t), NOT_TESTABLE if < 2 accepted | secondary |
| S3 | library use: share of accepted L-arm procedures that import oplib; library depth = entries calling earlier library entries | secondary (descriptive) |
| S4 | capability retention vs A >= 0.80 and losses <= gains | secondary |
| S5 | fresh-seed replication of P1 on 160 new problems | secondary |
| S6 | unfamiliar families (thr + bool_F4): each final vs A, dense paired t | secondary |
| S7 | false promotions not worse than A | secondary |
| S8 | strategy evolution: adoptions and the adopted strategies' development utility (descriptive) | secondary (descriptive) |
| S9 | repair rescue rate: share of proposals that pass only after repair (descriptive) | secondary (descriptive) |
| S10 | meta-calibration: Brier of predicted success, first vs last generation | secondary |

P1-P3 Bonferroni at 0.05/3; S1, S2, S4-S7, S10 Holm at 0.05.

## Rules

* no optional stopping
* no seed rerolls
* no endpoint change after unblinding
* abandoned/failed runs disclosed
* tests between identical researchers are NOT_TESTABLE
* source code is never published (owner directive): commitments, sizes, changed-function names and measurements only
