{
 "schema": "cain42.e164.preregistration.v1",
 "evolution": "E164",
 "title": "Preregistered integration replication and genuinely different research interfaces",
 "status": "AGI: NOT ESTABLISHED \u00b7 RSI: EXPERIMENTAL",
 "frozen_before_sealed_evaluation": true,
 "central_question": "Does the E163 exploratory complementary-integration gain replicate under a frozen preregistered rule and a fresh sealed salt, and does any research strategy transfer across genuinely different observation/action interfaces?",
 "directives": {
  "1_integration_replication": "test the E163 exploratory EGFI gain confirmatorily, with the rule frozen before the run",
  "2_interfaces": "replace the scalar-observation interface with program repair, causal experiment design and literature-grounded hypothesis interfaces",
  "3_validation": "audit which validation signal predicts sealed performance; adopt cross-family validation only if it beats within-family validation by the preregistered margin",
  "4_economics": "price the selection cost against repeated campaigns and stop when break-even exceeds a 50-campaign horizon"
 },
 "design": {
  "interfaces": {
   "SCALAR": "choose a config, observe a noisy scalar (legacy control; E158 OPT tasks, budget 16)",
   "REPAIR": "apply edits to a program, observe the pass/fail vector, fix the bug (10-edit budget)",
   "CAUSAL": "choose interventions, observe dataset summaries, return a DAG (6-experiment budget, 16 candidate DAGs)",
   "HYPOTHESIS": "query a 12-node knowledge graph, observe directed evidence records, return a composed relation (5-query budget)"
  },
  "seeds": 5,
  "proposals_per_branch": 8,
  "dev_tasks_per_branch": 5,
  "validation_tasks": 8,
  "sealed_tasks": 10,
  "strategy_pool": 24,
  "mde": 0.02,
  "arms": [
   "single_full",
   "best_individual",
   "integration",
   "random_plus"
  ],
  "integration_rule": {
   "name": "EGFI (evidence-gated field integration)",
   "frozen": "start from the better of the two branches on the common validation split; for every field in the declared order (explore_frac, rule, batch, revert, restart, stop, evidence, decompose), try the other branch's value; keep it only if the validation score strictly improves (delta=0)",
   "baseline": "best_individual: the better of the two branch genomes on the same validation split",
   "compute_control": "random_plus: best_individual plus 8 random genomes scored on the same validation split (the EGFI scan evaluates one trial per field)"
  },
  "branches": "A: local hill-climb from BASE (restart 0.0); B: exploratory search (restart 0.6); both spend 8 proposals x 5 tasks"
 },
 "hypotheses": {
  "H1": {
   "claim": "the frozen EGFI integration beats the best individual branch on sealed tasks, pooled across four interfaces",
   "primary": "paired task-level mean difference, averaged over seeds and pooled across interfaces",
   "mde": 0.02,
   "test": "one-sided paired t + Holm",
   "note": "confirmatory replication of the E163 exploratory H17 (+0.0453, Holm p 0.0030)"
  },
  "H2": {
   "claim": "EGFI beats the compute-matched random_plus control",
   "primary": "paired task-level mean difference",
   "mde": 0.02,
   "test": "one-sided paired t + Holm",
   "note": "addresses the objection that the gain is just extra validation compute"
  },
  "H3": {
   "claim": "the H1 direction replicates on a second fresh salt in a separate process",
   "primary": "same estimator on a new master salt",
   "mde": 0.02,
   "test": "direction + 95% CI",
   "note": "same code, same host; NOT an independent implementation"
  },
  "H4": {
   "claim": "cross-family validation predicts sealed performance better than within-family validation",
   "primary": "bootstrap mean of (Spearman rho_cross - rho_within) over strategies, pooled across interfaces",
   "mde": 0.2,
   "test": "bootstrap 95% CI excludes 0 and mean >= 0.2 and rho_cross > 0",
   "note": "adoption rule for directive 3"
  },
  "H5": {
   "claim": "a selector using cross-family validation picks better sealed strategies than a selector using within-family validation",
   "primary": "paired sealed score of the selected strategy over 20 draws",
   "mde": 0.02,
   "test": "one-sided paired t + Holm"
  },
  "H6": {
   "claim": "a strategy learned on one interface transfers positively to another",
   "primary": "donor minus recipient-own sealed score, paired by task",
   "mde": 0.02,
   "test": "one-sided paired t + Holm",
   "note": "expected to be contradicted; a negative result is informative"
  },
  "H7": {
   "claim": "strategy rankings are interface-specific (mean pairwise Spearman < 0.5)",
   "primary": "mean pairwise rank correlation of strategy performance across interfaces",
   "test": "threshold 0.5"
  },
  "H8": {
   "claim": "within-family validation is a better selector than in-sample dev",
   "primary": "paired sealed score over the same 20 draws",
   "mde": 0.02,
   "test": "one-sided paired t + Holm"
  },
  "H9": {
   "claim": "the selection cost is repaid within a 50-campaign horizon",
   "primary": "break-even campaigns = C*w0/(w1-w0), C = pool(24)*validation(8)/sealed(10) = 19.2",
   "test": "deploy only if break-even <= 50 AND the H1 gain is significant"
  },
  "H10": {
   "claim": "adopting integration does not materially regress any interface",
   "primary": "per-interface integration minus best_individual",
   "mde": 0.02,
   "test": "no interface below -0.02"
  },
  "H11": {
   "claim": "every research action remains inside the protected governance boundary",
   "primary": "MCPGate + bwrap + OMEGA suite",
   "test": "binary: all cases pass"
  },
  "H12": {
   "claim": "an independently implemented recomputation reproduces H1",
   "primary": "permutation test from raw rows + sealed re-execution",
   "test": "binary + direction"
  }
 },
 "statistics": {
  "unit": "sealed task (score averaged over the 5 proposer seeds first)",
  "test": "paired one-sided t-test; family-clustered bootstrap (2000 resamples)",
  "multiple_comparisons": "Holm across the five primary hypotheses with p-values (H1, H2, H5, H6, H8); H4/H7/H10 are logical rules and are reported separately",
  "alpha": 0.05,
  "minimum_meaningful_effect": 0.02,
  "reporting": "raw counts, wins/losses/ties, effect size, CI, exact p, adjusted p, per-interface and per-seed results",
  "negative_rule": "a CI crossing zero is INCONCLUSIVE; a CI below zero is CONTRADICTED; never upgrade"
 },
 "promotion_gates": [
  "complete lineage",
  "valid manifest",
  "protected evaluator",
  "compute-matched controls",
  "primary result meets the preregistered threshold",
  "Holm applied",
  "held-out valid",
  "no hidden regression",
  "verifier passes",
  "governance tests pass",
  "bundle sealed",
  "public status accurate"
 ],
 "stop_rules": "one preregistered pass; the sealed salt is committed before evaluation and revealed after",
 "exclusions": "no task is dropped; a crashed interface run scores 0.0 and is counted",
 "limitations_declared_in_advance": [
  "all four interfaces are constructed by the same team; none is an external benchmark",
  "the interfaces share one strategy genome; the transfer test measures that genome, not arbitrary research code",
  "no LLM is used; the hypothesis interface is a knowledge-graph simulator, not a literature search",
  "the second salt runs on the same host with the same code; it is a replication, not an independent implementation",
  "a self-generated signing key establishes integrity, not third-party identity",
  "no third-party audit or external reproduction"
 ]
}