{
 "schema": "cain.e108.preregistration.v1",
 "written_before_sealed_runs": "2026-11-19",
 "title": "E108: a selection-aware null and more kinds of hidden rules",
 "disclosed_development": {
  "dev_seeds": "practice grid 1080000+ (400), service uniform 1081000+ (300), row0 1082000+, start_row 1083000+, barrier_adj 1084000+ (100 each); use-check 1085000-1088000+ (60 each)",
  "findings": [
   "selection: the key was never among the cells walked before the last blocked test (0/263 grid, 0/102 service uniform, 1/18 barrier_adj where the door was wrong)",
   "uniform-key pooled gate: E107 null p 0.095 (grid, feature scol -1) and 0.082 (service, col 0); E108 selection-aware null p 0.564 and 0.427",
   "rule detection: row0 -> row 0 p 0.001; start_row -> srow 0 p 0.001; barrier_adj -> bcol -1 p 0.003",
   "use, first version: row0 24 -> 24, start_row 24 -> 24 (no gain): row features crossed the barrier so the subgoal pointed at unreachable cells and 'region visited' never became true",
   "fix: apply the learned feature on the start side of the organism's estimated barrier; dev row0 24 -> 35 (11 vs 0), start_row 24 -> 33 (9 vs 0), barrier_adj 34 -> 37 (3 vs 0), uniform 27 -> 27",
   "lower practice yield in start_row (21/100) and barrier_adj (18/100); attribution accuracy 18/21 and 14/18 there"
  ]
 },
 "frozen_design": {
  "trial1": {"organism_config": {}, "max_steps": 400},
  "experiment": "E107 run_experiment, max_steps 1500; row used if exactly one candidate and census complete",
  "pre": "cells first visited in trial 1 before the first cell of the chosen opening window",
  "gate": {"class": "FramedGate", "frames": ["absolute col/row/cell", "start-relative scol/srow", "barrier-relative bcol"], "null": "cause uniform over support minus pre", "permutations": 999, "alpha": 0.01, "seed": 108, "min_worlds": 10},
  "prior": "FramedPrior: nearest unvisited not-wall cell in the learned feature, current incident's frame, start side of the estimated barrier",
  "arms": {"control": {}, "treatment": {"prior_subgoal": true, "retest_when_precondition_done": true}}
 },
 "sealed_sets": {
  "practice": {"grid_kd": [3, 18000000, 300], "svc_uniform": [101, 18100000, 300], "edge": [102, 18200000, 150], "row0": [103, 18300000, 200], "start_row": [104, 18400000, 250], "barrier_adj": [105, 18500000, 250]},
  "test": {"edge": [102, 18600000, 150], "row0": [103, 18700000, 150], "start_row": [104, 18800000, 150], "barrier_adj": [105, 18900000, 150], "svc_uniform": [101, 19000000, 150], "grid_kd": [3, 19100000, 100]},
  "test_max_steps_service": 100
 },
 "hypotheses": {
  "H1_calibration": "selection-aware gate OFF on both uniform practice sets (grid_kd, svc_uniform)",
  "H2_detection": "gate ON with the true feature: edge col 0, row0 row 0, start_row srow 0, barrier_adj bcol -1",
  "H3_use": "per rule domain, treatment solves more than control (McNemar, Holm-corrected over the 4 rule domains at 0.05, treatment-only > control-only); reported per domain",
  "H4_no_harm": "no significant loss on svc_uniform or grid_kd tests",
  "H5_attribution": "pooled oracle accuracy of used practice rows >= 95%",
  "D1_descriptive": "E107 unconditional null p reported next to the E108 p on both uniform practice sets"
 },
 "publication_rule": "every hypothesis reported pass or fail; failures are published",
 "team": "Vincent Noriega (founder) and a three-person team"
}
