{
 "schema": "cain.e105.preregistration.v1",
 "written_before_sealed_runs": true,
 "question": "Can the organism learn WHERE hidden preconditions tend to be, from its own experience, and use it only when a real regularity exists?",
 "mechanism": "PreconditionPrior: when a believed wall proves passable, the cells newly visited since it was last blocked are credited (1/k each); the prior scores cells by LIFT = credit rate per visit / mean credit rate (controls for where the organism walks). It is used only if max lift >= 2.0 over cells visited >= 8 times; frontier exploration then prefers high-lift cells with weight w.",
 "development_findings_before_registration": "dev seeds 970000-971100: raw-count prior hallucinated a pattern on uniform-key grid worlds and hurt (10 to 7/16); the lift gate removed it (max lift 1.43, prior off, 10/16). On edge-lock with 19 practice wins the prior was noisy and hurt (7 to 3/16). Edge-lock needs ~100 steps (labels, drain, lock, hidden target), so all edge-lock arms use 100 steps.",
 "practice": "edge-lock 100 practice incidents (seed0 12000000) and grid key-and-door 100 practice tasks (family 3, seed0 12100000), max_steps 150 (practice mode); priors learned only from solved practice episodes",
 "sealed": {
  "edge_lock": "100 incidents, seed0 12200000, max_steps 100, arms w = 0 and w = 0.5",
  "grid_key_door": "families 3 and 8, 30 each, seed0 12300000, max_steps 60, arms w = 0 and w = 0.5",
  "grid_other": "families 0,1,2,4,5,6,7,9, 10 each, seed0 12400000, w = 0 and w = 0.5"
 },
 "H1": "edge-lock: w = 0.5 success > w = 0, exact McNemar two-sided p < 0.05 with more won than lost",
 "H2_guardrail": "grid key-and-door (uniform key): the lift gate reports the prior unusable and success is unchanged (no significant loss)",
 "H3": "grid other families: no significant loss",
 "statistics": "exact McNemar and sign tests, two-sided, alpha 0.05"
}
