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
aien-train / evidence / ADTRAIN-REPLAY-20261107 / README.md
| 1 | # evidence/ADTRAIN-REPLAY-20261107: independent replay of the native AD training path (DRA-14) |
| 2 | |
| 3 | Replayed by kanban card t_3dad9df7 (Hermes worker, claude-opus-5-5, anthropic) on |
| 4 | 2026-11-07 on the DGX Spark host (Linux aarch64, `baseline/host.txt`), cores 10-11, |
| 5 | nice 10, through `~/handoffs/hive/queen/pool-10-11.lock`. No GPU was used. |
| 6 | |
| 7 | Subjects, at their merged pins: |
| 8 | |
| 9 | | subject | pin | |
| 10 | |---|---| |
| 11 | | omega-mv #930 (native tape) | merge `19b8340dbae70888c49fcc98299be928831bfd26` (train r5 #996) | |
| 12 | | aien-train #42 (adtrain example) | merge `80bcbd183b597bb1bb3dd220f3e9bf53b008ebee` | |
| 13 | | pinned tape source used by #42 | omega-mv `965fb762…` `native/autodiff664/tape.om` sha256 `1b4ed431…8bde` | |
| 14 | | pinned metadata used by #42 | omega-mv `89752875…` `native/ecosystem663/metadata.om` sha256 `f60b6d62…c7a4` | |
| 15 | | adtrain compiler | omega-mv `bf54b19f` `seed/out/omc` sha256 `62775d2a…712b` | |
| 16 | | current mains (also replayed) | omega-mv `943d955531b9…` (omc `5f90edea…f6df`), aien-train `0518c915dea3…` | |
| 17 | |
| 18 | Both pinned `.om` dependencies are byte-identical at `965fb762`/`89752875`, at the merge |
| 19 | `19b8340d` and at omega-mv main `943d9555`. Between `80bcbd18` and aien-train main |
| 20 | `0518c915` nothing under `native/adtrain`, `tests/adtrain`, `docs/adtrain` or |
| 21 | `evidence/ADTRAIN` changed; between `19b8340d` and `943d9555` only `native/autodiff664/.crumb` |
| 22 | and `CONTRACT.md` changed under the AD paths. |
| 23 | |
| 24 | ## 1. Baseline: the authors' own gates (`baseline/`) |
| 25 | |
| 26 | | command | result | |
| 27 | |---|---| |
| 28 | | omega-mv@19b8340d `tests/autodiff664/run-tape.sh`, omc `be8c5130` (the pin at 19b8340d) | `TAPE_SUITE_PASS NATIVE_TAPE_PASS checks=302`; mutants 0/1/2 exit 1 at checks 212/66/171 | |
| 29 | | same, omc `62775d2a` | identical | |
| 30 | | same, omc `5f90edea` (omega-mv main) | identical | |
| 31 | | omega-mv@943d9555 `run-tape.sh`, omc `5f90edea` | `TAPE_SUITE_PASS NATIVE_TAPE_PASS checks=302` | |
| 32 | | aien-train@80bcbd18 `tests/adtrain/run-adtrain.sh`, OMEGA@19b8340d | `ADTRAIN_SUITE_PASS`; refusals 66/65/65/65; mutants 86/0/0; C M21 host arm `exact=75/75 max_ulp=0 verdict=PASS`, mutant-sign `exact=43/75 … FAIL` as required | |
| 33 | | same, OMEGA@943d9555 | `ADTRAIN_SUITE_PASS` | |
| 34 | | same with omc `5f90edea` (control) | `ADTRAIN_SUITE_FAIL compiler-sha256 (5f90edea…)`, exit 1 | |
| 35 | | C M21 replay of PR #42's frozen `evidence/ADTRAIN/frozen/adtrain.fix` | `exact=75/75 max_ulp=0 verdict=PASS`; mutant-sign FAIL as required | |
| 36 | |
| 37 | Reproduction: `adtrain.fix`, `adtrain.ck.good` and `run/{T,G,D,R,S,fixture-host}.stdout` |
| 38 | of this replay are byte-identical (`cmp`) to PR #42's `evidence/ADTRAIN` receipts. |
| 39 | |
| 40 | ## 2. Independent replay (`replay-pin/`, `replay-main/`) |
| 41 | |
| 42 | `tests/adtrain/replay/run-replay.sh` (new). Mutant injection is `subst.om` (exact-once |
| 43 | substitution; a pattern that does not match exactly once is an INVALID setup, never a |
| 44 | kill) and checkpoint forging is `ckforge.om` (its own FNV-1a 64 and word codec); neither |
| 45 | reuses the authors' `mutate.om` injectors. Predictions were written before the runs |
| 46 | (`predictions.txt`, three dated addenda). |
| 47 | |
| 48 | Final run (run 5), OMEGA = omega-mv `19b8340d` (`replay-pin/replay.txt`) and OMEGA = `943d9555` |
| 49 | (`replay-main/replay.txt`): `REPLAY_PASS fail=0 invalid=0 gap=5`, identical verdict lines. |
| 50 | Its verdicts equal run 3 (`history/run3-replay.txt`) plus the two PADPROBE lines. |
| 51 | |
| 52 | **Checkpoint refusals with a valid checksum (18 PASS lines).** PR #42's own refusal |
| 53 | cases only reach two checks: a byte flip is always caught by the checksum, so the |
| 54 | "byte 100 padding" case of `docs/adtrain/CONTRACT.md` is in fact a checksum refusal. |
| 55 | Re-checksummed images reach every check of `ckcheck` on its own: |
| 56 | |
| 57 | | image | expect | observed | |
| 58 | |---|---|---| |
| 59 | | mode 0 (re-checksummed, unchanged) | 0, tail = uninterrupted T | 0, identical; forger output byte-identical to the input | |
| 60 | | step 200 (boundary) | 0 | 0 | |
| 61 | | magic, version 2, step 201, count 57, lr bits+1, word 7 = 1, param bit 32, param NaN, param +Inf, checksum byte only | 65 | 65 each | |
| 62 | | data hash xor 1 (valid checksum) | 66 | 66 | |
| 63 | | 537 bytes, 0 bytes, 535 bytes, missing file | 65 | 65 each | |
| 64 | |
| 65 | **Each check is load-bearing (12/12 LOADBEARING).** With one check removed from |
| 66 | `mlp.om` (and everything else intact) the good image still loads (exit 0) and the |
| 67 | matching forged image is no longer refused: checksum, magic, version, count, lr, zero |
| 68 | word, data hash and size then load (exit 0); NaN/Inf parameters then fail later in |
| 69 | training (exit 86); a parameter with bit 32 set traps in the checked `uint` conversion |
| 70 | (exit 105); step 201 makes `dtrain`'s `sub upto start` wrap to 2^64−1 and the loop |
| 71 | traps 4 after 1,000,000 passes (exit 104; output kept as a head/tail excerpt with its |
| 72 | sha256). So the step ≤ 200 check is also the only guard of that loop. |
| 73 | |
| 74 | **Independent tape mutants (13; 12 KILLED by `tape-test.om`).** Accumulate-overwrite, |
| 75 | E1 tree on 16 lanes, gB stride, gA from the wrong operand, broadcast row 0 only, SUM |
| 76 | axis swap, relu forward identity, relu backward −0, capacity 33 (trap 3), second |
| 77 | `tpback` allowed, seed 2.0 and operand-b admission skipped are all killed. 7 of them also |
| 78 | change the adtrain T trajectory; the other 5 do not reach this 17-node graph. |
| 79 | |
| 80 | **Independent trainer mutants (6; 2 KILLED by `run-adtrain.sh`).** `m-db2-index` is |
| 81 | killed by the gradient check. `m-lr32` is killed only because `tests/adtrain/main.om` |
| 82 | `dgc` uses `eps = mllr`, so changing lr also changes the finite-difference epsilon. |
| 83 | |
| 84 | ### GAP lines (findings about the suites, not failures of the replay) |
| 85 | |
| 86 | | mutant | what it does | killed by an existing gate? | caught by the golden receipts? | |
| 87 | |---|---|---|---| |
| 88 | | `t-e1-pad-pos0` | pads E1 reduction lanes with +0 instead of −0 | no: `tape-test.om` 302/302 PASS | no (adtrain T unchanged) | |
| 89 | | `m-skip-last-param` | never updates b2[1] | no: `ADTRAIN_SUITE_PASS` | yes: T stdout and checkpoint differ | |
| 90 | | `m-lr-update-only` | doubles lr in the update only | no: `ADTRAIN_SUITE_PASS` | yes | |
| 91 | | `m-hash-T15` | data hash omits the last target value | no: `ADTRAIN_SUITE_PASS` | yes: checkpoint bytes differ | |
| 92 | | `m-no-fsync` | drops `fsync` before `fclose` of the checkpoint | no | no (not observable without a crash test; NOT_RUN) | |
| 93 | |
| 94 | `t-e1-pad-pos0` contradicts the contract (`native/autodiff664/CONTRACT.md`: pad with −0 |
| 95 | to match `src/omega_numeric_reduce.c`). `padprobe.om` shows it is not an equivalent |
| 96 | mutant: summing four −0 leaves with `tpsum` gives −0 on the pinned tape (exit 11) and +0 |
| 97 | on the mutant (exit 10). `tape-test.om` passes 302/302 with the mutant, so none of its checks |
| 98 | distinguishes the two pads. `run-adtrain.sh` checks only self-consistency (T against R, gradients |
| 99 | against central differences, the C oracle on one step); it does not bind the 200-step |
| 100 | trajectory or the checkpoint bytes to a recorded golden, which `run-replay.sh` does |
| 101 | (`GOLDEN … PASS` lines, against `evidence/ADTRAIN/run/T.stdout` and |
| 102 | `evidence/ADTRAIN/frozen/adtrain.ck.good`). |
| 103 | |
| 104 | ## 3. Controls of the replay runner (`history/`) |
| 105 | |
| 106 | - Wrong compiler (`5f90edea`): `REPLAY_FAIL compiler-sha256 …`, exit 1. |
| 107 | - Non-empty OUT: `REPLAY_FAIL OUT not empty`, exit 1. |
| 108 | - Run 1 (`history/run1-replay.txt`): two patterns matched twice, `INVALID subst=76`, |
| 109 | `REPLAY_FAIL fail=0 invalid=2 gap=3`, exit 1. Patterns widened, predictions unchanged. |
| 110 | - Run 2 (`history/run2-replay.txt`): `m-lr-update-only` edited the line the suite's own |
| 111 | `mutate.om` mode 0 injects into, so the suite failed with `mutant0-inject`. That was a |
| 112 | setup collision recorded as a kill; the runner now classifies `*-inject` as INVALID and |
| 113 | the mutant edits `mllr`'s use in `mlupd` instead. |
| 114 | |
| 115 | ## Commands |
| 116 | |
| 117 | From the aien-train checkout (branch `hive/t_3dad9df7-adtrain-replay`, adtrain files identical |
| 118 | to `80bcbd18`), with `OMC` = omega-mv `bf54b19f` `seed/out/omc` (sha256 `62775d2a…712b`): |
| 119 | |
| 120 | ```sh |
| 121 | flock -o POOL taskset -c 10,11 nice -n 10 env OMC=$OMC OMEGA=<omega-mv at 19b8340d> OUT=<new dir> \ |
| 122 | sh tests/adtrain/replay/run-replay.sh # replay-pin/ |
| 123 | flock -o POOL taskset -c 10,11 nice -n 10 env OMC=$OMC OMEGA=<omega-mv at 943d9555> OUT=<new dir> \ |
| 124 | sh tests/adtrain/replay/run-replay.sh # replay-main/ |
| 125 | # baseline/: the authors' commands, from omega-mv and aien-train respectively |
| 126 | OMC=<omc> OUT=<dir> sh tests/autodiff664/run-tape.sh |
| 127 | OMC=$OMC OMEGA=<omega-mv> OUT=<dir> sh tests/adtrain/run-adtrain.sh |
| 128 | make -s test-autodiff-fixture FIXTURE=<aien-train>/evidence/ADTRAIN/frozen/adtrain.fix |
| 129 | ``` |
| 130 | |
| 131 | One replay run takes about 50 s of host CPU on two cores. |
| 132 | |
| 133 | ## Not claimed / NOT_RUN |
| 134 | |
| 135 | GPU execution of the native tape (the GB10 arm of PR #42 replays the C M21 tape, not the |
| 136 | native one; not re-run here), general training (aien-train #6), atomic checkpoint |
| 137 | publication and crash durability (no `rename` host word; `m-no-fsync` is undetectable on |
| 138 | the host), performance, x86 and any hardware qualification. Host evidence only. |
| 139 | |
| 140 | Paths: the four `baseline/*/omc.sha256` files had the scratch work directory prefix rewritten |
| 141 | to `$W/` before commit. No other run output was edited; `ckmut-c-step-s.stdout` (18,889,999 |
| 142 | bytes) is kept as a head/tail excerpt carrying its byte count and sha256, which |
| 143 | `replay-pin/artifacts.sha256` also lists. |