{
 "protocol": "protocol-022",
 "revision": 2,
 "title": "Protocol 022, revision 2 (planned): a plaids pilot. Does the cat circuit combine two gratings differently from a relay, and do its connections change that?",
 "scope": "protocol 022 revision 2, plaids pilot: the contract of the two runs and their analysis; simulation only",
 "declared_utc": "2026-10-26T23:15:38Z",
 "declared_before": "any plaid run: the queue starts only from the frozen manifest that lists this contract",
 "simulation_only": "no wallet, token, exchange, key or real order exists in this work",
 "spec": {
  "file": "docs/specs/2026-10-26-protocol-022-plaids-r2.md",
  "sha256": "8f8878fc60e5378224def8866068d3e3a1ca03ca4a48b69fa69446f5bee662d3",
  "status": "DECLARED, revision 2, 2026-10-26T23:15:38Z, before any plaid run. Its SHA-256 is recorded in HANDOFF. Any later change needs a new declared revision.",
  "date": "2026-10-26"
 },
 "protocol_017_contract_sha256": "72a58b2fd3d01277d88bc1642e04aed9af55fa79a47ac9b3bda9d7a901268b10",
 "protocol_017_manifest_sha256": "383e67ef1bc8f61463708244d6f46dd145449f44a60a1cbf37c23b08df152bdc",
 "protocol_017": {
  "package": "outputs/felisyn-research/protocol-017",
  "contract_sha256": "72a58b2fd3d01277d88bc1642e04aed9af55fa79a47ac9b3bda9d7a901268b10",
  "manifest_sha256": "383e67ef1bc8f61463708244d6f46dd145449f44a60a1cbf37c23b08df152bdc",
  "decoder_sha256": "c999c302c00f775d67f220a4771a3c0ca6ec5b11147706e1306348db70e36aad",
  "as_frozen": "HANDOFF.md, \"PROTOCOL 017 FROZEN, 2026-10-23T20:46:02Z\"",
  "checked_against_its_manifest": [
   "contract.json",
   "decoder.json",
   "controller/analyze_decisions.py",
   "controller/decisions.py",
   "controller/pipeline.py"
  ],
  "entries_used": {
   "intact": "intact-A",
   "lesion": "feedforward-only"
  }
 },
 "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"
  ],
  "network_instance": "A",
  "pynn_seed": 5,
  "model_files": {
   "list": "outputs/felisyn-research/protocol-017/server-files-sha256.txt",
   "sha256": "8d5e4c3d69a2cd3bc34a602730898ba48c5c05dc479b8616eb12d4227ae9cfb4",
   "files": 19
  },
  "as_in": "protocol 017's contract (engine)"
 },
 "conditions": {
  "intact": {
   "protocol_017_entry": "intact-A",
   "overrides": [],
   "script": "../run_controller.py",
   "run_names": [
    "m22p-intact-a1",
    "m22p-intact-a2"
   ],
   "argv": {
    "m22p-intact-a1": [
     "nest",
     "4",
     "param_spont/defaults",
     "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",
     "m22p-intact-a1"
    ],
    "m22p-intact-a2": [
     "nest",
     "4",
     "param_spont/defaults",
     "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",
     "m22p-intact-a2"
    ]
   },
   "environment": {
    "FELISYN_EXPORT": "/opt/felisyn/controller-022/runs/intact.json.gz"
   },
   "resolved_weights_and_seeds": {
    "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
    }
   }
  },
  "lesion": {
   "protocol_017_entry": "feedforward-only",
   "overrides": [
    "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"
   ],
   "script": "../run_controller.py",
   "run_names": [
    "m22p-lesion-a1",
    "m22p-lesion-a2"
   ],
   "argv": {
    "m22p-lesion-a1": [
     "nest",
     "4",
     "param_spont/defaults",
     "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",
     "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",
     "m22p-lesion-a1"
    ],
    "m22p-lesion-a2": [
     "nest",
     "4",
     "param_spont/defaults",
     "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",
     "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",
     "m22p-lesion-a2"
    ]
   },
   "environment": {
    "FELISYN_EXPORT": "/opt/felisyn/controller-022/runs/lesion.json.gz"
   },
   "resolved_weights_and_seeds": {
    "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
    }
   }
  }
 },
 "run_order": [
  "intact",
  "lesion"
 ],
 "run_name_pattern": "^m22p-(intact|lesion)-a[12]$",
 "lesion": {
  "zeroed_projections": [
   "l23_cortex_exc.L23ExcL23ExcConnection",
   "l23_cortex_exc.L23ExcL23InhConnection",
   "l23_cortex_exc.L23ExcL4ExcConnection",
   "l23_cortex_exc.L23ExcL4InhConnection",
   "l23_cortex_exc.L4ExcL23ExcConnection",
   "l23_cortex_inh.L23InhL23ExcConnection",
   "l23_cortex_inh.L23InhL23InhConnection",
   "l23_cortex_inh.L4ExcL23InhConnection",
   "l4_cortex_exc.L4ExcL4ExcConnection",
   "l4_cortex_exc.L4ExcL4InhConnection",
   "l4_cortex_inh.L4InhL4ExcConnection",
   "l4_cortex_inh.L4InhL4InhConnection"
  ],
  "unchanged_projections": [
   "l4_cortex_exc.AfferentConnection",
   "l4_cortex_inh.AfferentConnection"
  ]
 },
 "connection_export": {
  "unit": "felisyn-controller-022-export",
  "script": "../v4/run_controller.py",
  "argv": [
   "nest",
   "4",
   "param_spont/defaults",
   "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",
   "m22p-connections-a1"
  ],
  "environment": {
   "FELISYN_MODE": "export-connections",
   "FELISYN_CONN_DIR": "/opt/felisyn/controller-022/runs/connections",
   "FELISYN_SEQUENCE": "/opt/felisyn/controller-022/seq/sequence-r2.json"
  },
  "timeout": "2h",
  "lesion_overrides": "none: the same files, seeds and environment as the intact run",
  "layout": "v4/ holds version 4 of controller_experiments.py and export_connections.py beside byte-identical copies of run_controller.py and lgn_cache.py",
  "part_of_the_outcome": false
 },
 "queue": {
  "script": "server/run_queue_022.sh",
  "launcher": "server/launch_022.sh",
  "server_folder": "/opt/felisyn/controller-022",
  "working_directory": "/opt/felisyn/controller-022/model-2mm",
  "pilot_unit": "felisyn-controller-022-pilot",
  "export_unit": "felisyn-controller-022-export",
  "order": [
   "intact",
   "lesion",
   "connection export"
  ],
  "run_timeout": "12h",
  "export_timeout": "2h",
  "reruns": "one rerun per run under the identical contract, named -a2; none after a kill for memory (exit 137 with a rise in memory.events oom_kill); no attempt starts after the start limit; no lesion run after a failed intact run",
  "start_limit_s": 86400,
  "memory_max_bytes": 6815744000,
  "oom_policy": "continue",
  "runtime_max_sec": {
   "pilot": "40h",
   "export": "150min",
   "export_source": "server/launch_022.sh (the spec gives no RuntimeMaxSec for the export unit)"
  },
  "mem_available_floor_gib": 6.6,
  "guards": "every felisyn-* unit other than the queue's own inactive or failed, MemAvailable at least the floor and every server file matching the launch list, at launch and before each attempt",
  "environment": {
   "set": {
    "MPLBACKEND": "Agg",
    "PYTHONDONTWRITEBYTECODE": "1",
    "FELISYN_STEP_FRAMES": "30",
    "FELISYN_GAP_FRAMES": "21",
    "FELISYN_WARMUP_MS": "0",
    "FELISYN_LEAD_MS": "504"
   },
   "unset": [
    "FELISYN_CHUNK_STEPS",
    "FELISYN_LGN_CACHE",
    "PYTHONOPTIMIZE"
   ],
   "per_run": {
    "FELISYN_SEQUENCE": "/opt/felisyn/controller-022/seq/sequence-r2.json"
   }
  }
 },
 "sequence": {
  "file": "sequence-r2.json",
  "sha256": "41ecee87b2b4de64ae31e65a4bf8c0cde8f512b1b057b6d32fa6bd805312878c",
  "generator": "make_plaid_sequence_r2.py",
  "first_seed": 231,
  "seed": 231,
  "n_steps": 97,
  "n_analysed": 96,
  "n_conditions": 15,
  "frames": 5019,
  "model_time_ms": 35133,
  "warm_up": [
   45,
   30.0
  ],
  "longest_run": 2,
  "order": "the file itself (the spec declares the file and its SHA-256 as the order of record)",
  "conditions": [
   {
    "condition": "blank",
    "block": "A",
    "repeats": 8,
    "components_deg_percent": []
   },
   {
    "condition": "45@15",
    "block": "A",
    "repeats": 8,
    "components_deg_percent": [
     [
      45.0,
      15.0
     ]
    ]
   },
   {
    "condition": "135@15",
    "block": "A",
    "repeats": 8,
    "components_deg_percent": [
     [
      135.0,
      15.0
     ]
    ]
   },
   {
    "condition": "45@30",
    "block": "A",
    "repeats": 8,
    "components_deg_percent": [
     [
      45.0,
      30.0
     ]
    ]
   },
   {
    "condition": "135@30",
    "block": "A",
    "repeats": 8,
    "components_deg_percent": [
     [
      135.0,
      30.0
     ]
    ]
   },
   {
    "condition": "45@60",
    "block": "A",
    "repeats": 4,
    "components_deg_percent": [
     [
      45.0,
      60.0
     ]
    ]
   },
   {
    "condition": "135@60",
    "block": "A",
    "repeats": 4,
    "components_deg_percent": [
     [
      135.0,
      60.0
     ]
    ]
   },
   {
    "condition": "45@15+135@15",
    "block": "A",
    "repeats": 8,
    "components_deg_percent": [
     [
      45.0,
      15.0
     ],
     [
      135.0,
      15.0
     ]
    ]
   },
   {
    "condition": "45@30+135@30",
    "block": "A",
    "repeats": 8,
    "components_deg_percent": [
     [
      45.0,
      30.0
     ],
     [
      135.0,
      30.0
     ]
    ]
   },
   {
    "condition": "45@30+135@15",
    "block": "A",
    "repeats": 8,
    "components_deg_percent": [
     [
      45.0,
      30.0
     ],
     [
      135.0,
      15.0
     ]
    ]
   },
   {
    "condition": "45@15+135@30",
    "block": "A",
    "repeats": 8,
    "components_deg_percent": [
     [
      45.0,
      15.0
     ],
     [
      135.0,
      30.0
     ]
    ]
   },
   {
    "condition": "90@15",
    "block": "B",
    "repeats": 4,
    "components_deg_percent": [
     [
      90.0,
      15.0
     ]
    ]
   },
   {
    "condition": "90@30",
    "block": "B",
    "repeats": 4,
    "components_deg_percent": [
     [
      90.0,
      30.0
     ]
    ]
   },
   {
    "condition": "135@30+90@15",
    "block": "B",
    "repeats": 4,
    "components_deg_percent": [
     [
      135.0,
      30.0
     ],
     [
      90.0,
      15.0
     ]
    ]
   },
   {
    "condition": "135@15+90@30",
    "block": "B",
    "repeats": 4,
    "components_deg_percent": [
     [
      135.0,
      15.0
     ],
     [
      90.0,
      30.0
     ]
    ]
   }
  ],
  "mean_previous_contrast_percent": {
   "blank": 30.0,
   "45@15": 31.875,
   "135@15": 35.625,
   "45@30": 28.125,
   "135@30": 31.875,
   "45@60": 48.75,
   "135@60": 26.25,
   "45@15+135@15": 35.625,
   "45@30+135@30": 30.0,
   "45@30+135@15": 35.625,
   "45@15+135@30": 33.75,
   "90@15": 37.5,
   "90@30": 30.0,
   "135@30+90@15": 22.5,
   "135@15+90@30": 48.75
  }
 },
 "timing": {
  "step_frames": 30,
  "gap_frames": 21,
  "frame_ms": 7.0,
  "step_ms": 357.0,
  "lead_frames": 72,
  "lead_ms": 504.0,
  "separate_warmup_ms": 0,
  "spatial_frequency_cpd": 0.8,
  "temporal_frequency_hz": 2.0,
  "presentations": 1,
  "chunking": "none (FELISYN_CHUNK_STEPS unset)",
  "lgn_cache": "disabled (FELISYN_LGN_CACHE unset)",
  "as_in": "protocol 017's encoder (its contract.json)"
 },
 "windows": {
  "ms_after_onset": {
   "G": [
    20.0,
    230.0
   ],
   "D": [
    40.0,
    300.0
   ],
   "onset": [
    20.0,
    70.0
   ],
   "sustained": [
    70.0,
    230.0
   ],
   "offset": [
    230.0,
    300.0
   ],
   "step": [
    0.0,
    357.0
   ]
  },
  "half_open": true,
  "group_measures": "G",
  "readout": "D",
  "S11": {
   "other window": "group measures in D, readout in G",
   "parts": [
    "onset",
    "sustained",
    "offset"
   ]
  },
  "step": "the whole step period, for the rates of S9 (plaid_stats.py; the spec names no such window)"
 },
 "cell_groups": {
  "sheet": "V1_Exc_L4",
  "by": "orientation_pref",
  "centres_deg": [
   45,
   90,
   135
  ],
  "half_width_deg": 15.0,
  "instance_A_cells": {
   "45": 915,
   "90": 721,
   "135": 1071
  },
  "instance_A_cells_are": "reported against each export, not a refusal",
  "inhibitory": "V1_Inh_L4 groups formed the same way, descriptive only (S7)",
  "neuron_tables": "identical in both exports, or the connection readings are missing"
 },
 "readout": {
  "decoder_file": "outputs/felisyn-research/protocol-017/decoder.json",
  "decoder_sha256": "c999c302c00f775d67f220a4771a3c0ca6ec5b11147706e1306348db70e36aad",
  "sheets": [
   "V1_Exc_L4"
  ],
  "window_ms": [
   40.0,
   300.0
  ],
  "mode": "balanced",
  "centre_um": null,
  "weights": "017's pipeline.decoder_weights, balanced, every layer 4 excitatory cell",
  "z": "sum over cells of count in D times weight; checked step by step against population_vector_weighted",
  "signal_unit": "45 deg of decoded orientation is 1",
  "threshold": 0.25,
  "decision": "017's request: buy above +threshold, sell below -threshold, else hold (S5)"
 },
 "primary": {
  "XOS": {
   "name": "P1 XOS",
   "definition": "**P1 XOS** is the mean over (g, c) in {45°, 135°} × {15, 30 %} of XOS(g, c) = [D_g(own single at c) + D_g(other single at c) − D_g(equal orthogonal plaid at c)] / D_g(own single at c). That is the drop below the relay's prediction, in units of the test response.",
   "valid_only_if": [
    "every D_g(own single at c), its denominator, is at least 0.30 counts per cell, with its bootstrap 0.5 % quantile above 0;",
    "the cross drive, the mean over the four cells of D_g(other single) / D_g(own single), lies inside ±0.10 (two-sided)."
   ],
   "plaids": [
    "45@15+135@15",
    "45@30+135@30"
   ],
   "test_referenced_beside_it": "1 - D_g(plaid) / D_g(own single), with the cross drive (S1)"
  },
  "Dc": {
   "name": "P2 Dc",
   "definition": "**P2 Dc** is the mean over the two unequal block A plaids of Dc(p) = (As⁺ − Aw⁺) / (As⁺ + Aw⁺).",
   "valid_only_if": [
    "each of the four additive denominators is at least 0.30 counts, with its bootstrap 0.5 % quantile above 0, and As⁺ + Aw⁺ is at least 0.20."
   ],
   "plaids": [
    {
     "plaid": "45@30+135@15",
     "stronger_group_deg": 45,
     "weaker_group_deg": 135
    },
    {
     "plaid": "45@15+135@30",
     "stronger_group_deg": 135,
     "weaker_group_deg": 45
    }
   ]
  },
  "ds": {
   "name": "P3 ds",
   "definition": "**P3 ds** is the mean over the two block B plaids of ds(p) = σ(p) · arg(ζ(p) · conj(ζ_lin(p))) / 2 / (π/4).",
   "valid_only_if": [
    "|ζ_lin(p)| and |ζ(p)| are at least 1,500 (about 3 per-step SDs), with bootstrap 0.5 % quantiles of at least 750."
   ],
   "plaids": [
    {
     "plaid": "135@30+90@15",
     "stronger_single": "135@30",
     "weaker_single": "90@15"
    },
    {
     "plaid": "135@15+90@30",
     "stronger_single": "90@30",
     "weaker_single": "135@15"
    }
   ]
  },
  "terms": [
   "Y_g(k) is the mean count per cell of group g in G at step k. R_g(j) is its mean over condition j, B_g = R_g(blank), and D_g(j) = R_g(j) − B_g.",
   "The readout z(k) = Σ_n c_n(k) w_n sums over all layer 4 excitatory cells: counts in D, with 017's balanced weights (`pipeline.decoder_weights`).",
   "ζ(j) is the mean z over condition j minus the mean over the blanks. Projections always use the complex conjugate.",
   "A_g(p) = D_g(p) / [D_g(45° single at its contrast in p) + D_g(135° single at its contrast in p)], and A⁺ = max(A, 0).",
   "ζ_lin(p) = ζ(135° single at its contrast in p) + ζ(90° single at its contrast in p).",
   "σ(p) is the sign of arg(ζ(higher-contrast single) · conj(ζ_lin(p))), so a positive value points toward the higher-contrast grating."
  ],
  "not_estimable": "a primary that fails its validity condition makes the pilot NOT INTERPRETABLE"
 },
 "floors": {
  "count_per_cell": 0.3,
  "bootstrap_quantile": 0.005,
  "cross_drive_max_two_sided": 0.1,
  "positive_sum_min": 0.2,
  "readout_abs": 1500.0,
  "readout_abs_bootstrap_quantile": 750.0,
  "parallel_control_rise_min": 0.15
 },
 "decision": {
  "family": [
   "XOS",
   "Dc",
   "ds"
  ],
  "holm_family_wise_alpha": 0.05,
  "delta": {
   "XOS": 0.1,
   "Dc": 0.1,
   "ds": 0.1
  },
  "order": [
   "NOT INTERPRETABLE",
   "GO",
   "RELAY-LIKE",
   "INCONCLUSIVE"
  ],
  "not_interpretable_if": [
   "a refusal on the contract, the sequence or the intact export (an unreadable or partial intact export included);",
   "the intact run failed twice (one rerun of each run under the identical contract is allowed, named `-a2`; an attempt killed for memory is not rerun);",
   "a primary is not estimable;",
   "the intact run fails the 30 % validation check (below)."
  ],
  "go": "a primary Holm-significant at 0.05 with |estimate| >= 0.1",
  "relay_like": "every primary estimable and each 90 % interval inside (-0.1, +0.1)",
  "inconclusive": "otherwise",
  "primary_stands_and_connection_readings_missing": "if the lesion run failed twice, a refusal fires on the lesion export, the lesion fails its 30 % check, the LGN spike trains differ between the runs, or the neuron tables differ.",
  "connection_readings": {
   "made_only_under": [
    "GO",
    "RELAY-LIKE",
    "INCONCLUSIVE"
   ],
   "readout_gate": "ds_int estimable, its 95 % interval excluding 0 and |ds_int| >= 0.1",
   "connection_dependent_at_the_readout": "dds = ds_int - ds_les: 95 % interval excludes 0 with ds_int's sign, and ds_les's 90 % interval inside (-0.1, +0.1)",
   "same_direction_without_the_connections": "ds_les's 95 % interval excludes 0 with ds_int's sign and |ds_les| >= 0.1",
   "unresolved": "otherwise, also where the lesion ds is not estimable",
   "group_text_from_lesion_cross_drive": 0.1,
   "never_change_the_outcome": true
  }
 },
 "bootstrap": {
  "replicates": 10000,
  "seed": 2202,
  "generator": "numpy.random.default_rng(2202).integers(0, 96, size=(10000, 96))",
  "draw_sha256": "ab6b4f38cb6e98fed6cde66d80c288045df0a5029997ec591a95a8723132050e",
  "unit": "the whole step: all cells, all groups, both windows and the readout together",
  "same_draw": "every summary and both runs",
  "intervals": {
   "report": 0.95,
   "relay_like_test": 0.9
  },
  "percentile_quantiles": {
   "ci95": [
    0.025,
    0.975
   ],
   "ci90": [
    0.05,
    0.95
   ]
  },
  "pvalue": "two-sided, 2 min(P*(theta* <= 0), P*(theta* >= 0)), with each count + 1 (analysis_details)"
 },
 "analysis_details": {
  "not_in_the_spec_text": true,
  "readout_noise_frame": "A readout is split into its components along and across its condition's mean direction, each with its own function of |mean z|; as in the calibrated prototype, the frame is rotated only where |mean z| >= 1,000.",
  "readout_frame_min_abs_z": 1000.0,
  "pvalue_counts_plus_one": "p = min(1, 2 min((#(theta* <= 0) + 1) / (n + 1), (#(theta* >= 0) + 1) / (n + 1))), n the finite replicates",
  "nonfinite_replicates": "left out of quantiles and p-values, and counted (nonfinite_replicates)",
  "misfit_flag_p": 0.001,
  "lgn_reference": "the mean over all X_ON or X_OFF cells of the 017 probe's (probe2mm-seq) six 30 % steps at 45 and 135 deg, in G (8.055 and 5.730 with 017's frozen counts_searchsorted, rechecked by test_analyze_plaids.py); the spec gives the values but not the probe steps they come from (validation_30)",
  "rectifier_note": "the reference is a linear rectifier with its threshold at 0 and no spontaneous firing; the model's LGN cells also fire in the blank, which the reference leaves out"
 },
 "validation_30": {
  "ratio_band": [
   0.8,
   1.25
  ],
  "lgn_ratio_band": [
   0.9,
   1.1
  ],
  "intact": {
   "45": 2.97,
   "135": 2.18,
   "source": "017 probe (probe2mm-seq), own-group means in G at 30 %, counts per cell"
  },
  "lesion": {
   "45": 9.8,
   "135": 10.24,
   "source": "017 smoke run 2 (ff-smoke-2), own-group counts per cell in G at 30 %, one step each"
  },
  "lgn": {
   "X_ON": 8.06,
   "X_OFF": 5.73,
   "source": "the mean over all X_ON or X_OFF cells of the 017 probe's (probe2mm-seq) six 30 % steps at 45 and 135 deg, in G (8.055 and 5.730 with 017's frozen counts_searchsorted, rechecked by test_analyze_plaids.py)"
  },
  "pilot_value": "each group's 30 % single at its own orientation (8 repeats) in G; for the LGN, the mean of the 45@30 and 135@30 condition means over all X_ON or X_OFF cells",
  "applied_to": "groups: both runs; LGN: the intact run only",
  "consequence": "an intact failure (LGN included) makes the pilot NOT INTERPRETABLE; a lesion failure removes only the connection readings",
  "rechecked_on_017_exports_by": "test_analyze_plaids.py"
 },
 "texts": {
  "outcomes": {
   "NOT INTERPRETABLE": "The pilot cannot be read as declared: {condition}. No reading about plaids is made. The data and the failure are kept; a rerun needs a new declared revision.",
   "GO": "In this one network instance the intact circuit combined two superimposed gratings differently from a relay of its single-grating responses, by at least the declared margin: {sentences}. This is a property of the whole model circuit (input stage and cortex) at these contrasts and this timing, and the input stage alone was expected to produce part of it. It does not show that the intracortical connections compute it: the shared input stage is non-linear, and suppression or dominance of the afferent drive shows in spikes only in tuned cells, which need the connections. A confirmatory protocol on fresh network instances follows, declared before its runs.",
   "RELAY-LIKE": "In this one network instance layer 4 and the controller's readout combined two superimposed gratings like a relay of their single-grating responses: XOS {xos}, Dc {dc}, ds {ds} (90 % intervals), all inside ±0.10. This does not show that no smaller departure exists, nor that other instances, contrasts, timings or steady-state measures behave the same. No confirmatory plaid protocol follows for the controller.",
   "INCONCLUSIVE": "The pilot neither shows a combination that differs from a relay by at least the margins nor rules one out (intervals in the report). The plaid line pauses; a continuation would be a new declared revision sized with the noise measured here, not with these estimates."
  },
  "go_sentences": {
   "XOS > 0": "an orthogonal grating lowered layer 4 cells' response to their preferred grating (cross-orientation suppression), XOS = {x}",
   "XOS < 0": "an orthogonal grating raised it (facilitation), XOS = {x}",
   "Dc > 0": "at unequal contrasts the cells preferring the stronger grating kept more of their single-grating response than those preferring the weaker one (winner-take-more, as normalisation predicts), Dc = {x}",
   "Dc < 0": "the cells preferring the weaker grating kept more (loser-take-more), Dc = {x}",
   "ds > 0": "the controller's frozen readout of a plaid of gratings 45 degrees apart pointed {x} signal units further toward the stronger grating than the sum of its readouts of the two gratings",
   "ds < 0": "the readout pointed {x} signal units toward the weaker grating"
  },
  "readings": {
   "CONNECTION-DEPENDENT AT THE READOUT": "In this one network instance, without the intracortical connections the readout combined the same plaids like a relay and differed from the intact readout: removing all twelve projections changes how the controller's readout weighs two signals. This is a total effect that includes the lesion's lost tuning and 7 to 8 times higher rate.",
   "SAME DIRECTION WITHOUT THE CONNECTIONS": "In this one network instance, without the intracortical connections (at a 7 to 8 times higher layer 4 rate and without its tuning), the readout departed from a relay in the same direction, ds_les = {x}. The lesion's own saturation can produce this, so it does not show that the intact readout's departure comes from the feedforward path.",
   "NOT APPLICABLE": "The intact readout did not depart from a relay by the declared margin, so no connection reading is made at the readout.",
   "UNRESOLVED": null
  },
  "readings_without_text": {
   "UNRESOLVED": "the spec gives no text"
  },
  "group_measures": "Without the connections layer 4 cells respond to both gratings (the orthogonal grating alone drives them at {x} of the preferred response), so the plain lesion cannot show suppression or dominance in group spikes; this pilot does not answer whether the connections compute the intact network's XOS or Dc.",
  "labels": {
   "S3 saturated": "saturated, uninformative",
   "S4 lesion XOS": "not a suppression index here",
   "S6 LGN": "upstream of thalamocortical depression; not the drive layer 4 receives"
  },
  "placeholders": {
   "{condition}": "the conditions that hold, joined by \"; \"",
   "{sentences}": "one sentence per triggering measure, with its estimate and 95 % interval",
   "{xos}, {dc}, {ds}": "each estimate with its 90 % interval",
   "{x}": "the estimate (ds: its absolute value), or the lesion's cross drive"
  },
  "spec_forms": {
   "condition": "⟨condition⟩",
   "sentences": "⟨one sentence per triggering measure, with estimate and 95 % interval⟩",
   "xos": "x",
   "dc": "y",
   "ds": "z",
   "x": "x"
  }
 },
 "analysis": {
  "driver": "controller/analyze_plaids.py",
  "statistics": "controller/plaid_stats.py",
  "frozen_017_code": [
   "controller/analyze_decisions.py",
   "controller/decisions.py",
   "controller/pipeline.py"
  ],
  "usage": "python3 controller/analyze_plaids.py contract.json OUT_DIR intact=EXPORT|FAILED lesion=EXPORT|FAILED, in the frozen package (manifest.json beside contract.json)",
  "results": "OUT_DIR/results.json, written once and never replaced"
 },
 "follow_up": "the conductance rebuild, declared in the spec's 'Follow-up' section; it never changes this pilot's outcome",
 "maker": "work/controller-022/plaids/make_contract_022r2.py",
 "made_from": {
  "docs/specs/2026-10-26-protocol-022-plaids-r2.md": "8f8878fc60e5378224def8866068d3e3a1ca03ca4a48b69fa69446f5bee662d3",
  "work/controller-022/plaids/sequence-r2.json": "41ecee87b2b4de64ae31e65a4bf8c0cde8f512b1b057b6d32fa6bd805312878c",
  "work/controller-022/plaids/make_plaid_sequence_r2.py": "96a5554128cac1a99111a5cbd5e7e47acfd31b825d91e8af55726cc84ed52c14",
  "work/controller-022/plaids/controller/plaid_stats.py": "7baf22fb8db4fec41579e4899e89319f486c3357d9f89317bfe3a844f2e7cc4c",
  "work/controller-022/plaids/controller/analyze_plaids.py": "aef970d6d86950bc026c72ce18fb5a35fe7aad7d3512b2759d5bb789715d289e",
  "work/controller-022/plaids/controller/frozen017.py": "cdc843b95aaf8ac908004361860e4901e5def0904fde527ad16dd5667873acd0",
  "work/controller-022/plaids/server/run_queue_022.sh": "ad0cb40fc8fcbda1bf5762d38a687e981823e9035e42ff05d11a7792482c567a",
  "work/controller-022/plaids/server/launch_022.sh": "11767a4502ff1e70cec6d89d8d7ce36e3c2342f243a10f77cc65226c0d58dbde",
  "work/controller-022/plaids/make_contract_022r2.py": "ed596f2eb283863cc529df1552cc26963528749365c1ee60ea5e6b473a0c741f",
  "outputs/felisyn-research/protocol-017/contract.json": "72a58b2fd3d01277d88bc1642e04aed9af55fa79a47ac9b3bda9d7a901268b10",
  "outputs/felisyn-research/protocol-017/manifest.json": "383e67ef1bc8f61463708244d6f46dd145449f44a60a1cbf37c23b08df152bdc",
  "outputs/felisyn-research/protocol-017/decoder.json": "c999c302c00f775d67f220a4771a3c0ca6ec5b11147706e1306348db70e36aad",
  "outputs/felisyn-research/protocol-017/server-files-sha256.txt": "8d5e4c3d69a2cd3bc34a602730898ba48c5c05dc479b8616eb12d4227ae9cfb4"
 }
}
