interplane.Get Omega
Read in your language

aien-train

AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.

Brought by drakestapleton

GitHub aien-dev/aien-train#22 (code only)

closed derived c7a79d9c4f8a938a #22

Imported from GitHub aien-dev/aien-train#22 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 352fdaeb678ee8ee20b7da3ad8dd4c7986caa08f · Head ba56324f434688e9034d4f17b6f0b9ce8feda1cc

Fetch it

A git bundle of the pull request's head, 29835 bytes.

curl -fsSL https://interplane.io/drakestapleton/aien-train/patches/c7a79d9c4f8a938a.bundle -o c7a79d9c4f8a938a.bundle
git fetch c7a79d9c4f8a938a.bundle refs/pull/22/head

Raw bundle · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aien-train
22
ba56324f434688e9034d4f17b6f0b9ce8feda1cc
{"kind":"github-import","owner":"aien-dev","repo":"aien-train","number":22,"url":"https://github.com/aien-dev/aien-train/pull/22","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:32Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/docs/si19/CONTRACT.md b/docs/si19/CONTRACT.md
new file mode 100644
index 0000000..4b722ab
--- /dev/null
+++ b/docs/si19/CONTRACT.md
@@ -0,0 +1,113 @@
+# aien-train#19 offline experiential world model (host, standalone)
+
+This is an offline standalone experiment for aien-train#19. It is not M23/M24
+(AIEN_0) qualification, not an EST-4+ estimator and not a production input.
+EST-3 is FAILED on architecture main, so this module stays outside any runtime,
+default build or test target, like the `src/estimation` pattern
+(CURRENT_EXECUTION_PLAN Lane 7). M20-M22 remain NOT QUALIFIED. This module adds no
+new tensor, autodiff or optimizer. It is a consumer of the aien-train#15
+native step, merged on main as c9782bfd, and any T2 result inherits that status. No sealed G3 holdout exists
+(sealing is BLOCKED_OPERATOR), so the held-out numbers here are development
+results, not sealed results.
+
+## Data source
+`native/si19/fixture.om` is a FIXTURE. It is a seeded, resettable micro-world
+that stands in for Omega X1 `ExperienceTransition` (omega-mv#699, not on main).
+Transitions come from executing fixed dynamics. No model, teacher, corpus or
+self-distillation produces them:
+
+- observation: p in -12..12, v in -3..3; action u in {-1,0,1};
+- dynamics: p2 = p + v and v2 = v + gain*u + gust, where gust is -1 or +1 with
+  probability 1/8 each;
+- env A has gain +1 and env B has gain -1 (reversed action);
+- a transition is terminal when it leaves the bounds or reaches step 7. A terminal
+  record keeps its true successor, and the next record starts from a fresh reset;
+- the behaviour policy is seeded uniform random;
+- training resets p into -12..-4.
+
+## Model and trainer (`native/si19/world.om`)
+- The model is an affine map (p,v,u) -> (p2,v2) with W[3,2] and b[2], 8 binary32
+  parameters, randomly initialized from a seed in {-4..3}/16. There is no prior.
+- Each update is one call to the pinned `afstep` (`docs/si19/dependencies.json`):
+  L720 add32/mul32 forward, sum-squared loss, the explicit gradient and SGD with
+  lr = 2^-9. Each batch has two experiences.
+- Bounded replay keeps two rings of 64 experience ids. There are 4 updates per
+  admitted experience.
+- Arms:
+  - M is trained on A, then on B with one A-replay sample per batch;
+  - N is a copy of M after A, then trained on B only;
+  - S is the shuffled-experience control: same ring and schedule, but each row's
+    inputs and outcome come from independently drawn experiences;
+  - MA and INIT are frozen snapshots.
+- Lineage: per arm, `WS` counts how many applied batches used each experience
+  id. `wsaffect arm id` answers "did id contribute?" for #20. The counts are
+  saved in the checkpoint.
+- All resumable state is in WS, TL (the experience log) and FS (fixture
+  streams). The checkpoint is a 51752-byte image: magic, version, cell count,
+  event, the state, then FNV-1a 64. FNV-1a detects damage but does not
+  authenticate. Admission checks length, magic, version, size, checksum and
+  semantics (event range, ring counts, update count, finite parameters, ring
+  ids, encoded ranges) before it replaces any state.
+
+## Evaluation
+For each environment, a separate seed and a wide reset region generate 128
+held-out transitions. Every held-out (p,v,u) key is absent from that
+environment's training experience, and held-out ids sit outside the training id
+range. The metric is mean squared error over (p2,v2), computed in binary32.
+
+The model is compared with these baselines:
+
+- persistence rule;
+- constant-velocity rule;
+- frequency mode (exact key, falling back to the per-action modal delta);
+- nearest-neighbour retrieval, both raw and delta-transfer;
+- the shuffled control;
+- the init model.
+
+The true-mean-dynamics predictor is shown only as a noise-floor reference (it
+uses hidden fixture knowledge). Forgetting is measured as error on held-out A
+after B, with and without replay.
+
+## Build and run
+`sh tests/si19/run.sh` is disclosed POSIX host glue, kept as the replay
+runner. It holds no training, check or verdict logic; all of that is in the .om
+units. Its Omega replacement path is an OM2 conductor in .om that performs the
+same materialize, hash, build, run and compare steps, as the #14-#16 contracts
+do with runner recipes; until that lands the script stays disclosed host glue.
+It does the following:
+
+1. Materializes the four pinned sources from Git objects and checks their
+   SHA-256 values (`docs/si19/deps.sha256`).
+2. Checks the compiler hash.
+3. Builds `world-test` and the `world` driver with `quiet-build`.
+4. Runs the tests.
+5. Runs an uninterrupted job, then stops at events 100 and 300, resumes each in a
+   new process and requires the final images and reports to be byte-identical.
+6. Requires refusal of damaged and truncated images.
+7. Runs six fault-injected units. Each must compile and fail the unchanged test.
+
+Results go to `evidence/SI19/run/`. ELF files and images stay in a temporary
+build directory.
+
+`tests/si19/world-test.om` contains:
+
+- an exact integer golden oracle for two real trainer updates (forward, loss,
+  dW, db and the committed parameters);
+- a forward-only consistency check;
+- fixture determinism, seed sensitivity and transition-boundary checks;
+- exact lineage counts and the shuffle wiring;
+- held-out key and id separation;
+- in-process restart at 10 cut points;
+- checkpoint refusals that leave state unchanged.
+
+## Not covered
+The following remain outside this module:
+
+- calibration and uncertainty outputs;
+- curiosity and active experiments;
+- consent and revocation enforcement (#20, Open Humanity);
+- Cortex/X1 records;
+- sealed evaluation;
+- GPU or simulator execution;
+- a pretrained-adviser comparison;
+- energy measurement.
diff --git a/docs/si19/dependencies.json b/docs/si19/dependencies.json
new file mode 100644
index 0000000..9d1dfb6
--- /dev/null
+++ b/docs/si19/dependencies.json
@@ -0,0 +1,46 @@
+{
+  "schema": "si19-external-source-v1",
+  "compiler": {
+    "source_repository": "aien-dev/omega-bridge",
+    "source_commit": "0fc7d8662cb799e7c206b17c18ea4c3ec2b8fea9",
+    "binary_sha256": "191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9",
+    "target": "aarch64-linux-static-elf"
+  },
+  "dependencies": [
+    {
+      "repository": "aien-dev/omega-bridge",
+      "commit": "7e1d0d61755ec1a0bbf20941a18379861b5b9d0d",
+      "path": "native/ref32/add32.om",
+      "sha256": "1de23561202b284e74690034cb07741ebcf9870bc464550b8382c85410478e95",
+      "owner": "L720",
+      "license": "AGPL-3.0-only"
+    },
+    {
+      "repository": "aien-dev/omega-bridge",
+      "commit": "7e1d0d61755ec1a0bbf20941a18379861b5b9d0d",
+      "path": "native/ref32/mul32.om",
+      "sha256": "9027090109e2050046c4b71fa51438c97ad94c23626c2ecc277844996b79c22e",
+      "owner": "L720",
+      "license": "AGPL-3.0-only"
+    },
+    {
+      "repository": "aien-dev/omega-mv",
+      "commit": "3a995ba8dace538c1532c747d829ca6e4a73582d",
+      "path": "native/ecosystem663/metadata.om",
+      "sha256": "f60b6d62c1bf90de42455effae977de66adeca1268669f6144809a3327aec7a4",
+      "owner": "L787",
+      "license": "repository AGPL-3.0 license"
+    },
+    {
+      "repository": "aien-dev/aien-train",
+      "commit": "c9782bfdcf1885082d1fa6c483473f2a514096ad",
+      "path": "native/ecosystem6/affine.om",
+      "sha256": "a3eb5b4a0a94adab8e0a2cfbe154280034d1da26bd9f3123fcd524636583af97",
+      "owner": "aien-train#6 native affine step",
+      "license": "AGPL-3.0-only"
+    }
+  ],
+  "product_claim": "offline standalone host experiment for aien-train#19 only",
+  "new_foreign_implementation": false,
+  "gpu_or_simulator_execution": false
+}
diff --git a/docs/si19/deps.sha256 b/docs/si19/deps.sha256
new file mode 100644
index 0000000..65bebee
--- /dev/null
+++ b/docs/si19/deps.sha256
@@ -0,0 +1,4 @@
+1de23561202b284e74690034cb07741ebcf9870bc464550b8382c85410478e95  add32.om
+9027090109e2050046c4b71fa51438c97ad94c23626c2ecc277844996b79c22e  mul32.om
+f60b6d62c1bf90de42455effae977de66adeca1268669f6144809a3327aec7a4  metadata.om
+a3eb5b4a0a94adab8e0a2cfbe154280034d1da26bd9f3123fcd524636583af97  affine.om
diff --git a/evidence/SI19/README.md b/evidence/SI19/README.md
new file mode 100644
index 0000000..496495e
--- /dev/null
+++ b/evidence/SI19/README.md
@@ -0,0 +1,66 @@
+# aien-train#19 host evidence (offline standalone)
+
+Source commit: `d1f7afcc67ec6cef33302d241bece90bdbbd49fb`. Base: train main `ed8b6ea`.
+Host: Linux 7.0.0-1019-nvidia aarch64, CPU only. No GPU or simulator ran.
+Command: `sh tests/si19/run.sh`. Raw outputs are in `run/` and sealed by
+`run/raw.sha256`. `run/build.sha256` lists the ELF, unit and image hashes. The
+build files themselves stay in a temporary directory and are not committed.
+Wolfram checks of the accounting and exact decodes of every reported metric are
+in `wolfram.txt`.
+
+## Results (run/uninterrupted.stdout)
+- **Training.** 512 admitted fixture experiences (256 env A, then 256 env B)
+  drove 4096 real `afstep` updates: 2048 on M, 1024 on S and 1024 on N.
+- **Parameters.** All 8 parameters changed from the seeded init in both MA and
+  final M. After A, the model is close to the env-A dynamics, which it never
+  saw as rules: W_p->p2 1.00026, W_v->p2 0.99973, W_v->v2 0.96362,
+  W_u->v2 0.93549 (true values 1, 1, 1, 1).
+- **Held-out A** (128 transitions; none of their (p,v,u) keys appear in
+  training). Mean squared error over (p2, v2):
+
+| predictor | MSE |
+|---|---|
+| model M after A | 0.443491 |
+| rules: constant velocity | 1.023438 |
+| rules: persistence | 3.984375 |
+| frequency mode | 4.476563 |
+| nearest-neighbour delta | 5.734375 |
+| nearest-neighbour | 11.96875 |
+| shuffled-experience control | 79.44 |
+| init model | 88.99 |
+| reference: true mean dynamics (noise floor, not a baseline) | 0.28125 |
+
+  The model beats every baseline here. It stays above the noise floor.
+- **Forgetting on held-out A.** Error was 0.4435 after A. After training on B
+  (reversed action) it rises to 1.2529 with bounded A replay and to 3.1193
+  without replay. Replay reduces forgetting but does not remove it. One affine
+  map cannot represent both action signs; that is a capacity conflict, reported
+  as is.
+- **Held-out B.**
+  - N (B only): 0.2335, close to the floor of 0.2031.
+  - M with A replay: 0.8659. This **loses** narrowly to the constant-velocity
+    rule (0.8594).
+  - MA (trained on A only): 2.7072.
+- **Learning curve** (held-out A MSE against experiences: 32, 64, ..., 256):
+  1.438, 0.543, 0.423, 0.455, 0.323, 0.353, 0.338, 0.443. The curve is
+  non-monotone because SGD runs at a constant step size.
+- **Restart.** Runs stopped at event 100 and at event 300 were resumed in a new
+  process. Both final 51752-byte images are byte-identical to the uninterrupted
+  run (FNV-1a 13533758852048430492), and so are the reports. A damaged image is
+  refused (status -5, exit 65), and so is a truncated one (-1).
+- **Tests.** `SI19_WORLD_TEST_PASS checks=644630`, including the exact golden
+  oracle for two real updates. All six fault-injected units compiled and then
+  failed the unchanged test.
+- **Cost on this host.** The full driver took 0.01 s wall and 0.01 s user with
+  320 KiB max RSS. The test took 0.13 s with 320 KiB. These are host timings
+  only: no energy was measured, nothing ran on a GPU, and no speed claim is made.
+
+## Status boundaries
+- The data is a seeded FIXTURE, not Omega X1/Cortex experience.
+- The held-out sets are development sets, not sealed: G3 sealing is
+  BLOCKED_OPERATOR.
+- The step consumes the open aien-train#15 native step, and M20-M22 are NOT
+  QUALIFIED.
+- EST-3 is FAILED, so this result is not a production input.
+- Not covered: calibration, curiosity, consent enforcement and a
+  pretrained-adviser comparison.
diff --git a/evidence/SI19/run/build.sha256 b/evidence/SI19/run/build.sha256
new file mode 100644
index 0000000..309b928
--- /dev/null
+++ b/evidence/SI19/run/build.sha256
@@ -0,0 +1,16 @@
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  compare100.img
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  compare300.img
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  compare_partial.img
+0a973b7ac2840d46c5fbc33a9c1bc4fdd8d48d133b920c37972753d070354176  damaged.img
+b2b9e4d5e02c5e2a8377e65085f7f65b238427d1723064d1627995583307003b  partial100.img
+5080e46d12cf1b9b743fa20c3bcdad346e41df41ac45536430f1bbc52e4bc499  partial300.img
+6d9827695fb47fe36cb267c390c2b98e74f096b87b77f51732a533d2f130185b  resume100.img
+6d9827695fb47fe36cb267c390c2b98e74f096b87b77f51732a533d2f130185b  resume300.img
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  resume_damaged.img
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  resume_short.img
+eb414b524c107ada518f193bef8765706ae95484f7ebbbf989ca4b7e08b1d7ab  short.img
+6d9827695fb47fe36cb267c390c2b98e74f096b87b77f51732a533d2f130185b  uninterrupted.img
+158daad8b6700ff6ef40965f888c2f55d61c8dccb2f9f2029b985b222d492b71  world.elf
+d44e8c4ac9fa9a5178d4d4993db07f55ed1b733b56a11abff155cede32e40522  world-test.elf
+02bb4b33e2f56f195217d73787765c7d496c690943235b885c5c7e488f02d817  world.om
+8f09252c28d3638b31c1dfc9d13d3663910d4c68c2ad60f11e591ecff82bd448  world-test.om
diff --git a/evidence/SI19/run/compare100.rc b/evidence/SI19/run/compare100.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/compare100.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/compare100.stderr b/evidence/SI19/run/compare100.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/compare100.stdout b/evidence/SI19/run/compare100.stdout
new file mode 100644
index 0000000..f2b0330
--- /dev/null
+++ b/evidence/SI19/run/compare100.stdout
@@ -0,0 +1 @@
+SI19_RESTART_IDENTICAL bytes=51752 fnv=13533758852048430492
diff --git a/evidence/SI19/run/compare300.rc b/evidence/SI19/run/compare300.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/compare300.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/compare300.stderr b/evidence/SI19/run/compare300.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/compare300.stdout b/evidence/SI19/run/compare300.stdout
new file mode 100644
index 0000000..f2b0330
--- /dev/null
+++ b/evidence/SI19/run/compare300.stdout
@@ -0,0 +1 @@
+SI19_RESTART_IDENTICAL bytes=51752 fnv=13533758852048430492
diff --git a/evidence/SI19/run/compare_partial.rc b/evidence/SI19/run/compare_partial.rc
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/evidence/SI19/run/compare_partial.rc
@@ -0,0 +1 @@
+1
diff --git a/evidence/SI19/run/compare_partial.stderr b/evidence/SI19/run/compare_partial.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/compare_partial.stdout b/evidence/SI19/run/compare_partial.stdout
new file mode 100644
index 0000000..4304d9a
--- /dev/null
+++ b/evidence/SI19/run/compare_partial.stdout
@@ -0,0 +1 @@
+SI19_RESTART_DIFFERENT first_byte=24
diff --git a/evidence/SI19/run/deps-check.txt b/evidence/SI19/run/deps-check.txt
new file mode 100644
index 0000000..3b96361
--- /dev/null
+++ b/evidence/SI19/run/deps-check.txt
@@ -0,0 +1,4 @@
+add32.om: OK
+mul32.om: OK
+metadata.om: OK
+affine.om: OK
diff --git a/evidence/SI19/run/mutant1.compile.rc b/evidence/SI19/run/mutant1.compile.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/mutant1.compile.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/mutant1.compile.stderr b/evidence/SI19/run/mutant1.compile.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant1.rc b/evidence/SI19/run/mutant1.rc
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/evidence/SI19/run/mutant1.rc
@@ -0,0 +1 @@
+1
diff --git a/evidence/SI19/run/mutant1.stderr b/evidence/SI19/run/mutant1.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant1.stdout b/evidence/SI19/run/mutant1.stdout
new file mode 100644
index 0000000..7aeb717
--- /dev/null
+++ b/evidence/SI19/run/mutant1.stdout
@@ -0,0 +1 @@
+SI19_WORLD_TEST_FAIL check=6355
diff --git a/evidence/SI19/run/mutant2.compile.rc b/evidence/SI19/run/mutant2.compile.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/mutant2.compile.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/mutant2.compile.stderr b/evidence/SI19/run/mutant2.compile.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant2.rc b/evidence/SI19/run/mutant2.rc
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/evidence/SI19/run/mutant2.rc
@@ -0,0 +1 @@
+1
diff --git a/evidence/SI19/run/mutant2.stderr b/evidence/SI19/run/mutant2.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant2.stdout b/evidence/SI19/run/mutant2.stdout
new file mode 100644
index 0000000..1865912
--- /dev/null
+++ b/evidence/SI19/run/mutant2.stdout
@@ -0,0 +1 @@
+SI19_WORLD_TEST_FAIL check=206
diff --git a/evidence/SI19/run/mutant3.compile.rc b/evidence/SI19/run/mutant3.compile.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/mutant3.compile.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/mutant3.compile.stderr b/evidence/SI19/run/mutant3.compile.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant3.rc b/evidence/SI19/run/mutant3.rc
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/evidence/SI19/run/mutant3.rc
@@ -0,0 +1 @@
+1
diff --git a/evidence/SI19/run/mutant3.stderr b/evidence/SI19/run/mutant3.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant3.stdout b/evidence/SI19/run/mutant3.stdout
new file mode 100644
index 0000000..8870f1f
--- /dev/null
+++ b/evidence/SI19/run/mutant3.stdout
@@ -0,0 +1 @@
+SI19_WORLD_TEST_FAIL check=592871
diff --git a/evidence/SI19/run/mutant4.compile.rc b/evidence/SI19/run/mutant4.compile.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/mutant4.compile.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/mutant4.compile.stderr b/evidence/SI19/run/mutant4.compile.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant4.rc b/evidence/SI19/run/mutant4.rc
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/evidence/SI19/run/mutant4.rc
@@ -0,0 +1 @@
+1
diff --git a/evidence/SI19/run/mutant4.stderr b/evidence/SI19/run/mutant4.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant4.stdout b/evidence/SI19/run/mutant4.stdout
new file mode 100644
index 0000000..4c56385
--- /dev/null
+++ b/evidence/SI19/run/mutant4.stdout
@@ -0,0 +1 @@
+SI19_WORLD_TEST_FAIL check=75383
diff --git a/evidence/SI19/run/mutant5.compile.rc b/evidence/SI19/run/mutant5.compile.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/mutant5.compile.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/mutant5.compile.stderr b/evidence/SI19/run/mutant5.compile.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant5.rc b/evidence/SI19/run/mutant5.rc
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/evidence/SI19/run/mutant5.rc
@@ -0,0 +1 @@
+1
diff --git a/evidence/SI19/run/mutant5.stderr b/evidence/SI19/run/mutant5.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant5.stdout b/evidence/SI19/run/mutant5.stdout
new file mode 100644
index 0000000..4dec8a9
--- /dev/null
+++ b/evidence/SI19/run/mutant5.stdout
@@ -0,0 +1 @@
+SI19_WORLD_TEST_FAIL check=2761
diff --git a/evidence/SI19/run/mutant6.compile.rc b/evidence/SI19/run/mutant6.compile.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/mutant6.compile.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/mutant6.compile.stderr b/evidence/SI19/run/mutant6.compile.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant6.rc b/evidence/SI19/run/mutant6.rc
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/evidence/SI19/run/mutant6.rc
@@ -0,0 +1 @@
+1
diff --git a/evidence/SI19/run/mutant6.stderr b/evidence/SI19/run/mutant6.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/mutant6.stdout b/evidence/SI19/run/mutant6.stdout
new file mode 100644
index 0000000..c2814b4
--- /dev/null
+++ b/evidence/SI19/run/mutant6.stdout
@@ -0,0 +1 @@
+SI19_WORLD_TEST_FAIL check=2629
diff --git a/evidence/SI19/run/partial100.rc b/evidence/SI19/run/partial100.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/partial100.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/partial100.stderr b/evidence/SI19/run/partial100.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/partial100.stdout b/evidence/SI19/run/partial100.stdout
new file mode 100644
index 0000000..6022018
--- /dev/null
+++ b/evidence/SI19/run/partial100.stdout
@@ -0,0 +1 @@
+SI19 partial checkpoint at event=100 4143303963193443600
diff --git a/evidence/SI19/run/partial300.rc b/evidence/SI19/run/partial300.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/partial300.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/partial300.stderr b/evidence/SI19/run/partial300.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/partial300.stdout b/evidence/SI19/run/partial300.stdout
new file mode 100644
index 0000000..1339572
--- /dev/null
+++ b/evidence/SI19/run/partial300.stdout
@@ -0,0 +1 @@
+SI19 partial checkpoint at event=300 3008400738607929557
diff --git a/evidence/SI19/run/raw.sha256 b/evidence/SI19/run/raw.sha256
new file mode 100644
index 0000000..3af2d1a
--- /dev/null
+++ b/evidence/SI19/run/raw.sha256
@@ -0,0 +1,52 @@
+86e452f6c730e9bd376fc2b3e9668a33740d5ad40636f8a6d9f9093e54e1aa17  compare100.stdout
+86e452f6c730e9bd376fc2b3e9668a33740d5ad40636f8a6d9f9093e54e1aa17  compare300.stdout
+e81194f18c8b60cf46333765f4e1971631b98c6048df7dc4dddf6870d45e3158  compare_partial.stdout
+98c6301c4d32484017a377b6986e459bf5a46871fb62984dcbf333550f349a7c  mutant1.stdout
+0fef532cf3e42e24301c544c18b1ee3c9e333026da1f9934758bb442df85bcf2  mutant2.stdout
+6ee739630bc3296c6e291f0ea51ebf922c683db70eae28820d12a106120ff553  mutant3.stdout
+dd9d570668470e991ef654b2e122bb8909bf690fc2e58a1bb9a3cf0d8af97dbc  mutant4.stdout
+ee4c967a399cdebdeb281ad03b8ec46dc94d0c80edbe82138bc49c7b53e827e8  mutant5.stdout
+c785b375f5747ef1ea2f8ebda1f3b0aeeb9992ba56917dabbcd344bab16550eb  mutant6.stdout
+0d7e4f256785aa15c828945d7d484ba6d1e9656eb30135c2d3338e9334695c6d  partial100.stdout
+3f3f422c477b211dc4ab27fd193572691172ac5ed2263d0c3baf3fbe8c9f296a  partial300.stdout
+dc123814012f1440c485cd622a25e06b267d8479faa61bbf906712c3838c2e8c  resume100.stdout
+a12f0eb79a43db14bb0aa80fe6f2ca4a9db315c77b0986538b8e77fefe4d1c74  resume300.stdout
+4cbc88c8741b8818a8368d7b10181945c72043ff81d4de54a696a83f7bead995  resume_damaged.stdout
+fe5ff6268be1911b469ad8e0d055f2a06c9cca688cdb8e14f8641696ce7fb079  resume_short.stdout
+014c34c525aa682fc54f3a049ed75f8e39103fda2776fc61a0215f42a5242af4  uninterrupted.stdout
+22d609a4c9c85937b8724160273eb2d01e26bf04d2cbb3f314ac78d3c55a16ac  world-test.stdout
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  compare100.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  compare300.rc
+4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865  compare_partial.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  mutant1.compile.rc
+4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865  mutant1.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  mutant2.compile.rc
+4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865  mutant2.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  mutant3.compile.rc
+4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865  mutant3.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  mutant4.compile.rc
+4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865  mutant4.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  mutant5.compile.rc
+4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865  mutant5.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  mutant6.compile.rc
+4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865  mutant6.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  partial100.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  partial300.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  resume100.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  resume300.rc
+979b894f2d91bf199766571d58024f020d1a44a417da5f48e1fa1cdf554a14f5  resume_damaged.rc
+979b894f2d91bf199766571d58024f020d1a44a417da5f48e1fa1cdf554a14f5  resume_short.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  uninterrupted.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  world-test.compile.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  world-test.rc
+9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa  world.compile.rc
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  mutant1.compile.stderr
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  mutant2.compile.stderr
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  mutant3.compile.stderr
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  mutant4.compile.stderr
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  mutant5.compile.stderr
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  mutant6.compile.stderr
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  world-test.compile.stderr
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  world.compile.stderr
+2d9047e59e6b3fbd583b1d3f29057d9bcfd639322335b377967d8b0793af6e97  deps-check.txt
+631705585018c0a6ea1e0ad8c4fd6a1ee24c2494e31c1ceb95f1ee1fcbe404bc  world.readelf.txt
diff --git a/evidence/SI19/run/resume100.rc b/evidence/SI19/run/resume100.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/resume100.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/resume100.stderr b/evidence/SI19/run/resume100.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/resume100.stdout b/evidence/SI19/run/resume100.stdout
new file mode 100644
index 0000000..5a07e91
--- /dev/null
+++ b/evidence/SI19/run/resume100.stdout
@@ -0,0 +1,44 @@
+SI19 resumed_from_event=100
+SI19 run events=512 updates=4096 experiences_A=256 experiences_B=256 replay_ring=64 batch=2 lr=2^-9 updates_per_event=4
+SI19 params INIT 3179282432 3196059648 3187671040 0 3187671040 0 1040187392 3179282432
+SI19 params after_A 1065355399 1030307241 1065348620 1064742879 3121292994 1064270990 989163778 3171277391
+SI19 params final_M 1065353616 1027642335 1065351812 1065504332 3066105160 3173320954 969238774 1026789694
+SI19 changed_cells after_A_vs_INIT=8/8 final_M_vs_INIT=8/8
+SI19 lineage arm=M ids=493 uses=4096 B_ids_in_lineage=237
+SI19 lineage arm=N ids=493 uses=4096 B_ids_in_lineage=247
+SI19 lineage arm=S ids=253 uses=4096 B_ids_in_lineage=0
+SI19 lineage arm=MA ids=246 uses=2048 B_ids_in_lineage=0
+SI19 checkpoint bytes=51752 fnv=13533758852048430492
+SI19 heldout env=A n=128 unseen_keys mse:
+  model_M_after_A 0.443490 1055068471
+  init_model 88.986206 1118959856
+  shuffled_control_S 79.442764 1117708978
+  rules_persistence 3.984375 1082064896
+  rules_constant_velocity 1.023437 1065549824
+  frequency_mode 4.476562 1083129856
+  nn_retrieval 11.968750 1094680576
+  nn_retrieval_delta 5.734375 1085767680
+  reference_true_mean_dynamics(not_a_baseline) 0.281250 1049624576
+  model_M_after_B_with_A_replay 1.252928 1067474934
+  model_N_after_B_no_replay 3.119333 1078436650
+  frequency_exact_key_hits=0
+SI19 curve env=A experiences=32 mse 1.437774 1069025531
+SI19 curve env=A experiences=64 mse 0.543444 1057693489
+SI19 curve env=A experiences=96 mse 0.423192 1054387391
+SI19 curve env=A experiences=128 mse 0.454877 1055450564
+SI19 curve env=A experiences=160 mse 0.323218 1051032818
+SI19 curve env=A experiences=192 mse 0.352590 1052018379
+SI19 curve env=A experiences=224 mse 0.338102 1051532239
+SI19 curve env=A experiences=256 mse 0.443490 1055068471
+SI19 heldout env=B n=128 unseen_keys mse:
+  model_M_after_A 2.707224 1076708140
+  model_M_after_B_with_A_replay 0.865929 1063103887
+  model_N_after_B_no_replay 0.233527 1047470532
+  init_model 63.140228 1115459480
+  rules_persistence 3.687500 1080819712
+  rules_constant_velocity 0.859375 1062993920
+  frequency_mode 5.921875 1086160896
+  nn_retrieval 3.539062 1080197120
+  nn_retrieval_delta 2.281250 1074921472
+  reference_true_mean_dynamics(not_a_baseline) 0.203125 1045430272
+  frequency_exact_key_hits=0
diff --git a/evidence/SI19/run/resume300.rc b/evidence/SI19/run/resume300.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/resume300.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/resume300.stderr b/evidence/SI19/run/resume300.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/resume300.stdout b/evidence/SI19/run/resume300.stdout
new file mode 100644
index 0000000..98f4dab
--- /dev/null
+++ b/evidence/SI19/run/resume300.stdout
@@ -0,0 +1,44 @@
+SI19 resumed_from_event=300
+SI19 run events=512 updates=4096 experiences_A=256 experiences_B=256 replay_ring=64 batch=2 lr=2^-9 updates_per_event=4
+SI19 params INIT 3179282432 3196059648 3187671040 0 3187671040 0 1040187392 3179282432
+SI19 params after_A 1065355399 1030307241 1065348620 1064742879 3121292994 1064270990 989163778 3171277391
+SI19 params final_M 1065353616 1027642335 1065351812 1065504332 3066105160 3173320954 969238774 1026789694
+SI19 changed_cells after_A_vs_INIT=8/8 final_M_vs_INIT=8/8
+SI19 lineage arm=M ids=493 uses=4096 B_ids_in_lineage=237
+SI19 lineage arm=N ids=493 uses=4096 B_ids_in_lineage=247
+SI19 lineage arm=S ids=253 uses=4096 B_ids_in_lineage=0
+SI19 lineage arm=MA ids=246 uses=2048 B_ids_in_lineage=0
+SI19 checkpoint bytes=51752 fnv=13533758852048430492
+SI19 heldout env=A n=128 unseen_keys mse:
+  model_M_after_A 0.443490 1055068471
+  init_model 88.986206 1118959856
+  shuffled_control_S 79.442764 1117708978
+  rules_persistence 3.984375 1082064896
+  rules_constant_velocity 1.023437 1065549824
+  frequency_mode 4.476562 1083129856
+  nn_retrieval 11.968750 1094680576
+  nn_retrieval_delta 5.734375 1085767680
+  reference_true_mean_dynamics(not_a_baseline) 0.281250 1049624576
+  model_M_after_B_with_A_replay 1.252928 1067474934
+  model_N_after_B_no_replay 3.119333 1078436650
+  frequency_exact_key_hits=0
+SI19 curve env=A experiences=32 mse 1.437774 1069025531
+SI19 curve env=A experiences=64 mse 0.543444 1057693489
+SI19 curve env=A experiences=96 mse 0.423192 1054387391
+SI19 curve env=A experiences=128 mse 0.454877 1055450564
+SI19 curve env=A experiences=160 mse 0.323218 1051032818
+SI19 curve env=A experiences=192 mse 0.352590 1052018379
+SI19 curve env=A experiences=224 mse 0.338102 1051532239
+SI19 curve env=A experiences=256 mse 0.443490 1055068471
+SI19 heldout env=B n=128 unseen_keys mse:
+  model_M_after_A 2.707224 1076708140
+  model_M_after_B_with_A_replay 0.865929 1063103887
+  model_N_after_B_no_replay 0.233527 1047470532
+  init_model 63.140228 1115459480
+  rules_persistence 3.687500 1080819712
+  rules_constant_velocity 0.859375 1062993920
+  frequency_mode 5.921875 1086160896
+  nn_retrieval 3.539062 1080197120
+  nn_retrieval_delta 2.281250 1074921472
+  reference_true_mean_dynamics(not_a_baseline) 0.203125 1045430272
+  frequency_exact_key_hits=0
diff --git a/evidence/SI19/run/resume_damaged.rc b/evidence/SI19/run/resume_damaged.rc
new file mode 100644
index 0000000..1479e19
--- /dev/null
+++ b/evidence/SI19/run/resume_damaged.rc
@@ -0,0 +1 @@
+65
diff --git a/evidence/SI19/run/resume_damaged.stderr b/evidence/SI19/run/resume_damaged.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/resume_damaged.stdout b/evidence/SI19/run/resume_damaged.stdout
new file mode 100644
index 0000000..d118669
--- /dev/null
+++ b/evidence/SI19/run/resume_damaged.stdout
@@ -0,0 +1 @@
+SI19 checkpoint refused status=-5
diff --git a/evidence/SI19/run/resume_short.rc b/evidence/SI19/run/resume_short.rc
new file mode 100644
index 0000000..1479e19
--- /dev/null
+++ b/evidence/SI19/run/resume_short.rc
@@ -0,0 +1 @@
+65
diff --git a/evidence/SI19/run/resume_short.stderr b/evidence/SI19/run/resume_short.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/resume_short.stdout b/evidence/SI19/run/resume_short.stdout
new file mode 100644
index 0000000..0a066e9
--- /dev/null
+++ b/evidence/SI19/run/resume_short.stdout
@@ -0,0 +1 @@
+SI19 checkpoint refused status=-1
diff --git a/evidence/SI19/run/summary.txt b/evidence/SI19/run/summary.txt
new file mode 100644
index 0000000..04218dd
--- /dev/null
+++ b/evidence/SI19/run/summary.txt
@@ -0,0 +1,27 @@
+build_dir=/tmp/si19.KboWsi
+source_commit=d1f7afcc67ec6cef33302d241bece90bdbbd49fb
+host=Linux 7.0.0-1019-nvidia aarch64
+compiler_sha256=191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9
+world-test rc=0 wall_ms=137 SI19_WORLD_TEST_PASS checks=644630
+uninterrupted mode=U rc=0 wall_ms=25
+partial100 mode=P rc=0 wall_ms=6
+resume100 mode=R rc=0 wall_ms=22
+partial300 mode=Q rc=0 wall_ms=14
+resume300 mode=R rc=0 wall_ms=8
+compare100 mode=C rc=0 wall_ms=2
+compare300 mode=C rc=0 wall_ms=2
+SI19_RESTART_IDENTICAL bytes=51752 fnv=13533758852048430492
+SI19_RESTART_IDENTICAL bytes=51752 fnv=13533758852048430492
+resumed_report_identical=yes
+compare_partial mode=C rc=1 wall_ms=2
+resume_damaged mode=R rc=65 wall_ms=2
+resume_short mode=R rc=65 wall_ms=2
+SI19 checkpoint refused status=-5
+SI19 checkpoint refused status=-1
+mutant1 fixture.om rc=1 SI19_WORLD_TEST_FAIL check=6355 :: put FS add b 2 get FT 0
+mutant2 world.om rc=1 SI19_WORLD_TEST_FAIL check=206 :: put AP c wmbits get TL add t 5 0
+mutant3 world.om rc=1 SI19_WORLD_TEST_FAIL check=592871 :: if not affinite ckget add add base 104 mul i 8
+mutant4 world.om rc=1 SI19_WORLD_TEST_FAIL check=75383 :: put FS i 0
+mutant5 world.om rc=1 SI19_WORLD_TEST_FAIL check=2761 :: wmuse arm a
+mutant6 world.om rc=1 SI19_WORLD_TEST_FAIL check=2629 :: wmrow 0 a a
+SI19_RUN_PASS
diff --git a/evidence/SI19/run/time-T.txt b/evidence/SI19/run/time-T.txt
new file mode 100644
index 0000000..d932ff4
--- /dev/null
+++ b/evidence/SI19/run/time-T.txt
@@ -0,0 +1,23 @@
+	Command being timed: "./world-test.elf"
+	User time (seconds): 0.13
+	System time (seconds): 0.00
+	Percent of CPU this job got: 99%
+	Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.13
+	Average shared text size (kbytes): 0
+	Average unshared data size (kbytes): 0
+	Average stack size (kbytes): 0
+	Average total size (kbytes): 0
+	Maximum resident set size (kbytes): 320
+	Average resident set size (kbytes): 0
+	Major (requiring I/O) page faults: 0
+	Minor (reclaiming a frame) page faults: 130
+	Voluntary context switches: 1
+	Involuntary context switches: 2
+	Swaps: 0
+	File system inputs: 0
+	File system outputs: 0
+	Socket messages sent: 0
+	Socket messages received: 0
+	Signals delivered: 0
+	Page size (bytes): 4096
+	Exit status: 0
diff --git a/evidence/SI19/run/time-U.txt b/evidence/SI19/run/time-U.txt
new file mode 100644
index 0000000..731073d
--- /dev/null
+++ b/evidence/SI19/run/time-U.txt
@@ -0,0 +1,23 @@
+	Command being timed: "./world.elf"
+	User time (seconds): 0.01
+	System time (seconds): 0.00
+	Percent of CPU this job got: 84%
+	Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.01
+	Average shared text size (kbytes): 0
+	Average unshared data size (kbytes): 0
+	Average stack size (kbytes): 0
+	Average total size (kbytes): 0
+	Maximum resident set size (kbytes): 320
+	Average resident set size (kbytes): 0
+	Major (requiring I/O) page faults: 0
+	Minor (reclaiming a frame) page faults: 118
+	Voluntary context switches: 1
+	Involuntary context switches: 0
+	Swaps: 0
+	File system inputs: 0
+	File system outputs: 0
+	Socket messages sent: 0
+	Socket messages received: 0
+	Signals delivered: 0
+	Page size (bytes): 4096
+	Exit status: 0
diff --git a/evidence/SI19/run/uninterrupted.rc b/evidence/SI19/run/uninterrupted.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/uninterrupted.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/uninterrupted.stderr b/evidence/SI19/run/uninterrupted.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/uninterrupted.stdout b/evidence/SI19/run/uninterrupted.stdout
new file mode 100644
index 0000000..80e2ecc
--- /dev/null
+++ b/evidence/SI19/run/uninterrupted.stdout
@@ -0,0 +1,43 @@
+SI19 run events=512 updates=4096 experiences_A=256 experiences_B=256 replay_ring=64 batch=2 lr=2^-9 updates_per_event=4
+SI19 params INIT 3179282432 3196059648 3187671040 0 3187671040 0 1040187392 3179282432
+SI19 params after_A 1065355399 1030307241 1065348620 1064742879 3121292994 1064270990 989163778 3171277391
+SI19 params final_M 1065353616 1027642335 1065351812 1065504332 3066105160 3173320954 969238774 1026789694
+SI19 changed_cells after_A_vs_INIT=8/8 final_M_vs_INIT=8/8
+SI19 lineage arm=M ids=493 uses=4096 B_ids_in_lineage=237
+SI19 lineage arm=N ids=493 uses=4096 B_ids_in_lineage=247
+SI19 lineage arm=S ids=253 uses=4096 B_ids_in_lineage=0
+SI19 lineage arm=MA ids=246 uses=2048 B_ids_in_lineage=0
+SI19 checkpoint bytes=51752 fnv=13533758852048430492
+SI19 heldout env=A n=128 unseen_keys mse:
+  model_M_after_A 0.443490 1055068471
+  init_model 88.986206 1118959856
+  shuffled_control_S 79.442764 1117708978
+  rules_persistence 3.984375 1082064896
+  rules_constant_velocity 1.023437 1065549824
+  frequency_mode 4.476562 1083129856
+  nn_retrieval 11.968750 1094680576
+  nn_retrieval_delta 5.734375 1085767680
+  reference_true_mean_dynamics(not_a_baseline) 0.281250 1049624576
+  model_M_after_B_with_A_replay 1.252928 1067474934
+  model_N_after_B_no_replay 3.119333 1078436650
+  frequency_exact_key_hits=0
+SI19 curve env=A experiences=32 mse 1.437774 1069025531
+SI19 curve env=A experiences=64 mse 0.543444 1057693489
+SI19 curve env=A experiences=96 mse 0.423192 1054387391
+SI19 curve env=A experiences=128 mse 0.454877 1055450564
+SI19 curve env=A experiences=160 mse 0.323218 1051032818
+SI19 curve env=A experiences=192 mse 0.352590 1052018379
+SI19 curve env=A experiences=224 mse 0.338102 1051532239
+SI19 curve env=A experiences=256 mse 0.443490 1055068471
+SI19 heldout env=B n=128 unseen_keys mse:
+  model_M_after_A 2.707224 1076708140
+  model_M_after_B_with_A_replay 0.865929 1063103887
+  model_N_after_B_no_replay 0.233527 1047470532
+  init_model 63.140228 1115459480
+  rules_persistence 3.687500 1080819712
+  rules_constant_velocity 0.859375 1062993920
+  frequency_mode 5.921875 1086160896
+  nn_retrieval 3.539062 1080197120
+  nn_retrieval_delta 2.281250 1074921472
+  reference_true_mean_dynamics(not_a_baseline) 0.203125 1045430272
+  frequency_exact_key_hits=0
diff --git a/evidence/SI19/run/world-test.compile.rc b/evidence/SI19/run/world-test.compile.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/world-test.compile.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/world-test.compile.stderr b/evidence/SI19/run/world-test.compile.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/world-test.rc b/evidence/SI19/run/world-test.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/world-test.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/world-test.stderr b/evidence/SI19/run/world-test.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/world-test.stdout b/evidence/SI19/run/world-test.stdout
new file mode 100644
index 0000000..ececc72
--- /dev/null
+++ b/evidence/SI19/run/world-test.stdout
@@ -0,0 +1 @@
+SI19_WORLD_TEST_PASS checks=644630
diff --git a/evidence/SI19/run/world.compile.rc b/evidence/SI19/run/world.compile.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/evidence/SI19/run/world.compile.rc
@@ -0,0 +1 @@
+0
diff --git a/evidence/SI19/run/world.compile.stderr b/evidence/SI19/run/world.compile.stderr
new file mode 100644
index 0000000..e69de29
diff --git a/evidence/SI19/run/world.readelf.txt b/evidence/SI19/run/world.readelf.txt
new file mode 100644
index 0000000..302a4f5
--- /dev/null
+++ b/evidence/SI19/run/world.readelf.txt
@@ -0,0 +1,14 @@
+
+Elf file type is EXEC (Executable file)
+Entry point 0x4000b0
+There are 2 program headers, starting at offset 64
+
+Program Headers:
+  Type           Offset             VirtAddr           PhysAddr
+                 FileSiz            MemSiz              Flags  Align
+  LOAD           0x0000000000000000 0x0000000000400000 0x0000000000400000
+                 0x000000000000b3a8 0x000000000000b3a8  R E    0x1000
+  LOAD           0x0000000000000000 0x0000000010000000 0x0000000010000000
+                 0x0000000000000000 0x0000000000871320  RW     0x1000
+
+There is no dynamic section in this file.
diff --git a/evidence/SI19/wolfram.txt b/evidence/SI19/wolfram.txt
new file mode 100644
index 0000000..e7cf672
--- /dev/null
+++ b/evidence/SI19/wolfram.txt
@@ -0,0 +1,38 @@
+Wolfram Language evaluator checks, 2026-10-24 (MCP WolframLanguageEvaluator).
+f32[b] decodes IEEE binary32 bits exactly:
+f32[b_]:=Module[{s=BitShiftRight[b,31],e=BitAnd[BitShiftRight[b,23],255],m=BitAnd[b,2^23-1]},(-1)^s If[e==0,m 2^-149,(m+2^23) 2^(e-150)]]
+
+1) Accounting
+checkpointBytes = 32+(2304+4096+64)*8+8 -> 51752
+lrBits (2^-9) = (127-9)*2^23 -> 989855744
+inv128Bits (2^-7) = (127-7)*2^23 -> 1006632960
+magic = FromDigits[Reverse[ToCharacterCode["SI19WMCK"]],256] -> 5423263413301234003
+updatesTotal = 256*4*2+256*4*2 -> 4096
+usesM = (256*4+256*4)*2 -> 4096; usesS = 256*4*4 -> 4096; usesMA = 256*4*2 -> 2048; usesN = 256*4*2+256*4*2 -> 4096
+gustVariance = (1/8)(-1)^2+(1/8)(1)^2 -> 1/4
+keys = 25*7*3 -> 525; FQ cells = 2*(525*35+105) -> 36960
+
+2) Reported MSE bits (exact decimal values; the .om printer truncates to 6 places)
+1055068471 -> 0.4434907138  (model M after A, env A held-out)
+1118959856 -> 88.98620605   (init model)
+1117708978 -> 79.44276428   (shuffled control S)
+1082064896 -> 3.984375      (rules persistence)
+1065549824 -> 1.0234375     (rules constant velocity)
+1083129856 -> 4.4765625     (frequency mode)
+1094680576 -> 11.96875      (nn retrieval)
+1085767680 -> 5.734375      (nn retrieval delta)
+1049624576 -> 0.28125 = 9/32 (reference true mean dynamics, A; 36 gust items of 128)
+1067474934 -> 1.252928495   (M after B with A replay, on A)
+1078436650 -> 3.119333744   (N after B without replay, on A)
+1076708140 -> 2.707224846   (M after A, on B)
+1063103887 -> 0.865929544   (M final, on B)
+1047470532 -> 0.233527243   (N final, on B)
+1062993920 -> 0.859375      (rules constant velocity, on B)
+1045430272 -> 0.203125      (reference true mean dynamics, B; 26 gust items of 128)
+Binomial(128,1/4): P[X>=36] = 0.2349, P[X<=26] = 0.1297 (gust counts are ordinary).
+
+3) Parameters (W row k = p,v,u; columns p2,v2; then b)
+INIT   {-1/16,-1/4,-1/8,0,-1/8,0,1/8,-1/16}
+afterA {1.000260,0.0569436,0.999726,0.963621,-0.000530820,0.935494,0.00187257,-0.0326789}
+finalM {1.000048,0.0470160,0.999916,1.018014,-5.75339e-6,-0.0402918,0.000376530,0.0438397}
+True dynamics: A p2=p+v, v2=v+u; B p2=p+v, v2=v-u (+ zero-mean gust).
diff --git a/native/si19/fixture.om b/native/si19/fixture.om
new file mode 100644
index 0000000..34d4aec
--- /dev/null
+++ b/native/si19/fixture.om
@@ -0,0 +1,103 @@
+note SPDX-License-Identifier: AGPL-3.0-only
+note FIXTURE for aien-train#19: a seeded, resettable transition micro-world.
+note It stands in for Omega X1 ExperienceTransition (omega-mv#699), which is not on
+note main. It is not World, J-Space or Cortex evidence. Transitions are executed by
+note these fixed dynamics; no model, teacher or corpus generates them.
+note Typed finite observation: position p -12..12, velocity v -3..3. Action u -1,0,1.
+note Dynamics: p2 = p + v; v2 = v + gain*u + gust. gust is -1 w.p. 1/8, +1 w.p. 1/8, else 0.
+note A transition is terminal when p2 leaves -12..12, v2 leaves -3..3, or step 7 ends.
+note A terminal transition records its true successor, never the reset state. The next
+note transition starts from a fresh reset, so no transition crosses an episode boundary.
+note FS slot s occupies FS[16s..16s+15]: 0 gain, 1 env rng, 2 p, 3 v, 4 step, 5 episode,
+note 6 reset p low, 7 reset p high, 8 behaviour-policy rng, 9 transitions emitted.
+note FT receives one transition: 0 p, 1 v, 2 u, 3 p2, 4 v2, 5 done, 6 episode*16+step.
+global FS long 64
+global FT long 8
+
+fn fxrand at ulong to long
+n = get FS at
+n = rem add mul n 1664525 1013904223 4294967296
+put FS at n
+ret shr n 8
+end
+
+fn fxreset s ulong to void
+b = mul s 16
+lo = get FS add b 6
+span = add sub get FS add b 7 lo 1
+put FS add b 2 add lo rem fxrand add b 1 span
+put FS add b 3 sub rem fxrand add b 1 5 2
+put FS add b 4 0
+end
+
+fn fxinit s ulong gain long seed long wide long to void
+note wide 0: reset p in -12..-4 (training region); wide 1: reset p in -12..12.
+b = mul s 16
+for i ulong 16
+put FS add b i 0
+end
+put FS b gain
+put FS add b 1 seed
+put FS add b 6 -12
+hi = long -4
+if eq wide 1
+hi = 12
+end
+put FS add b 7 hi
+put FS add b 8 add seed 7919
+fxreset s
+end
+
+fn fxact s ulong to long
+note Uniform random behaviour policy from its own seeded stream.
+ret sub rem fxrand add mul s 16 8 3 1
+end
+
+fn fxdone p2 long v2 long step long to long
+if or gt p2 12 lt p2 -12
+ret 1
+end
+if or gt v2 3 lt v2 -3
+ret 1
+end
+if ge add step 1 8
+ret 1
+end
+ret 0
+end
+
+fn fxvel b ulong v long u long to long
+note Successor velocity: v + gain*u + gust, drawn from the environment stream.
+r = rem fxrand add b 1 8
+v2 = add v mul get FS b u
+if eq r 0
+ret sub v2 1
+end
+if eq r 7
+ret add v2 1
+end
+ret v2
+end
+
+fn fxstep s ulong u long to void
+b = mul s 16
+v = get FS add b 3
+put FT 0 get FS add b 2
+put FT 1 v
+put FT 2 u
+put FT 3 add get FT 0 v
+put FT 4 fxvel b v u
+step = get FS add b 4
+done = fxdone get FT 3 get FT 4 step
+put FT 5 done
+put FT 6 add mul get FS add b 5 16 step
+put FS add b 9 add get FS add b 9 1
+if eq done 1
+put FS add b 5 add get FS add b 5 1
+fxreset s
+else
+put FS add b 2 get FT 3
+put FS add b 3 get FT 4
+put FS add b 4 add step 1
+end
+end
diff --git a/native/si19/main.om b/native/si19/main.om
new file mode 100644
index 0000000..4407539
--- /dev/null
+++ b/native/si19/main.om
@@ -0,0 +1,278 @@
+note SPDX-License-Identifier: AGPL-3.0-only
+note aien-train#19 host driver. First stdin byte selects the mode:
+note U uninterrupted run to event 512, final image to fd 3, report to stdout.
+note P / Q run to event 100 / 300 (phase A / phase B), image to fd 3, then stop.
+note R read one image after the mode byte, admit it, continue to 512, image to fd 3, report.
+note C read two images after the mode byte and require byte identity.
+global IN uchar 1
+text TRUN "SI19 run events="
+text TUPD " updates="
+text TEXP " experiences_A=256 experiences_B=256 replay_ring=64 batch=2 lr=2^-9 updates_per_event=4\n"
+text TRES "SI19 resumed_from_event="
+text TINI "SI19 params INIT"
+text TMA "SI19 params after_A"
+text TMF "SI19 params final_M"
+text TCHG "SI19 changed_cells after_A_vs_INIT="
+text TCHF " final_M_vs_INIT="
+text TOF8 "/8"
+text TSP " "
+text TNL "\n"
+text THA "SI19 heldout env=A n=128 unseen_keys mse:\n"
+text THB "SI19 heldout env=B n=128 unseen_keys mse:\n"
+text KM0 "  model_M_after_A "
+text KIN "  init_model "
+text KSH "  shuffled_control_S "
+text KR0 "  rules_persistence "
+text KR1 "  rules_constant_velocity "
+text KFQ "  frequency_mode "
+text KNN "  nn_retrieval "
+text KND "  nn_retrieval_delta "
+text KOR "  reference_true_mean_dynamics(not_a_baseline) "
+text KFA "  model_M_after_B_with_A_replay "
+text KFN "  model_N_after_B_no_replay "
+text KEH "  frequency_exact_key_hits="
+text KCU "SI19 curve env=A experiences="
+text KMS " mse "
+text KLI "SI19 lineage arm="
+text KLM "M"
+text KLN "N"
+text KLS "S"
+text KLA "MA"
+text KID " ids="
+text KUS " uses="
+text KLB " B_ids_in_lineage="
+text TCK "SI19 checkpoint bytes=51752 fnv="
+text TPAR "SI19 partial checkpoint at event="
+text TREF "SI19 checkpoint refused status=-"
+text TIDN "SI19_RESTART_IDENTICAL bytes=51752 fnv="
+text TDIF "SI19_RESTART_DIFFERENT first_byte="
+
+fn mline x ulong to void
+wdec x
+w = write 1 TSP 0 1
+wnum x
+w = write 1 TNL 0 1
+end
+
+fn mparams pb ulong to void
+for i ulong 8
+w = write 1 TSP 0 1
+wnum get WS add pb i
+end
+w = write 1 TNL 0 1
+end
+
+fn mchanged pb ulong to ulong
+n = ulong 0
+for i ulong 8
+if ne get WS add pb i get WS add 40 i
+n = add n 1
+end
+end
+ret n
+end
+
+fn mlin arm ulong to void
+w = write 1 KID 0 len KID
+wnum wsids arm
+w = write 1 KUS 0 len KUS
+wnum wsuses arm
+b = ulong 0
+for i ulong 256
+if wsaffect arm add 256 i
+b = add b 1
+end
+end
+w = write 1 KLB 0 len KLB
+wnum b
+w = write 1 TNL 0 1
+end
+
+fn mevalA to void
+wsfreq 0
+wsheld 0
+put EH 0 0
+w = write 1 THA 0 len THA
+w = write 1 KM0 0 len KM0
+mline wsmse 0 0 32
+w = write 1 KIN 0 len KIN
+mline wsmse 0 0 40
+w = write 1 KSH 0 len KSH
+mline wsmse 0 0 24
+w = write 1 KR0 0 len KR0
+mline wsmse 0 1 0
+w = write 1 KR1 0 len KR1
+mline wsmse 0 2 0
+w = write 1 KFQ 0 len KFQ
+mline wsmse 0 4 0
+w = write 1 KNN 0 len KNN
+mline wsmse 0 5 0
+w = write 1 KND 0 len KND
+mline wsmse 0 6 0
+w = write 1 KOR 0 len KOR
+mline wsmse 0 3 0
+w = write 1 KFA 0 len KFA
+mline wsmse 0 0 8
+w = write 1 KFN 0 len KFN
+mline wsmse 0 0 16
+w = write 1 KEH 0 len KEH
+wnum get EH 0
+w = write 1 TNL 0 1
+for k ulong 8
+w = write 1 KCU 0 len KCU
+wnum mul add k 1 32
+w = write 1 KMS 0 len KMS
+mline wsmse 0 0 add 48 mul k 8
+end
+end
+
+fn mevalB to void
+wsfreq 1
+wsheld 1
+put EH 0 0
+w = write 1 THB 0 len THB
+w = write 1 KM0 0 len KM0
+mline wsmse 1 0 32
+w = write 1 KFA 0 len KFA
+mline wsmse 1 0 8
+w = write 1 KFN 0 len KFN
+mline wsmse 1 0 16
+w = write 1 KIN 0 len KIN
+mline wsmse 1 0 40
+w = write 1 KR0 0 len KR0
+mline wsmse 1 1 0
+w = write 1 KR1 0 len KR1
+mline wsmse 1 2 0
+w = write 1 KFQ 0 len KFQ
+mline wsmse 1 4 0
+w = write 1 KNN 0 len KNN
+mline wsmse 1 5 0
+w = write 1 KND 0 len KND
+mline wsmse 1 6 0
+w = write 1 KOR 0 len KOR
+mline wsmse 1 3 0
+w = write 1 KEH 0 len KEH
+wnum get EH 0
+w = write 1 TNL 0 1
+end
+
+fn mreport to void
+note Called after the final image is saved; evaluation scratch is not checkpointed state.
+w = write 1 TRUN 0 len TRUN
+wnum get WS 0
+w = write 1 TUPD 0 len TUPD
+wnum get WS 1
+w = write 1 TEXP 0 len TEXP
+w = write 1 TINI 0 len TINI
+mparams 40
+w = write 1 TMA 0 len TMA
+mparams 32
+w = write 1 TMF 0 len TMF
+mparams 8
+w = write 1 TCHG 0 len TCHG
+wnum mchanged 32
+w = write 1 TOF8 0 len TOF8
+w = write 1 TCHF 0 len TCHF
+wnum mchanged 8
+w = write 1 TOF8 0 len TOF8
+w = write 1 TNL 0 1
+w = write 1 KLI 0 len KLI
+w = write 1 KLM 0 len KLM
+mlin 0
+w = write 1 KLI 0 len KLI
+w = write 1 KLN 0 len KLN
+mlin 1
+w = write 1 KLI 0 len KLI
+w = write 1 KLS 0 len KLS
+mlin 2
+w = write 1 KLI 0 len KLI
+w = write 1 KLA 0 len KLA
+mlin 3
+w = write 1 TCK 0 len TCK
+wnum ckget 51744
+w = write 1 TNL 0 1
+mevalA
+mevalB
+end
+
+fn mfinish to void
+cksave 0
+ckwrite 3 0 51752
+mreport
+end
+
+fn mpartial at ulong to void
+wsinit
+wsrun at
+cksave 0
+ckwrite 3 0 51752
+w = write 1 TPAR 0 len TPAR
+wnum at
+w = write 1 TSP 0 1
+wnum ckget 51744
+w = write 1 TNL 0 1
+end
+
+fn mcompare to int
+n = ckread 0 103504
+if ne n 103504
+w = write 1 TDIF 0 len TDIF
+wnum n
+w = write 1 TNL 0 1
+ret 1
+end
+for i ulong 51752
+if ne get CB i get CB add 51752 i
+w = write 1 TDIF 0 len TDIF
+wnum i
+w = write 1 TNL 0 1
+ret 1
+end
+end
+w = write 1 TIDN 0 len TIDN
+wnum ckget 51744
+w = write 1 TNL 0 1
+ret 0
+end
+
+fn main to int
+r = read 0 IN 0 1
+if ne r 1
+ret 64
+end
+m = get IN 0
+if eq m 85
+wsinit
+wsrun 512
+mfinish
+ret 0
+end
+if eq m 80
+mpartial 100
+ret 0
+end
+if eq m 81
+mpartial 300
+ret 0
+end
+if eq m 82
+n = ckread 0 51752
+st = ckload 0 n
+if ne st 0
+w = write 1 TREF 0 len TREF
+wnum ulong neg st
+w = write 1 TNL 0 1
+ret 65
+end
+w = write 1 TRES 0 len TRES
+wnum get WS 0
+w = write 1 TNL 0 1
+wsrun 512
+mfinish
+ret 0
+end
+if eq m 67
+ret mcompare
+end
+ret 64
+end
diff --git a/native/si19/world.om b/native/si19/world.om
new file mode 100644
index 0000000..138013d
--- /dev/null
+++ b/native/si19/world.om
@@ -0,0 +1,704 @@
+note SPDX-License-Identifier: AGPL-3.0-only
+note aien-train#19 offline standalone experiment: a tiny from-initialization experiential
+note world model. Predictor (p,v,u) -> (p2,v2) is one affine map X[2,3]W[3,2]+b[2] trained
+note only through the pinned ecosystem6 afstep (L720 add32/mul32 forward, explicit gradient,
+note SGD). Not M23/M24 qualification; M20-M22 stay NOT QUALIFIED; no production path.
+note All resumable trainer state lives in WS (ulong), TL (experience log) and FS (fixture).
+note WS: 0 event, 1 updates, 2 sampler rng, 3 ring A pushed, 4 ring B pushed, 5..7 last loss
+note per arm. Params (W[0..5] row-major k*2+col, b[6..7]): 8 M, 16 N, 24 S, 32 MA, 40 INIT.
+note 48..111 eight M snapshots after 32,64,..,256 experiences. 112..119 last batch ids.
+note Lineage use counts per experience id: 128 M, 640 N, 1152 S, 1664 MA (512 ids each).
+note Bounded replay rings of experience ids: 2176 A (64), 2240 B (64).
+note Arms: M main (A, then B with A replay), N (copy of M after A, then B only),
+note S shuffled-experience control (inputs and targets drawn independently).
+note TL: 8 longs per experience id: id, p, v, u, p2, v2, done, episode*16+step.
+global WS ulong 2304
+global TL long 4096
+global HO long 1024
+global FQ long 36960
+global PR ulong 2
+global EH ulong 1
+global CB uchar 103504
+global DG uchar 24
+global XB uchar 1
+global QV long 4
+
+fn wnum n ulong to void
+p = ulong 24
+if eq n 0
+p = 23
+put DG 23 48
+end
+while gt n 0 bound 24
+p = sub p 1
+put DG p uchar add 48 rem n 10
+n = div n 10
+end
+w = write 1 DG p sub 24 p
+if ne w long sub 24 p
+exit 90
+end
+end
+
+fn wdec x ulong to void
+note Positive finite binary32 bits as decimal, truncated to six places.
+e = and shr x 23 255
+m = and x 8388607
+if eq e 0
+e = 1
+else
+m = or m 8388608
+end
+if ge e 160
+exit 91
+end
+s = mul m 1000000
+if ge e 150
+s = shl s sub e 150
+else
+k = sub 150 e
+if ge k 64
+s = 0
+else
+s = shr s k
+end
+end
+wnum div s 1000000
+f = rem s 1000000
+put DG 0 46
+d = ulong 100000
+for i ulong 6
+put DG add i 1 uchar add 48 rem div f d 10
+d = div d 10
+end
+w = write 1 DG 0 7
+if ne w 7
+exit 90
+end
+end
+
+fn wsenc x long to ulong
+if lt x -1099511627776
+exit 83
+end
+ret ulong add x 1099511627776
+end
+
+fn wsdec u ulong to long
+ret sub long u 1099511627776
+end
+
+fn wsabs x long to long
+if lt x 0
+ret neg x
+end
+ret x
+end
+
+fn wmbits n long scale ulong to ulong
+note Exact binary32 bits of n/2^scale for |n| below 2^24.
+if eq n 0
+ret 0
+end
+sign = ulong 0
+if lt n 0
+sign = 2147483648
+n = neg n
+end
+m = ulong n
+pw = ulong 0
+q = m
+while gt q 1 bound 64
+q = shr q 1
+pw = add pw 1
+end
+if gt pw 23
+exit 81
+end
+ret or sign or shl add sub pw scale 127 23 sub shl m sub 23 pw 8388608
+end
+
+fn wmdesc to void
+note Trusted M20 descriptors and allocator snapshots for the eight afstep slots.
+for i ulong 192
+put AD i 0
+end
+for i ulong 64
+put AS i 0
+end
+for t ulong 8
+rank = ulong 2
+rows = ulong 2
+cols = ulong 3
+count = ulong 6
+if or eq t 1 eq t 6
+rows = 3
+cols = 2
+end
+if or eq t 3 eq t 4
+cols = 2
+count = 4
+end
+if or eq t 2 eq t 7
+rank = 1
+cols = 1
+count = 2
+end
+p = mul t 24
+put AD p 1
+put AD add p 1 1
+put AD add p 2 rank
+put AD add p 3 count
+put AD add p 5 add t 1
+put AD add p 6 17
+put AD add p 8 rows
+put AD add p 16 cols
+if eq rank 2
+put AD add p 9 cols
+put AD add p 17 1
+end
+p = mul t 8
+put AS p 1
+put AS add p 2 add t 1
+put AS add p 3 17
+put AS add p 4 1
+put AS add p 5 count
+end
+end
+
+fn wscopy dst ulong src ulong n ulong to void
+for i ulong n
+put WS add dst i get WS add src i
+end
+end
+
+fn wsrand to ulong
+n = and add mul get WS 2 1664525 1013904223 4294967295
+put WS 2 n
+ret shr n 8
+end
+
+fn wmrow row ulong xid ulong tid ulong to void
+note Row inputs from experience xid, target from tid (equal except in the shuffled arm).
+x = mul xid 8
+t = mul tid 8
+c = mul row 3
+put AP c wmbits get TL add x 1 0
+put AP add c 1 wmbits get TL add x 2 0
+put AP add c 2 wmbits get TL add x 3 0
+c = add 48 mul row 2
+put AP c wmbits get TL add t 4 0
+put AP add c 1 wmbits get TL add t 5 0
+end
+
+fn wmapply arm ulong to void
+note One real afstep: forward, explicit gradient and SGD at lr 2^-9 on the loaded batch.
+pb = add 8 mul arm 8
+for i ulong 6
+put AP add 16 i get WS add pb i
+end
+put AP 32 get WS add pb 6
+put AP 33 get WS add pb 7
+st = afstep 989855744
+if ne st 0
+exit 82
+end
+for i ulong 6
+put WS add pb i get AP add 16 i
+end
+put WS add pb 6 get AP 32
+put WS add pb 7 get AP 33
+put WS add 5 arm get AL 0
+put WS 1 add get WS 1 1
+end
+
+fn wmuse arm ulong id ulong to void
+k = add add 128 mul arm 512 id
+put WS k add get WS k 1
+end
+
+fn wspick ring ulong to ulong
+note Uniform pick among the retained ids of bounded ring 0 (A) or 1 (B).
+n = get WS add 3 ring
+if gt n 64
+n = 64
+end
+ret get WS add add 2176 mul ring 64 rem wsrand n
+end
+
+fn wstrain arm ulong ra ulong rb ulong to void
+a = wspick ra
+c = wspick rb
+wmrow 0 a a
+wmrow 1 c c
+wmapply arm
+wmuse arm a
+wmuse arm c
+put WS add 112 mul arm 2 a
+put WS add 113 mul arm 2 c
+end
+
+fn wsshuf to void
+note Shuffled-experience control: same ring, same schedule, outcome detached from state.
+a = wspick 0
+c = wspick 0
+ta = wspick 0
+tc = wspick 0
+wmrow 0 a ta
+wmrow 1 c tc
+wmapply 2
+wmuse 2 a
+wmuse 2 ta
+wmuse 2 c
+wmuse 2 tc
+put WS 116 a
+put WS 117 ta
+put WS 118 c
+put WS 119 tc
+end
+
+fn wscollect s ulong to void
+note Admit one fixture transition as experience id e and push it into ring s.
+e = get WS 0
+u = fxact s
+fxstep s u
+r = mul e 8
+put TL r long e
+for i ulong 7
+put TL add r add i 1 get FT i
+end
+n = get WS add 3 s
+put WS add add 2176 mul s 64 rem n 64 e
+put WS add 3 s add n 1
+end
+
+fn wsevent to void
+e = get WS 0
+if lt e 256
+wscollect 0
+for k ulong 4
+wstrain 0 0 0
+wsshuf
+end
+else
+wscollect 1
+for k ulong 4
+wstrain 0 0 1
+wstrain 1 1 1
+end
+end
+e = add e 1
+put WS 0 e
+if and le e 256 eq rem e 32 0
+wscopy add 48 mul sub div e 32 1 8 8 8
+end
+if eq e 256
+wscopy 32 8 8
+wscopy 16 8 8
+wscopy 1664 128 512
+wscopy 640 128 512
+end
+end
+
+fn wsinit to void
+for i ulong 2304
+put WS i 0
+end
+for i ulong 4096
+put TL i 0
+end
+for i ulong 64
+put FS i 0
+end
+wmdesc
+put WS 2 19019
+note Seeded random initialization in {-4..3}/16; no pretrained or corpus prior.
+for i ulong 8
+put WS add 40 i wmbits sub long rem wsrand 8 4 4
+end
+wscopy 8 40 8
+wscopy 24 40 8
+fxinit 0 1 1901 0
+fxinit 1 -1 1902 0
+end
+
+fn wsrun limit ulong to void
+while lt get WS 0 limit bound 600
+wsevent
+end
+end
+
+fn wsaffect arm ulong id ulong to bool
+note Lineage query for #20: did experience id contribute to this arm's parameters?
+ret gt get WS add add 128 mul arm 512 id 0
+end
+
+fn wsids arm ulong to ulong
+n = ulong 0
+for i ulong 512
+if gt get WS add add 128 mul arm 512 i 0
+n = add n 1
+end
+end
+ret n
+end
+
+fn wsuses arm ulong to ulong
+n = ulong 0
+for i ulong 512
+n = add n get WS add add 128 mul arm 512 i
+end
+ret n
+end
+
+fn wmpred pb ulong p long v long u long to void
+note Forward only, in afstep's exact operation order: b[col] + x0*w + x1*w + x2*w.
+x0 = wmbits p 0
+x1 = wmbits v 0
+x2 = wmbits u 0
+for col ulong 2
+a = get WS add add pb 6 col
+a = add32 a mul32 x0 get WS add pb col
+a = add32 a mul32 x1 get WS add add pb 2 col
+a = add32 a mul32 x2 get WS add add pb 4 col
+put PR col a
+end
+end
+
+fn wskey p long v long u long to ulong
+ret ulong add add mul add p 12 21 mul add v 3 3 add u 1
+end
+
+fn wsout dp long dv long to ulong
+ret ulong add mul add dp 3 5 add dv 2
+end
+
+fn wsfreq1 fb ulong r ulong to void
+p = get TL add r 1
+v = get TL add r 2
+u = get TL add r 3
+o = wsout sub get TL add r 4 p sub get TL add r 5 v
+k = mul wskey p v u 35
+k = add fb add k o
+put FQ k add get FQ k 1
+k = mul ulong add u 1 35
+k = add add fb 18375 add k o
+put FQ k add get FQ k 1
+end
+
+fn wsfreq env ulong to void
+note Frequency tables from all 256 admitted experiences of env: per (p,v,u) key and per action.
+fb = mul env 18480
+for i ulong 18480
+put FQ add fb i 0
+end
+for j ulong 256
+wsfreq1 fb mul add mul env 256 j 8
+end
+end
+
+fn wsseen env ulong p long v long u long to bool
+k = add mul env 18480 mul wskey p v u 35
+for o ulong 35
+if gt get FQ add k o 0
+ret true
+end
+end
+ret false
+end
+
+fn wsargmax base ulong to ulong
+note Most frequent outcome, lowest index on ties; 35 when no observation.
+best = ulong 35
+bc = long 0
+for o ulong 35
+c = get FQ add base o
+if gt c bc
+bc = c
+best = o
+end
+end
+ret best
+end
+
+fn wsmode env ulong p long v long u long to ulong
+fb = mul env 18480
+o = wsargmax add fb mul wskey p v u 35
+if lt o 35
+put EH 0 add get EH 0 1
+ret o
+end
+o = wsargmax add add fb 18375 mul ulong add u 1 35
+if lt o 35
+ret o
+end
+ret wsout 0 0
+end
+
+fn wsnear env ulong p long v long u long to ulong
+note Nearest admitted experience by L1 distance over (p,v,u), lowest id on ties.
+best = ulong 0
+bd = long 1000
+for j ulong 256
+id = add mul env 256 j
+r = mul id 8
+d = wsabs sub p get TL add r 1
+d = add d wsabs sub v get TL add r 2
+d = add d wsabs sub u get TL add r 3
+if lt d bd
+bd = d
+best = id
+end
+end
+ret best
+end
+
+fn wsheld env ulong to void
+note 128 held-out transitions from a separate seed and wide reset region whose (p,v,u)
+note key never occurs in env's training experience. Ids live outside the training range.
+s = add 2 env
+gain = sub 1 mul 2 long env
+fxinit s gain add 7001 long env 1
+n = ulong 0
+while lt n 128 bound 200000
+u = fxact s
+fxstep s u
+if not wsseen env get FT 0 get FT 1 get FT 2
+r = mul n 8
+put HO r long add 1048576 n
+for i ulong 7
+put HO add r add i 1 get FT i
+end
+n = add n 1
+end
+end
+end
+
+fn wsput gp long gv long to void
+put PR 0 wmbits gp 0
+put PR 1 wmbits gv 0
+end
+
+fn wsrule env ulong kind ulong to void
+note 1 persistence, 2 constant velocity (hand rules), 3 true mean dynamics (reference only).
+p = get QV 0
+v = get QV 1
+gp = p
+gv = v
+if ge kind 2
+gp = add p v
+end
+if eq kind 3
+g = sub 1 mul 2 long env
+gv = add v mul g get QV 2
+end
+wsput gp gv
+end
+
+fn wsfreqg env ulong to void
+o = wsmode env get QV 0 get QV 1 get QV 2
+dp = sub long div o 5 3
+dv = sub long rem o 5 2
+wsput add get QV 0 dp add get QV 1 dv
+end
+
+fn wsnng env ulong delta bool to void
+id = wsnear env get QV 0 get QV 1 get QV 2
+id = mul id 8
+gp = get TL add id 4
+gv = get TL add id 5
+if delta
+gp = add get QV 0 sub gp get TL add id 1
+gv = add get QV 1 sub gv get TL add id 2
+end
+wsput gp gv
+end
+
+fn wsguess env ulong kind ulong pb ulong n ulong to void
+note kind 0 model at pb, 1 persistence rule, 2 constant-velocity rule, 3 true mean
+note dynamics (reference only), 4 frequency mode, 5 nearest neighbour, 6 neighbour delta.
+r = mul n 8
+put QV 0 get HO add r 1
+put QV 1 get HO add r 2
+put QV 2 get HO add r 3
+if eq kind 0
+wmpred pb get QV 0 get QV 1 get QV 2
+ret
+end
+if eq kind 4
+wsfreqg env
+ret
+end
+if ge kind 5
+wsnng env eq kind 6
+ret
+end
+wsrule env kind
+end
+
+fn wserr pred ulong t long to ulong
+d = add32 pred xor wmbits t 0 2147483648
+ret mul32 d d
+end
+
+fn wsmse env ulong kind ulong pb ulong to ulong
+note Mean over the 128 held-out items of squared error summed over (p2,v2), binary32.
+sum = ulong 0
+for n ulong 128
+wsguess env kind pb n
+r = mul n 8
+sum = add32 sum wserr get PR 0 get HO add r 4
+sum = add32 sum wserr get PR 1 get HO add r 5
+end
+ret mul32 sum 1006632960
+end
+
+fn ckput pos ulong v ulong to void
+for i ulong 8
+put CB add pos i uchar and shr v mul i 8 255
+end
+end
+
+fn ckget pos ulong to ulong
+v = ulong 0
+for i ulong 8
+v = or v shl ulong get CB add pos i mul i 8
+end
+ret v
+end
+
+fn ckfnv base ulong n ulong to ulong
+note FNV-1a 64 integrity check over the image; detects damage, does not authenticate.
+h = ulong 14695981039346656037
+for i ulong n
+h = mul xor h ulong get CB add base i 1099511628211
+end
+ret h
+end
+
+fn cksave base ulong to void
+note 51752-byte image: magic, version1, cells6464, event, WS, TL, FS, FNV-1a 64.
+ckput base 5423263413301234003
+ckput add base 8 1
+ckput add base 16 6464
+ckput add base 24 get WS 0
+for i ulong 2304
+ckput add add base 32 mul i 8 get WS i
+end
+for i ulong 4096
+ckput add add base 18464 mul i 8 wsenc get TL i
+end
+for i ulong 64
+ckput add add base 51232 mul i 8 wsenc get FS i
+end
+ckput add base 51744 ckfnv base 51744
+end
+
+fn ckupdates e ulong to ulong
+if le e 256
+ret mul e 8
+end
+ret add 2048 mul sub e 256 8
+end
+
+fn ckcheck base ulong to int
+note Semantic admission before any state is replaced.
+e = ckget add base 32
+if or gt e 512 ne e ckget add base 24
+ret -6
+end
+na = e
+nb = ulong 0
+if gt e 256
+na = 256
+nb = sub e 256
+end
+if or ne ckget add base 56 na ne ckget add base 64 nb
+ret -7
+end
+if ne ckget add base 40 ckupdates e
+ret -7
+end
+for i ulong 104
+if not affinite ckget add add base 96 mul i 8
+ret -8
+end
+end
+for i ulong 128
+if ge ckget add add base 17440 mul i 8 512
+ret -10
+end
+end
+for i ulong 4160
+if ge ckget add add base 18464 mul i 8 2199023255552
+ret -9
+end
+end
+ret 0
+end
+
+fn ckload base ulong n ulong to int
+note Refuses without changing WS, TL or FS: length, magic, version, size, checksum, semantics.
+if ne n 51752
+ret -1
+end
+if ne ckget base 5423263413301234003
+ret -2
+end
+if ne ckget add base 8 1
+ret -3
+end
+if ne ckget add base 16 6464
+ret -4
+end
+if ne ckfnv base 51744 ckget add base 51744
+ret -5
+end
+st = ckcheck base
+if ne st 0
+ret st
+end
+for i ulong 2304
+put WS i ckget add add base 32 mul i 8
+end
+for i ulong 4096
+put TL i wsdec ckget add add base 18464 mul i 8
+end
+for i ulong 64
+put FS i wsdec ckget add add base 51232 mul i 8
+end
+wmdesc
+ret 0
+end
+
+fn ckread base ulong cap ulong to ulong
+note Read stdin into CB from base until end of input or cap bytes; returns the count.
+n = ulong 0
+while lt n cap bound 999999
+r = read 0 CB add base n sub cap n
+if lt r 0
+exit 74
+end
+if eq r 0
+ret n
+end
+n = add n ulong r
+end
+r = read 0 XB 0 1
+if ne r 0
+ret add n 1
+end
+ret n
+end
+
+fn ckwrite fd int base ulong n ulong to void
+note Write CB[base..base+n) to fd fully (fd 3 is opened by host glue).
+o = ulong 0
+while lt o n bound 999999
+w = write fd CB add base o sub n o
+if le w 0
+exit 74
+end
+o = add o ulong w
+end
+end
diff --git a/tests/si19/run.sh b/tests/si19/run.sh
new file mode 100755
index 0000000..9e9492a
--- /dev/null
+++ b/tests/si19/run.sh
@@ -0,0 +1,130 @@
+#!/bin/sh
+# SPDX-License-Identifier: AGPL-3.0-only
+# aien-train#19 host glue (POSIX sh, disclosed): materialize the pinned sources,
+# verify SHA-256, concatenate, compile with the pinned seeded compiler, run, and
+# record every status. All training, checks and verdicts are in the .om units.
+# Host CPU only. No GPU, network, service or model process is touched.
+set -u
+ROOT=$(cd "$(dirname "$0")/../.." && pwd)
+OUT=${OUT:-$ROOT/evidence/SI19/run}
+OMC=${OMC:-$HOME/workspace/omega-ecosystem660-bridge/build/bootstrap/omc}
+BRIDGE=${OMEGA_BRIDGE_GIT:-$HOME/workspace/omega-bridge}
+OMEGA=${OMEGA_MV_GIT:-$HOME/workspace/omega-ecosystem663}
+QUIET=${QUIET:-quiet-build}
+BUILD=${BUILD:-$(mktemp -d "${TMPDIR:-/tmp}/si19.XXXXXX")}
+OMC_SHA=191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9
+mkdir -p "$OUT" "$BUILD/deps"
+SUM="$OUT/summary.txt"
+: > "$SUM"
+note() { echo "$*" | tee -a "$SUM"; }
+fail() { note "SI19_RUN_FAIL $*"; exit 1; }
+
+note "build_dir=$BUILD"
+note "source_commit=$(git -C "$ROOT" rev-parse HEAD)"
+note "host=$(uname -srm)"
+git -C "$BRIDGE" show 7e1d0d61755ec1a0bbf20941a18379861b5b9d0d:native/ref32/add32.om > "$BUILD/deps/add32.om" || fail materialize add32
+git -C "$BRIDGE" show 7e1d0d61755ec1a0bbf20941a18379861b5b9d0d:native/ref32/mul32.om > "$BUILD/deps/mul32.om" || fail materialize mul32
+git -C "$OMEGA" show 3a995ba8dace538c1532c747d829ca6e4a73582d:native/ecosystem663/metadata.om > "$BUILD/deps/metadata.om" || fail materialize metadata
+git -C "$ROOT" show c9782bfdcf1885082d1fa6c483473f2a514096ad:native/ecosystem6/affine.om > "$BUILD/deps/affine.om" || fail materialize affine
+(cd "$BUILD/deps" && sha256sum -c "$ROOT/docs/si19/deps.sha256") > "$OUT/deps-check.txt" 2>&1 || fail dependency hash
+set -- $(sha256sum "$OMC")
+[ "$1" = "$OMC_SHA" ] || fail "compiler hash $1"
+note "compiler_sha256=$1"
+
+LIB="$BUILD/deps/add32.om $BUILD/deps/mul32.om $BUILD/deps/metadata.om $BUILD/deps/affine.om $ROOT/native/si19/fixture.om $ROOT/native/si19/world.om"
+
+# build NAME CALLER [LIBRARY...]: compile one concatenated unit; status in OUT.
+build() {
+  name=$1; caller=$2; shift 2
+  [ $# -gt 0 ] || set -- $LIB
+  cat "$@" "$caller" > "$BUILD/$name.om"
+  "$QUIET" "$OMC" < "$BUILD/$name.om" > "$BUILD/$name.elf" 2> "$OUT/$name.compile.stderr"
+  rc=$?
+  echo "$rc" > "$OUT/$name.compile.rc"
+  [ "$rc" -eq 0 ] || return "$rc"
+  head -c 4 "$BUILD/$name.elf" | od -An -c | grep -q 'E   L   F' || return 70
+  chmod 700 "$BUILD/$name.elf"
+}
+
+ms() { date +%s%N; }
+
+build world-test "$ROOT/tests/si19/world-test.om" || fail compile world-test
+build world "$ROOT/native/si19/main.om" || fail compile world
+readelf -l -d "$BUILD/world.elf" > "$OUT/world.readelf.txt" 2>&1
+
+t0=$(ms)
+"$BUILD/world-test.elf" > "$OUT/world-test.stdout" 2> "$OUT/world-test.stderr"
+rc=$?; t1=$(ms)
+echo "$rc" > "$OUT/world-test.rc"
+note "world-test rc=$rc wall_ms=$(( (t1 - t0) / 1000000 )) $(cat "$OUT/world-test.stdout")"
+[ "$rc" -eq 0 ] || fail world-test
+
+# run MODE NAME [IMAGE...]: mode byte then images on stdin; fd 3 receives an image.
+run() {
+  mode=$1; name=$2; shift 2
+  t0=$(ms)
+  { printf '%s' "$mode"; [ $# -gt 0 ] && cat "$@"; } | "$BUILD/world.elf" 3> "$BUILD/$name.img" > "$OUT/$name.stdout" 2> "$OUT/$name.stderr"
+  rc=$?; t1=$(ms)
+  echo "$rc" > "$OUT/$name.rc"
+  note "$name mode=$mode rc=$rc wall_ms=$(( (t1 - t0) / 1000000 ))"
+  return "$rc"
+}
+
+run U uninterrupted || fail uninterrupted
+run P partial100 || fail partial100
+run R resume100 "$BUILD/partial100.img" || fail resume100
+run Q partial300 || fail partial300
+run R resume300 "$BUILD/partial300.img" || fail resume300
+run C compare100 "$BUILD/uninterrupted.img" "$BUILD/resume100.img" || fail compare100
+run C compare300 "$BUILD/uninterrupted.img" "$BUILD/resume300.img" || fail compare300
+cat "$OUT/compare100.stdout" "$OUT/compare300.stdout" | tee -a "$SUM"
+tail -n +3 "$OUT/resume100.stdout" > "$BUILD/r100.txt"
+tail -n +2 "$OUT/uninterrupted.stdout" > "$BUILD/u.txt"
+cmp -s "$BUILD/u.txt" "$BUILD/r100.txt" || fail resumed report differs
+note "resumed_report_identical=yes"
+
+# Negative controls on the process path.
+run C compare_partial "$BUILD/uninterrupted.img" "$BUILD/partial100.img"
+[ "$?" -eq 1 ] || fail compare of different images did not refuse
+cp "$BUILD/partial100.img" "$BUILD/damaged.img"
+printf '\001' | dd of="$BUILD/damaged.img" bs=1 seek=20000 conv=notrunc 2> /dev/null
+run R resume_damaged "$BUILD/damaged.img"
+[ "$?" -eq 65 ] || fail damaged image admitted
+head -c 51700 "$BUILD/partial100.img" > "$BUILD/short.img"
+run R resume_short "$BUILD/short.img"
+[ "$?" -eq 65 ] || fail truncated image admitted
+cat "$OUT/resume_damaged.stdout" "$OUT/resume_short.stdout" | tee -a "$SUM"
+
+# Fault injection: each altered unit must compile and fail the unchanged test.
+# FILE|ORIGINAL LINE|ALTERED LINE; the original must occur exactly once.
+i=0
+while IFS='|' read -r file orig alt; do
+  [ -n "$file" ] || continue
+  i=$((i + 1))
+  src="$ROOT/native/si19/$file"
+  n=$(grep -c -x -F -- "$orig" "$src")
+  [ "$n" -eq 1 ] || fail "mutant$i matches $n"
+  mdir="$BUILD/mutant$i"; mkdir -p "$mdir"
+  awk -v o="$orig" -v a="$alt" '$0 == o { print a; next } { print }' "$src" > "$mdir/$file"
+  mlib=""
+  for f in $LIB; do
+    if [ "$(basename "$f")" = "$file" ]; then mlib="$mlib $mdir/$file"; else mlib="$mlib $f"; fi
+  done
+  build "mutant$i" "$ROOT/tests/si19/world-test.om" $mlib || fail "mutant$i compile"
+  "$BUILD/mutant$i.elf" > "$OUT/mutant$i.stdout" 2> "$OUT/mutant$i.stderr"
+  rc=$?
+  echo "$rc" > "$OUT/mutant$i.rc"
+  note "mutant$i $file rc=$rc $(cat "$OUT/mutant$i.stdout") :: $alt"
+  [ "$rc" -eq 1 ] || fail "mutant$i survived"
+done <<'EOF'
+fixture.om|put FS add b 2 get FT 3|put FS add b 2 get FT 0
+world.om|put AP c wmbits get TL add t 4 0|put AP c wmbits get TL add t 5 0
+world.om|if not affinite ckget add add base 96 mul i 8|if not affinite ckget add add base 104 mul i 8
+world.om|put FS i wsdec ckget add add base 51232 mul i 8|put FS i 0
+world.om|wmuse arm c|wmuse arm a
+world.om|wmrow 0 a ta|wmrow 0 a a
+EOF
+
+(cd "$OUT" && sha256sum -- *.stdout *.rc *.compile.stderr deps-check.txt world.readelf.txt) > "$OUT/raw.sha256"
+(cd "$BUILD" && sha256sum -- *.img world.elf world-test.elf world.om world-test.om) > "$OUT/build.sha256"
+note "SI19_RUN_PASS"
diff --git a/tests/si19/world-test.om b/tests/si19/world-test.om
new file mode 100644
index 0000000..0517d77
--- /dev/null
+++ b/tests/si19/world-test.om
@@ -0,0 +1,572 @@
+note SPDX-License-Identifier: AGPL-3.0-only
+note aien-train#19 tests. The golden oracle is test-only exact integer arithmetic at
+note scale 2^24; it never calls add32/mul32 and decodes binary32 bits independently.
+global C ulong 1
+global OW long 8
+global OG long 8
+global OY long 4
+global OX long 6
+global OT long 4
+global OL long 1
+global TV ulong 8
+global TB ulong 64
+text PASS "SI19_WORLD_TEST_PASS checks="
+text FAIL "SI19_WORLD_TEST_FAIL check="
+text NL "\n"
+
+fn check ok bool to void
+put C 0 add get C 0 1
+if not ok
+w = write 1 FAIL 0 len FAIL
+wnum get C 0
+w = write 1 NL 0 1
+exit 1
+end
+end
+
+note ---- independent binary32 decode/encode for the oracle ----
+
+fn odec x ulong to long
+note Exact numerator at scale 2^24 of a normal binary32 value.
+if eq and x 2147483647 0
+ret 0
+end
+e = long and shr x 23 255
+check and gt e 0 lt e 255
+m = long or and x 8388607 8388608
+if ge e 126
+check le sub e 126 30
+m = shl m sub e 126
+else
+k = sub 126 e
+check le k 23
+check eq rem m shl long 1 k 0
+m = shr m k
+end
+if ne and x 2147483648 0
+ret neg m
+end
+ret m
+end
+
+fn obits num long to ulong
+note Exact binary32 bits of num/2^24; fails the test if not exactly representable.
+if eq num 0
+ret 0
+end
+sign = ulong 0
+if lt num 0
+sign = 2147483648
+num = neg num
+end
+m = ulong num
+sc = long 24
+while eq and m 1 0 bound 64
+m = shr m 1
+sc = sub sc 1
+end
+check lt m 16777216
+pw = long 0
+q = m
+while gt q 1 bound 64
+q = shr q 1
+pw = add pw 1
+end
+ex = sub add pw 127 sc
+check and gt ex 0 lt ex 255
+ret or sign or shl ulong ex 23 sub shl m ulong sub 23 pw 8388608
+end
+
+fn ochk num long to void
+x = obits num
+end
+
+fn oload row ulong id ulong to void
+r = mul id 8
+c = mul row 3
+put OX c get TL add r 1
+put OX add c 1 get TL add r 2
+put OX add c 2 get TL add r 3
+c = mul row 2
+put OT c get TL add r 4
+put OT add c 1 get TL add r 5
+end
+
+fn oforward row ulong col ulong to long
+y = get OW add 6 col
+for k ulong 3
+t = mul get OX add mul row 3 k get OW add mul k 2 col
+ochk t
+y = add y t
+ochk y
+end
+put OY add mul row 2 col y
+ret y
+end
+
+fn ograd row ulong col ulong g long to void
+put OG add 6 col add get OG add 6 col g
+ochk get OG add 6 col
+for k ulong 3
+i = add mul k 2 col
+gw = mul g get OX add mul row 3 k
+ochk gw
+put OG i add get OG i gw
+ochk get OG i
+end
+end
+
+fn ocell row ulong col ulong to void
+note One output element: forward, residual, loss term and gradient contributions.
+r = sub oforward row col shl get OT add mul row 2 col 24
+ochk r
+check eq rem r 4096 0
+h = div r 4096
+sq = mul h h
+ochk sq
+put OL 0 add get OL 0 sq
+ochk get OL 0
+g = mul r 2
+ochk g
+ograd row col g
+end
+
+fn ostep to void
+put OL 0 0
+for i ulong 8
+put OG i 0
+end
+for row ulong 2
+for col ulong 2
+ocell row col
+end
+end
+for i ulong 8
+d = get OG i
+check eq rem d 512 0
+d = div d 512
+ochk d
+put OW i sub get OW i d
+ochk get OW i
+end
+end
+
+fn ocompare to void
+note Real afstep slots and committed WS parameters against the exact oracle.
+for i ulong 8
+check eq get WS add 8 i obits get OW i
+end
+check eq get WS 5 obits get OL 0
+check eq get AL 0 obits get OL 0
+for i ulong 4
+check eq get AP add 64 i obits get OY i
+end
+for i ulong 6
+check eq get AP add 96 i obits get OG i
+end
+check eq get AP 112 obits get OG 6
+check eq get AP 113 obits get OG 7
+end
+
+fn tforward pb ulong to void
+note Forward-only predictor reproduces afstep's pre-update Y bit for bit.
+for row ulong 2
+id = get WS add 112 row
+r = mul id 8
+wmpred pb get TL add r 1 get TL add r 2 get TL add r 3
+check eq get PR 0 get AP add 64 mul row 2
+check eq get PR 1 get AP add 65 mul row 2
+end
+end
+
+fn tgolden to void
+note Two actual trainer updates (wstrain, arm M) on admitted experience vs exact oracle.
+wsinit
+check eq wsuses 0 0
+for i ulong 8
+check eq get WS add 8 i get WS add 40 i
+put OW i odec get WS add 40 i
+end
+wscollect 0
+put WS 0 1
+wscollect 0
+put WS 0 2
+wstrain 0 0 0
+tforward 40
+oload 0 get WS 112
+oload 1 get WS 113
+ostep
+ocompare
+check eq get WS 1 1
+put TB 0 get WS 112
+put TB 1 get WS 113
+for i ulong 8
+put TV i get WS add 8 i
+end
+wscopy 120 8 8
+wstrain 0 0 0
+tforward 120
+oload 0 get WS 112
+oload 1 get WS 113
+ostep
+ocompare
+check eq get WS 1 2
+check eq wsuses 0 4
+put TB 2 get WS 112
+put TB 3 get WS 113
+tbatch 0 4
+tbatch 1 4
+changed = ulong 0
+for i ulong 8
+if ne get TV i get WS add 8 i
+changed = add changed 1
+end
+end
+check gt changed 0
+end
+
+fn tbatch id ulong n ulong to void
+note Lineage counts equal the exact number of times id was in an applied batch.
+occ = ulong 0
+for i ulong n
+if eq get TB i id
+occ = add occ 1
+end
+end
+check eq get WS add 128 id occ
+end
+
+fn tlinexact to void
+note 32 real arm-M updates over 8 admitted experiences; every id's count is exact.
+wsinit
+for e ulong 8
+put WS 0 e
+wscollect 0
+end
+put WS 0 8
+for k ulong 32
+wstrain 0 0 0
+put TB mul k 2 get WS 112
+put TB add mul k 2 1 get WS 113
+end
+for id ulong 8
+tbatch id 64
+end
+check eq wsuses 0 64
+end
+
+fn tshuffle to void
+note Shuffled control: row inputs and row outcome come from the recorded, distinct ids.
+wsinit
+wscollect 0
+put WS 0 1
+wscollect 0
+put WS 0 2
+seen = ulong 0
+for k ulong 64
+wsshuf
+a = get WS 116
+t = get WS 117
+if ne a t
+seen = add seen 1
+check eq get AP 0 wmbits get TL add mul a 8 1 0
+check eq get AP 1 wmbits get TL add mul a 8 2 0
+check eq get AP 48 wmbits get TL add mul t 8 4 0
+check eq get AP 49 wmbits get TL add mul t 8 5 0
+end
+end
+check gt seen 0
+check eq wsuses 2 256
+end
+
+note ---- fixture: seeded, resettable, transition boundaries ----
+
+fn tsame to void
+fxinit 2 1 4242 0
+for i ulong 300
+u = fxact 2
+fxstep 2 u
+for k ulong 7
+put OG k get FT k
+end
+fxinit 3 1 4242 0
+for j ulong i
+uu = fxact 3
+fxstep 3 uu
+end
+u = fxact 3
+fxstep 3 u
+for k ulong 7
+check eq get OG k get FT k
+end
+end
+end
+
+fn tdiffer to void
+fxinit 2 1 4242 0
+fxinit 3 1 4243 0
+same = ulong 0
+for i ulong 64
+u = fxact 2
+fxstep 2 u
+for k ulong 5
+put OG k get FT k
+end
+u = fxact 3
+fxstep 3 u
+eqp = eq get OG 0 get FT 0
+if and eqp eq get OG 1 get FT 1
+same = add same 1
+end
+end
+check lt same 64
+end
+
+fn tin x long lo long hi long to void
+check and ge x lo le x hi
+end
+
+fn tdone r ulong to void
+step = rem get TL add r 7 16
+dn = fxdone get TL add r 4 get TL add r 5 step
+check eq get TL add r 6 dn
+end
+
+fn trec id ulong gain long to void
+note Each logged transition obeys the dynamics; terminal flag matches bounds and horizon.
+r = mul id 8
+check eq get TL r long id
+v = get TL add r 2
+tin get TL add r 1 -12 12
+tin v -3 3
+tin get TL add r 3 -1 1
+check eq get TL add r 4 add get TL add r 1 v
+g = sub get TL add r 5 v
+tin sub g mul gain get TL add r 3 -1 1
+tdone r
+end
+
+fn tlink id ulong to void
+note Consecutive records: a terminal record is followed by a fresh reset, never its successor.
+r = mul id 8
+n = add r 8
+a = get TL add r 7
+b = get TL add n 7
+if eq get TL add r 6 1
+check eq rem b 16 0
+a = add div a 16 1
+check eq div b 16 a
+tin get TL add n 1 -12 -4
+tin get TL add n 2 -2 2
+else
+check eq b add a 1
+a = get TL add r 4
+check eq get TL add n 1 a
+a = get TL add r 5
+check eq get TL add n 2 a
+end
+end
+
+fn tboundary to void
+for i ulong 256
+trec i 1
+trec add 256 i -1
+end
+for i ulong 255
+tlink i
+tlink add 256 i
+end
+end
+
+note ---- lineage and held-out separation ----
+
+fn tlineage to void
+check eq wsuses 0 4096
+check eq wsuses 1 4096
+check eq wsuses 2 4096
+check eq wsuses 3 2048
+for i ulong 512
+check ge get WS add 640 i get WS add 1664 i
+check ge get WS add 128 i get WS add 1664 i
+end
+for i ulong 256
+check not wsaffect 3 add 256 i
+check not wsaffect 2 add 256 i
+end
+nb = ulong 0
+for i ulong 256
+if wsaffect 1 add 256 i
+nb = add nb 1
+end
+end
+check gt nb 0
+end
+
+fn tkey r ulong t ulong to bool
+a = get HO add r 1
+if ne a get TL add t 1
+ret false
+end
+a = get HO add r 2
+if ne a get TL add t 2
+ret false
+end
+a = get HO add r 3
+ret eq a get TL add t 3
+end
+
+fn theld env ulong to void
+note Held-out ids are outside the training range and keys never occur in training.
+wsfreq env
+wsheld env
+for n ulong 128
+r = mul n 8
+check eq get HO r long add 1048576 n
+for j ulong 256
+t = mul add mul env 256 j 8
+check not tkey r t
+end
+end
+end
+
+note ---- checkpoint restart and refusal ----
+
+fn tdig to ulong
+h = ulong 1469598103934665603
+for i ulong 2304
+h = mul xor h get WS i 1099511628211
+end
+for i ulong 4096
+h = mul xor h wsenc get TL i 1099511628211
+end
+for i ulong 64
+h = mul xor h wsenc get FS i 1099511628211
+end
+ret h
+end
+
+fn twipe to void
+for i ulong 2304
+put WS i 0
+end
+for i ulong 4096
+put TL i 0
+end
+for i ulong 64
+put FS i 0
+end
+for i ulong 192
+put AD i 0
+end
+end
+
+fn trestart cut ulong to void
+wsinit
+wsrun cut
+cksave 0
+twipe
+check eq ckload 0 51752 0
+check eq get WS 0 cut
+wsrun 512
+cksave 0
+for i ulong 51752
+check eq get CB i get CB add 51752 i
+end
+end
+
+fn trefuse code int to void
+d = tdig
+check eq ckload 0 51752 code
+check eq tdig d
+end
+
+fn treseal to void
+ckput 51744 ckfnv 0 51744
+end
+
+fn tcorrupt to void
+wsinit
+wsrun 100
+cksave 0
+wsrun 140
+d = tdig
+check eq ckload 0 51751 -1
+check eq tdig d
+for k ulong 6
+pos = add 100 mul k 9000
+put CB pos uchar xor get CB pos 1
+trefuse -5
+put CB pos uchar xor get CB pos 1
+end
+put CB 0 uchar xor get CB 0 1
+trefuse -2
+put CB 0 uchar xor get CB 0 1
+ckput 8 2
+trefuse -3
+ckput 8 1
+ckput 32 600
+ckput 24 600
+treseal
+trefuse -6
+ckput 32 100
+ckput 24 100
+ckput 56 99
+treseal
+trefuse -7
+ckput 56 100
+keep = ckget 96
+ckput 96 2143289344
+treseal
+trefuse -8
+ckput 96 keep
+keep = ckget 17440
+ckput 17440 9999
+treseal
+trefuse -10
+ckput 17440 keep
+keep = ckget 18464
+ckput 18464 2199023255552
+treseal
+trefuse -9
+ckput 18464 keep
+treseal
+note Every edit undone: the original event-100 image must load again.
+check eq ckload 0 51752 0
+check eq get WS 0 100
+cksave 51752
+for i ulong 51752
+check eq get CB i get CB add 51752 i
+end
+end
+
+fn main to int
+tgolden
+tsame
+tdiffer
+tshuffle
+tlinexact
+wsinit
+wsrun 512
+tboundary
+tlineage
+theld 0
+theld 1
+wsinit
+wsrun 512
+cksave 51752
+trestart 0
+trestart 1
+trestart 37
+trestart 100
+trestart 255
+trestart 256
+trestart 257
+trestart 300
+trestart 511
+trestart 512
+tcorrupt
+w = write 1 PASS 0 len PASS
+wnum get C 0
+w = write 1 NL 0 1
+ret 0
+end