# Task 7: Verify the oracle is read and the setup has headroom ## Global constraints - Root `ia-stuff/` is **not** a git repo; `ailed/`, `experiments/`, `paper/` each are. Commit inside the repo you touched. - No hand-written backward passes. Autograd only (spec §1, §11). - $\psi$ never carries gradient: it is built from `loss.item()` (spec §5). - Every oracle is opt-in and must leave the non-oracle trajectory byte-identical (spec §7). - $\kappa = 0$ must be a single flag that disables affect on the gate (spec §4). - Affect axes are read by name (`valence`, `arousal`), never by position, outside `Organism.forward` (spec §5). - Commit messages carry **no** co-authoring or session trailer. This is the spec's "measure before chasing" rule (§7, §8). Nothing in A1 means anything until these two numbers are in. **Files:** - Create: `experiments/results/headroom.md` - [ ] **Step 1: Run the two ceilings and the two floors, one seed, short** ```bash cd experiments && uv run python regime.py --conditions rp_only,grp_k0,grp_regime,rp_flag --seeds 0 --steps 8000 --out results/headroom.json ``` - [ ] **Step 2: Read the table against these three requirements** 1. `grp_regime` steady error must sit near the noise floor `noise² = 4e-6` (within ~3x). If it does not, the regime oracle is not being read: check `attr_dim` reaches `Organism` and that `omega` lets the CPPN represent the kernel (try `omega` 5 and 20 by editing the `Organism` call in `run`; keep the winner and record it). 2. `grp_k0` must beat `rp_only` on `steady` and on `rec@10`. If not, memory has no job in this setup: raise `sigma` to 0.3 or lower `noise`, re-run, record. 3. `rp_flag` must equal `rp_only` within seed noise on every column. If it does not, the flag leaks something other than "a change happened"; stop and investigate before A1. - [ ] **Step 3: Write `results/headroom.md`** Record the table verbatim, which of the three requirements held, and any knob changed with its before/after value. This file is the audit trail for the paper's setup section. - [ ] **Step 4: Commit** ```bash cd experiments && git add results/headroom.md && git commit -q -m "exp: headroom check for the regime setup ```