docs: design, plan, and the execution record

The thinking behind the organism, versioned alongside the three code repos rather than
living only on one machine.

- AILED_General_Specification.md, the authoritative design, and the implementation plan
  the code was built from
- AGENTS.md, the project-wide rules, including the two that were learned the hard way:
  this is not a performance benchmark, and a null recorded early beats a claim propped up
  later
- the nine superseded module specs, each carrying a banner naming what replaced it
- .sdd/, the execution ledger and every task brief and report: each ruling taken, what it
  would cost if wrong, every correction, and every number verified independently

The three code repos are siblings, each its own repository, and are git-ignored here so
nothing is nested.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KAWnnPg2qvmLNySamE2k85
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-09-02 13:17:39 -05:00
commit 8ed2944518
47 files changed
+7498

No files matched your search

+107
View File
@@ -0,0 +1,107 @@
# Task 9: When does per-entity memory have a job? — pre-registered
This brief replaces the implementation plan's Task 9 (claim A2), which is deferred.
## The framing that produced this task
The project has been drifting toward a failure mode worth naming: when memory does not
help, the reflex is to reach for a different domain. Opening domains until one makes the
mechanism work is p-hacking with extra steps, and it produces a result that generalises to
nothing. The question is not *where does the GRP win*. It is:
> **What condition must a domain satisfy for per-entity state to have a job — and can we
> measure that condition on a candidate domain before building anything on it?**
Answering that turns "try another domain" into a prediction you can be wrong about.
## The theory being tested
Per-entity memory can only help when the optimal predictor depends on something absent from
the current observation. Three quantities decide it, all measurable:
| symbol | meaning | status here |
|---|---|---|
| `G` | information gap: `error(best given x_t) / error(best given x_t, z_t)` | measured, 1.54x (`ceilings.py`, D/C) |
| `T_id` | identification time: steps of history an *optimal* decoder needs to pin down `z` | **never measured — this task measures it** |
| `T_z` | persistence: how long `z` lasts | 40–80 steps by construction |
**Condition:** memory has a job when `T_id << T_z` and `G` is materially above 1.
**Prediction:** state gain against regime duration is *peaked*. Useless when `T_z < T_id` —
the regime changes before it can be identified. Useless when `T_z >> T_id` — the world is
effectively stationary and the weights learn it. Positive in between.
This is falsifiable. If no duration produces a peak, the theory is wrong and per-entity
state does not have a job in this class of domain, which is itself a real result that
closes the question rather than deferring it.
## Pre-registration
These criteria were fixed before any run and are recorded in `.sdd/progress.md`. Whatever
comes back is accepted. Do not re-run any part with adjusted criteria, and do not add a
condition mid-analysis to rescue an outcome.
## Part 1 — affect timing, the last legitimate shot at A1
`rho_a` and `rho_slow` are the affect mechanism's own time constants and have never been
set. Tuning them is tuning the mechanism, not tuning a baseline to lose. Task 8 measured the
problem: arousal peaks about 12 steps after a switch and is *lower* at the switch step
(0.061) than far from one (0.106), because `Affect.update` compares the loss to the slow
baseline, which takes time to separate.
Sweep `rho_a` and `rho_slow` (and `rho_fast` if it matters) to make arousal rise *at* the
switch rather than twelve steps later. Report the arousal-vs-lag profile for each setting so
the timing is visible, then run `grp_k` against `grp_k0` at the best-timed setting.
**SUCCESS** = arousal's peak moves to within 3 steps of the switch **and** the paired
`grp_k0 / grp_k` steady ratio exceeds 1.10 on at least 12 of 16 seeds.
**FAILURE** = anything else. Note that "timing fixed but error unmoved" is the *informative*
failure: it says the mechanism works, is correctly timed, and the domain gives it nothing.
Changing `AffectConfig`'s defaults is out of scope — pass the values as arguments. If the
library cannot express what you need, say so rather than editing `../ailed`.
## Part 2 — measure `T_id`
This is the important part and it is a property of the **domain**, not of our architecture.
Nothing here involves the organism.
Fit the best available decoder of the current regime from a *window* of `L` consecutive
observations, for `L in {1, 2, 3, 5, 10, 20, 40}`. Use whatever features an optimal observer
would have: positions, the coordinate differences, and the *observed displacements* across
the window — a real observer watching the world does see how things moved, even though our
predictor is asked to guess it. Report accuracy against a measured chance level, as
`frozen.py` did, and find where accuracy saturates. That saturation point is `T_id`.
Be explicit about which decoder you used and why it is a fair stand-in for "optimal". A
linear probe underestimates `T_id`'s usefulness; if a linear probe saturates early, that is
strong evidence. If it never rises, try something with more capacity before concluding the
regime is unidentifiable, and say which you used.
**The reading:**
- `T_id > T_z` — the null is completely explained. No architecture change rescues this
domain, because the regime cannot be known before it changes.
- `T_id << T_z` — the domain *can* reward memory, and the failure is ours rather than the
domain's. That points at the architecture or the training signal, and it is a much more
uncomfortable and more useful result.
## Part 3 — the falsifiable test
Sweep the regime duration by varying `t_min`/`t_max` over roughly
`{10–20, 40–80, 150–300, 600–1200, frozen}`, and at each measure the **capacity-controlled**
state gain `grp_k0_nostate / grp_k0`, at least 8 seeds, paired per seed with the count of
seeds won. `frozen.py` implements the state ablation; reuse it.
Plot or tabulate state gain against duration and say plainly whether the predicted peak
exists, where it is, and whether its location agrees with the `T_id` measured in Part 2.
Vary the duration by passing config values, not by editing `ParticleConfig`'s defaults.
## Deliverable
`experiments/results/when_memory_works.md`: the three parts, the pre-registered criteria
restated with the verdict against each, and a plain answer to the question in the title —
including "the theory is wrong" if that is what the numbers say.
Commit it with whatever code you added, inside `experiments/`.