{
 "schema": "cain42.e151.preregistration.v1",
 "evolution": "E151",
 "system": "CAIN-42",
 "entity": "FIRME AI CORPORATION",
 "title": "The self-writing research organism: code-level self-improvement of CAIN-42's research procedure",
 "preregistered_at": "2026-11-23T00:15:05Z",
 "source_commit": "6b708f25d50ecec256381c4d85c7ba2201bcbb3b",
 "status": {
  "AGI": "NOT ESTABLISHED",
  "RSI": "EXPERIMENTAL"
 },
 "baseline": {
  "E150_final_commit": "e0a885ec7661125649deff35ad708d59d464a35d",
  "E150_merkle": "f990aef92e47c18589607bf245b075c3e107ac2c42eda51de947d86268a65848",
  "E150_preregistration_hash": "022afabb7607c1695265702f190a7738ad8d1bd91cb57412b16c28253a9d9e0d"
 },
 "object_of_improvement": "the executable source of the research procedure (procedure.py, research(g, api)); the evaluator, tasks, budget, salts, MCPGate policy and kill switch are outside its reach",
 "arms": {
  "A": "G0 frozen E150 researcher (g0_procedure + G0 genome)",
  "B": "D2 cost-aware researcher (g0_procedure + D2 genome)",
  "C": "B3 conventional-search researcher (g0_procedure + B3 genome)",
  "D": "code-writing meta-improver, claude-haiku-5-5, no memory",
  "E": "identical to D plus read access to its own signed self-improvement memory"
 },
 "model": {
  "provider": "Anthropic",
  "id": "claude-haiku-5-5",
  "effort": "medium",
  "budget_usd_cap": 14.0,
  "reason": "owner instruction: cheapest models, maximum evidence per cent"
 },
 "development": {
  "generations": 4,
  "proposals_per_arm_generation": 32,
  "focus_areas": "Part II surfaces A-L, round robin",
  "screen": "security review; NO_CHANGE rejected unrun; stage 1 = 6 dev problems; stage 2 = top 3 on 24 more; champion = most verified discoveries over 30 (ties: fewer false promotions, less budget)",
  "acceptance": "on 64 fresh selection problems vs parent: child-only discoveries > parent-only, one-sided exact McNemar p <= 0.30, false promotions <= parent + 3, retention >= 0.75 when the parent solved >= 4",
  "populations": "development and selection problems are bool only, fresh per generation from committed salts; thr and bool_F4 stay unfamiliar",
  "inheritance": "accepted child becomes the next parent; a rejected generation keeps the parent's source byte-for-byte"
 },
 "confirmation": {
  "salt": "os.urandom(32), SHA-256 committed before any problem exists, revealed after rows are signed",
  "populations": {
   "bool": 400,
   "thr": 40,
   "bool_F4": 40
  },
  "replication": {
   "bool": 160,
   "salt": "a second independent os.urandom salt, committed before use"
  },
  "arms_run": "A, B, C, D_final, E_final, plus D's and E's first accepted generation when it differs from the final (for H3)",
  "cap_task_evaluations": 1200,
  "discovery_definition": "E150 evaluator unchanged (D1 submitted, D2 hidden gain >= 0.01 with 95% CI > 0, D3 fresh hidden replication gain > 0, D4 no identification regression)",
  "power": "paired exact McNemar; from E150 discordance (6.9-7.5%) 400 paired problems give >= 0.93 power for +7.5 points at alpha 0.05/3"
 },
 "hypotheses": {
  "H1": {
   "test": "D_final vs A on 400 bool problems: verified discoveries, one-sided exact McNemar",
   "alpha": 0.016666666666666666,
   "practical": "rate difference >= +0.05",
   "family": "primary"
  },
  "H2": {
   "test": "E_final vs D_final on the same 400 problems",
   "alpha": 0.016666666666666666,
   "practical": "rate difference >= +0.05",
   "family": "primary"
  },
  "H8": {
   "test": "cost-aware: research task-evaluations per verified discovery, best code arm vs A; requires discoveries non-inferior within -0.05 and fewer evaluations (sign test over problems, one-sided)",
   "alpha": 0.016666666666666666,
   "family": "primary"
  },
  "H3": {
   "test": "a later accepted generation vs its own accepted parent on the confirmation problems (one-sided McNemar); NOT_TESTABLE if fewer than two accepted generations",
   "family": "secondary"
  },
  "H4": {
   "test": "capability retention of D_final and E_final on problems A solved: retention >= 0.80 and capabilities lost <= capabilities gained",
   "family": "secondary"
  },
  "H5": {
   "test": "fresh-seed replication of H1 on 160 new bool problems, second salt",
   "alpha": 0.05,
   "family": "secondary"
  },
  "H6": {
   "test": "unfamiliar families (thr + bool_F4, 80 problems): D_final vs A",
   "family": "secondary"
  },
  "H7": {
   "test": "false promotions: code arms not worse than A (one-sided McNemar on false promotion)",
   "family": "secondary"
  },
  "H9": {
   "test": "meta-calibration: Brier score of the proposer's predicted_success_probability against 'stage-1 discoveries > parent', last generation vs first (permutation test)",
   "family": "secondary"
  },
  "H10": {
   "test": "regression recovery: every rejected generation keeps its parent's source hash; harmful candidates are refused and recorded",
   "family": "secondary"
  },
  "H11": {
   "test": "causal: for an accepted change, revert it hunk by hunk on selection-style problems; MECHANISM_UNRESOLVED if no component is identified",
   "family": "secondary"
  },
  "H12": {
   "test": "research-code generalization = H6 for E_final",
   "family": "secondary"
  }
 },
 "multiplicity": "primary family H1, H2, H8 at alpha 0.05/3 each; secondaries Holm at 0.05",
 "rules": [
  "no optional stopping",
  "no seed rerolls",
  "no endpoint change after unblinding",
  "failed and abandoned runs disclosed",
  "a candidate that changes no executable behaviour is never counted as an algorithm",
  "if D_final or E_final equals G0, tests comparing identical researchers are NOT_TESTABLE",
  "external benchmarks not run are BLOCKED; NOT_APPLICABLE where the benchmark does not match the agent"
 ],
 "frozen_code_sha256": {
  "cain/cain2027/unified/e151/scorer.py": "b2aec924f3616f69b00847ed2edda2674c7398f6849674d28173b88d8bedf472",
  "cain/cain2027/unified/e151/sandbox.py": "fb0308d701a77ca062f1cf6bf7c46d51bc5664a4472e4fddeeb9deb0308850b5",
  "cain/cain2027/unified/e151/sandbox/runner.py": "f6a2ba2e08848106c0e1c30a12ae92254eb594fcd9a8b8989273d568d0e87ed0",
  "cain/cain2027/unified/e151/sandbox/cainapi.py": "b544b22270d193a111e2df08590203fd2621b697ad3d8a8c5d180046495011b1",
  "cain/cain2027/unified/e151/governance.py": "c566b2cd1152b7793dcac7b46118fadd1e490b7a1648f4664cc4d1044314781f",
  "cain/cain2027/unified/e151/memory.py": "12b214787c789a081cfe55bb61288b40fcfdff27c47c6523afd0f9a3baeedc9a",
  "cain/cain2027/unified/e151/proposals.py": "6e5be9b5cfa58c10d4d2a6d8357c6db6c3c589f9195159273aad5d7ebab8af78",
  "cain/cain2027/unified/e151/proposer.py": "1a69b609af7e425a1bd52594183f1112ebf7680fe7b0f45cde8c5873762392a6",
  "cain/cain2027/unified/e151/campaign.py": "651040f3070c0bccdedbacc8dd2cd7edf9d979a12d3c9d616d1dc5d906cde109",
  "cain/cain2027/unified/e151/procedures/g0_procedure.py": "2228176bc4a4cc1fd4bb4d2d333d987f909dd96647269f559acffcf5d348371b",
  "scripts/evolution151/develop.py": "c77776ba80c085bbbe28a995324f7029025b973ccfc869aadc012440906db806",
  "scripts/evolution151/freeze_arms.py": "a24fbab0993c67f803d613b139ee33b8243c9b48e6d218d647767f1dd700ad40",
  "cain/cain2027/unified/e150/research.py": "8825455fe50751c8de96fe58eb28291e39d07a1b3120f21940f459eccdd5b6be",
  "cain/cain2027/unified/e150/evaluate.py": "bf6f8e14a8fd5cdf3b54ce9073f1d53b69e803f946e1cd75aeee3221920ee624",
  "artifacts/e151/frozen/arms.json": "9213180b57f47b205aad876c010ee3acda98573fca2b233e14d9deebc7d5d07e"
 },
 "preregistration_hash": "9248c6b537b529a744467a5ad0824e2154d155192f92b1bf59d0c8ddae66a268"
}
