{
 "schema": "cain42.e152.preregistration.v1",
 "evolution": "E152",
 "system": "CAIN-42",
 "entity": "FIRME AI CORPORATION",
 "title": "The compounding code organism: self-written research code that accumulates into a reusable operator library, and an improver that improves its own improvement strategy",
 "preregistered_at": "2026-11-23T01:02:05Z",
 "status": {
  "AGI": "NOT ESTABLISHED",
  "RSI": "EXPERIMENTAL"
 },
 "source_commit": "3f939614ef85890d0ed900df38a296206fa68ce9",
 "builds_on": {
  "E151_preregistration": "9248c6b537b529a744467a5ad0824e2154d155192f92b1bf59d0c8ddae66a268",
  "E129_E135": "bounded positive self-written library compounding (integer domain)",
  "E151_generation1_lessons": [
   "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"
  ]
 },
 "object_of_improvement": "research-procedure source (procedure.py), a signed operator library (oplib.py) built from accepted code, and the proposer's own strategy (arm LV)",
 "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"
 },
 "model": {
  "provider": "Anthropic",
  "id": "claude-haiku-5-5",
  "budget_usd_cap": 12.0,
  "reason": "owner: cheapest model, maximum evidence per cent"
 },
 "metric": {
  "dense_utility_U": "per problem: hidden-set gain of the submitted successor (negative for a false promotion; 0 if none) - 0.02 x research-budget share",
  "why": "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": {
  "P1": {
   "test": "LV_final vs A on 400 bool problems: mean paired dU > 0, one-sided paired t",
   "alpha": 0.016666666666666666,
   "family": "primary"
  },
  "P2": {
   "test": "library compounding: LF_final vs N_final, same test",
   "alpha": 0.016666666666666666,
   "family": "primary"
  },
  "P3": {
   "test": "improving the improver: LV_final vs LF_final, same test",
   "alpha": 0.016666666666666666,
   "family": "primary"
  },
  "S1": {
   "test": "verified discoveries, each final vs A (one-sided exact McNemar)",
   "family": "secondary"
  },
  "S2": {
   "test": "recursion: each arm's final vs its first accepted generation (dense paired t), NOT_TESTABLE if < 2 accepted",
   "family": "secondary"
  },
  "S3": {
   "test": "library use: share of accepted L-arm procedures that import oplib; library depth = entries calling earlier library entries",
   "family": "secondary (descriptive)"
  },
  "S4": {
   "test": "capability retention vs A >= 0.80 and losses <= gains",
   "family": "secondary"
  },
  "S5": {
   "test": "fresh-seed replication of P1 on 160 new problems",
   "family": "secondary"
  },
  "S6": {
   "test": "unfamiliar families (thr + bool_F4): each final vs A, dense paired t",
   "family": "secondary"
  },
  "S7": {
   "test": "false promotions not worse than A",
   "family": "secondary"
  },
  "S8": {
   "test": "strategy evolution: adoptions and the adopted strategies' development utility (descriptive)",
   "family": "secondary (descriptive)"
  },
  "S9": {
   "test": "repair rescue rate: share of proposals that pass only after repair (descriptive)",
   "family": "secondary (descriptive)"
  },
  "S10": {
   "test": "meta-calibration: Brier of predicted success, first vs last generation",
   "family": "secondary"
  }
 },
 "multiplicity": "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"
 ],
 "frozen_code_sha256": {
  "cain/cain2027/unified/e151/scorer.py": "b2aec924f3616f69b00847ed2edda2674c7398f6849674d28173b88d8bedf472",
  "cain/cain2027/unified/e151/proposals.py": "6e5be9b5cfa58c10d4d2a6d8357c6db6c3c589f9195159273aad5d7ebab8af78",
  "cain/cain2027/unified/e151/proposer.py": "1a69b609af7e425a1bd52594183f1112ebf7680fe7b0f45cde8c5873762392a6",
  "cain/cain2027/unified/e151/memory.py": "12b214787c789a081cfe55bb61288b40fcfdff27c47c6523afd0f9a3baeedc9a",
  "cain/cain2027/unified/e151/procedures/g0_procedure.py": "2228176bc4a4cc1fd4bb4d2d333d987f909dd96647269f559acffcf5d348371b",
  "cain/cain2027/unified/e152/library.py": "4f821406f380dae2845c4145db79175205ac3c13bcf2277556e8ae23c391f65a",
  "cain/cain2027/unified/e152/sandbox.py": "a5c7fd0e517d96bbd594133cc34e076c054101cc71f6292befc787df0101df61",
  "cain/cain2027/unified/e152/sandbox/runner.py": "08d8ad89f2369607ee91339d9dac2199cf255d55e37f4904b040734f494eaae1",
  "cain/cain2027/unified/e152/sandbox/cainapi.py": "b544b22270d193a111e2df08590203fd2621b697ad3d8a8c5d180046495011b1",
  "cain/cain2027/unified/e152/governance.py": "000f1260c08f28f874e06ffc239d7bf4a0daea3e2391956a51da12ea4bac8aee",
  "cain/cain2027/unified/e152/campaign.py": "ac6b954995d1234338dc414eb9411a6ff90450e585fe81f97ad57567a80982e7",
  "cain/cain2027/unified/e152/proposer.py": "97e237f955a1012cbfbbf4e6c5c10255ad0ac5300d56e888d4c5a0d1367dfb66",
  "scripts/evolution152/develop.py": "1ab30aa4b60df4bf4fb20f471aa4765a51e3901576027a49f19ae7b3040ffd16",
  "scripts/evolution152/confirm.py": "c5c84e3e03746e3dad8ecc330e16ef2368caad07223fc5ccb262868527d85a6d",
  "cain/cain2027/unified/e150/research.py": "8825455fe50751c8de96fe58eb28291e39d07a1b3120f21940f459eccdd5b6be",
  "cain/cain2027/unified/e150/evaluate.py": "bf6f8e14a8fd5cdf3b54ce9073f1d53b69e803f946e1cd75aeee3221920ee624"
 },
 "preregistration_hash": "f264191a4d9d6caecb49041e7ee5fe1ed76e47ec9f4c2ea5d784f37c6a6c93cc"
}
