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 / OMEGALLM / wsp-patch-20261107 / pure-omega / README.md
| 1 | # wpatch pure-Omega drivers, 2026-11-07 |
| 2 | |
| 3 | Status: wpbuild.om and wpcheck.om IMPLEMENTED and host-CPU EXERCISED. |
| 4 | GPU qualification, inference-quality improvement, merge and deployment: NOT_RUN. |
| 5 | No GPU was opened and no live service was changed. Round40 was read-only. |
| 6 | |
| 7 | Directive: `DIRECTIVE-20261107-pure-omega.md` (Drake, relayed by the wsp lane). |
| 8 | The shell build script and the Python test driver were ported to Omega and |
| 9 | deleted. Python remains only as the labeled ORACLE `wporacle.py`. |
| 10 | |
| 11 | | File | Status | |
| 12 | | --- | --- | |
| 13 | | `tools/omegallm/wpatch/build.sh` | ported to `wpbuild.om`, deleted | |
| 14 | | `tools/omegallm/wpatch/check.py` | ported to `wpcheck.om`, deleted | |
| 15 | | `tools/omegallm/wpatch/wporacle.py` | ORACLE (digest calculator; never decides PASS or FAIL) | |
| 16 | | `tools/omegallm/wpatch/wpatch.om` | unchanged product | |
| 17 | |
| 18 | Compiler: omega-mv `e5b32567a7aff3ce594e3254a622a846a6cd190b`, omc SHA-256 |
| 19 | `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`. |
| 20 | ORACLE interpreter: `/usr/bin/python3` (Python 3.12.3), SHA-256 |
| 21 | `c86f21d0da9290ece2d7d49a3f7ed52aed59cb029abdf0ea25c79634f6cbe960`. |
| 22 | |
| 23 | ## Build gate: byte-identical wpatch |
| 24 | |
| 25 | ```text |
| 26 | taskset -c 0 nice -n 19 ../omega-mv/seed/out/omc < tools/omegallm/wpatch/wpbuild.om > /tmp/wpp/wpbuild |
| 27 | exit 0 |
| 28 | taskset -c 0 nice -n 19 /tmp/wpp/wpbuild . /tmp/wpp/out2 ../omega-mv/seed/out/omc ../omega-mv 0 |
| 29 | exit 0; build.log, last line WPBUILD PASS |
| 30 | ``` |
| 31 | |
| 32 | | Output | SHA-256 | Earlier shell build | |
| 33 | | --- | --- | --- | |
| 34 | | wpatch | `bf993a780c7421cc2cd23d42fef5692135e9bd339f19a90059d4ef7f17be0847` | same bytes (cmp) | |
| 35 | | wpatch-all.om | `7e8b3ca2cf378af25029ce42ca6c760c880fa3612691216e2f2339c369c22591` | same bytes (cmp) | |
| 36 | | wpcheck | `eeb9bdfb7d4979efbdd797b69f79f791445cce64ba7a27ffd07e528d6c0af959` | new | |
| 37 | | wpcheck-all.om | `ad050062f8d44affe7756b934f79d27e23394ee38eaa7fbb03e5c12eb92f82b3` | new | |
| 38 | |
| 39 | `cmp` against `/home/drakestapleton/work/wsp/wpatch-build` (the shell build) |
| 40 | also found ollm, ollm.om, sha256-source.om, sha256-layout.om, |
| 41 | sha256-functions.om and sha256-vendored.om identical. sha256.diff differs only |
| 42 | in its two header lines (file paths and timestamps). Result: PASS. |
| 43 | |
| 44 | ## Small acceptance |
| 45 | |
| 46 | ```text |
| 47 | taskset -c 0 nice -n 19 /tmp/wpp/out2/wpcheck small /tmp/wpp/out2 /tmp/wpp/w2 tools/omegallm/wpatch/wporacle.py |
| 48 | exit 0; small.log, last line WPCHECK PASS checks=698 commands=117 |
| 49 | ``` |
| 50 | |
| 51 | The 117 child processes are 2 ollm, 108 wpatch and 7 ORACLE runs. The in-run |
| 52 | ORACLE negative control (a fully rehashed manifest for a different finite value) |
| 53 | is accepted by wpatch verify and rejected by wpcheck's independent byte |
| 54 | comparison, as required. Result: PASS. |
| 55 | |
| 56 | ## Driver negative controls |
| 57 | |
| 58 | Each control compiles a mutant wpatch from a copy of `wpatch-all.om` with one |
| 59 | changed line (the diff is kept beside the log) and runs the same wpcheck |
| 60 | against it. wpcheck must exit 1 and name the failed check. |
| 61 | |
| 62 | | Control | One-line change | wpcheck result | |
| 63 | | --- | --- | --- | |
| 64 | | neg-moment | policy 2 apply writes v = 1 instead of clearing it | exit 1, `FAIL exit` (validate of the policy 2 patch exited 53, want 0), checks=589 commands=45 | |
| 65 | | neg-survive | f32 survival counts unchanged instead of changed entries | exit 1, `FAIL verify f32 survival count` (wpatch exited 0 but printed a count that differs from the ORACLE count), checks=178 commands=11 | |
| 66 | |
| 67 | Mutant wpatch SHA-256: neg-moment |
| 68 | `406bb2ef1e1c3ba0cff707d8eeb9c9266bc5777ac7aec19ab896d13e44fe5ea9`, neg-survive |
| 69 | `9c00dd6dae3af708858062a353907f64f1ced5f1d2e9411f832d46203031282f`. |
| 70 | Both controls: PASS (the wrong result was caught). |
| 71 | |
| 72 | Driver refusals, also exercised: `wpcheck bogus a b c` exits 2 with the usage |
| 73 | line; `wpcheck small` with an existing WORK exits 1 with |
| 74 | `FAIL /tmp/wpp/exists: I/O failure`; `wpbuild a b` exits 2 with the usage line. |
| 75 | |
| 76 | ## Real round40 acceptance |
| 77 | |
| 78 | ```text |
| 79 | flock -w 3600 -o /home/drakestapleton/handoffs/hive/queen/pool-19.lock \ |
| 80 | /usr/bin/time -v taskset -c 19 nice -n 10 /tmp/wpp/out2/wpcheck real /tmp/wpp/out2 \ |
| 81 | /home/drakestapleton/work/wsp/ck/wpatch-pure-real-20261107 tools/omegallm/wpatch/wporacle.py \ |
| 82 | /home/drakestapleton/.local/share/omega-tool-model/round40/model.ck |
| 83 | exit 0; real.log, last line WPCHECK PASS checks=31 commands=9 |
| 84 | ``` |
| 85 | |
| 86 | Queued at 08:07:23Z behind the pool-19 lock, finished at 08:11:23Z. The run |
| 87 | itself took 37.21 s wall on core 19 (real.time, MEASURED). The 9 child processes |
| 88 | are 5 wpatch (diff, validate, apply, verify, revert), 3 ORACLE runs and one |
| 89 | sha256sum. The base matched its pinned SHA-256 |
| 90 | `7c7b5b5260f2d9453b6076b64e7f23e88341d96498584f2dfaa229c31ad2e346`; the |
| 91 | reverted copy has the same SHA-256 and the source model was unchanged. The |
| 92 | applied checkpoint equals the bytes wpcheck built from the request, with SHA-256 |
| 93 | `95c8676227161d5fd425082462333a9180fe0c870478b69446bbf92678f47eac`, the same |
| 94 | value as the earlier Python-driver review run. Result: PASS. |
| 95 | |
| 96 | ## Build without tests/omegallm/build.sh |
| 97 | |
| 98 | wpbuild no longer runs `tests/omegallm/build.sh`, `/bin/sh` or `/usr/bin/env`. |
| 99 | It checks the compiler pin itself, builds wpcheck first, checks the three net |
| 100 | sources with `wpcheck sum` (the vendored Omega SHA-256) against the pins of the |
| 101 | aarch64 ollm build, and composes `OUT/ollm.om` in Omega: the line `om2`, then |
| 102 | `native/omegallm/` net/http.om net/json.om net/jsonw.om math.om data.om |
| 103 | lpool.om model.om adam.om ckpt.om bpe.om cli.om lio.om serve.om nogpu.om, plain |
| 104 | concatenation. wpcheck gained the `sum FILE` mode and nothing else. The |
| 105 | sections above are the earlier receipts and stay as they were; their wpcheck |
| 106 | binary was the one before the `sum` mode. |
| 107 | |
| 108 | ```text |
| 109 | taskset -c 0 nice -n 19 ../omega-mv/seed/out/omc < tools/omegallm/wpatch/wpbuild.om > /tmp/wpp/wpbuild2 |
| 110 | exit 0; wpbuild binary SHA-256 65f8fe4bb58209b5aeb470db9ba10a031c3c300cea6b2220706b994266e1fbd1 |
| 111 | taskset -c 0 nice -n 19 /tmp/wpp/wpbuild2 . /tmp/wpp/out3 ../omega-mv/seed/out/omc ../omega-mv 0 |
| 112 | exit 0; build2.log, last line WPBUILD PASS |
| 113 | ``` |
| 114 | |
| 115 | | Output | SHA-256 | Earlier shell build | |
| 116 | | --- | --- | --- | |
| 117 | | ollm.om | `2d13b609945a97ad95dba8626e67588d87c6aec64043affbaf4c107af246eb96` | same bytes (cmp) | |
| 118 | | ollm | `819664d5a2284189cd9baca67681675ed2b4685e19d1d976ce071b0f6fcaa5ea` | same bytes (cmp) | |
| 119 | | wpatch | `bf993a780c7421cc2cd23d42fef5692135e9bd339f19a90059d4ef7f17be0847` | same bytes (cmp) | |
| 120 | | wpatch-all.om | `7e8b3ca2cf378af25029ce42ca6c760c880fa3612691216e2f2339c369c22591` | same bytes (cmp) | |
| 121 | | wpcheck | `709f25cca806cab9415e206e15291e52307a09951bcb0a86cd90b8858c6f4bda` | new | |
| 122 | | wpcheck-all.om | `2354de3f8c702ac433a78883356bcfbd6c015f2a950667fa644488fe055a8936` | new | |
| 123 | |
| 124 | The earlier shell build is `/home/drakestapleton/work/wsp/wpatch-build`, whose |
| 125 | `ollm.om` was written by `tests/omegallm/build.sh` (aarch64). Result: PASS. |
| 126 | |
| 127 | `sum.log`: `wpcheck sum` equals sha256sum on the three net files, `model.om`, |
| 128 | the tampered json.om and an empty file; a missing file exits 1 and a missing |
| 129 | argument exits 2. Result: PASS. |
| 130 | |
| 131 | `small2.log`: `wpcheck small` with the new build, exit 0, last line |
| 132 | `WPCHECK PASS checks=698 commands=117` (1.27 s wall on core 0, small2.time). |
| 133 | Result: PASS. The real round40 run was not repeated with this wpcheck (NOT_RUN). |
| 134 | |
| 135 | Negative controls: |
| 136 | |
| 137 | | Control | Input | Result | |
| 138 | | --- | --- | --- | |
| 139 | | net-tamper | a copy of the repository tree with one space appended to `native/omegallm/net/json.om` | exit 3, `WPBUILD FAIL net source digest differs from the pin: .../net/json.om`; no ollm.om, ollm or wpatch written | |
| 140 | | omc-tamper | a copy of omc with one zero byte appended, passed as OMC | exit 3, `WPBUILD FAIL omc digest differs from the pin`; OUT left empty | |
| 141 | |
| 142 | Both controls: PASS (the change was refused). |
| 143 | |
| 144 | ## Labels |
| 145 | |
| 146 | Host CPU execution only. This is not GPU qualification, a model-quality result, |
| 147 | a merge or a deployment. |