{
 "protocol": "protocol-017",
 "title": "Do the cat-circuit model's dynamics change its decisions? A pre-declared causal test in simulation",
 "declared_utc": "2026-10-23T20:46:02Z",
 "declared_before": "any milestone-2 model run; model data seen for this question: the reduction check, the milestone-1 probe (exploratory; it set the decoder by a rule written before its results were read), two 16-step feedforward-only smoke runs, and smoke runs of the sequence stimulus on the saturated tiny configuration",
 "simulation_only": "no wallet, token, exchange, key or real order exists in this work",
 "engine": {
  "model": "LSV1M v1.0 (Antolik et al. 2024); published model and parameter files unchanged except the recorder files, replaced by spike recorders on every neuron; 2 mm reduction by command-line overrides",
  "parameter_file": "param_spont/defaults",
  "threads": 4,
  "reduction_overrides": [
   "sheets.l4_cortex_exc.params.sx",
   "2000.0",
   "sheets.retina_lgn.params.size",
   "(3.0,3.0)",
   "sheets.l4_cortex_exc.AfferentConnection.or_map_stretch",
   "8.375"
  ],
  "server_files_sha256": {
   "model-2mm/model.py": "55e1317df2fe5526e452693f13718c55369444b3f97481bb250b3189d4a3a9bc",
   "model-2mm/or_map_new_16x16": "e7c93ca03308a68c3818d3d91af8b26fd626c226d5c58c229fa317acaa206779",
   "model-2mm/eye_path.pickle": "b125a9d152bb27aa34e37db2b0036b52858b738873538afe61a2fb7c064f0430",
   "model-2mm/param_spont/SpatioTemporalFilterRetinaLGN_defaults": "979212f6035e9abb9e41b4ae6a88b4f0327cfd5bdc58a5b49f958c125d6f8665",
   "model-2mm/param_spont/defaults": "5947743f5129eff48a1e6aab39f14cb0b2002e185b6051078bc4fc93a1b5372a",
   "model-2mm/param_spont/l23_cortex_exc": "6b08839188b6c818ae113f0346d3805a00d48cac583a31db75feb6e3214a7a74",
   "model-2mm/param_spont/l23_cortex_inh": "000570aa1be671c5941645ba8ed777c170619b7ae925d87cfcb8a331a8b2223d",
   "model-2mm/param_spont/l23_exc_rec": "e4632df03f37c2da5e2e782229fede7af3b30e3edc337f661f9ad50c9e7e4b6e",
   "model-2mm/param_spont/l23_inh_rec": "e4632df03f37c2da5e2e782229fede7af3b30e3edc337f661f9ad50c9e7e4b6e",
   "model-2mm/param_spont/l4_cortex_exc": "0efd315e9226e5121182ea6bf3155188ee874aebc17d1860f47350b0a55004af",
   "model-2mm/param_spont/l4_cortex_inh": "caf6a8046e186ce2612ef8225a4d9ee9be62d23c77f9ce59ea37f25f7300c983",
   "model-2mm/param_spont/l4_exc_rec": "e4632df03f37c2da5e2e782229fede7af3b30e3edc337f661f9ad50c9e7e4b6e",
   "model-2mm/param_spont/l4_inh_rec": "e4632df03f37c2da5e2e782229fede7af3b30e3edc337f661f9ad50c9e7e4b6e",
   "model-2mm/param_spont/lgn_rec": "86f752ef80a879732496ddf119d1d2898744e47bc68102da2d1d8e0843d9f1ca",
   "rec/l23_exc_rec": "e4632df03f37c2da5e2e782229fede7af3b30e3edc337f661f9ad50c9e7e4b6e",
   "rec/l23_inh_rec": "e4632df03f37c2da5e2e782229fede7af3b30e3edc337f661f9ad50c9e7e4b6e",
   "rec/l4_exc_rec": "e4632df03f37c2da5e2e782229fede7af3b30e3edc337f661f9ad50c9e7e4b6e",
   "rec/l4_inh_rec": "e4632df03f37c2da5e2e782229fede7af3b30e3edc337f661f9ad50c9e7e4b6e",
   "rec/lgn_rec": "86f752ef80a879732496ddf119d1d2898744e47bc68102da2d1d8e0843d9f1ca"
  }
 },
 "conditions": {
  "intact-A": [],
  "intact-B": [
   "pynn_seed",
   "6"
  ],
  "feedforward-only": [
   "sheets.l4_cortex_exc.L4ExcL4ExcConnection.base_weight",
   "0.0",
   "sheets.l4_cortex_exc.L4ExcL4InhConnection.base_weight",
   "0.0",
   "sheets.l4_cortex_inh.L4InhL4ExcConnection.base_weight",
   "0.0",
   "sheets.l23_cortex_exc.L23ExcL23InhConnection.base_weight",
   "0.0",
   "sheets.l23_cortex_exc.L4ExcL23ExcConnection.base_weight",
   "0.0"
  ]
 },
 "run_order": [
  "intact-A",
  "intact-B",
  "feedforward-only"
 ],
 "run_name_prefix": "m2-",
 "runner": "server/run_milestone2.sh",
 "resolved_weights_and_seeds": {
  "intact-A": {
   "pynn_seed": 5,
   "mpi_seed": 1023,
   "sx": 2000.0,
   "base_weights": {
    "l4_cortex_exc.L4ExcL4ExcConnection": 0.00018,
    "l4_cortex_exc.L4ExcL4InhConnection": 0.00022,
    "l4_cortex_exc.AfferentConnection": 0.0012,
    "l4_cortex_inh.L4InhL4ExcConnection": 0.001,
    "l4_cortex_inh.L4InhL4InhConnection": 0.001,
    "l4_cortex_inh.AfferentConnection": 0.0012,
    "l23_cortex_exc.L23ExcL23ExcConnection": 0.00018,
    "l23_cortex_exc.L23ExcL23InhConnection": 0.00035,
    "l23_cortex_exc.L4ExcL23ExcConnection": 0.001,
    "l23_cortex_exc.L23ExcL4ExcConnection": 0.00018,
    "l23_cortex_exc.L23ExcL4InhConnection": 0.00022,
    "l23_cortex_inh.L23InhL23ExcConnection": 0.001,
    "l23_cortex_inh.L23InhL23InhConnection": 0.001,
    "l23_cortex_inh.L4ExcL23InhConnection": 0.001
   }
  },
  "intact-B": {
   "pynn_seed": 6,
   "mpi_seed": 1023,
   "sx": 2000.0,
   "base_weights": {
    "l4_cortex_exc.L4ExcL4ExcConnection": 0.00018,
    "l4_cortex_exc.L4ExcL4InhConnection": 0.00022,
    "l4_cortex_exc.AfferentConnection": 0.0012,
    "l4_cortex_inh.L4InhL4ExcConnection": 0.001,
    "l4_cortex_inh.L4InhL4InhConnection": 0.001,
    "l4_cortex_inh.AfferentConnection": 0.0012,
    "l23_cortex_exc.L23ExcL23ExcConnection": 0.00018,
    "l23_cortex_exc.L23ExcL23InhConnection": 0.00035,
    "l23_cortex_exc.L4ExcL23ExcConnection": 0.001,
    "l23_cortex_exc.L23ExcL4ExcConnection": 0.00018,
    "l23_cortex_exc.L23ExcL4InhConnection": 0.00022,
    "l23_cortex_inh.L23InhL23ExcConnection": 0.001,
    "l23_cortex_inh.L23InhL23InhConnection": 0.001,
    "l23_cortex_inh.L4ExcL23InhConnection": 0.001
   }
  },
  "feedforward-only": {
   "pynn_seed": 5,
   "mpi_seed": 1023,
   "sx": 2000.0,
   "base_weights": {
    "l4_cortex_exc.L4ExcL4ExcConnection": 0.0,
    "l4_cortex_exc.L4ExcL4InhConnection": 0.0,
    "l4_cortex_exc.AfferentConnection": 0.0012,
    "l4_cortex_inh.L4InhL4ExcConnection": 0.0,
    "l4_cortex_inh.L4InhL4InhConnection": 0.0,
    "l4_cortex_inh.AfferentConnection": 0.0012,
    "l23_cortex_exc.L23ExcL23ExcConnection": 0.0,
    "l23_cortex_exc.L23ExcL23InhConnection": 0.0,
    "l23_cortex_exc.L4ExcL23ExcConnection": 0.0,
    "l23_cortex_exc.L23ExcL4ExcConnection": 0.0,
    "l23_cortex_exc.L23ExcL4InhConnection": 0.0,
    "l23_cortex_inh.L23InhL23ExcConnection": 0.0,
    "l23_cortex_inh.L23InhL23InhConnection": 0.0,
    "l23_cortex_inh.L4ExcL23InhConnection": 0.0
   }
  }
 },
 "sequence": {
  "file": "sequence.json",
  "sha256": "a63c342d16509962a0ba77be340e0e3dea9c59b38b2916069312e343da9287fe",
  "kind": "iid uniform signals; r_(t+1) = kappa * s_t + N(0, return_sd)",
  "n_steps": 120,
  "seed": 170,
  "kappa": 0.01,
  "return_sd": 0.02
 },
 "encoder": {
  "orientation": "pi/2 + s * pi/4",
  "contrast_percent": "30 + 70 * |s|",
  "stimulus": "FullfieldDriftingSinusoidalGratingSequence",
  "spatial_frequency_cpd": 0.8,
  "temporal_frequency_hz": 2.0,
  "step_frames": 30.0,
  "gap_frames": 21.0,
  "frame_ms": 7.0,
  "lead_ms": 504.0,
  "separate_warmup_ms": 0,
  "chunk_max_steps": 100
 },
 "decoder": {
  "file": "decoder.json",
  "sha256": "c999c302c00f775d67f220a4771a3c0ca6ec5b11147706e1306348db70e36aad",
  "sheets": [
   "V1_Exc_L4"
  ],
  "window_ms": [
   40.0,
   300.0
  ],
  "mode": "balanced",
  "centre_um": null,
  "chosen_on_probe": {
   "layer": "L4E",
   "decoder": "balanced",
   "window_ms": [
    40.0,
    300.0
   ]
  },
  "estimate": "theta = angle(sum_n c_n w_n) / 2; s_hat = clip((theta - pi/2) / (pi/4), -1, 1)",
  "request": "buy if s_hat > 0.25, sell if s_hat < -0.25, else hold; 1.0 unit"
 },
 "executor": {
  "start_cash": 100.0,
  "max_position": 5.0,
  "order_units": 1.0,
  "fee_rate": 0.003
 },
 "analysis": {
  "script": "controller/analyze_decisions.py",
  "boot": 2000,
  "block": 5,
  "null_draws": 2000,
  "seed": 17,
  "run_seed_index": {
   "intact-A": 0,
   "intact-B": 1,
   "feedforward-only": 2
  },
  "margin": 0.1,
  "signal_bins": [
   -0.5,
   0.5
  ],
  "lesion_pair": [
   "intact-A",
   "feedforward-only"
  ],
  "replication_pair": [
   "intact-A",
   "intact-B"
  ]
 },
 "readings": {
  "carry_over_categories": {
   "material carry-over": "the 95% interval of c lies entirely beyond the margin",
   "carry-over, size unresolved": "the 95% interval of c excludes 0 and reaches beyond the margin, but not entirely",
   "small carry-over": "the 95% interval of c excludes 0 and lies within the margin",
   "no material carry-over": "the 95% interval of c includes 0 and lies within the margin",
   "inconclusive": "the 95% interval of c includes 0 and reaches beyond the margin"
  },
  "primary": {
   "material carry-over": "both intact network instances show material carry-over of the same sign",
   "carry-over": "both intact instances show carry-over of the same sign; its size is not shown to exceed the margin in both",
   "no material carry-over": "neither intact network instance shows material carry-over",
   "mixed or inconclusive": "any other combination"
  },
  "overall": {
   "decoding failed": "The fixed decoder does not recover the input from at least one intact run, so no reading applies.",
   "dynamics": "The circuit's dynamics carry information from one decision to the next by a material amount: its decisions are not a plain relay of the current input.",
   "dynamics, size unresolved": "The circuit's dynamics carry detectable information from one decision to the next, but its size is not shown to reach the declared margin.",
   "no carry-over": "At this timing the circuit shows no material linear carry-over of the previous input: any carry-over this test detects is below the declared margin of 0.10. Following the project plan, this controller design stops here.",
   "inconclusive": "Mixed or inconclusive: no fixed reading applies; reported as measured."
  }
 },
 "probe": {
  "decoding_file": "probe-decoding.json",
  "decoding_sha256": "5a24ab688a8cbb7b8df446dbd40d1ac157d3e319450340cf34e052eba717b918",
  "selection": {
   "rule": "lowest in-range median |error| among causal variants; within 1 deg, prefer simpler",
   "best_in_range_deg": 1.449482090987717,
   "chosen": {
    "layer": "L4E",
    "window_ms": [
     40.0,
     300.0
    ],
    "decoder": "balanced",
    "median_abs_error_in_range_deg": 1.449482090987717,
    "median_abs_error_in_range_by_contrast_deg": {
     "30": 1.3638037067099287,
     "100": 1.5463253533655186
    },
    "error_sd_in_range_deg": 2.308018138702795
   }
  },
  "run_seconds": 8023.140729427338
 },
 "feedforward_smoke": {
  "four_overrides": {
   "decoding_file": "ff-smoke-decoding.json",
   "decoding_sha256": "627a0be49b1e8d794a1df2f599c24b9798694823ca848279c92da2361068e4ae",
   "rates_hz": {
    "V1_Exc_L4": {
     "neurons": 6000,
     "lead_in_hz": 23.444444444444446,
     "sequence_hz": 46.64653361344538
    },
    "V1_Inh_L4": {
     "neurons": 1500,
     "lead_in_hz": 42.82275132275132,
     "sequence_hz": 90.81664332399627
    },
    "V1_Exc_L2/3": {
     "neurons": 6000,
     "lead_in_hz": 282.06613756613757,
     "sequence_hz": 291.9092845471522
    },
    "V1_Inh_L2/3": {
     "neurons": 1500,
     "lead_in_hz": 462.23941798941803,
     "sequence_hz": 554.5068860877684
    },
    "X_ON": {
     "neurons": 1800,
     "lead_in_hz": 17.201278659611994,
     "sequence_hz": 46.5201914098973
    },
    "X_OFF": {
     "neurons": 1800,
     "lead_in_hz": 7.6576278659611985,
     "sequence_hz": 36.665110488639904
    }
   },
   "chosen_decoder_result": {
    "median_abs_error_deg": 4.615193351258194,
    "median_abs_error_in_range_deg": 4.149082613714601,
    "median_abs_error_in_range_by_contrast_deg": {
     "30": 4.570680424698347,
     "100": 3.7274848027308556
    },
    "error_sd_in_range_deg": 5.802962791342303,
    "fraction_within_22_5_deg": 1.0,
    "mean_spikes_per_neuron_per_step": 14.029489583333334,
    "neurons_used": 6000
   }
  },
  "declared_five_overrides": {
   "decoding_file": "ff-smoke-2-decoding.json",
   "decoding_sha256": "23f6c1ffb4dadd77057cec5c8aa9bb47139ee134305d4a600814ba76bdcea70b",
   "rates_hz": {
    "V1_Exc_L4": {
     "neurons": 6000,
     "lead_in_hz": 23.444444444444446,
     "sequence_hz": 46.64653361344538
    },
    "V1_Inh_L4": {
     "neurons": 1500,
     "lead_in_hz": 42.82275132275132,
     "sequence_hz": 90.81664332399627
    },
    "V1_Exc_L2/3": {
     "neurons": 6000,
     "lead_in_hz": 0.0,
     "sequence_hz": 0.0
    },
    "V1_Inh_L2/3": {
     "neurons": 1500,
     "lead_in_hz": 0.0,
     "sequence_hz": 0.0
    },
    "X_ON": {
     "neurons": 1800,
     "lead_in_hz": 17.201278659611994,
     "sequence_hz": 46.5201914098973
    },
    "X_OFF": {
     "neurons": 1800,
     "lead_in_hz": 7.6576278659611985,
     "sequence_hz": 36.665110488639904
    }
   },
   "chosen_decoder_result": {
    "median_abs_error_deg": 4.615193351258194,
    "median_abs_error_in_range_deg": 4.149082613714601,
    "median_abs_error_in_range_by_contrast_deg": {
     "30": 4.570680424698347,
     "100": 3.7274848027308556
    },
    "error_sd_in_range_deg": 5.802962791342303,
    "fraction_within_22_5_deg": 1.0,
    "mean_spikes_per_neuron_per_step": 14.029489583333334,
    "neurons_used": 6000
   }
  }
 },
 "null_simulation": {
  "file": "null-simulation.json",
  "sha256": "98eca0a71ff62ccfc9fe790bfaf88fd8cf4921721f383fe33a4597b55febe18d"
 }
}
