From 7c27f30c29b64509df5891954d1ffec1997f934f Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Wed, 2 Sep 2026 17:01:19 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20task=2011=20checkpoint=20=E2=80=94=20hy?= =?UTF-8?q?pothesis=20(a)=20is=20not=20supported=20either?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The measuring agent died to machine sleep before committing; its work survived and is saved as experiments 6e2e251. Records the two corrections this task makes to earlier results files: the gate's weights did move, and the fifth-of-the-signal figure is linear-probe only. --- .sdd/progress.md | 54 ++++++++++++++++++++++ .sdd/task-11-brief.md | 101 +++++++++++++++++++++++++++++++++++++++++ .sdd/task-11-report.md | 64 ++++++++++++++++++++++++++ 3 files changed, 219 insertions(+) create mode 100644 .sdd/task-11-brief.md create mode 100644 .sdd/task-11-report.md diff --git a/.sdd/progress.md b/.sdd/progress.md index 761d762..fb4db86 100644 --- a/.sdd/progress.md +++ b/.sdd/progress.md @@ -534,3 +534,57 @@ Task 10 (pooled-M probe): DONE, commit b9b7929. CLEAN NULL — hypothesis (b) is would have been motivated by (b) and is now unmotivated. (a) credit assignment is the only remaining suspect, and frozen.md already supplies its mechanism (gate at 0.500 +/- 0.029, untrained) and why it had no job (post-switch error is the world's configuration transient). + +PUSH PENDING (2026-09-02): Diego is away from home, so the Gitea host is unreachable — it is + on his home network. Do NOT attempt pushes or any tea command until he says so. + Unpushed at this point: docs 2 commits (ceed1af, 77fed7d), experiments 3 commits + (23058c6 + the Task 10 work b9b7929 + the rules commit). ailed and paper are up to date. + When he asks, from ia-stuff/: + git push origin main && git -C experiments push origin main + +SCOPING DECISION (Diego, 2026-09-02): Task 11 is the LAST experiment on the memory line, + positive or negative. After it the project either gives per-entity memory more push through + the other organism modules (spec §6: Metabolism, Reflexes S1/S2, the Instinct/EQ policy + readout — all defined, none built), or drops the GRP and proceeds with the RP alone. + Task 11's write-up must therefore carry the consequence of each outcome for keeping vs + dropping memory, not only the verdict on hypothesis (a). Sent to the running task. + Worth holding on to for that decision: dropping the GRP does not drop the paper. The novel + contribution is the RP — relational structure with CPPN-generated weights from geometry + rather than a lookup. And claim A2 (the CPPN kernel taking psi as input) does NOT route + through memory at any point, so nothing measured in headroom.md, frozen.md, + when_memory_works.md, a1.md or pooled.md bears on it. A2 has never been run and is the only + spec claim untouched by the memory nulls. "Use the RP" is a different paper still standing — + relational perceptron with affective topology, no memory, plus four well-measured nulls + explaining why memory is not there. + +Task 11 (credit-assignment ceiling): measured, commit 6e2e251. The agent was killed by machine + sleep before committing; everything survived on disk and the controller committed it, JSON + force-added past .gitignore. Checkpoint report at .sdd/task-11-report.md. 78 tests pass. + HYPOTHESIS (a) IS NOT SUPPORTED. Both candidate explanations are now dead. + Part A: the gradient reaching the gate is COHERENT, not cancelling — 0.202 against its own + measured sign-flip null of 0.163, above null on 14/16 seeds, paired se 0.009. And the + TEMPORAL PATH IS THE LARGER TERM: 1.187x the per-step one, 0.587 of the gate's gradient + arrives through the BPTT window, where (a) predicted negligible. out.weight's temporal term + is exactly 0.000 on every seed — the structural control that the split is real. + Part B: OUTCOME 3 — M cannot hold the regime even under direct supervision, at any lambda from + 1e-5 to 1.0, including where the aux term is 5.8e4x the main loss and degrades the task 5.9x. + Positive control installs the entity TYPE at 0.738 vs chance 0.333 through the same head, + optimiser, seeds and probe. The instrument works; the state can hold per-entity properties; + it cannot hold this one. Side effect worth noting: type supervision raised the REGIME decode + by +0.073 on 14/16 seeds — the control that had no business moving that number is the only + thing that moved it. + So the conclusion is neither credit nor shape: THE STATE UPDATE CANNOT REPRESENT THIS VARIABLE. + TWO CORRECTIONS TO EARLIER FILES, not yet applied to them: + (1) "The weights did not move" is FALSE and frozen.md §3 and a1.md both lean on it. The + gate's weights moved 26.8% of their initial norm, MORE than any other block. What did + not move is the FUNCTION — the displacement stayed inside the sigmoid's linear band + (g = 0.5008 +/- 0.0270 trained vs 0.5009 +/- 0.0203 at init). Also: do not lead with the + 887x gradient-magnitude gap, because Adam is scale-invariant and the per-coordinate SNR + is comparable (gate 0.066, cand 0.070, out 0.079). The agent caught itself about to + report the magnitude as the story — the best methodological moment in the task. + (2) "The organism holds a fifth of the available signal" is a LINEAR-PROBE figure. An MLP + probe reads +0.159 from M where linear reads +0.064, and +0.234 from h. The relative + claim survives (M holds less than the h it is built from) but the absolute number needs + the qualifier in when_memory_works.md and frozen.md. + INCOMPLETE: the MLP-head version of Part B reached ~10 of 16 runs per shard. §2d reports it as + incomplete and the verdict is stated on the linear head alone. Command in §2d. diff --git a/.sdd/task-11-brief.md b/.sdd/task-11-brief.md new file mode 100644 index 0000000..212ad3c --- /dev/null +++ b/.sdd/task-11-brief.md @@ -0,0 +1,101 @@ +# Task 11: the ceiling on hypothesis (a), credit assignment + +Hypothesis (b) — the hidden variable is global and the state is per-entity — is measured dead +(`results/pooled.md`). The regime information is not distributed across the sixteen states; it +is absent from them. Hypothesis (a) is what remains: + +> Nothing in the training signal rewards carrying the regime forward, so the state never learns +> to hold it. + +This task measures the ceiling on that, before anything is built. It follows the project's +standing methodology: a mechanism ships with an oracle that is *given* what the mechanism is +supposed to infer, and if the oracle does not pay, the mechanism has no job. + +**This is a knowledge task, not a repair task.** You are not fixing the GRP. Direct supervision +is used here as a measuring instrument — an oracle on the state — not as a proposed +architecture. Do not recommend one. + +## What is already established, so you do not re-derive it + +- The gate sits at `g = 0.500 ± 0.029` with zero saturation on every seed, and its *learned* + pre-activation `W_g[h‖M] + b_g` is unchanged across a 16-fold range of `kappa` + (`frozen.md` §3, `a1.md`). Gradient does not move it. +- Trained stateless, the M-halves of `gate.weight` and `cand.weight` are **bit-identical to + initialisation** — 2048 parameters that never receive gradient at all (`frozen.md` §1d). +- The regime is identifiable from one observed displacement at 0.958; `M` decodes it at 0.332, + no better than the memoryless `h` at 0.342 (`when_memory_works.md` §2, `frozen.md` Part B). +- Knowing the regime is worth 1.54x within the linearised family (`ceilings.py`, D→C). +- Post-switch error is dominated by the world's own configuration transient, which no state + can shorten (`frozen.md` §1b). + +## Part A — is there a gradient signal at all, or is it cancelling? + +Two very different failures look identical from "the weights did not move": + +- **absent** — the gradient reaching the gate is ~0, so no signal exists +- **cancelling** — the gradient is substantial per step but averages to nothing across the + batch or across time, so signal exists but is inconsistent + +Measure, over training, for `grp.gate.weight` and `grp.cand.weight`: + +- the norm of the accumulated gradient at each optimiser step, against the same for + `rp.feat.weight` and `out.weight` as reference blocks +- the norm of the *mean* gradient against the mean of the *per-step norms*. If the ratio is + near 1 the signal is coherent; if it is near 0 the signal cancels. This ratio is the whole + of Part A. +- the same split for the **temporal path specifically**: compare the gradient the gate + receives when `M` is carried across the truncated-BPTT window against the gradient it + receives when `M` is detached every step. The difference is the credit that flows through + time, and hypothesis (a) predicts it is negligible next to the per-step term. + +Report magnitudes, not just ratios, so a reader can see whether "negligible" means 10x or +10⁶x smaller. + +## Part B — the ceiling: if the state were told, could it hold it, and would it matter? + +Add an auxiliary loss that supervises `M` to predict the current regime — a linear head from +`M_i` to the regime id, trained jointly, weighted by `lambda`. Sweep `lambda` over at least +`{0, 0.01, 0.1, 1.0}`, at least 12 seeds given what Task 10 showed about seed counts. + +Report three things, and treat all three as the deliverable: + +1. **Can it?** The regime decoded from `M` at each `lambda`, against the measured chance level + and against the 0.958 an exact decoder gets from one observed displacement. This says + whether the state update is expressive enough to hold the regime at all. +2. **Does the task improve when it does?** Main-task `steady` at each `lambda`, paired per + seed against `lambda = 0`, with the count of seeds won and a paired standard error. +3. **The joint reading.** Cross the two. + +The three outcomes and what each means — write your verdict against these: + +| outcome | what it establishes | +|---|---| +| `M` holds the regime **and** the task improves | credit assignment is the blocker, and the prize is measured | +| `M` holds the regime **and** the task does not improve | the regime is not useful to this architecture's prediction — a larger finding that closes the line | +| `M` cannot hold it even under direct supervision | the state update is not expressive enough; a different problem from credit assignment | + +None of these is good or bad news. Say which one the numbers give. + +## Requirements + +- Use `frozen.py`'s verified training loop; do not write another copy. The auxiliary head and + its loss are the only additions. +- Do not modify `../ailed`. If the auxiliary head needs access the library does not expose, + build it in the experiment from `org.grp` and `org.rp`, which are public. +- Do not change any default in `particles.py` or `regime.py`. +- Chance levels measured, never assumed — both the shuffle and the block-preserving shift, as + `frozen.py` does. +- At least 12 seeds. Report per-seed values, seeds won, and a paired standard error. If an + effect sits inside one se of zero, say it is ambiguous rather than reading its sign. +- **A null needs a positive control.** If Part B reports that `M` cannot hold the regime, show + the same head recovering a signal you *know* is in `M` — the entity's own type, say — or the + result cannot be told apart from a broken head. + +## Deliverable + +`experiments/results/credit.md`: Part A's coherence and temporal-path numbers, Part B's three +readings, and a plain verdict naming which of the three outcomes holds. Commit with whatever +code you added, inside `experiments/`. No co-authoring or session trailer. + +**Do not push, and do not run any `tea` command.** The Gitea host is unreachable and the owner +has asked that it not be attempted. Commit locally only. diff --git a/.sdd/task-11-report.md b/.sdd/task-11-report.md new file mode 100644 index 0000000..6a270fd --- /dev/null +++ b/.sdd/task-11-report.md @@ -0,0 +1,64 @@ +# Task 11 report — CHECKPOINT, written by the controller after the agent died + +The measuring agent was killed by machine sleep before it could commit or write this file. +Everything it produced survived on disk and is now committed as `6e2e251` in `experiments/`, +including the JSON force-added past `.gitignore`. Nothing needs re-running except the one +control named below. + +## Status + +| part | state | +|---|---| +| Part A — is there a gradient signal, or is it cancelling | **complete**, 16 seeds | +| Part B — the ceiling under direct supervision, linear head | **complete**, 7 lambdas x 16 seeds, plus the positive control | +| Part B — the same with an MLP head and MLP probe | **incomplete**, ~10 of 16 runs per shard | + +`results/credit.md` §2d states the incomplete control honestly, reports what was observed +without relying on it, and the §3 verdict is stated on the linear head alone with that +limitation carried explicitly. There are no placeholders in the file. + +## Results on disk + +- `experiments/credit.py`, `experiments/tests/test_credit.py` — the measurement and its pins +- `experiments/results/credit.md` — the write-up +- `experiments/results/credit_grad.json` — Part A, 16 seeds +- `experiments/results/credit_aux_regime.json`, `credit_aux_type.json` — Part B, 112 runs each +- `experiments/results/credit_traj.json` — the per-1000-step traces on 4 seeds + +78 tests pass. + +## What remains + +Finish the MLP control: Part B re-run with a 2x128 ReLU auxiliary head and a 2x128 +frozen-phase probe, at `lambda in {0, 0.01, 0.1, 1.0}` over the same 16 seeds. `credit.md` +§2d records the command. Expected to leave the verdict standing — the MLP head's own +accuracy sat at 0.21-0.31 against a chance of 0.25 in the partial run, the same flat reading +the linear head gave — but it is not measured and must not be reported as if it were. + +## Headline + +**Hypothesis (a) is not supported.** The gradient reaching the gate is coherent rather than +cancelling (0.202 against a measured null of 0.163, 14/16 seeds), and the temporal path is +the larger of the two terms (1.187x the per-step one; 0.587 of the gate's gradient arrives +through the BPTT window) where (a) predicted it would be negligible. + +**Part B gives outcome 3:** `M` cannot hold the regime even under direct supervision, at any +lambda from 1e-5 to 1.0, including where the auxiliary term is 5.8e4 times the main loss and +degrades the task 5.9x. The positive control installs the entity *type* through the same +head at 0.738 against chance 0.333, so the instrument works and the state can hold per-entity +properties. It cannot hold this one. + +## Two corrections this task makes to earlier files + +1. **"The weights did not move" is false**, and `frozen.md` §3 and `a1.md` both lean on it. + The gate's weights moved 26.8% of their initial norm, more than any other block. What did + not move is the *function*: the displacement stayed inside the sigmoid's linear band, so + `g` reads 0.5008 +/- 0.0270 trained against 0.5009 +/- 0.0203 at initialisation. Those two + files need the distinction, and the 887x gradient-magnitude gap should not be led with, + because Adam is scale-invariant and the per-coordinate SNR is comparable across blocks + (gate 0.066, cand 0.070, out 0.079). +2. **"The organism holds a fifth of the available signal" is a linear-probe figure.** An MLP + probe reads the regime from `M` at a gap of +0.159 where the linear probe reads +0.064, + and from the memoryless `h` at +0.234. The relative claim is unchanged — `M` still holds + less than the `h` it is built from — but the absolute number needs the qualifier wherever + `when_memory_works.md` and `frozen.md` state it.