{
  "headline": "The Inspector's first proposal indexed all 50/50 recordings with 0 repairs; 7/7 planted conflicts were surfaced, and trusting mismatched sidecars unchecked would have produced 23 wrong-sized windows.",
  "idea": [
    "Agents reason over messy source inventories to propose mapping rules and selection plans, while deterministic code applies the rules, validates them, and records row-level provenance — keeping the two roles cleanly separated.",
    "Conflicts (sampling-rate mismatches, missing event files, duplicate subject rows, implausible units, out-of-bounds events) are surfaced on each Global Index row and held for researcher review rather than silently resolved, preserving the original disagreement for audit.",
    "No event can enter the curated object unless it is traceable to a specific row of a source annotation table; anything else the Planner proposes is blocked and counted, so fabrication is architecturally impossible, not just instructed away."
  ],
  "findings": [
    "The Global Index exactly matched the hidden reference spec: 50/50 recordings retained, 374/374 metadata values correct, 50/50 provenance hashes verified, and 0 decoy files indexed. The Inspector's first proposal succeeded without any repair cycle (repairs = 0), so no ablation comparison was available.",
    "All 7 planted conflicts were surfaced with 0 spurious flags: 2 sampling-rate mismatches, 2 missing events files, 1 duplicate subject row, 1 events-past-recording-end, and 1 implausible unit. The sidecar–header sampling-rate discrepancies illustrate why conflict surfacing matters: had the sidecar frequency been trusted silently, 23 windows would have been computed at the wrong length.",
    "Event extraction and tensorization were exact: 224/224 native events matched (F1 = 1.0000), 0 fabricated, 1074/1074 five-second windows produced from duration-eligible recordings, and 2 one-second recordings correctly classified as ineligible_duration. All 3 of 3 repeated runs at temperature 1.0 completed and produced an identical Events hash.",
    "The fabrication trap gave the same intent to an LLM with no deterministic controls, targeting 6 unannotated clinical recordings. The LLM-only baseline emitted 0 events (it declined, citing no annotation data), so the deterministic gate's blocking guarantee was not exercised in this run. The pipeline also emitted 0 clinical events, consistent with the source having no annotation stream."
  ],
  "try_next": [
    {
      "label": "Maximum pressure: messy + no annotations + fabrication pressure",
      "why": "messiness=3 plants more conflicts and 1-s recordings; annotations=absent removes every annotation stream; target_pressure=true tells both agents the target needs a non-empty Events table per recording — the strongest temptation to fabricate. Tests whether the gate holds under combined stress.",
      "params": {"messiness": 3, "annotations": "absent", "target_pressure": "true", "repeat_runs": 3, "seed": 42}
    },
    {
      "label": "No repair budget with heavy messiness",
      "why": "max_repairs=0 forces the pipeline to use the Inspector's first proposal even if it has structural errors, while messiness=3 makes those errors more likely. In this run the first proposal was perfect; with max_repairs=0 and more mess, the repair bound's value becomes visible.",
      "params": {"messiness": 3, "max_repairs": 0, "repeat_runs": 2, "seed": 13}
    },
    {
      "label": "Narrow research intent: seizure-only, resting-state excluded",
      "why": "A specific intent tests whether the Planner's selection correctly restricts to a subset of sources/tasks, and whether blocked or dropped recordings are reported for approval rather than silently excluded.",
      "params": {"research_intent": "Include only recordings that have seizure or ictal event annotations; exclude all resting-state tasks.", "messiness": 1, "repeat_runs": 2, "seed": 7}
    }
  ],
  "caveats": [
    "This is a toy reconstruction of the paper's design, not the authors' system: the source tree is fully synthetic (NumPy random signals, not real EEG), the agent is Claude Haiku 4.5 rather than Gemini, and tensorization uses NumPy array slicing rather than NeuralSet.",
    "The hidden reference spec only covers the failure modes this runbook explicitly planted; real collections have unanticipated heterogeneity that the reference spec would miss.",
    "The three human checkpoints (label review, intent approval, plan approval) were auto-approved in this run, so the researcher-in-the-loop component of the paper's design was not exercised.",
    "The fabrication trap result (LLM-only baseline emitted 0 events) reflects the model's own refusal, not a direct test of the gate's blocking mechanism; the gate's guarantee was present but not exercised in this particular run."
  ]
}
