Files
ailed-experiments-rp/AGENTS.md
T
chrnxandClaude Opus 5 0196eab3b9 docs: agent rules scoped to the measurements
The rules here are about not fooling ourselves: report nulls plainly, do not open a new
domain to make a mechanism work, do not tune a baseline until it catches up, keep every
comparison capacity-controlled, pre-register when the result could be argued either way,
and make anything a results file quotes re-runnable from this repo.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KAWnnPg2qvmLNySamE2k85
2026-09-02 13:02:04 -05:00

71 lines
4.2 KiB
Markdown

# experiments — measurement rules
The domain and the runs. This repo produces every number the paper reports, so its rules are
about not fooling ourselves rather than about code style. The library is the sibling `ailed`
repo, installed editable; the design is `AILED_General_Specification.md` in the parent
directory.
## What is in here
| file | responsibility |
|---|---|
| `particles.py` | the domain: particles on a torus whose type-by-type coupling switches unannounced |
| `regime.py` | the conditions, the training loop, and `_metrics` |
| `frozen.py` | frozen-weights probe, the state ablation, the representation probes |
| `ceilings.py` | least-squares information ceilings under four information sets |
| `identify.py` | how much of the hidden variable lives in the past rather than the present |
| `when_memory_works.py` | the pre-registered test of when per-entity state has a job |
| `results/*.md` | **the audit trail the paper cites.** Committed. The `.json` files are not. |
## The rules that matter
- **Report a null plainly.** Every substantive result in this repo so far is a null, and each
one turned out more informative than the positive it replaced. Do not soften a negative, do
not hunt for a configuration that rescues it, and do not defer it by proposing a new domain.
- **Do not open a new domain to make a mechanism work.** That is p-hacking with extra steps
and it generalises to nothing. If a mechanism does not help, measure why on the domain you
have. `results/when_memory_works.md` exists because of this rule.
- **Do not tune a baseline until it catches up.** Raising the learning rate until the
memoryless model matches the gated one changes the question instead of answering it.
Tuning a *mechanism's own* parameters is different and legitimate — `rho_a`/`rho_slow`
belong to affect, so setting them is fair; `lr` belongs to the comparison, so it is not.
- **Every comparison is capacity-controlled.** `rp_only` has 1442 parameters and `grp_k0` has
5602. A number comparing them is confounded 3.9x and is not a memory result. See
`results/frozen.md` §1d, which also records why "capacity" was the wrong word for that
margin in the first place.
- **Pre-register when the result could be argued either way.** State the success criterion,
the seed count, and what counts as failure, in `.sdd/progress.md`, before the run. Then
accept what comes back. No re-running with adjusted criteria.
- **Oracles are opt-in and free.** Enabling one may only add columns to `attrs`. The
trajectory, regime schedule, switch times and noise draws stay byte-identical to the
non-oracle run at the same seed, or a measured difference could come from a different world
rather than from the extra information.
- **Seeds.** Across-seed spread here is comparable to the effects being claimed. Eight seeds
supports a direction; it does not support a ratio. Report per-seed values and the count of
seeds won, not only the ratio of means.
- **Anything a results file quotes must be re-runnable from this repo.** An uncommitted
throwaway driver is not reproducible. `ceilings.py` exists because of this rule; there is a
standing debt where `frozen.md` §1d's width-matched rows still are not.
## Metrics, and what they do not mean
`recovery[k]` **does not measure adaptation.** Under frozen weights a stateless model
reproduces its shape at every lag, because it tracks the world's own post-switch
configuration transient (`frozen.md` §1b). Report it if useful, but never build a claim on
it; the honest observable is a difference between conditions at matched lag.
`run()` refuses `window >= t_min`, because a recovery window that reaches the next switch
silently blends two events into one curve.
## Tests
`uv run pytest -q`. Same rule as the library: a test that cannot fail is worse than no test.
When you add a control, verify it can detect the thing it controls for — the freeze assertion
in `frozen.py` has a test that nudges a weight to prove the assertion fires.
## Conventions
Python ≥3.11, `uv`, PyTorch, pytest. `pythonpath = ["."]`, so modules sit at the repo root.
Runs are cheap — 8000 steps takes seconds. Spend the budget on more seeds, not longer runs.
Commit inside this repo only.