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#48 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/aien-train/patches/1bed4d0218eea047.bundle -o 1bed4d0218eea047.bundle git fetch 1bed4d0218eea047.bundle refs/pull/48/head
Provenance
github-import 1
aien-dev/aien-train
48
2a8d10b36d7cf4052e4981d54594749fc89d670f
{"kind":"github-import","owner":"aien-dev","repo":"aien-train","number":48,"url":"https://github.com/aien-dev/aien-train/pull/48","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:34Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/docs/omegese45/CORE-CLI.md b/docs/omegese45/CORE-CLI.md new file mode 100644 index 0000000..af9800b --- /dev/null +++ b/docs/omegese45/CORE-CLI.md @@ -0,0 +1,107 @@ +# omegese45 core CLI (`oe45core`, `oe45gen`) + +Pipeline lane of [aien-train#45](https://github.com/aien-dev/aien-train/issues/45). The vocabulary, +grammar and exit codes are fixed by the shared interface (R45, 41 ids; `docs/omegese45/vocab.tsv` +sha256 `c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d`). This page documents only +the command line of the two binaries built from `native/omegese45/{data,core}/`. +Training and model details are in [PIPELINE.md](PIPELINE.md). + +## Build + +```sh +OMC=/path/to/omega-mv/seed/out/omc OMEGA=/path/to/omega-mv OUT=out sh tests/omegese45/core/build.sh +``` + +`build.sh` checks the omc sha256 and extracts the SHA-256 unit at the pins recorded in +`native/omegese45/core/dependencies.json`. It prints `BUILD_OK` and writes `out/oe45gen`, `out/oe45core`, +`out/oe45test` (the test driver) and `out/oe45mut` (the fault injector). All four are static aarch64 ELF files +produced by omc bf54b19f (sha256 `62775d2a…f3712b`). The unit order is: +SHA unit, `vocab.om`, `msg.om`, `core/model.om`, `core/ckpt.om`, `core/run.om`, then `core/cli.om` +(or `tests/omegese45/core/main.om` for the driver). + +## `oe45gen SEED COUNT OUT.oe45 OUT.ids` + +Generates COUNT (1..40000) episodes by the reference policy. The only source of randomness is +splitmix64 seeded with SEED. + +- `OUT.oe45` is OE45 v1 text. Each episode is a line `oe45 v1` followed by one message per line. +- `OUT.ids` holds one record per episode: one byte L (1..176), then the L ids, one byte each. +- stdout is one line, `oe45gen v1 SEED COUNT` followed by 26 counters, in this order: + - `mm pair oob retry stop okep`; + - the dimension edges `e000 e001 e100 e101`; + - refused × `replay budget worker transport receipt recomp verdict io`; + - fail × `replay budget worker transport receipt recomp verdict io`. +- Exit codes: 0 ok, 2 usage, 40 a generated message failed the contract validator (a generator defect), 70 I/O. + +The issue #45 data comes from `oe45gen 4501 20000` (train) and `oe45gen 4502 1000` (dev). + +## `oe45core` + +| Command | Effect | stdout | +|---|---|---| +| `init CKDIR TRAIN.ids SEED P1 TOTAL ORDER LRSH` | Writes the step-0 checkpoint (generation 1, slot `ck.a`) bound to `sha256(TRAIN.ids)`. The learning rate is 2^-LRSH; P1 is the length of phase 1 in steps and TOTAL the total number of steps; ORDER seeds the epoch order. | nothing | +| `train CKDIR TRAIN.ids UNTIL EVERY` | Loads the newest valid slot and trains to step min(UNTIL, TOTAL), saving every EVERY steps and at the end. If `sha256(TRAIN.ids)` differs from the binding, exits 54. | `T step phase loss-bits positions` at each save | +| `evaldev CKDIR DEV.ids` | Computes the dev metrics. | `D step episodes positions correct messages exactU exactG` | +| `decode CKDIR U\|G EPFILE` | Decodes the next message after the prefix in EPFILE. | the message words, one line | +| `batch CKDIR U\|G IN OUT` | Decodes every prefix in IN (prefixes are concatenated, each starting at an `oe45 v1` line). | nothing; writes OUT | +| `info CKDIR` | Prints the header of the loaded slot. | `I slot seed step generation P1 total order lrbits algo payload-sha vocab-pin data-sha` | + +Decode modes: + +- `U` is unguided: argmax over all 41 ids until `end`. The message is then checked with the contract + validator, and an invalid message exits 50. +- `G` is guided: at each step the argmax is restricted to ids the grammar allows (`ocmask`), so the + message is valid by construction. +- Both modes stop at the decode budget of 31 ids. Exceeding the budget exits 53 and writes nothing to + stdout. + +A prefix must be OE45 v1 text whose messages are each valid and appear in the order `G (A R)*`, or +`G` followed by one final `act refuse C end` (interface §3: a refuse comes only right after G and gets +no R; its P is the message decoded next). So a prefix ends in a G, an R, or that refuse A. A refuse +after an R, or any message after the refuse, makes the prefix invalid and exits 40. + +Each `batch` OUT line is one of: + +- `ok <message>`; +- `err 50 <words>`, the invalid unguided message; +- `err 53 <words>`, the 31 ids emitted before the decode budget ran out; +- `40` (the bare code, no `err`) for an invalid prefix. + +Exit codes: + +| Code | Meaning | +|---|---| +| 0 | ok | +| 2 | usage, or a malformed data file | +| 40 | invalid prefix | +| 50 | DECODE_INVALID | +| 51 | CKPT_REFUSED (no structurally valid slot) | +| 52 | CKPT_VOCAB (the newest valid slot has a different vocab pin) | +| 53 | DECODE_BUDGET | +| 54 | training data differs from the checkpoint binding | +| 70 | file I/O | + +## Checkpoint `OE45CK01` + +There are two slots, `CKDIR/ck.a` and `CKDIR/ck.b`, each 3,989,908 bytes: a 240-byte header followed by +997,417 binary32 parameters. Every save writes generation g = loaded + 1, to `ck.a` when g is odd and to +`ck.b` when g is even, then calls fsync. The newest valid slot is therefore never the one being +written. A load takes the structurally valid slot with the highest generation, checking: + +- size, magic, the architecture words and the payload length; +- the header digest and the payload digest. + +The full layout is in the header comment of `native/omegese45/core/ckpt.om`. The suite exercises each +of these behaviors in `tests/omegese45/core/run-core.sh`, section 7: + +- fallback when the newest slot is corrupt or truncated; +- 51 when both slots are corrupt or the directory is empty; +- 52 on a wrong vocab pin. + +## Tests + +```sh +OMC=… OMEGA=… OUT=/tmp/oe45core-suite sh tests/omegese45/core/run-core.sh # last line OE45_CORE_PASS +``` + +The receipt is under [`evidence/OMEGESE45/pipeline/`](../../evidence/OMEGESE45/pipeline/). diff --git a/docs/omegese45/PIPELINE.md b/docs/omegese45/PIPELINE.md new file mode 100644 index 0000000..69ea634 --- /dev/null +++ b/docs/omegese45/PIPELINE.md @@ -0,0 +1,297 @@ +# omegese45 pipeline: data, core model, training + +Pipeline lane of [aien-train#45](https://github.com/aien-dev/aien-train/issues/45). This lane owns: + +- `native/omegese45/data/gen.om` (episode generator); +- `native/omegese45/core/{model,ckpt,run,cli}.om` (core model, checkpoint, training and decode CLI); +- `tests/omegese45/core/` (build, suite, oracle); +- the receipts under [`evidence/OMEGESE45/pipeline/`](../../evidence/OMEGESE45/pipeline/). + +The vocabulary (R45, 41 ids), grammar, reference policy and exit codes belong to the contract lane +and are used unchanged (`native/omegese45/{vocab,msg}.om`, `docs/omegese45/vocab.tsv`). The command +line is documented in [CORE-CLI.md](CORE-CLI.md). + +Status words: IMPLEMENTED (code exists), EXERCISED (run, with a receipt), NOT_RUN. Every +measurement below was taken on the **GB10 Spark Grace CPU, cores 10-14 (Cortex-A725), nice 19, +ionice idle**. The programs are single-threaded. No GPU was used. + +## 1. Status + +| Item | Status | Receipt | +|---|---|---| +| Generator `oe45gen`, deterministic, contract-valid, follows the reference policy | EXERCISED | `evidence/OMEGESE45/pipeline/data/`, `suite/` | +| Dense core model, forward and backward in `.om` | EXERCISED (gradient check 639/639 entries) | `suite/grad.stdout` | +| Two-phase training from random weights, 400,000 steps | EXERCISED, 23:52 wall | `train/r1/` | +| Reproducibility (second run byte-identical) | EXERCISED | `train/repro-cmp.txt` | +| Checkpoint `OE45CK01`: resume after kill -9, fallback, 51/52 | EXERCISED | `suite/` | +| Decode U and G, `batch` over the full dev set | EXERCISED | `batch/` | +| Mutants (gradient sign flip, target shifted by one) | EXERCISED, both KILLED | `suite/run-core.log` | +| Transformer core | NOT_RUN: softmax needs `exp`, and omc bf54b19f has only the float intrinsics fsqrt, fabs, fmin and fmax (interface §0). This is an extension proposal. | none | +| GPU training or inference | NOT_RUN: no GPU window was requested; this lane is CPU-only by assignment. | none | +| Native tape reuse (`native/autodiff664/tape.om`) | NOT_RUN (does not fit, see §5) | none | + +No reinforcement learning of any kind is used. Phase 1 is self-supervised next-token prediction and +phase 2 is supervised next-token prediction masked to A and P positions. Both use the reference-policy +episodes as targets, with no reward signal, no sampling-based objective and no policy gradient. + +## 2. Data + +| Split | Command | Episodes | `.ids` sha256 | `.oe45` sha256 | +|---|---|---|---|---| +| train | `oe45gen 4501 20000 train.oe45 train.ids` | 20000 | `76120f4d436edabb9745e568706d613a542e25b59d61965a42bf9488a92f4228` (1,516,027 B) | `609cb1aac900c001a5474c7ff352c1f58d70d384a9ee6af3072ff4baf7af2940` (4,476,414 B) | +| dev | `oe45gen 4502 1000 dev.oe45 dev.ids` | 1000 | `041741b42bd5d02193afd193c0790b979e911603374920d1b2c124ff36c281cf` (76,482 B) | `8396a07bc33e32228625a504d8b8d73503c4d7ceee23b9235fdd1a6da2122d54` (225,668 B) | + +The files are regenerated, not committed. Regenerating them with the head-built binary gives +byte-identical files (`cmp`, receipt `data/`). The stdout counters are in +`data/gen-4501-20000.stdout` and `data/gen-4502-1000.stdout`. + +Lineage (interface §7) is (generator unit sha256, lineage seed). The generator unit is +`native/omegese45/data/gen.om`. The training lineage used sha256 +`2d44ac9c560062e6cd9557393ebe269ab325fdeca03749956f2cbf3637878e58`. +The final source sha256 is `2c61fadcb93d736cfeec894462c84d1053510c4ddf88cb945fb0d3dbf50aebcb`; +the only change is correcting its documentation citation and labeling the outcomes as synthetic. +The lineage seeds are 4501 (train) and 4502 (dev). Each episode is generated by the reference +policy of interface §3 from one goal: + +- The goal kind is `mm` or `pair`, each with probability 1/2. +- Each of the three dimensions is drawn independently: + - 8%: an edge value 0x000, 0x001, 0x100 or 0x101, 2% each; + - 4%: uniform in 0x101..0xfff; + - 88%: uniform in 0x001..0x100. + The admitted range is 1..256, so a dimension is out of range with probability 2% + 2% + 4% = 8%. +- Seeds are uniform in 0..0xffff. +- Each job attempt has a synthetic outcome drawn for training coverage: + - 55%: `res ok`; + - 15%: `res fail transport`; + - 2% each: the 15 other class × code pairs, namely refused × {replay, budget, worker, transport, + receipt, recomp, verdict, io} and fail × {replay, budget, worker, receipt, recomp, verdict, io}. +- The first `fail transport` of a job is retried once. + +These are **grammar-coverage probabilities**, not a measured or predicted runtime distribution. +In particular, `res refused {transport receipt recomp verdict io}` and `res fail {replay budget worker}` +are legal R messages for grammar coverage but unreachable through the Aienet-0 exit map (interface §5). +At run time only that exit map may produce R; the model never produces `res` (interface §0). + +Generator stdout begins `oe45gen v1 SEED COUNT`, then 26 coverage counters in this order +(`gen.om`, coverage-line declaration): `mm pair oob retry stop okep e000 e001 e100 e101`, +then `refused replay budget worker transport receipt recomp verdict io`, +then `fail replay budget worker transport receipt recomp verdict io`. + +The generator implements the v1.3 episode pin: an out-of-bound G yields only `act refuse bound end` +then `rep refused bound end`. In-bound goals use only A-job/R pairs then P. The core prefix parser +accepts G, G (A-job R)*, or G A-refuse as decode points; it refuses any P inside a prefix, a refuse +after an A or R, and any message after a refuse. Decoding deliberately does not encode this policy +in the message DFA (interface §3); hive must still reject an inappropriate predicted message kind. + +### Outcome distribution checked with Wolfram + +Expected counts follow from the generator: + +- P(admit) = 0.92³. +- P(job ok) = 0.55 + 0.15 · 0.55 = 0.6325, since one retry is allowed after a transport failure. +- `mm` has one job and `pair` has two. + +WolframLanguageEvaluator query and raw result are in +[`wolfram-distribution.txt`](../../evidence/OMEGESE45/pipeline/wolfram-distribution.txt). Its expressions +are `oob = n (1-adm); okep = (n/2) adm (pj + pj^2); retry = (n/2) adm (15/100 + 15/100 (1+pj));` +`attempts = (n/2) adm (115/100 + 115/100 (1+pj)); stop = n adm-okep`. +At n=20000 the returned expected counts are: oob 4426.24, okep 8040.39, retry 3074.84, +stop 7533.37, attempts 23573.8, fail transport 3536.07 and each other pair 471.476. + +| Train counter (seed 4501, N 20000) | Observed | Expected | (obs − exp)/√exp | +|---|---|---|---| +| out-of-range goals | 4461 | 4426.24 | 0.522 | +| episodes ending `rep ok` | 8059 | 8040.39 | 0.208 | +| transport retries | 3042 | 3074.84 | −0.592 | +| episodes stopped by an outcome | 7480 | 7533.37 | −0.615 | +| `fail transport` outcomes | 3495 | 3536.07 | −0.691 | + +The 15 other outcome pairs total 7027 observations. Query: + +``` +others = {481,456,538,456,459,482,473,472,448,474,430,474,459,493,432}; e = 471.4761168; +x2 = Total[(others - e)^2/e]; {Total[others], N[x2, 5], N[1 - CDF[ChiSquareDistribution[15], x2], 4]} +-> {7027, 20.6279, 0.1491} +``` + +The uniformity test on the same counts, with 14 degrees of freedom around their own mean, gives p = 0.1160. + +Dev (seed 4502, N 1000), with the same expressions and n = 1000. The observed counts are +{oob 210, okep 401, retry 158, stop 389}, the expected counts {221.312, 402.020, 153.742, 376.668}, +and the z-scores {−0.760, −0.051, 0.343, 0.635}. + +All |z| are below 1 and the χ² p-value is 0.149, so the counters agree with the declared +distribution. The reference policy itself is checked episode by episode by the independent +oracle (`oracle.py policy` prints `POLICY n 0`) and by the in-`.om` contract validator (`vgen`). + +## 3. Model + +The model is a dense next-token model over the R45 ids. Each position t predicts id[t] from a causal +input built only from ids at positions < t: + +- head slot p (0 ≤ p < 30, p < t): the one-hot of id[p], at feature p·41 + id; +- tail slot k (0 ≤ k < 64, k < t): the one-hot of id[t−1−k], at feature (30 + k)·41 + id. + +There are (30 + 64) · 41 = 3854 inputs. The longest goal is 30 ids and the longest message 31, so the +head slots cover the whole goal and the 64 tail slots cover the last two messages. The network is one +hidden layer of 256 ReLU units followed by 41 linear outputs, with 3854·256 + 256 + 256·41 + 41 = 997,417 +parameters (Wolfram: `3854*256 + 256 + 256*41 + 41 -> 997417`). + +- **Initialization (algorithm 1).** splitmix64 seeded with 45 generates W1 and then W2 in payload + order. Each value is u = ((r >> 40) − 2²³) · 2⁻²³, scaled by 1/8 for W1 and 1/16 for W2. The biases + are 0. Every value is a dyadic rational and exact in binary32. +- **Loss.** Squared error between the 41 outputs and the one-hot target id[t]. +- **Update rule.** Plain SGD, one update per trained position, with learning rate 2⁻⁷ = 0.0078125 + (`lrbits 1006632960`). +- **Phases.** + - Phase 1 is self-supervised. It trains every position t ≥ 1 of every episode for P1 = 20,000 steps, + one episode per step, which is one epoch (1,496,027 positions). + - Phase 2 is supervised. It trains only the positions of messages whose frame id is `act` or `rep` + (the A/P mask), up to TOTAL = 400,000 steps. +- **Epoch order.** A Fisher-Yates permutation per epoch, drawn from splitmix64 seeded with + order + 1000003 · epoch (order = 7). It is rebuilt from the step count alone, which is what makes + resume exact. +- **Decoding.** Greedy argmax. + - U (unguided) takes the argmax over all ids and validates the message afterwards. + - G (guided) restricts the argmax to the ids the grammar allows (`ocmask`). + + The decode budget is 31 ids (interface §6). + +The step-0 checkpoint is fully determined by (seed 45, algorithm 1). Its payload sha256 is +`6e2e8efebdad7a09535ef0ef7eb90e8cd72a066b693a89e5ebb4da5c32841c1b`, the same in the suite fixture and in +the full run. + +### Tests (`tests/omegese45/core/run-core.sh`) + +| Check | What fails it | +|---|---| +| gradient check | At three positions of episode 0, central differences (ε = 2⁻⁶) must agree with the backward pass within 0.001 + 0.01·\|g\| at every sampled parameter entry (639 in total; rc 86 otherwise). | +| loss decrease | The summed loss over the first 50 training episodes must fall after one SGD pass over them (rc 87 otherwise). | +| target and mask | The `(episode, t, target, mask)` dump must match `oracle.py mask` byte for byte. | +| causal no-leak | Changing every id at positions ≥ t must not change the output at t, and changing id t must change the output at t + 1 (control). | +| kill -9 and resume | `timeout -s KILL 2` in mid-run, then resuming, must give `ck.a` and `ck.b` byte-identical to an uninterrupted run. | +| data binding | Training with a different `.ids` file must exit 54. | +| round trip | Load then save must reproduce the payload bytes exactly. | +| corrupt slots | A corrupt, header-flipped or truncated newest slot must fall back to the older slot. Both slots corrupt or an empty directory must exit 51; a wrong vocab pin must exit 52. | +| decode | G on step-0 and trained checkpoints never emits an invalid message. U is invalid (50) or over budget (53) when it should be. A bad prefix or header must exit 40. The refuse prefix must be accepted. | +| mutant 0: opgy sign flip in `oploss` | Must be KILLED by the gradient check (rc 86, `GC 639 362`). | +| mutant 1: `optgt` reads t + 1 | Must be KILLED by the target/mask oracle comparison. | + +The suite ran to `OE45_CORE_PASS` in 14.89 s wall (`suite/run-core.log`). + +## 4. Training run (issue #45 checkpoint) + +```sh +P="taskset -c 10-14 nice -n 19 ionice -c3" +$P oe45core init ck train.ids 45 20000 400000 7 7 +/usr/bin/time -v $P oe45core train ck train.ids 400000 20000 +oe45core evaldev ck dev.ids +``` + +The full script is `evidence/OMEGESE45/pipeline/train/final.sh`. The two runs r1 and r2 ran in parallel. + +| Measure | Value | Source | +|---|---|---| +| wall time | 23:52.05 (r1), 23:51.72 (r2) | `train/r*/time.txt` | +| user / system CPU | 1429.84 s / 0.91 s, 99% of one core | `train/r1/time.txt` | +| per step (one episode) | 3.5746 ms (Wolfram `1000*1429.84/400000`) | | +| max RSS | 9600 KB | `train/r1/time.txt` | +| checkpoint | 3,989,908 B per slot (Wolfram `4*997417 + 240`) | | +| step-0 `ck.a` sha256 | `02d85006cd96c9c450c66147538a286b07954964fa14552fb40501fcf77225f2` | `train/r1/sha.txt` | +| trained `ck.a` (gen 21, step 400000) sha256 | `2ebb99de9a0aa04dfba95e0f008e392b99c3f4c4c3836086e24cf7b3a8204058` | `train/r1/sha.txt` | +| trained `ck.b` (gen 20, step 380000) sha256 | `71118b656eb3aa8ac5a5d75e5d5a35710d49a44e78bfcbba88cfcec81a25892e` | `train/r1/sha.txt` | +| reproducibility | r2 `step0.ck`, `ck.a`, `ck.b` and `train.out` are byte-identical to r1 | `train/repro-cmp.txt` | + +Mean loss per trained position is the summed pre-update loss from the `T` lines divided by the +positions; the binary32 bits were decoded with Wolfram (`ImportByteArray[…, "Real32"]`): + +- 0.287741 in phase 1, up to step 20000; +- 0.0712697 for steps 20000..40000; +- 0.0137037 for steps 380000..400000. + +Dev results, from 2410 A/P messages in 1000 episodes (`D step episodes positions correct messages exactU exactG`): + +| Checkpoint | Teacher-forced correct positions | Exact messages, U | Exact messages, G | +|---|---|---|---| +| step 0 | 1564 / 44233 (3.536%) | 0 / 2410 | 159 / 2410 (6.598%) | +| step 400000 | 43793 / 44233 (99.005%) | 2116 / 2410 (87.80%) | 2116 / 2410 (87.80%) | + +The percentages are from Wolfram (`N[43793/44233]`, `N[2116/2410]` and so on). These are pipeline +self-checks on the dev split. The sealed evaluation and the reported metrics belong to the eval lane. + +### Tuning + +Each tuning run used the same data. Dev exact-G is shown at 10k / 20k / 30k / 40k steps +(`evidence/OMEGESE45/pipeline/train/tune-*/dev.out`). + +| lr | P1 | Exact G at 10k / 20k / 30k / 40k | +|---|---|---| +| 2⁻¹⁰ | 20000 | 258 / 496 / 765 / 1107 | +| 2⁻⁸ | 20000 | 795 / 1378 / 1565 / 1614 | +| 2⁻⁸ | 5000 | 824 / 1463 / 1596 / 1590 | +| 2⁻⁷ | 20000 | 991 / 1566 / 1659 / 1797 | +| 2⁻⁶ | 20000 | 830 / 1116 / 1615 / 1712 | + +2⁻⁷ with one full self-supervised epoch was chosen. The 400,000-step total fits the 45-minute limit. + +### Batch decode over the full dev set + +`oracle.py prefixes dev.oe45 1000` writes 2410 prefixes. Each one ends just before an A or P +message: after a G, after an R, or after `act refuse` (whose P follows directly). `oe45core batch` +decodes them, and `oe45test vok` counts the results (`evidence/OMEGESE45/pipeline/batch/summary.txt`). + +| Checkpoint | Mode | Wall | Valid ok | err 50 | err 53 | Exact vs reference | +|---|---|---|---|---|---|---| +| step 0 | U | 3.64 s | 0 | 94 | 2316 | 0 | +| step 0 | G | 1.12 s | 2410 | 0 | 0 | 159 | +| step 400000 | U | 1.69 s | 2410 | 0 | 0 | 2116 | +| step 400000 | G | 1.70 s | 2410 | 0 | 0 | 2116 | + +Batch exact counts equal the `evaldev` counts. The trained model's G errors by expected message type +(`batch/errors-by-type-ck-G.txt`) are: + +| Expected message | Errors | +|---|---| +| `act job` | 148 / 1200 | +| `act refuse` | 7 / 210 | +| `rep ok` | 139 / 401 | +| `rep refused` | 0 / 402 | +| `rep fail` | 0 / 197 | + +The errors are concentrated in copying the hexadecimal operands. Guided decoding guarantees validity, +not binding: the contract lane's binding check (exit 41/42) stays the gate before dispatch. + +## 5. Design notes + +- **Why not the native tape.** `native/autodiff664/tape.om` at omega-mv `965fb762` (sha256 + `1b4ed431…a708bde`) has these limits: "rank 2 only, at most 32 nodes, 64 elements per node" (line 3), + and value and gradient arenas of 2048 binary32 each (`global TV f32 2048`, `TG f32 2048`). The first + weight matrix alone has 3854 × 256 = 986,624 elements. Forward and backward are therefore written out + in `model.om` and checked against central differences instead. The squared-error loss is the one + interface §6 names as tape-compatible. +- **Why PACK5 is not reused.** `native/ecosystem5/pack.om` (`docs/ecosystem5/CONTRACT.md`) is + composed with Omega L775/L776 admission units and pinned to a different compiler (sha256 + `191b776e…98e9`). Its inputs are admitted public examples, not generated episodes. The idea taken + from it is the supervised-target mask: phase 2 masks the loss to A/P messages (`opmask`). +- **No transformer.** This is a dense model, as interface §6 prescribes for the first step. The + transformer is NOT_RUN, as stated in §1. +- **Branch base.** `feat/45-pipeline` starts at main `5aaeb65` plus contract `80cc357`. It includes + only the pipeline commits and the refuse-prefix fix from `00d66c37`. The unused PR #42 merge was + removed by reconstructing this new branch; the old `feat/45-native-pipeline` is not rewritten. + PR #42's build/suite convention was consulted, but its code is not a dependency. +- **Dependencies.** `native/omegese45/core/dependencies.json` records: + - the compiler pin; + - the SHA-256 unit (omega-mv `bf54b19f`, `om/sha256/sha256-om2.om`, sha256 `dbf002dd…94bb`), used for + the vocab pin, the data binding and the payload digests; + - the oracle; + - each host tool with its version and role. + + The `sed` rewrite of `export fn` to `fn` is the one host step in the build path. Its replacement + proposal is an omc unit-link mode that accepts exported library units. + +## 6. Checkpoint locations for the demo and eval lanes + +The checkpoints are too large to commit (3.99 MB per slot) and are regenerated by the commands in §4. + +- Step 0: `/tmp/op45w/final/ck0/ck.a`, sha256 `02d85006…77225f2`. +- Trained: `/tmp/op45w/final/ck/` (`ck.a` `2ebb99de…8204058` is the newest; `ck.b` is `71118b65…25892e`). diff --git a/evidence/OMEGESE45/pipeline/README.md b/evidence/OMEGESE45/pipeline/README.md new file mode 100644 index 0000000..ef3f80d --- /dev/null +++ b/evidence/OMEGESE45/pipeline/README.md @@ -0,0 +1,48 @@ +# OMEGESE45 pipeline receipts (aien-train #45) + +All runs were on the **GB10 Spark Grace CPU, cores 10-14 (Cortex-A725), nice 19, ionice idle**, with +`taskset -c 10-14 nice -n 19 ionice -c3`. No GPU was used. Raw command outputs were copied from +`/tmp/op45w/`; Markdown files describe them. Compiler: omc at omega-mv `bf54b19f`, sha256 +`62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b`. + +The suite was rerun from a fresh clone of clean branch `feat/45-pipeline` at `158e712`, and again +after the generator comment correction at `0a876fe`. `fresh-suite.log` and `fresh-final-suite.log` +both end in `OE45_CORE_PASS` (rc 0), with both mutants KILLED; their `.txt` companions record the +commands, fixture decode-U rc 0 and binary hashes. `clean-branch.txt` proves initial source/test +equivalence to the old pipeline plus contract `80cc357`, with PR #42 absent. The only final source +delta is generator comments (`clean-branch-final.diff`). Regenerated train/dev files are still +byte-identical (`data/final-regen.txt`). No old branch was rewritten. + +| Directory | What | Command | +|---|---|---| +| `suite/` | Core suite after merging `fix/45-core-refuse-prefix` (00d66c3). `run-core.log` ends in `OE45_CORE_PASS`, 14.89 s wall. `*.rc`, `*.stdout` and `*.stderr` are the per-step outputs; files over 64 KiB are recorded only by sha256 in `large-outputs.sha256`. | `OMC=/tmp/om-main/seed/out/omc OMEGA=/tmp/om-main OUT=/tmp/op45w/suite sh tests/omegese45/core/run-core.sh` | +| `data/` | Generator stdout counters and the sha256 and sizes of the train and dev files. The files were regenerated with the head binary and compared with `cmp`: identical. | `oe45gen 4501 20000 train.oe45 train.ids`; `oe45gen 4502 1000 dev.oe45 dev.ids` | +| `train/r1`, `train/r2` | The full 400,000-step training run, done twice. Each has `log` (rc per step), `init.out`, `info0.out`/`info.out`, `dev0.out`/`dev.out`, `train.out` (T lines), `time.txt` (`/usr/bin/time -v`) and `sha.txt`. | `train/final.sh` | +| `train/repro-cmp.txt` | `cmp` of r1 against r2 for `step0.ck`, `ck.a`, `ck.b` and `train.out`: identical. | | +| `train/tune-*` | 40,000-step tuning runs: s10, s8, s7 and s6 are learning rates 2⁻¹⁰, 2⁻⁸, 2⁻⁷ and 2⁻⁶, and s8p5 is 2⁻⁸ with P1 5000. | `train/tune.sh` | +| `batch/` | Full-dev batch decode (2410 oracle prefixes), U and G, on the step-0 and trained checkpoints. It holds the `vok` counts, the exact-match counts, errors by message type, `evaldev` rerun with the head binary, binary sha256 and checkpoint sha256. | see `docs/omegese45/PIPELINE.md` §4 | + +## Binaries + +The training run used `/tmp/op45w/b2/oe45core` (sha256 `c7bb4233…482d`). It was built from +`0e908203` before the refuse-prefix merge, which changed only `opprefix` in `cli.om`: +`git diff --stat 0e90820 HEAD` over model.om, ckpt.om, run.om and gen.om is empty. + +The head binary `/tmp/op45w/suite/bin/oe45core` (sha256 `7dcedc8c…6c0f`) reproduces both `evaldev` +lines exactly (`batch/evaldev-*-head-binary.out`). + +## Checkpoints + +The checkpoints are not committed (3,989,908 B per slot). + +| Checkpoint | Path | sha256 | +|---|---|---| +| step 0 | `/tmp/op45w/final/ck0/ck.a` | `02d85006cd96c9c450c66147538a286b07954964fa14552fb40501fcf77225f2` | +| trained `ck.a` (newest, gen 21) | `/tmp/op45w/final/ck/ck.a` | `2ebb99de9a0aa04dfba95e0f008e392b99c3f4c4c3836086e24cf7b3a8204058` | +| trained `ck.b` | `/tmp/op45w/final/ck/ck.b` | `71118b656eb3aa8ac5a5d75e5d5a35710d49a44e78bfcbba88cfcec81a25892e` | + +## Not run + +- GPU training or inference: NOT_RUN. +- Transformer: NOT_RUN (no `exp` intrinsic). +- Native tape: NOT_RUN, because it does not fit; see PIPELINE.md §5. diff --git a/evidence/OMEGESE45/pipeline/batch/SHA256SUMS b/evidence/OMEGESE45/pipeline/batch/SHA256SUMS new file mode 100644 index 0000000..77e4ad1 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/SHA256SUMS @@ -0,0 +1,6 @@ +89ca1ab51e0fda242a1ed32903dd9729eb315b764c20d060e0d3e0e9645b1603 devpre.oe45 +d6b4e757e1cab5def2b4a08b17e0a70d792266b928be801174e88523676365fe devpre.expect +f63c61f3937024fb52b6d72a0623621b6c18b9b4917ee15cc585d87b164d199d b.ck.G.out +f63c61f3937024fb52b6d72a0623621b6c18b9b4917ee15cc585d87b164d199d b.ck.U.out +801d002d4ccca6c7c05b939f7e5bcef87c573199d4a4baa5f54a67009686d516 b.ck0.G.out +faf7f3f3b14b9e7df416539db23f2d951217923442806a50290050a737514706 b.ck0.U.out diff --git a/evidence/OMEGESE45/pipeline/batch/b.ck.G.head40.out b/evidence/OMEGESE45/pipeline/batch/b.ck.G.head40.out new file mode 100644 index 0000000..293c3d7 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/b.ck.G.head40.out @@ -0,0 +1,40 @@ +ok act job mm ushort 0x005 ushort 0x023 ushort 0x06f ulong 0xb98f end +ok rep ok mm ushort 0x005 ushort 0x023 ushort 0x06f ulong 0xb98f end +ok act job mm ushort 0x016 ushort 0x094 ushort 0x019 ulong 0xbfa3 end +ok rep ok mm ushort 0x016 ushort 0x094 ushort 0x019 ulong 0xbfa3 end +ok act job mm ushort 0x094 ushort 0x06a ushort 0x082 ulong 0xc7eb end +ok act job mm ushort 0x094 ushort 0x06a ushort 0x082 ulong 0xc7eb end +ok rep fail recomp end +ok act refuse bound end +ok rep refused bound end +ok act job mm ushort 0x001 ushort 0x05a ushort 0x093 ulong 0xa55f end +ok rep refused budget end +ok act job mm ushort 0x00d ushort 0x0a1 ushort 0x0d7 ulong 0x686f end +ok rep ok mm ushort 0x00d ushort 0x0a1 ushort 0x0d7 ulong 0x686f end +ok act refuse bound end +ok rep refused bound end +ok act job mm ushort 0x053 ushort 0x088 ushort 0x01c ulong 0x98ba end +ok rep fail receipt end +ok act job mm ushort 0x03c ushort 0x0f8 ushort 0x095 ulong 0x9d7b end +ok rep ok mm ushort 0x03c ushort 0x0f8 ushort 0x095 ulong 0x9d7b end +ok act job mm ushort 0x04d ushort 0x04e ushort 0x0f2 ulong 0x0dc3 end +ok act job mm ushort 0x04d ushort 0x04e ushort 0x0f2 ulong 0xd164 end +ok rep ok pair ushort 0x04d ushort 0x04e ushort 0x0f2 ulong 0x0dc3 ulong 0xd164 end +ok act job mm ushort 0x039 ushort 0x045 ushort 0x0bb ulong 0x3606 end +ok act job mm ushort 0x039 ushort 0x045 ushort 0x0bb ulong 0x3606 end +ok rep ok mm ushort 0x039 ushort 0x045 ushort 0x0bb ulong 0x3606 end +ok act job mm ushort 0x069 ushort 0x087 ushort 0x0a7 ulong 0xc583 end +ok act job mm ushort 0x069 ushort 0x087 ushort 0x0a7 ulong 0xcd71 end +ok rep ok pair ushort 0x069 ushort 0x087 ushort 0x0a7 ulong 0x3383 ulong 0xcd71 end +ok act job mm ushort 0x078 ushort 0x0bb ushort 0x001 ulong 0x9b6c end +ok rep ok mm ushort 0x078 ushort 0x0bb ushort 0x001 ulong 0x9b6c end +ok act refuse bound end +ok rep refused bound end +ok act job mm ushort 0x014 ushort 0x0e0 ushort 0x02f ulong 0xd65d end +ok rep ok mm ushort 0x014 ushort 0x0e0 ushort 0x02f ulong 0xd65d end +ok act job mm ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x7dc4 end +ok act job mm ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x7dc4 end +ok act job mm ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x6b88 end +ok rep ok pair ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x7dc4 ulong 0x6b08 end +ok act job mm ushort 0x057 ushort 0x03c ushort 0x0a5 ulong 0xc7bc end +ok rep fail io end diff --git a/evidence/OMEGESE45/pipeline/batch/binaries.sha256 b/evidence/OMEGESE45/pipeline/batch/binaries.sha256 new file mode 100644 index 0000000..d58b35e --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/binaries.sha256 @@ -0,0 +1,4 @@ +7dcedc8c581c61de8c10d0b8ed6cae801f924e2f3a4497ce1ffe2012affa6c0f /tmp/op45w/suite/bin/oe45core +9a8a03373ac45042837615c9e111152eb74be681a5878e0a5957aa301929282c /tmp/op45w/suite/bin/oe45gen +df95bf08809ebcf525d3ad738a3afb08a565d0aa740d428cc49f494c774bc3a7 /tmp/op45w/suite/bin/oe45test +c7bb423376a72c9da0fe6156916369e223ac58bb49552ec429e4eda6f4dc482d /tmp/op45w/b2/oe45core diff --git a/evidence/OMEGESE45/pipeline/batch/ck.sha256 b/evidence/OMEGESE45/pipeline/batch/ck.sha256 new file mode 100644 index 0000000..a945742 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/ck.sha256 @@ -0,0 +1,3 @@ +02d85006cd96c9c450c66147538a286b07954964fa14552fb40501fcf77225f2 ck0/ck.a +2ebb99de9a0aa04dfba95e0f008e392b99c3f4c4c3836086e24cf7b3a8204058 ck/ck.a +71118b656eb3aa8ac5a5d75e5d5a35710d49a44e78bfcbba88cfcec81a25892e ck/ck.b diff --git a/evidence/OMEGESE45/pipeline/batch/devpre.head40.expect b/evidence/OMEGESE45/pipeline/batch/devpre.head40.expect new file mode 100644 index 0000000..3028f19 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/devpre.head40.expect @@ -0,0 +1,40 @@ +act job mm ushort 0x005 ushort 0x023 ushort 0x06f ulong 0xb98f end +rep ok mm ushort 0x005 ushort 0x023 ushort 0x06f ulong 0xb98f end +act job mm ushort 0x016 ushort 0x094 ushort 0x019 ulong 0xbfa3 end +rep ok mm ushort 0x016 ushort 0x094 ushort 0x019 ulong 0xbfa3 end +act job mm ushort 0x094 ushort 0x06a ushort 0x082 ulong 0xc7eb end +act job mm ushort 0x094 ushort 0x06a ushort 0x082 ulong 0xc7eb end +rep fail recomp end +act refuse bound end +rep refused bound end +act job mm ushort 0x001 ushort 0x05a ushort 0x095 ulong 0xa55f end +rep refused budget end +act job mm ushort 0x00d ushort 0x0a1 ushort 0x0d7 ulong 0x686f end +rep ok mm ushort 0x00d ushort 0x0a1 ushort 0x0d7 ulong 0x686f end +act refuse bound end +rep refused bound end +act job mm ushort 0x053 ushort 0x088 ushort 0x01c ulong 0x98ba end +rep fail receipt end +act job mm ushort 0x03c ushort 0x0f8 ushort 0x095 ulong 0x9d7b end +rep ok mm ushort 0x03c ushort 0x0f8 ushort 0x095 ulong 0x9d7b end +act job mm ushort 0x04d ushort 0x04e ushort 0x0f2 ulong 0x0dc3 end +act job mm ushort 0x04d ushort 0x04e ushort 0x0f2 ulong 0xd164 end +rep ok pair ushort 0x04d ushort 0x04e ushort 0x0f2 ulong 0x0dc3 ulong 0xd164 end +act job mm ushort 0x039 ushort 0x045 ushort 0x0bb ulong 0x3606 end +act job mm ushort 0x039 ushort 0x045 ushort 0x0bb ulong 0x3606 end +rep ok mm ushort 0x039 ushort 0x045 ushort 0x0bb ulong 0x3606 end +act job mm ushort 0x069 ushort 0x087 ushort 0x0a7 ulong 0xc583 end +act job mm ushort 0x069 ushort 0x087 ushort 0x0a7 ulong 0xcd71 end +rep ok pair ushort 0x069 ushort 0x087 ushort 0x0a7 ulong 0xc583 ulong 0xcd71 end +act job mm ushort 0x078 ushort 0x0bb ushort 0x001 ulong 0x9b6c end +rep ok mm ushort 0x078 ushort 0x0bb ushort 0x001 ulong 0x9b6c end +act refuse bound end +rep refused bound end +act job mm ushort 0x014 ushort 0x0e0 ushort 0x02f ulong 0xd65d end +rep ok mm ushort 0x014 ushort 0x0e0 ushort 0x02f ulong 0xd65d end +act job mm ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x7dc4 end +act job mm ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x7dc4 end +act job mm ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x6b88 end +rep ok pair ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x7dc4 ulong 0x6b88 end +act job mm ushort 0x057 ushort 0x03c ushort 0x0a5 ulong 0xc7bc end +rep fail io end diff --git a/evidence/OMEGESE45/pipeline/batch/errors-by-type-ck-G.txt b/evidence/OMEGESE45/pipeline/batch/errors-by-type-ck-G.txt new file mode 100644 index 0000000..2f3eb19 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/errors-by-type-ck-G.txt @@ -0,0 +1,5 @@ +act job 1200 148 +act refuse 210 7 +rep fail 197 0 +rep ok 401 139 +rep refused 402 0 diff --git a/evidence/OMEGESE45/pipeline/batch/evaldev-ck-head-binary.out b/evidence/OMEGESE45/pipeline/batch/evaldev-ck-head-binary.out new file mode 100644 index 0000000..7141718 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/evaldev-ck-head-binary.out @@ -0,0 +1 @@ +D 400000 1000 44233 43793 2410 2116 2116 diff --git a/evidence/OMEGESE45/pipeline/batch/evaldev-ck0-head-binary.out b/evidence/OMEGESE45/pipeline/batch/evaldev-ck0-head-binary.out new file mode 100644 index 0000000..ba1134e --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/evaldev-ck0-head-binary.out @@ -0,0 +1 @@ +D 0 1000 44233 1564 2410 0 159 diff --git a/evidence/OMEGESE45/pipeline/batch/info-ck.out b/evidence/OMEGESE45/pipeline/batch/info-ck.out new file mode 100644 index 0000000..f3bdf2c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/info-ck.out @@ -0,0 +1 @@ +I a 45 400000 21 20000 400000 7 1006632960 1 b08210b8eb3e0d5f1f84ecbd5c3230a5c0bc8714a8382cd63b85c256aa81a2c0 c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 76120f4d436edabb9745e568706d613a542e25b59d61965a42bf9488a92f4228 diff --git a/evidence/OMEGESE45/pipeline/batch/info-ck0.out b/evidence/OMEGESE45/pipeline/batch/info-ck0.out new file mode 100644 index 0000000..96b4bb8 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/info-ck0.out @@ -0,0 +1 @@ +I a 45 0 1 20000 400000 7 1006632960 1 6e2e8efebdad7a09535ef0ef7eb90e8cd72a066b693a89e5ebb4da5c32841c1b c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 76120f4d436edabb9745e568706d613a542e25b59d61965a42bf9488a92f4228 diff --git a/evidence/OMEGESE45/pipeline/batch/summary.txt b/evidence/OMEGESE45/pipeline/batch/summary.txt new file mode 100644 index 0000000..6677462 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/batch/summary.txt @@ -0,0 +1,4 @@ +ck0 U 3.64 s 8320 KB VK 0 0 0 94 2316 0 exact=0 +ck0 G 1.12 s 8160 KB VK 2410 0 0 0 0 0 exact=159 +ck U 1.69 s 8320 KB VK 2410 0 0 0 0 0 exact=2116 +ck G 1.70 s 8320 KB VK 2410 0 0 0 0 0 exact=2116 diff --git a/evidence/OMEGESE45/pipeline/clean-branch-final.diff b/evidence/OMEGESE45/pipeline/clean-branch-final.diff new file mode 100644 index 0000000..e64907a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/clean-branch-final.diff @@ -0,0 +1,24 @@ +Only final source delta versus old tip + refreshed contract: generator documentation comments +diff --git a/native/omegese45/data/gen.om b/native/omegese45/data/gen.om +index 1d7347d..c4d19e4 100644 +--- a/native/omegese45/data/gen.om ++++ b/native/omegese45/data/gen.om +@@ -1,7 +1,7 @@ + note SPDX-License-Identifier: AGPL-3.0-only + note omegese45 episode generator (aien-train #45, pipeline lane). It implements the +-note reference policy of docs/omegese45/CONTRACT.md section 3 and the runtime-outcome +-note distribution declared in docs/omegese45/PIPELINE.md. Build order: ++note reference policy of docs/omegese45/CONTRACT.md section 5 and the synthetic outcome ++note distribution declared in docs/omegese45/PIPELINE.md (grammar coverage, not runtime frequency). Build order: + note cat native/omegese45/vocab.om native/omegese45/msg.om native/omegese45/data/gen.om + note argv: SEED COUNT OUT.oe45 OUT.ids (SEED, COUNT decimal; COUNT 1..40000). + note OUT.oe45: COUNT episodes, each the OE45 v1 text (line `oe45 v1`, one message per line). +@@ -86,7 +86,7 @@ end + ret add 1 opbelow 256 + end + +-note Runtime outcome of one job attempt, as class * 32 + code id: ++note Synthetic outcome of one job attempt for grammar coverage, as class * 32 + code id: + note 55% ok (class 1), 15% fail transport (class 3), 30% split evenly (2% each) over the + note 15 other pairs: refused x {replay budget worker transport receipt recomp verdict io} + note (class 2) and fail x {replay budget worker receipt recomp verdict io} (class 3). diff --git a/evidence/OMEGESE45/pipeline/clean-branch.txt b/evidence/OMEGESE45/pipeline/clean-branch.txt new file mode 100644 index 0000000..17d0372 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/clean-branch.txt @@ -0,0 +1,3 @@ +old tip aef211253 plus contract 80cc357 merge-tree=1d93fe3058752e0e77042a5ab883ebb6b1064807 +native/omegese45 + tests/omegese45 diff rc=0 (empty) +PR42 8307268a ancestor rc=1 (1 = absent) diff --git a/evidence/OMEGESE45/pipeline/data/SHA256SUMS b/evidence/OMEGESE45/pipeline/data/SHA256SUMS new file mode 100644 index 0000000..9cf458b --- /dev/null +++ b/evidence/OMEGESE45/pipeline/data/SHA256SUMS @@ -0,0 +1,4 @@ +76120f4d436edabb9745e568706d613a542e25b59d61965a42bf9488a92f4228 train.ids +609cb1aac900c001a5474c7ff352c1f58d70d384a9ee6af3072ff4baf7af2940 train.oe45 +041741b42bd5d02193afd193c0790b979e911603374920d1b2c124ff36c281cf dev.ids +8396a07bc33e32228625a504d8b8d73503c4d7ceee23b9235fdd1a6da2122d54 dev.oe45 diff --git a/evidence/OMEGESE45/pipeline/data/final-regen.txt b/evidence/OMEGESE45/pipeline/data/final-regen.txt new file mode 100644 index 0000000..c173f58 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/data/final-regen.txt @@ -0,0 +1,4 @@ +train.ids cmp rc=0 identical +train.oe45 cmp rc=0 identical +dev.ids cmp rc=0 identical +dev.oe45 cmp rc=0 identical diff --git a/evidence/OMEGESE45/pipeline/data/gen-4501-20000.stdout b/evidence/OMEGESE45/pipeline/data/gen-4501-20000.stdout new file mode 100644 index 0000000..374af7a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/data/gen-4501-20000.stdout @@ -0,0 +1 @@ +oe45gen v1 4501 20000 9886 10114 4461 3042 7480 8059 1196 1187 1161 1197 481 456 538 456 459 482 473 472 448 474 430 3495 474 459 493 432 diff --git a/evidence/OMEGESE45/pipeline/data/gen-4502-1000.stdout b/evidence/OMEGESE45/pipeline/data/gen-4502-1000.stdout new file mode 100644 index 0000000..eb5b6f7 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/data/gen-4502-1000.stdout @@ -0,0 +1 @@ +oe45gen v1 4502 1000 483 517 210 158 389 401 59 68 58 64 26 17 28 20 27 26 27 21 29 26 26 179 26 19 22 28 diff --git a/evidence/OMEGESE45/pipeline/data/sizes.txt b/evidence/OMEGESE45/pipeline/data/sizes.txt new file mode 100644 index 0000000..78b4d7a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/data/sizes.txt @@ -0,0 +1,4 @@ +-rw-r--r-- 1 drakestapleton drakestapleton 76482 Oct 29 17:56 dev.ids +-rw-r--r-- 1 drakestapleton drakestapleton 225668 Oct 29 17:56 dev.oe45 +-rw-r--r-- 1 drakestapleton drakestapleton 1516027 Oct 29 17:56 train.ids +-rw-r--r-- 1 drakestapleton drakestapleton 4476414 Oct 29 17:56 train.oe45 diff --git a/evidence/OMEGESE45/pipeline/fresh-final-suite.log b/evidence/OMEGESE45/pipeline/fresh-final-suite.log new file mode 100644 index 0000000..12d2e5c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/fresh-final-suite.log @@ -0,0 +1,12 @@ +ok build +ok generator +ok step0 +ok model +Killed +ok resume +ok round-trip +ok checkpoint +ok decode +mutant0 sign-flip KILLED by gradient check (rc 86) +mutant1 wrong-target KILLED by mask/target oracle +OE45_CORE_PASS diff --git a/evidence/OMEGESE45/pipeline/fresh-final-suite.txt b/evidence/OMEGESE45/pipeline/fresh-final-suite.txt new file mode 100644 index 0000000..3a80e15 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/fresh-final-suite.txt @@ -0,0 +1,10 @@ +Fresh clone source: /tmp/oe45-pipeline branch feat/45-pipeline commit 0a876fe +git clone --reference /tmp/oe45-pipeline --branch feat/45-pipeline /tmp/oe45-pipeline /tmp/op45-fresh-final +OMC=/tmp/om-main/seed/out/omc OMEGA=/tmp/om-main OUT=/tmp/op45w/fresh-final-suite sh /tmp/op45-fresh-final/tests/omegese45/core/run-core.sh +rc=0 +fixture decode U rc=0 +act job mm ushort 0x004 ushort 0x0bc ushort 0x040 ulong 0xf84b end +GC 639 0 +GC 639 362 +7dcedc8c581c61de8c10d0b8ed6cae801f924e2f3a4497ce1ffe2012affa6c0f /tmp/op45w/fresh-final-suite/bin/oe45core +9a8a03373ac45042837615c9e111152eb74be681a5878e0a5957aa301929282c /tmp/op45w/fresh-final-suite/bin/oe45gen diff --git a/evidence/OMEGESE45/pipeline/fresh-suite.log b/evidence/OMEGESE45/pipeline/fresh-suite.log new file mode 100644 index 0000000..12d2e5c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/fresh-suite.log @@ -0,0 +1,12 @@ +ok build +ok generator +ok step0 +ok model +Killed +ok resume +ok round-trip +ok checkpoint +ok decode +mutant0 sign-flip KILLED by gradient check (rc 86) +mutant1 wrong-target KILLED by mask/target oracle +OE45_CORE_PASS diff --git a/evidence/OMEGESE45/pipeline/fresh-suite.txt b/evidence/OMEGESE45/pipeline/fresh-suite.txt new file mode 100644 index 0000000..38fcf69 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/fresh-suite.txt @@ -0,0 +1,10 @@ +Fresh clone source: /tmp/oe45-pipeline branch feat/45-pipeline commit 158e712 +git clone --reference /tmp/oe45-pipeline --branch feat/45-pipeline /tmp/oe45-pipeline /tmp/op45-fresh +OMC=/tmp/om-main/seed/out/omc OMEGA=/tmp/om-main OUT=/tmp/op45w/fresh-suite sh /tmp/op45-fresh/tests/omegese45/core/run-core.sh +rc=0 +fixture decode U rc=0 +act job mm ushort 0x004 ushort 0x0bc ushort 0x040 ulong 0xf84b end +GC 639 0 +GC 639 362 +7dcedc8c581c61de8c10d0b8ed6cae801f924e2f3a4497ce1ffe2012affa6c0f /tmp/op45w/fresh-suite/bin/oe45core +9a8a03373ac45042837615c9e111152eb74be681a5878e0a5957aa301929282c /tmp/op45w/fresh-suite/bin/oe45gen diff --git a/evidence/OMEGESE45/pipeline/suite/batref.rc b/evidence/OMEGESE45/pipeline/suite/batref.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/batref.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/batref.stderr b/evidence/OMEGESE45/pipeline/suite/batref.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/batref.stdout b/evidence/OMEGESE45/pipeline/suite/batref.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/batrefm.rc b/evidence/OMEGESE45/pipeline/suite/batrefm.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/batrefm.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/batrefm.stderr b/evidence/OMEGESE45/pipeline/suite/batrefm.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/batrefm.stdout b/evidence/OMEGESE45/pipeline/suite/batrefm.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/bck0G.rc b/evidence/OMEGESE45/pipeline/suite/bck0G.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/bck0G.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/bck0G.stderr b/evidence/OMEGESE45/pipeline/suite/bck0G.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/bck0G.stdout b/evidence/OMEGESE45/pipeline/suite/bck0G.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/bck0U.rc b/evidence/OMEGESE45/pipeline/suite/bck0U.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/bck0U.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/bck0U.stderr b/evidence/OMEGESE45/pipeline/suite/bck0U.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/bck0U.stdout b/evidence/OMEGESE45/pipeline/suite/bck0U.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/bckuG.rc b/evidence/OMEGESE45/pipeline/suite/bckuG.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/bckuG.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/bckuG.stderr b/evidence/OMEGESE45/pipeline/suite/bckuG.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/bckuG.stdout b/evidence/OMEGESE45/pipeline/suite/bckuG.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/bckuU.rc b/evidence/OMEGESE45/pipeline/suite/bckuU.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/bckuU.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/bckuU.stderr b/evidence/OMEGESE45/pipeline/suite/bckuU.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/bckuU.stdout b/evidence/OMEGESE45/pipeline/suite/bckuU.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/bind.rc b/evidence/OMEGESE45/pipeline/suite/bind.rc new file mode 100644 index 0000000..fb1e7bc --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/bind.rc @@ -0,0 +1 @@ +54 diff --git a/evidence/OMEGESE45/pipeline/suite/bind.stderr b/evidence/OMEGESE45/pipeline/suite/bind.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/bind.stdout b/evidence/OMEGESE45/pipeline/suite/bind.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/build.out b/evidence/OMEGESE45/pipeline/suite/build.out new file mode 100644 index 0000000..89db2ff --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/build.out @@ -0,0 +1 @@ +BUILD_OK diff --git a/evidence/OMEGESE45/pipeline/suite/ck0.sha256 b/evidence/OMEGESE45/pipeline/suite/ck0.sha256 new file mode 100644 index 0000000..69d0abd --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/ck0.sha256 @@ -0,0 +1 @@ +d8365d3c605844488053f1e2474465097287034bd8a28be1bd1cec05bca1bb84 /tmp/op45w/suite/w/ck0/ck.a diff --git a/evidence/OMEGESE45/pipeline/suite/dec40.rc b/evidence/OMEGESE45/pipeline/suite/dec40.rc new file mode 100644 index 0000000..425151f --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/dec40.rc @@ -0,0 +1 @@ +40 diff --git a/evidence/OMEGESE45/pipeline/suite/dec40.stderr b/evidence/OMEGESE45/pipeline/suite/dec40.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec40.stdout b/evidence/OMEGESE45/pipeline/suite/dec40.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec40h.rc b/evidence/OMEGESE45/pipeline/suite/dec40h.rc new file mode 100644 index 0000000..425151f --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/dec40h.rc @@ -0,0 +1 @@ +40 diff --git a/evidence/OMEGESE45/pipeline/suite/dec40h.stderr b/evidence/OMEGESE45/pipeline/suite/dec40h.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec40h.stdout b/evidence/OMEGESE45/pipeline/suite/dec40h.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec50.rc b/evidence/OMEGESE45/pipeline/suite/dec50.rc new file mode 100644 index 0000000..e373ee6 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/dec50.rc @@ -0,0 +1 @@ +50 diff --git a/evidence/OMEGESE45/pipeline/suite/dec50.stderr b/evidence/OMEGESE45/pipeline/suite/dec50.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec50.stdout b/evidence/OMEGESE45/pipeline/suite/dec50.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec52.rc b/evidence/OMEGESE45/pipeline/suite/dec52.rc new file mode 100644 index 0000000..0691f67 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/dec52.rc @@ -0,0 +1 @@ +52 diff --git a/evidence/OMEGESE45/pipeline/suite/dec52.stderr b/evidence/OMEGESE45/pipeline/suite/dec52.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec52.stdout b/evidence/OMEGESE45/pipeline/suite/dec52.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec53.rc b/evidence/OMEGESE45/pipeline/suite/dec53.rc new file mode 100644 index 0000000..59343b0 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/dec53.rc @@ -0,0 +1 @@ +53 diff --git a/evidence/OMEGESE45/pipeline/suite/dec53.stderr b/evidence/OMEGESE45/pipeline/suite/dec53.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec53.stdout b/evidence/OMEGESE45/pipeline/suite/dec53.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec53g.rc b/evidence/OMEGESE45/pipeline/suite/dec53g.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/dec53g.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/dec53g.stderr b/evidence/OMEGESE45/pipeline/suite/dec53g.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/dec53g.stdout b/evidence/OMEGESE45/pipeline/suite/dec53g.stdout new file mode 100644 index 0000000..236d665 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/dec53g.stdout @@ -0,0 +1 @@ +act job mm ushort 0x004 ushort 0x0bc ushort 0x040 ulong 0xf84b end diff --git a/evidence/OMEGESE45/pipeline/suite/decg.rc b/evidence/OMEGESE45/pipeline/suite/decg.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/decg.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/decg.stderr b/evidence/OMEGESE45/pipeline/suite/decg.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/decg.stdout b/evidence/OMEGESE45/pipeline/suite/decg.stdout new file mode 100644 index 0000000..236d665 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/decg.stdout @@ -0,0 +1 @@ +act job mm ushort 0x004 ushort 0x0bc ushort 0x040 ulong 0xf84b end diff --git a/evidence/OMEGESE45/pipeline/suite/decref.rc b/evidence/OMEGESE45/pipeline/suite/decref.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/decref.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/decref.stderr b/evidence/OMEGESE45/pipeline/suite/decref.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/decref.stdout b/evidence/OMEGESE45/pipeline/suite/decref.stdout new file mode 100644 index 0000000..cbf685a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/decref.stdout @@ -0,0 +1 @@ +rep refused bound end diff --git a/evidence/OMEGESE45/pipeline/suite/decrefa.rc b/evidence/OMEGESE45/pipeline/suite/decrefa.rc new file mode 100644 index 0000000..425151f --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/decrefa.rc @@ -0,0 +1 @@ +40 diff --git a/evidence/OMEGESE45/pipeline/suite/decrefa.stderr b/evidence/OMEGESE45/pipeline/suite/decrefa.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/decrefa.stdout b/evidence/OMEGESE45/pipeline/suite/decrefa.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/decrefr.rc b/evidence/OMEGESE45/pipeline/suite/decrefr.rc new file mode 100644 index 0000000..425151f --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/decrefr.rc @@ -0,0 +1 @@ +40 diff --git a/evidence/OMEGESE45/pipeline/suite/decrefr.stderr b/evidence/OMEGESE45/pipeline/suite/decrefr.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/decrefr.stdout b/evidence/OMEGESE45/pipeline/suite/decrefr.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/decrefx.rc b/evidence/OMEGESE45/pipeline/suite/decrefx.rc new file mode 100644 index 0000000..425151f --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/decrefx.rc @@ -0,0 +1 @@ +40 diff --git a/evidence/OMEGESE45/pipeline/suite/decrefx.stderr b/evidence/OMEGESE45/pipeline/suite/decrefx.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/decrefx.stdout b/evidence/OMEGESE45/pipeline/suite/decrefx.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/decu.rc b/evidence/OMEGESE45/pipeline/suite/decu.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/decu.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/decu.stderr b/evidence/OMEGESE45/pipeline/suite/decu.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/decu.stdout b/evidence/OMEGESE45/pipeline/suite/decu.stdout new file mode 100644 index 0000000..236d665 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/decu.stdout @@ -0,0 +1 @@ +act job mm ushort 0x004 ushort 0x0bc ushort 0x040 ulong 0xf84b end diff --git a/evidence/OMEGESE45/pipeline/suite/forcee.rc b/evidence/OMEGESE45/pipeline/suite/forcee.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/forcee.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/forcee.stderr b/evidence/OMEGESE45/pipeline/suite/forcee.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/forcee.stdout b/evidence/OMEGESE45/pipeline/suite/forcee.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/forcem.rc b/evidence/OMEGESE45/pipeline/suite/forcem.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/forcem.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/forcem.stderr b/evidence/OMEGESE45/pipeline/suite/forcem.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/forcem.stdout b/evidence/OMEGESE45/pipeline/suite/forcem.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/forcev.rc b/evidence/OMEGESE45/pipeline/suite/forcev.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/forcev.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/forcev.stderr b/evidence/OMEGESE45/pipeline/suite/forcev.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/forcev.stdout b/evidence/OMEGESE45/pipeline/suite/forcev.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/gen1.rc b/evidence/OMEGESE45/pipeline/suite/gen1.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/gen1.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/gen1.stderr b/evidence/OMEGESE45/pipeline/suite/gen1.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/gen1.stdout b/evidence/OMEGESE45/pipeline/suite/gen1.stdout new file mode 100644 index 0000000..fc5d2d8 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/gen1.stdout @@ -0,0 +1 @@ +oe45gen v1 4501 300 146 154 66 43 112 122 24 18 20 22 8 6 8 7 5 7 7 6 4 6 11 51 4 14 3 8 diff --git a/evidence/OMEGESE45/pipeline/suite/gen2.rc b/evidence/OMEGESE45/pipeline/suite/gen2.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/gen2.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/gen2.stderr b/evidence/OMEGESE45/pipeline/suite/gen2.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/gen2.stdout b/evidence/OMEGESE45/pipeline/suite/gen2.stdout new file mode 100644 index 0000000..fc5d2d8 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/gen2.stdout @@ -0,0 +1 @@ +oe45gen v1 4501 300 146 154 66 43 112 122 24 18 20 22 8 6 8 7 5 7 7 6 4 6 11 51 4 14 3 8 diff --git a/evidence/OMEGESE45/pipeline/suite/gen3.rc b/evidence/OMEGESE45/pipeline/suite/gen3.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/gen3.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/gen3.stderr b/evidence/OMEGESE45/pipeline/suite/gen3.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/gen3.stdout b/evidence/OMEGESE45/pipeline/suite/gen3.stdout new file mode 100644 index 0000000..f5793a9 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/gen3.stdout @@ -0,0 +1 @@ +oe45gen v1 4502 60 25 35 12 11 22 26 3 5 5 6 2 1 1 2 2 0 1 0 1 0 4 13 1 1 1 3 diff --git a/evidence/OMEGESE45/pipeline/suite/grad.rc b/evidence/OMEGESE45/pipeline/suite/grad.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/grad.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/grad.stderr b/evidence/OMEGESE45/pipeline/suite/grad.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/grad.stdout b/evidence/OMEGESE45/pipeline/suite/grad.stdout new file mode 100644 index 0000000..996ea56 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/grad.stdout @@ -0,0 +1 @@ +GC 639 0 diff --git a/evidence/OMEGESE45/pipeline/suite/info0.rc b/evidence/OMEGESE45/pipeline/suite/info0.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/info0.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/info0.stderr b/evidence/OMEGESE45/pipeline/suite/info0.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/info0.stdout b/evidence/OMEGESE45/pipeline/suite/info0.stdout new file mode 100644 index 0000000..90ec357 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/info0.stdout @@ -0,0 +1 @@ +I a 45 0 1 300 1200 7 1006632960 1 6e2e8efebdad7a09535ef0ef7eb90e8cd72a066b693a89e5ebb4da5c32841c1b c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 98335ee0e1afc65a81b494cbb02192a20a53ed65e63ab2994419fc46665a70cc diff --git a/evidence/OMEGESE45/pipeline/suite/info51.rc b/evidence/OMEGESE45/pipeline/suite/info51.rc new file mode 100644 index 0000000..82cced2 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/info51.rc @@ -0,0 +1 @@ +51 diff --git a/evidence/OMEGESE45/pipeline/suite/info51.stderr b/evidence/OMEGESE45/pipeline/suite/info51.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/info51.stdout b/evidence/OMEGESE45/pipeline/suite/info51.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/info51e.rc b/evidence/OMEGESE45/pipeline/suite/info51e.rc new file mode 100644 index 0000000..82cced2 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/info51e.rc @@ -0,0 +1 @@ +51 diff --git a/evidence/OMEGESE45/pipeline/suite/info51e.stderr b/evidence/OMEGESE45/pipeline/suite/info51e.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/info51e.stdout b/evidence/OMEGESE45/pipeline/suite/info51e.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/info52.rc b/evidence/OMEGESE45/pipeline/suite/info52.rc new file mode 100644 index 0000000..0691f67 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/info52.rc @@ -0,0 +1 @@ +52 diff --git a/evidence/OMEGESE45/pipeline/suite/info52.stderr b/evidence/OMEGESE45/pipeline/suite/info52.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/info52.stdout b/evidence/OMEGESE45/pipeline/suite/info52.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/infoc.rc b/evidence/OMEGESE45/pipeline/suite/infoc.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/infoc.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/infoc.stderr b/evidence/OMEGESE45/pipeline/suite/infoc.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/infoc.stdout b/evidence/OMEGESE45/pipeline/suite/infoc.stdout new file mode 100644 index 0000000..95526b9 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/infoc.stdout @@ -0,0 +1 @@ +I b 45 1100 12 300 1200 7 1006632960 1 e6ef67f734e3fa1f50f17b898409f38017823a5ca86f42c755e9110b196af3d0 c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 98335ee0e1afc65a81b494cbb02192a20a53ed65e63ab2994419fc46665a70cc diff --git a/evidence/OMEGESE45/pipeline/suite/infoh.rc b/evidence/OMEGESE45/pipeline/suite/infoh.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/infoh.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/infoh.stderr b/evidence/OMEGESE45/pipeline/suite/infoh.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/infoh.stdout b/evidence/OMEGESE45/pipeline/suite/infoh.stdout new file mode 100644 index 0000000..95526b9 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/infoh.stdout @@ -0,0 +1 @@ +I b 45 1100 12 300 1200 7 1006632960 1 e6ef67f734e3fa1f50f17b898409f38017823a5ca86f42c755e9110b196af3d0 c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 98335ee0e1afc65a81b494cbb02192a20a53ed65e63ab2994419fc46665a70cc diff --git a/evidence/OMEGESE45/pipeline/suite/infor.rc b/evidence/OMEGESE45/pipeline/suite/infor.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/infor.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/infor.stderr b/evidence/OMEGESE45/pipeline/suite/infor.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/infor.stdout b/evidence/OMEGESE45/pipeline/suite/infor.stdout new file mode 100644 index 0000000..be9eb52 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/infor.stdout @@ -0,0 +1 @@ +I b 45 1200 14 300 1200 7 1006632960 1 57c3183f095a9ec4a7daa0dfca2795280e4f91a67281367e8a5d128eaf36c246 c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 98335ee0e1afc65a81b494cbb02192a20a53ed65e63ab2994419fc46665a70cc diff --git a/evidence/OMEGESE45/pipeline/suite/infot.rc b/evidence/OMEGESE45/pipeline/suite/infot.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/infot.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/infot.stderr b/evidence/OMEGESE45/pipeline/suite/infot.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/infot.stdout b/evidence/OMEGESE45/pipeline/suite/infot.stdout new file mode 100644 index 0000000..95526b9 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/infot.stdout @@ -0,0 +1 @@ +I b 45 1100 12 300 1200 7 1006632960 1 e6ef67f734e3fa1f50f17b898409f38017823a5ca86f42c755e9110b196af3d0 c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 98335ee0e1afc65a81b494cbb02192a20a53ed65e63ab2994419fc46665a70cc diff --git a/evidence/OMEGESE45/pipeline/suite/infou.rc b/evidence/OMEGESE45/pipeline/suite/infou.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/infou.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/infou.stderr b/evidence/OMEGESE45/pipeline/suite/infou.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/infou.stdout b/evidence/OMEGESE45/pipeline/suite/infou.stdout new file mode 100644 index 0000000..4af22e0 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/infou.stdout @@ -0,0 +1 @@ +I a 45 1200 13 300 1200 7 1006632960 1 57c3183f095a9ec4a7daa0dfca2795280e4f91a67281367e8a5d128eaf36c246 c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 98335ee0e1afc65a81b494cbb02192a20a53ed65e63ab2994419fc46665a70cc diff --git a/evidence/OMEGESE45/pipeline/suite/init.rc b/evidence/OMEGESE45/pipeline/suite/init.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/init.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/init.stderr b/evidence/OMEGESE45/pipeline/suite/init.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/init.stdout b/evidence/OMEGESE45/pipeline/suite/init.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/initb.rc b/evidence/OMEGESE45/pipeline/suite/initb.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/initb.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/initb.stderr b/evidence/OMEGESE45/pipeline/suite/initb.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/initb.stdout b/evidence/OMEGESE45/pipeline/suite/initb.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/kill.rc b/evidence/OMEGESE45/pipeline/suite/kill.rc new file mode 100644 index 0000000..065fd3e --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/kill.rc @@ -0,0 +1 @@ +137 diff --git a/evidence/OMEGESE45/pipeline/suite/kill.stderr b/evidence/OMEGESE45/pipeline/suite/kill.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/kill.stdout b/evidence/OMEGESE45/pipeline/suite/kill.stdout new file mode 100644 index 0000000..1cf4706 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/kill.stdout @@ -0,0 +1,3 @@ +T 100 1 1168613416 8026 +T 200 1 1164728025 7373 +T 300 1 1162859405 6938 diff --git a/evidence/OMEGESE45/pipeline/suite/large-outputs.sha256 b/evidence/OMEGESE45/pipeline/suite/large-outputs.sha256 new file mode 100644 index 0000000..8a7b468 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/large-outputs.sha256 @@ -0,0 +1,5 @@ +9c6111331b3c01567ca1a5a9f12b6cccb0871d67900083f6c197573e30397992 ./mask.expect +9c6111331b3c01567ca1a5a9f12b6cccb0871d67900083f6c197573e30397992 ./mask.stdout +118e4b92308fa32ee162b8113ac96994ab78e3fd455bc5c6cc5cb4821403c40c ./mmask1.stdout +57c3183f095a9ec4a7daa0dfca2795280e4f91a67281367e8a5d128eaf36c246 ./rt.dst +57c3183f095a9ec4a7daa0dfca2795280e4f91a67281367e8a5d128eaf36c246 ./rt.src diff --git a/evidence/OMEGESE45/pipeline/suite/ldec.rc b/evidence/OMEGESE45/pipeline/suite/ldec.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/ldec.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/ldec.stderr b/evidence/OMEGESE45/pipeline/suite/ldec.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/ldec.stdout b/evidence/OMEGESE45/pipeline/suite/ldec.stdout new file mode 100644 index 0000000..f1d12f1 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/ldec.stdout @@ -0,0 +1 @@ +LD 1176498206 1157843370 diff --git a/evidence/OMEGESE45/pipeline/suite/leak.rc b/evidence/OMEGESE45/pipeline/suite/leak.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/leak.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/leak.stderr b/evidence/OMEGESE45/pipeline/suite/leak.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/leak.stdout b/evidence/OMEGESE45/pipeline/suite/leak.stdout new file mode 100644 index 0000000..2ca8464 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/leak.stdout @@ -0,0 +1 @@ +NL 45 1 1 diff --git a/evidence/OMEGESE45/pipeline/suite/m0.rc b/evidence/OMEGESE45/pipeline/suite/m0.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/m0.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/m0.stderr b/evidence/OMEGESE45/pipeline/suite/m0.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/m0.stdout b/evidence/OMEGESE45/pipeline/suite/m0.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/m1.rc b/evidence/OMEGESE45/pipeline/suite/m1.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/m1.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/m1.stderr b/evidence/OMEGESE45/pipeline/suite/m1.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/m1.stdout b/evidence/OMEGESE45/pipeline/suite/m1.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/mask.rc b/evidence/OMEGESE45/pipeline/suite/mask.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/mask.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/mask.stderr b/evidence/OMEGESE45/pipeline/suite/mask.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/mb0.out b/evidence/OMEGESE45/pipeline/suite/mb0.out new file mode 100644 index 0000000..89db2ff --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/mb0.out @@ -0,0 +1 @@ +BUILD_OK diff --git a/evidence/OMEGESE45/pipeline/suite/mb1.out b/evidence/OMEGESE45/pipeline/suite/mb1.out new file mode 100644 index 0000000..89db2ff --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/mb1.out @@ -0,0 +1 @@ +BUILD_OK diff --git a/evidence/OMEGESE45/pipeline/suite/mgrad0.rc b/evidence/OMEGESE45/pipeline/suite/mgrad0.rc new file mode 100644 index 0000000..8cf5c1a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/mgrad0.rc @@ -0,0 +1 @@ +86 diff --git a/evidence/OMEGESE45/pipeline/suite/mgrad0.stderr b/evidence/OMEGESE45/pipeline/suite/mgrad0.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/mgrad0.stdout b/evidence/OMEGESE45/pipeline/suite/mgrad0.stdout new file mode 100644 index 0000000..4bd0668 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/mgrad0.stdout @@ -0,0 +1 @@ +GC 639 362 diff --git a/evidence/OMEGESE45/pipeline/suite/mmask1.rc b/evidence/OMEGESE45/pipeline/suite/mmask1.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/mmask1.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/mmask1.stderr b/evidence/OMEGESE45/pipeline/suite/mmask1.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/policy.stdout b/evidence/OMEGESE45/pipeline/suite/policy.stdout new file mode 100644 index 0000000..fa899e1 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/policy.stdout @@ -0,0 +1 @@ +POLICY 300 0 diff --git a/evidence/OMEGESE45/pipeline/suite/policydev.stdout b/evidence/OMEGESE45/pipeline/suite/policydev.stdout new file mode 100644 index 0000000..c7a30d0 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/policydev.stdout @@ -0,0 +1 @@ +POLICY 60 0 diff --git a/evidence/OMEGESE45/pipeline/suite/pre.expect b/evidence/OMEGESE45/pipeline/suite/pre.expect new file mode 100644 index 0000000..a896526 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/pre.expect @@ -0,0 +1,146 @@ +act job mm ushort 0x005 ushort 0x023 ushort 0x06f ulong 0xb98f end +rep ok mm ushort 0x005 ushort 0x023 ushort 0x06f ulong 0xb98f end +act job mm ushort 0x016 ushort 0x094 ushort 0x019 ulong 0xbfa3 end +rep ok mm ushort 0x016 ushort 0x094 ushort 0x019 ulong 0xbfa3 end +act job mm ushort 0x094 ushort 0x06a ushort 0x082 ulong 0xc7eb end +act job mm ushort 0x094 ushort 0x06a ushort 0x082 ulong 0xc7eb end +rep fail recomp end +act refuse bound end +rep refused bound end +act job mm ushort 0x001 ushort 0x05a ushort 0x095 ulong 0xa55f end +rep refused budget end +act job mm ushort 0x00d ushort 0x0a1 ushort 0x0d7 ulong 0x686f end +rep ok mm ushort 0x00d ushort 0x0a1 ushort 0x0d7 ulong 0x686f end +act refuse bound end +rep refused bound end +act job mm ushort 0x053 ushort 0x088 ushort 0x01c ulong 0x98ba end +rep fail receipt end +act job mm ushort 0x03c ushort 0x0f8 ushort 0x095 ulong 0x9d7b end +rep ok mm ushort 0x03c ushort 0x0f8 ushort 0x095 ulong 0x9d7b end +act job mm ushort 0x04d ushort 0x04e ushort 0x0f2 ulong 0x0dc3 end +act job mm ushort 0x04d ushort 0x04e ushort 0x0f2 ulong 0xd164 end +rep ok pair ushort 0x04d ushort 0x04e ushort 0x0f2 ulong 0x0dc3 ulong 0xd164 end +act job mm ushort 0x039 ushort 0x045 ushort 0x0bb ulong 0x3606 end +act job mm ushort 0x039 ushort 0x045 ushort 0x0bb ulong 0x3606 end +rep ok mm ushort 0x039 ushort 0x045 ushort 0x0bb ulong 0x3606 end +act job mm ushort 0x069 ushort 0x087 ushort 0x0a7 ulong 0xc583 end +act job mm ushort 0x069 ushort 0x087 ushort 0x0a7 ulong 0xcd71 end +rep ok pair ushort 0x069 ushort 0x087 ushort 0x0a7 ulong 0xc583 ulong 0xcd71 end +act job mm ushort 0x078 ushort 0x0bb ushort 0x001 ulong 0x9b6c end +rep ok mm ushort 0x078 ushort 0x0bb ushort 0x001 ulong 0x9b6c end +act refuse bound end +rep refused bound end +act job mm ushort 0x014 ushort 0x0e0 ushort 0x02f ulong 0xd65d end +rep ok mm ushort 0x014 ushort 0x0e0 ushort 0x02f ulong 0xd65d end +act job mm ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x7dc4 end +act job mm ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x7dc4 end +act job mm ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x6b88 end +rep ok pair ushort 0x01c ushort 0x03f ushort 0x100 ulong 0x7dc4 ulong 0x6b88 end +act job mm ushort 0x057 ushort 0x03c ushort 0x0a5 ulong 0xc7bc end +rep fail io end +act job mm ushort 0x0ee ushort 0x06a ushort 0x027 ulong 0x2572 end +act job mm ushort 0x0ee ushort 0x06a ushort 0x027 ulong 0xd299 end +act job mm ushort 0x0ee ushort 0x06a ushort 0x027 ulong 0xd299 end +rep ok pair ushort 0x0ee ushort 0x06a ushort 0x027 ulong 0x2572 ulong 0xd299 end +act job mm ushort 0x0ed ushort 0x0de ushort 0x0d1 ulong 0xad4c end +rep fail io end +act job mm ushort 0x0ef ushort 0x09d ushort 0x0d4 ulong 0xe813 end +act job mm ushort 0x0ef ushort 0x09d ushort 0x0d4 ulong 0xe813 end +rep refused receipt end +act refuse bound end +rep refused bound end +act refuse bound end +rep refused bound end +act job mm ushort 0x04c ushort 0x024 ushort 0x0e0 ulong 0xed1f end +rep fail worker end +act job mm ushort 0x095 ushort 0x057 ushort 0x096 ulong 0xf9b6 end +rep fail worker end +act refuse bound end +rep refused bound end +act job mm ushort 0x0d9 ushort 0x063 ushort 0x0dc ulong 0xe302 end +act job mm ushort 0x0d9 ushort 0x063 ushort 0x0dc ulong 0xe302 end +rep refused verdict end +act job mm ushort 0x023 ushort 0x026 ushort 0x0bb ulong 0xd892 end +act job mm ushort 0x023 ushort 0x026 ushort 0x0bb ulong 0x126b end +rep ok pair ushort 0x023 ushort 0x026 ushort 0x0bb ulong 0xd892 ulong 0x126b end +act job mm ushort 0x0c9 ushort 0x072 ushort 0x08a ulong 0x3c00 end +rep ok mm ushort 0x0c9 ushort 0x072 ushort 0x08a ulong 0x3c00 end +act job mm ushort 0x019 ushort 0x02e ushort 0x001 ulong 0x2114 end +rep ok mm ushort 0x019 ushort 0x02e ushort 0x001 ulong 0x2114 end +act job mm ushort 0x100 ushort 0x023 ushort 0x0e2 ulong 0x0916 end +rep fail worker end +act refuse bound end +rep refused bound end +act refuse bound end +rep refused bound end +act job mm ushort 0x04d ushort 0x100 ushort 0x028 ulong 0xdac8 end +rep ok mm ushort 0x04d ushort 0x100 ushort 0x028 ulong 0xdac8 end +act job mm ushort 0x006 ushort 0x0fa ushort 0x036 ulong 0x35ef end +rep ok mm ushort 0x006 ushort 0x0fa ushort 0x036 ulong 0x35ef end +act job mm ushort 0x0ce ushort 0x03d ushort 0x087 ulong 0xb402 end +act job mm ushort 0x0ce ushort 0x03d ushort 0x087 ulong 0x85d8 end +rep ok pair ushort 0x0ce ushort 0x03d ushort 0x087 ulong 0xb402 ulong 0x85d8 end +act refuse bound end +rep refused bound end +act job mm ushort 0x05d ushort 0x04c ushort 0x0a6 ulong 0xfea2 end +rep refused replay end +act job mm ushort 0x0e1 ushort 0x0bb ushort 0x0be ulong 0x7d9c end +act job mm ushort 0x0e1 ushort 0x0bb ushort 0x0be ulong 0x7d9c end +act job mm ushort 0x0e1 ushort 0x0bb ushort 0x0be ulong 0xc08f end +act job mm ushort 0x0e1 ushort 0x0bb ushort 0x0be ulong 0xc08f end +rep fail transport end +act job mm ushort 0x040 ushort 0x100 ushort 0x0bb ulong 0x6172 end +rep fail verdict end +act job mm ushort 0x010 ushort 0x019 ushort 0x0c4 ulong 0x2b87 end +act job mm ushort 0x010 ushort 0x019 ushort 0x0c4 ulong 0x9dd7 end +act job mm ushort 0x010 ushort 0x019 ushort 0x0c4 ulong 0x9dd7 end +rep fail transport end +act job mm ushort 0x0d8 ushort 0x039 ushort 0x08d ulong 0x1683 end +act job mm ushort 0x0d8 ushort 0x039 ushort 0x08d ulong 0x1683 end +rep refused transport end +act job mm ushort 0x002 ushort 0x078 ushort 0x072 ulong 0x6c85 end +act job mm ushort 0x002 ushort 0x078 ushort 0x072 ulong 0x9f57 end +rep ok pair ushort 0x002 ushort 0x078 ushort 0x072 ulong 0x6c85 ulong 0x9f57 end +act job mm ushort 0x036 ushort 0x0f6 ushort 0x100 ulong 0xdafa end +act job mm ushort 0x036 ushort 0x0f6 ushort 0x100 ulong 0xd2aa end +rep ok pair ushort 0x036 ushort 0x0f6 ushort 0x100 ulong 0xdafa ulong 0xd2aa end +act job mm ushort 0x019 ushort 0x058 ushort 0x001 ulong 0x2ca6 end +act job mm ushort 0x019 ushort 0x058 ushort 0x001 ulong 0x96ad end +rep ok pair ushort 0x019 ushort 0x058 ushort 0x001 ulong 0x2ca6 ulong 0x96ad end +act job mm ushort 0x075 ushort 0x042 ushort 0x00e ulong 0x6c66 end +rep fail replay end +act job mm ushort 0x0a9 ushort 0x015 ushort 0x035 ulong 0xe452 end +rep refused worker end +act job mm ushort 0x021 ushort 0x02f ushort 0x0ea ulong 0xfa0a end +rep refused transport end +act refuse bound end +rep refused bound end +act job mm ushort 0x0ab ushort 0x0af ushort 0x0ab ulong 0x16bc end +rep ok mm ushort 0x0ab ushort 0x0af ushort 0x0ab ulong 0x16bc end +act refuse bound end +rep refused bound end +act job mm ushort 0x041 ushort 0x013 ushort 0x072 ulong 0x2573 end +act job mm ushort 0x041 ushort 0x013 ushort 0x072 ulong 0x429c end +rep fail io end +act job mm ushort 0x045 ushort 0x0e6 ushort 0x065 ulong 0x7921 end +rep ok mm ushort 0x045 ushort 0x0e6 ushort 0x065 ulong 0x7921 end +act job mm ushort 0x0d9 ushort 0x002 ushort 0x0d0 ulong 0xe5ee end +rep ok mm ushort 0x0d9 ushort 0x002 ushort 0x0d0 ulong 0xe5ee end +act job mm ushort 0x028 ushort 0x063 ushort 0x07d ulong 0xeeeb end +rep fail worker end +act job mm ushort 0x0e4 ushort 0x090 ushort 0x088 ulong 0xd42f end +act job mm ushort 0x0e4 ushort 0x090 ushort 0x088 ulong 0x76f7 end +rep refused replay end +act job mm ushort 0x015 ushort 0x027 ushort 0x0da ulong 0xbaf8 end +act job mm ushort 0x015 ushort 0x027 ushort 0x0da ulong 0xc610 end +rep ok pair ushort 0x015 ushort 0x027 ushort 0x0da ulong 0xbaf8 ulong 0xc610 end +act job mm ushort 0x065 ushort 0x054 ushort 0x0ae ulong 0x0fa7 end +act job mm ushort 0x065 ushort 0x054 ushort 0x0ae ulong 0x0fa7 end +rep refused receipt end +act refuse bound end +rep refused bound end +act job mm ushort 0x0ff ushort 0x052 ushort 0x006 ulong 0xbe3f end +act job mm ushort 0x0ff ushort 0x052 ushort 0x006 ulong 0x3dd7 end +rep ok pair ushort 0x0ff ushort 0x052 ushort 0x006 ulong 0xbe3f ulong 0x3dd7 end +act job mm ushort 0x044 ushort 0x04b ushort 0x05b ulong 0x761f end +rep ok mm ushort 0x044 ushort 0x04b ushort 0x05b ulong 0x761f end diff --git a/evidence/OMEGESE45/pipeline/suite/resume.rc b/evidence/OMEGESE45/pipeline/suite/resume.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/resume.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/resume.stderr b/evidence/OMEGESE45/pipeline/suite/resume.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/resume.stdout b/evidence/OMEGESE45/pipeline/suite/resume.stdout new file mode 100644 index 0000000..ebd69a2 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/resume.stdout @@ -0,0 +1,9 @@ +T 400 2 1156703350 4486 +T 500 2 1154765316 4131 +T 600 2 1155538609 4397 +T 700 2 1154277937 4265 +T 800 2 1154434587 4379 +T 900 2 1154289072 4370 +T 1000 2 1152203912 3964 +T 1100 2 1153129345 4278 +T 1200 2 1154564561 4772 diff --git a/evidence/OMEGESE45/pipeline/suite/rt.rc b/evidence/OMEGESE45/pipeline/suite/rt.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/rt.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/rt.stderr b/evidence/OMEGESE45/pipeline/suite/rt.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/rt.stdout b/evidence/OMEGESE45/pipeline/suite/rt.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/run-core.log b/evidence/OMEGESE45/pipeline/suite/run-core.log new file mode 100644 index 0000000..12d2e5c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/run-core.log @@ -0,0 +1,12 @@ +ok build +ok generator +ok step0 +ok model +Killed +ok resume +ok round-trip +ok checkpoint +ok decode +mutant0 sign-flip KILLED by gradient check (rc 86) +mutant1 wrong-target KILLED by mask/target oracle +OE45_CORE_PASS diff --git a/evidence/OMEGESE45/pipeline/suite/train.rc b/evidence/OMEGESE45/pipeline/suite/train.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/train.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/train.stderr b/evidence/OMEGESE45/pipeline/suite/train.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/train.stdout b/evidence/OMEGESE45/pipeline/suite/train.stdout new file mode 100644 index 0000000..99756fe --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/train.stdout @@ -0,0 +1,12 @@ +T 100 1 1168613416 8026 +T 200 1 1164728025 7373 +T 300 1 1162859405 6938 +T 400 2 1156703350 4486 +T 500 2 1154765316 4131 +T 600 2 1155538609 4397 +T 700 2 1154277937 4265 +T 800 2 1154434587 4379 +T 900 2 1154289072 4370 +T 1000 2 1152203912 3964 +T 1100 2 1153129345 4278 +T 1200 2 1154564561 4772 diff --git a/evidence/OMEGESE45/pipeline/suite/vck0G.rc b/evidence/OMEGESE45/pipeline/suite/vck0G.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vck0G.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/vck0G.stderr b/evidence/OMEGESE45/pipeline/suite/vck0G.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/vck0G.stdout b/evidence/OMEGESE45/pipeline/suite/vck0G.stdout new file mode 100644 index 0000000..814e785 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vck0G.stdout @@ -0,0 +1 @@ +VK 146 0 0 0 0 0 diff --git a/evidence/OMEGESE45/pipeline/suite/vck0U.rc b/evidence/OMEGESE45/pipeline/suite/vck0U.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vck0U.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/vck0U.stderr b/evidence/OMEGESE45/pipeline/suite/vck0U.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/vck0U.stdout b/evidence/OMEGESE45/pipeline/suite/vck0U.stdout new file mode 100644 index 0000000..d0edc0d --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vck0U.stdout @@ -0,0 +1 @@ +VK 0 0 0 8 138 0 diff --git a/evidence/OMEGESE45/pipeline/suite/vckuG.rc b/evidence/OMEGESE45/pipeline/suite/vckuG.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vckuG.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/vckuG.stderr b/evidence/OMEGESE45/pipeline/suite/vckuG.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/vckuG.stdout b/evidence/OMEGESE45/pipeline/suite/vckuG.stdout new file mode 100644 index 0000000..814e785 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vckuG.stdout @@ -0,0 +1 @@ +VK 146 0 0 0 0 0 diff --git a/evidence/OMEGESE45/pipeline/suite/vckuU.rc b/evidence/OMEGESE45/pipeline/suite/vckuU.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vckuU.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/vckuU.stderr b/evidence/OMEGESE45/pipeline/suite/vckuU.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/vckuU.stdout b/evidence/OMEGESE45/pipeline/suite/vckuU.stdout new file mode 100644 index 0000000..b080dc9 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vckuU.stdout @@ -0,0 +1 @@ +VK 117 0 0 29 0 0 diff --git a/evidence/OMEGESE45/pipeline/suite/vgen.rc b/evidence/OMEGESE45/pipeline/suite/vgen.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vgen.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/vgen.stderr b/evidence/OMEGESE45/pipeline/suite/vgen.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/vgen.stdout b/evidence/OMEGESE45/pipeline/suite/vgen.stdout new file mode 100644 index 0000000..fd7c3ba --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vgen.stdout @@ -0,0 +1 @@ +VG 300 1362 diff --git a/evidence/OMEGESE45/pipeline/suite/vgenbad.rc b/evidence/OMEGESE45/pipeline/suite/vgenbad.rc new file mode 100644 index 0000000..425151f --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vgenbad.rc @@ -0,0 +1 @@ +40 diff --git a/evidence/OMEGESE45/pipeline/suite/vgenbad.stderr b/evidence/OMEGESE45/pipeline/suite/vgenbad.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/vgenbad.stdout b/evidence/OMEGESE45/pipeline/suite/vgenbad.stdout new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/vgendev.rc b/evidence/OMEGESE45/pipeline/suite/vgendev.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vgendev.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/OMEGESE45/pipeline/suite/vgendev.stderr b/evidence/OMEGESE45/pipeline/suite/vgendev.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/suite/vgendev.stdout b/evidence/OMEGESE45/pipeline/suite/vgendev.stdout new file mode 100644 index 0000000..def8e46 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/suite/vgendev.stdout @@ -0,0 +1 @@ +VG 60 280 diff --git a/evidence/OMEGESE45/pipeline/train/final.sh b/evidence/OMEGESE45/pipeline/train/final.sh new file mode 100755 index 0000000..74ac8f4 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/final.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# $1 tag. Full training: seed 45, lr 2^-7, P1 20000, total 400000, order 7, every 20000. +P="taskset -c 10-14 nice -n 19 ionice -c3"; B=/tmp/op45w/b2; D=/tmp/op45w/d +W=/tmp/op45w/final/$1; rm -rf $W; mkdir -p $W/ck; cd $W +$P $B/oe45core init ck $D/train.ids 45 20000 400000 7 7 > init.out 2>&1; echo init=$? >> log +cp ck/ck.a step0.ck +$P $B/oe45core info ck > info0.out; echo info0=$? >> log +$P $B/oe45core evaldev ck $D/dev.ids > dev0.out; echo dev0=$? >> log +/usr/bin/time -v $P $B/oe45core train ck $D/train.ids 400000 20000 > train.out 2> time.txt; echo train=$? >> log +$P $B/oe45core info ck > info.out; echo info=$? >> log +$P $B/oe45core evaldev ck $D/dev.ids > dev.out; echo dev=$? >> log +sha256sum step0.ck ck/ck.a ck/ck.b > sha.txt diff --git a/evidence/OMEGESE45/pipeline/train/r1/dev.out b/evidence/OMEGESE45/pipeline/train/r1/dev.out new file mode 100644 index 0000000..7141718 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r1/dev.out @@ -0,0 +1 @@ +D 400000 1000 44233 43793 2410 2116 2116 diff --git a/evidence/OMEGESE45/pipeline/train/r1/dev0.out b/evidence/OMEGESE45/pipeline/train/r1/dev0.out new file mode 100644 index 0000000..ba1134e --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r1/dev0.out @@ -0,0 +1 @@ +D 0 1000 44233 1564 2410 0 159 diff --git a/evidence/OMEGESE45/pipeline/train/r1/info.out b/evidence/OMEGESE45/pipeline/train/r1/info.out new file mode 100644 index 0000000..f3bdf2c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r1/info.out @@ -0,0 +1 @@ +I a 45 400000 21 20000 400000 7 1006632960 1 b08210b8eb3e0d5f1f84ecbd5c3230a5c0bc8714a8382cd63b85c256aa81a2c0 c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 76120f4d436edabb9745e568706d613a542e25b59d61965a42bf9488a92f4228 diff --git a/evidence/OMEGESE45/pipeline/train/r1/info0.out b/evidence/OMEGESE45/pipeline/train/r1/info0.out new file mode 100644 index 0000000..96b4bb8 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r1/info0.out @@ -0,0 +1 @@ +I a 45 0 1 20000 400000 7 1006632960 1 6e2e8efebdad7a09535ef0ef7eb90e8cd72a066b693a89e5ebb4da5c32841c1b c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 76120f4d436edabb9745e568706d613a542e25b59d61965a42bf9488a92f4228 diff --git a/evidence/OMEGESE45/pipeline/train/r1/init.out b/evidence/OMEGESE45/pipeline/train/r1/init.out new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/train/r1/log b/evidence/OMEGESE45/pipeline/train/r1/log new file mode 100644 index 0000000..3fed0a2 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r1/log @@ -0,0 +1,6 @@ +init=0 +info0=0 +dev0=0 +train=0 +info=0 +dev=0 diff --git a/evidence/OMEGESE45/pipeline/train/r1/sha.txt b/evidence/OMEGESE45/pipeline/train/r1/sha.txt new file mode 100644 index 0000000..f461c0c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r1/sha.txt @@ -0,0 +1,3 @@ +02d85006cd96c9c450c66147538a286b07954964fa14552fb40501fcf77225f2 step0.ck +2ebb99de9a0aa04dfba95e0f008e392b99c3f4c4c3836086e24cf7b3a8204058 ck/ck.a +71118b656eb3aa8ac5a5d75e5d5a35710d49a44e78bfcbba88cfcec81a25892e ck/ck.b diff --git a/evidence/OMEGESE45/pipeline/train/r1/time.txt b/evidence/OMEGESE45/pipeline/train/r1/time.txt new file mode 100644 index 0000000..e30d713 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r1/time.txt @@ -0,0 +1,23 @@ + Command being timed: "taskset -c 10-14 nice -n 19 ionice -c3 /tmp/op45w/b2/oe45core train ck /tmp/op45w/d/train.ids 400000 20000" + User time (seconds): 1429.84 + System time (seconds): 0.91 + Percent of CPU this job got: 99% + Elapsed (wall clock) time (h:mm:ss or m:ss): 23:52.05 + 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): 9600 + Average resident set size (kbytes): 0 + Major (requiring I/O) page faults: 0 + Minor (reclaiming a frame) page faults: 2620 + Voluntary context switches: 101 + Involuntary context switches: 13499 + Swaps: 0 + File system inputs: 8 + File system outputs: 156160 + Socket messages sent: 0 + Socket messages received: 0 + Signals delivered: 0 + Page size (bytes): 4096 + Exit status: 0 diff --git a/evidence/OMEGESE45/pipeline/train/r1/train.out b/evidence/OMEGESE45/pipeline/train/r1/train.out new file mode 100644 index 0000000..526238c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r1/train.out @@ -0,0 +1,20 @@ +T 20000 1 1221734527 1496027 +T 40000 2 1198743734 874210 +T 60000 2 1194837336 874210 +T 80000 2 1192795038 874210 +T 100000 2 1191202184 874210 +T 120000 2 1189055855 874210 +T 140000 2 1187066291 874210 +T 160000 2 1185760925 874210 +T 180000 2 1184536962 874210 +T 200000 2 1183705595 874210 +T 220000 2 1183117712 874210 +T 240000 2 1181974501 874210 +T 260000 2 1181058652 874210 +T 280000 2 1180496958 874210 +T 300000 2 1179872647 874210 +T 320000 2 1179217196 874210 +T 340000 2 1178916218 874210 +T 360000 2 1178697656 874210 +T 380000 2 1178500689 874210 +T 400000 2 1178283946 874210 diff --git a/evidence/OMEGESE45/pipeline/train/r2/dev.out b/evidence/OMEGESE45/pipeline/train/r2/dev.out new file mode 100644 index 0000000..7141718 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r2/dev.out @@ -0,0 +1 @@ +D 400000 1000 44233 43793 2410 2116 2116 diff --git a/evidence/OMEGESE45/pipeline/train/r2/dev0.out b/evidence/OMEGESE45/pipeline/train/r2/dev0.out new file mode 100644 index 0000000..ba1134e --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r2/dev0.out @@ -0,0 +1 @@ +D 0 1000 44233 1564 2410 0 159 diff --git a/evidence/OMEGESE45/pipeline/train/r2/info.out b/evidence/OMEGESE45/pipeline/train/r2/info.out new file mode 100644 index 0000000..f3bdf2c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r2/info.out @@ -0,0 +1 @@ +I a 45 400000 21 20000 400000 7 1006632960 1 b08210b8eb3e0d5f1f84ecbd5c3230a5c0bc8714a8382cd63b85c256aa81a2c0 c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 76120f4d436edabb9745e568706d613a542e25b59d61965a42bf9488a92f4228 diff --git a/evidence/OMEGESE45/pipeline/train/r2/info0.out b/evidence/OMEGESE45/pipeline/train/r2/info0.out new file mode 100644 index 0000000..96b4bb8 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r2/info0.out @@ -0,0 +1 @@ +I a 45 0 1 20000 400000 7 1006632960 1 6e2e8efebdad7a09535ef0ef7eb90e8cd72a066b693a89e5ebb4da5c32841c1b c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d 76120f4d436edabb9745e568706d613a542e25b59d61965a42bf9488a92f4228 diff --git a/evidence/OMEGESE45/pipeline/train/r2/init.out b/evidence/OMEGESE45/pipeline/train/r2/init.out new file mode 100644 index 0000000..e69de29 diff --git a/evidence/OMEGESE45/pipeline/train/r2/log b/evidence/OMEGESE45/pipeline/train/r2/log new file mode 100644 index 0000000..3fed0a2 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r2/log @@ -0,0 +1,6 @@ +init=0 +info0=0 +dev0=0 +train=0 +info=0 +dev=0 diff --git a/evidence/OMEGESE45/pipeline/train/r2/sha.txt b/evidence/OMEGESE45/pipeline/train/r2/sha.txt new file mode 100644 index 0000000..f461c0c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r2/sha.txt @@ -0,0 +1,3 @@ +02d85006cd96c9c450c66147538a286b07954964fa14552fb40501fcf77225f2 step0.ck +2ebb99de9a0aa04dfba95e0f008e392b99c3f4c4c3836086e24cf7b3a8204058 ck/ck.a +71118b656eb3aa8ac5a5d75e5d5a35710d49a44e78bfcbba88cfcec81a25892e ck/ck.b diff --git a/evidence/OMEGESE45/pipeline/train/r2/time.txt b/evidence/OMEGESE45/pipeline/train/r2/time.txt new file mode 100644 index 0000000..88db4ca --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r2/time.txt @@ -0,0 +1,23 @@ + Command being timed: "taskset -c 10-14 nice -n 19 ionice -c3 /tmp/op45w/b2/oe45core train ck /tmp/op45w/d/train.ids 400000 20000" + User time (seconds): 1429.39 + System time (seconds): 0.85 + Percent of CPU this job got: 99% + Elapsed (wall clock) time (h:mm:ss or m:ss): 23:51.72 + 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): 9600 + Average resident set size (kbytes): 0 + Major (requiring I/O) page faults: 0 + Minor (reclaiming a frame) page faults: 2617 + Voluntary context switches: 98 + Involuntary context switches: 5987 + Swaps: 0 + File system inputs: 0 + File system outputs: 156160 + Socket messages sent: 0 + Socket messages received: 0 + Signals delivered: 0 + Page size (bytes): 4096 + Exit status: 0 diff --git a/evidence/OMEGESE45/pipeline/train/r2/train.out b/evidence/OMEGESE45/pipeline/train/r2/train.out new file mode 100644 index 0000000..526238c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/r2/train.out @@ -0,0 +1,20 @@ +T 20000 1 1221734527 1496027 +T 40000 2 1198743734 874210 +T 60000 2 1194837336 874210 +T 80000 2 1192795038 874210 +T 100000 2 1191202184 874210 +T 120000 2 1189055855 874210 +T 140000 2 1187066291 874210 +T 160000 2 1185760925 874210 +T 180000 2 1184536962 874210 +T 200000 2 1183705595 874210 +T 220000 2 1183117712 874210 +T 240000 2 1181974501 874210 +T 260000 2 1181058652 874210 +T 280000 2 1180496958 874210 +T 300000 2 1179872647 874210 +T 320000 2 1179217196 874210 +T 340000 2 1178916218 874210 +T 360000 2 1178697656 874210 +T 380000 2 1178500689 874210 +T 400000 2 1178283946 874210 diff --git a/evidence/OMEGESE45/pipeline/train/repro-cmp.txt b/evidence/OMEGESE45/pipeline/train/repro-cmp.txt new file mode 100644 index 0000000..af9d363 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/repro-cmp.txt @@ -0,0 +1 @@ +cmp r1 r2 (step0.ck ck.a ck.b train.out): identical, rc 0 diff --git a/evidence/OMEGESE45/pipeline/train/tune-s10/dev.out b/evidence/OMEGESE45/pipeline/train/tune-s10/dev.out new file mode 100644 index 0000000..0366012 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune-s10/dev.out @@ -0,0 +1,4 @@ +D 10000 1000 44233 31000 2410 225 258 +D 20000 1000 44233 36971 2410 472 496 +D 30000 1000 44233 39143 2410 759 765 +D 40000 1000 44233 40114 2410 1105 1107 diff --git a/evidence/OMEGESE45/pipeline/train/tune-s10/log b/evidence/OMEGESE45/pipeline/train/tune-s10/log new file mode 100644 index 0000000..66a0887 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune-s10/log @@ -0,0 +1,5 @@ +init=0 +train10000=0 +train20000=0 +train30000=0 +train40000=0 diff --git a/evidence/OMEGESE45/pipeline/train/tune-s6/dev.out b/evidence/OMEGESE45/pipeline/train/tune-s6/dev.out new file mode 100644 index 0000000..82656af --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune-s6/dev.out @@ -0,0 +1,4 @@ +D 10000 1000 44233 38713 2410 830 830 +D 20000 1000 44233 40394 2410 1116 1116 +D 30000 1000 44233 41651 2410 1615 1615 +D 40000 1000 44233 41974 2410 1712 1712 diff --git a/evidence/OMEGESE45/pipeline/train/tune-s6/log b/evidence/OMEGESE45/pipeline/train/tune-s6/log new file mode 100644 index 0000000..66a0887 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune-s6/log @@ -0,0 +1,5 @@ +init=0 +train10000=0 +train20000=0 +train30000=0 +train40000=0 diff --git a/evidence/OMEGESE45/pipeline/train/tune-s7/dev.out b/evidence/OMEGESE45/pipeline/train/tune-s7/dev.out new file mode 100644 index 0000000..1ed8411 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune-s7/dev.out @@ -0,0 +1,4 @@ +D 10000 1000 44233 39637 2410 990 991 +D 20000 1000 44233 41275 2410 1566 1566 +D 30000 1000 44233 41831 2410 1659 1659 +D 40000 1000 44233 42271 2410 1797 1797 diff --git a/evidence/OMEGESE45/pipeline/train/tune-s7/log b/evidence/OMEGESE45/pipeline/train/tune-s7/log new file mode 100644 index 0000000..66a0887 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune-s7/log @@ -0,0 +1,5 @@ +init=0 +train10000=0 +train20000=0 +train30000=0 +train40000=0 diff --git a/evidence/OMEGESE45/pipeline/train/tune-s8/dev.out b/evidence/OMEGESE45/pipeline/train/tune-s8/dev.out new file mode 100644 index 0000000..ff3d7d2 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune-s8/dev.out @@ -0,0 +1,4 @@ +D 10000 1000 44233 38928 2410 793 795 +D 20000 1000 44233 40603 2410 1378 1378 +D 30000 1000 44233 41322 2410 1565 1565 +D 40000 1000 44233 41827 2410 1614 1614 diff --git a/evidence/OMEGESE45/pipeline/train/tune-s8/log b/evidence/OMEGESE45/pipeline/train/tune-s8/log new file mode 100644 index 0000000..66a0887 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune-s8/log @@ -0,0 +1,5 @@ +init=0 +train10000=0 +train20000=0 +train30000=0 +train40000=0 diff --git a/evidence/OMEGESE45/pipeline/train/tune-s8p5/dev.out b/evidence/OMEGESE45/pipeline/train/tune-s8p5/dev.out new file mode 100644 index 0000000..18731b5 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune-s8p5/dev.out @@ -0,0 +1,4 @@ +D 10000 1000 44233 39146 2410 822 824 +D 20000 1000 44233 40824 2410 1463 1463 +D 30000 1000 44233 41521 2410 1596 1596 +D 40000 1000 44233 41976 2410 1590 1590 diff --git a/evidence/OMEGESE45/pipeline/train/tune-s8p5/log b/evidence/OMEGESE45/pipeline/train/tune-s8p5/log new file mode 100644 index 0000000..66a0887 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune-s8p5/log @@ -0,0 +1,5 @@ +init=0 +train10000=0 +train20000=0 +train30000=0 +train40000=0 diff --git a/evidence/OMEGESE45/pipeline/train/tune.sh b/evidence/OMEGESE45/pipeline/train/tune.sh new file mode 100755 index 0000000..eff6b4b --- /dev/null +++ b/evidence/OMEGESE45/pipeline/train/tune.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# $1 lr shift $2 P1 $3 total $4 tag +P="taskset -c 10-14 nice -n 19 ionice -c3"; B=/tmp/op45w/b; D=/tmp/op45w/d +W=/tmp/op45w/t-$4; rm -rf $W; mkdir -p $W/ck; cd $W +$P $B/oe45core init ck $D/train.ids 45 $2 $3 7 $1 > init.out; echo init=$? >> log +s=10000 +while [ $s -le $3 ]; do + $P $B/oe45core train ck $D/train.ids $s 10000 >> train.out; echo train$s=$? >> log + $P $B/oe45core evaldev ck $D/dev.ids >> dev.out + s=$((s+10000)) +done diff --git a/evidence/OMEGESE45/pipeline/wolfram-distribution.txt b/evidence/OMEGESE45/pipeline/wolfram-distribution.txt new file mode 100644 index 0000000..2cc9e7c --- /dev/null +++ b/evidence/OMEGESE45/pipeline/wolfram-distribution.txt @@ -0,0 +1,4 @@ +WolframLanguageEvaluator query: +a = 92/100; adm = a^3; pj = 55/100 + 15/100*55/100; Table[half = n/2; oob = n (1-adm); okep = half adm (pj + pj^2); retry = half adm (15/100 + 15/100 (1+pj)); attempts = half adm (115/100 + 115/100 (1+pj)); stop = n adm-okep; expected = {oob,okep,retry,stop,15/100 attempts}; obs = If[n==20000,{4461,8059,3042,7480,3495},{210,401,158,389,179}]; {n,N[expected,8],N[(obs-expected)/Sqrt[expected],5],N[{attempts,2/100 attempts},8]}, {n,{20000,1000}}] + +Out[1]= {{20000, {4426.24`8., 8040.391612`8., 3074.84424`8., 7533.368388`8., 3536.070876`8.}, {0.5224711188024166864`5., 0.2075248707064096972`5., -0.5923080791101554904`5., -0.6148787474248144016`5., -0.690674600823110873`5.}, {23573.80584`8., 471.4761168`8.}}, {1000, {221.312`8., 402.0195806`8., 153.742212`8., 376.6684194`8., 176.8035438`8.}, {-0.7603909073521366549`5., -0.050850819965933467`5., 0.3433898634090810393`5., 0.6353881939706112896`5., 0.1651874558912131474`5.}, {1178.690292`8., 23.57380584`8.}}} diff --git a/evidence/OMEGESE45/pipeline/wolfram.md b/evidence/OMEGESE45/pipeline/wolfram.md new file mode 100644 index 0000000..5dc60a3 --- /dev/null +++ b/evidence/OMEGESE45/pipeline/wolfram.md @@ -0,0 +1,62 @@ +# Wolfram queries used by docs/omegese45/PIPELINE.md + +All of these were evaluated with the mounted WolframLanguageEvaluator on 2026-10-29. The inputs come +from the receipts in this directory. Numeric results below are rounded for readability. + +## 1. Train outcome distribution (seed 4501, N 20000) + +See [`wolfram-distribution.txt`](wolfram-distribution.txt) for the complete query and unmodified +output, evaluating both N=20000 and N=1000. The train values were: + +- adm = 0.778688; +- pj = 0.6325; +- expected counts: + - oob 4426.24; + - okep 8040.39; + - retry 3074.84; + - stop 7533.37; + - attempts 23573.81; + - transport 3536.07; + - other, per pair, 471.476. + +Against the observed counts (`data/gen-4501-20000.stdout`), the z-scores (obs − ex)/√ex were: + +| Counter | z | +|---|---| +| oob 4461 | 0.5225 | +| okep 8059 | 0.2075 | +| retry 3042 | −0.5923 | +| stop 7480 | −0.6149 | +| transport 3495 | −0.6907 | + +## 2. The 15 other outcome pairs + +``` +others = {481,456,538,456,459,482,473,472,448,474,430,474,459,493,432}; e = 471.4761168; x2 = Total[(others - e)^2/e]; {Total[others], N[x2, 5], N[1 - CDF[ChiSquareDistribution[14], Total[(others - Mean[others])^2/Mean[others]]], 4], N[1 - CDF[ChiSquareDistribution[15], x2], 4]} +-> {7027, 20.628, 0.1160, 0.1491} +``` + +## 3. Dev outcome distribution (seed 4502, N 1000) + +See the N=1000 row of `wolfram-distribution.txt`. The expected counts are oob 221.312, okep 402.020, +retry 153.742 and stop 376.668. Against observed counts 210, 401, 158 and 389, the z-scores are +−0.7604, −0.0509, 0.3434 and 0.6354. + +## 4. Dev and timing figures + +``` +{N[43793/44233, 6], N[1564/44233, 6], N[2116/2410, 6], N[159/2410, 6], N[148/1200, 4], N[139/401, 4], N[7/210, 4], N[1000*1429.84/400000, 5], N[(23*60 + 52.05)/60, 5], bits2f[1178283946], bits2f[1178697656], N[bits2f[1178283946]/874210, 6], bits2f[1006632960], 2^-7} +``` + +with `bits2f[b_] := First[ImportByteArray[ByteArray[Reverse[IntegerDigits[b, 256, 4]]], "Real32"]]`, returned: + +``` +{0.990053, 0.0353582, 0.878008, 0.0659751, 0.1233, 0.3466, 0.03333, 3.5746, 23.8675, 11979.916015625, 12383.9296875, 0.0137037, 0.0078125, 1/128} +``` + +## 5. Loss and sizes + +``` +{bits2f[1221734527], N[bits2f[1221734527]/1496027, 6], bits2f[1198743734], N[bits2f[1198743734]/874210, 6], N[bits2f[1178283946]/874210, 6], 3854*256 + 256 + 256*41 + 41, 4*997417 + 240, (30 + 64)*41, N[1 - 92^3/100^3, 6]} +-> {430467.96875, 0.287741, 62304.7109375, 0.0712697, 0.0137037, 997417, 3989908, 3854, 0.221312} +``` diff --git a/native/omegese45/core/ckpt.om b/native/omegese45/core/ckpt.om new file mode 100644 index 0000000..cb2b930 --- /dev/null +++ b/native/omegese45/core/ckpt.om @@ -0,0 +1,318 @@ +note SPDX-License-Identifier: AGPL-3.0-only +note omegese45 core checkpoint OE45CK01 (aien-train #45, pipeline lane; interface section 6). +note Needs, before it: the omega-mv SHA-256 unit om/sha256/sha256-om2.om (bf54b19f, export +note words removed), vocab.om (ocvtsv), model.om. All integers little-endian. Layout: +note 0 magic "OE45CK01" 8 vocab pin = sha256(ocvtsv), 32 bytes +note 40 u32 x 8: format 1, V 41, head 30, tail 64, inputs 3854, hidden 256, outputs 41, MAXLEN 176 +note 72 u64 init seed 80 u32 init algorithm (1) 84 u32 0 +note 88 u64 step 96 u64 generation 104 u64 payload length 3989668 +note 112 payload sha256 144 training-data sha256 (the .ids file the run was bound to) +note 176 u32 learning-rate binary32 bits 180 u32 0 184 u64 phase-1 steps +note 192 u64 total steps 200 u64 epoch-order seed 208 sha256 of bytes 0 .. 207 +note 240 payload: the 997417 parameters as binary32 in model.om payload order. +note Two slots DIR/ck.a and DIR/ck.b. Save writes generation g = loaded + 1 to ck.a when g is +note odd, ck.b when even, then fsync: the newest valid slot is never the one being written. +note Load takes the structurally valid slot (size, magic, arch, payload length, header and +note payload digests) with the highest generation; none valid exits 51 (CKPT_REFUSED); a +note valid newest slot whose vocab pin differs from sha256(ocvtsv) exits 52 (CKPT_VOCAB). +const OPCKN ulong 3989908 +const OPPL ulong 3989668 +const OPHB ulong 240 +global opck uchar 3989924 +global opvp uchar 32 +global optds uchar 32 +global opmeta ulong 8 +global opckp uchar 4200 +global opcdl ulong 1 +global opslt ulong 1 +text opmag "OE45CK01" + +note opmeta: 0 init seed, 1 step, 2 generation, 3 phase-1 steps, 4 total steps, +note 5 epoch-order seed, 6 learning-rate bits, 7 init algorithm. + +fn opp32 o ulong v ulong to void +for i ulong 4 +put opck add o i uchar and shr v mul i 8 255 +end +end + +fn opp64 o ulong v ulong to void +for i ulong 8 +put opck add o i uchar and shr v mul i 8 255 +end +end + +fn opg32 o ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get opck add o i mul i 8 +end +ret v +end + +fn opg64 o ulong to ulong +v = ulong 0 +for i ulong 8 +v = or v shl ulong get opck add o i mul i 8 +end +ret v +end + +note sha256 of opck[o, o + n) streamed through a 4096-byte local chunk (a global cannot be +note a call argument). +fn ophck o ulong n ulong d edit uchar 32 to void +c = new uchar 104 0 +b = new uchar 4096 0 +sha256_init c +p = ulong 0 +while lt p n bound 1100 +k = sub n p +if gt k 4096 +k = 4096 +end +for i ulong k +put b i get opck add o add p i +end +sha256_update c part b 0 k +p = add p k +end +sha256_final c d +end + +fn opvpin to void +d = new uchar 32 0 +sha256_hash ocvtsv d +for i ulong 32 +put opvp i get d i +end +end + +note Arch word i of the header (offset 40 + 4 i). +fn oparch i ulong to ulong +if eq i 0 +ret 1 +end +if eq i 1 +ret OPV +end +if eq i 2 +ret OPHS +end +if eq i 3 +ret OPTW +end +if eq i 4 +ret OPIN +end +if eq i 5 +ret OPH +end +if eq i 6 +ret OPV +end +ret OPMAXL +end + +fn opserp to void +for i ulong OPNP +opp32 add OPHB mul i 4 ulong bitcast uint opgetp i +end +end + +fn opdesp to void +for i ulong OPNP +opsetp i bitcast f32 uint opg32 add OPHB mul i 4 +end +end + +note Build the whole image in opck from the model and opmeta. +fn opimg to void +d = new uchar 32 0 +for i ulong 8 +put opck i get opmag i +end +for i ulong 32 +put opck add 8 i get opvp i +end +for i ulong 8 +opp32 add 40 mul i 4 oparch i +end +opp64 72 get opmeta 0 +opp32 80 get opmeta 7 +opp32 84 0 +opp64 88 get opmeta 1 +opp64 96 get opmeta 2 +opp64 104 OPPL +opserp +ophck OPHB OPPL d +for i ulong 32 +put opck add 112 i get d i +put opck add 144 i get optds i +end +opp32 176 get opmeta 6 +opp32 180 0 +opp64 184 get opmeta 3 +opp64 192 get opmeta 4 +opp64 200 get opmeta 5 +ophck 0 208 d +for i ulong 32 +put opck add 208 i get d i +end +end + +note Slot path DIR/ck.a (s 0) or DIR/ck.b (s 1) into opckp; returns its length. +fn opslp s ulong to ulong +n = get opcdl 0 +put opckp n 47 +put opckp add n 1 99 +put opckp add n 2 107 +put opckp add n 3 46 +put opckp add n 4 add uchar 97 uchar s +ret add n 5 +end + +note Read slot s into opck; returns the byte count read (capped at OPCKN + 1), 0 if absent. +fn oprdsl s ulong to ulong +n = opslp s +fd = int fopen opckp 0 n 0 0 +if lt fd 0 +ret 0 +end +p = ulong 0 +dn = false +while not dn bound 2000 +r = read fd opck p sub add OPCKN 1 p +if le r 0 +dn = true +else +p = add p ulong r +if gt p OPCKN +dn = true +end +end +end +c = fclose fd +ret p +end + +fn opeqd o ulong d edit uchar 32 to bool +for i ulong 32 +if ne get opck add o i get d i +ret false +end +end +ret true +end + +note Structural check of opck (everything except the vocab pin). +fn opvalid n ulong to bool +d = new uchar 32 0 +if ne n OPCKN +ret false +end +for i ulong 8 +if ne get opck i get opmag i +ret false +end +end +for i ulong 8 +if ne opg32 add 40 mul i 4 oparch i +ret false +end +end +if ne opg64 104 OPPL +ret false +end +ophck 0 208 d +if not opeqd 208 d +ret false +end +ophck OPHB OPPL d +ret opeqd 112 d +end + +note Generation of slot s when valid, else 0 (generations start at 1). +fn opslgen s ulong to ulong +n = oprdsl s +if not opvalid n +ret 0 +end +g = opg64 96 +if eq g 0 +ret 0 +end +ret g +end + +note The checkpoint directory is argv[i]. +fn opckdir i ulong to void +r = argread i opckp 0 4096 +if or le r 0 gt r 4090 +exit 2 +end +put opcdl 0 ulong r +end + +note Load the newest valid slot into the model and opmeta (exits 51 / 52). +fn opload to void +opvpin +ga = opslgen 0 +gb = opslgen 1 +if and eq ga 0 eq gb 0 +exit 51 +end +s = ulong 0 +if gt gb ga +s = 1 +end +put opslt 0 s +if eq s 0 +n = oprdsl 0 +end +for i ulong 32 +if ne get opck add 8 i get opvp i +exit 52 +end +end +put opmeta 0 opg64 72 +put opmeta 7 opg32 80 +put opmeta 1 opg64 88 +put opmeta 2 opg64 96 +for i ulong 32 +put optds i get opck add 144 i +end +put opmeta 6 opg32 176 +put opmeta 3 opg64 184 +put opmeta 4 opg64 192 +put opmeta 5 opg64 200 +opdesp +end + +note Save the model as generation opmeta[2] + 1 with step opmeta[1] and the vocab pin in +note opvp (set by opload or by the caller before a fresh save); exits 70 on I/O error. +fn opsave to void +g = add get opmeta 2 1 +put opmeta 2 g +opimg +s = sub 1 and g 1 +n = opslp s +fd = int fopen opckp 0 n 577 420 +if lt fd 0 +exit 70 +end +p = ulong 0 +while lt p OPCKN bound 2000 +w = write fd opck p sub OPCKN p +if le w 0 +exit 70 +end +p = add p ulong w +end +if ne fsync fd 0 +exit 70 +end +if ne fclose fd 0 +exit 70 +end +put opslt 0 s +end diff --git a/native/omegese45/core/cli.om b/native/omegese45/core/cli.om new file mode 100644 index 0000000..171d337 --- /dev/null +++ b/native/omegese45/core/cli.om @@ -0,0 +1,440 @@ +note SPDX-License-Identifier: AGPL-3.0-only +note oe45core command line (aien-train #45, pipeline lane); docs/omegese45/CORE-CLI.md. +note Build order: SHA unit (export words removed), vocab.om, msg.om, core/model.om, +note core/ckpt.om, core/run.om, core/cli.om. +note init CKDIR TRAIN.ids SEED P1 TOTAL ORDER LRSH step-0 checkpoint (lr = 2^-LRSH) +note train CKDIR TRAIN.ids UNTIL EVERY resume and train to step UNTIL +note evaldev CKDIR DEV.ids dev metrics line +note decode CKDIR U|G EPFILE one message line; rc 0 50 53 (40 prefix) +note batch CKDIR U|G INFILE OUTFILE one result line per prefix; rc 0 +note info CKDIR header line of the loaded slot +note Exits: 0 ok, 2 usage or malformed data file, 40 invalid prefix, 50 DECODE_INVALID, +note 51 CKPT_REFUSED, 52 CKPT_VOCAB, 53 DECODE_BUDGET, 54 training data differs from the +note checkpoint binding, 70 file I/O. +const OPOBN ulong 4194304 +global opob uchar 4194305 +global opon ulong 1 +global opcm uchar 16 +text ophd "oe45 v1\n" +text opdl "D " +text opil "I " + +note --- output buffer (batch) --- +fn opoc c uchar to void +n = get opon 0 +if ge n OPOBN +exit 2 +end +put opob n c +put opon 0 add n 1 +end + +fn opon10 v ulong to void +b = new uchar 24 0 +p = ulong 24 +if eq v 0 +opoc 48 +ret +end +while gt v 0 bound 24 +p = sub p 1 +put b p uchar add 48 rem v 10 +v = div v 10 +end +for i ulong sub 24 p +opoc get b add p i +end +end + +note Word of id into the buffer; digits follow `0x` or a digit without a space. +fn opow id ulong pv ulong first bool to void +dg = and ge id 25 lt id OPV +if not or first and dg ge pv 24 +opoc 32 +end +o = get ocwo id +for j ulong get ocwl id +opoc get ocvtsv add o j +end +end + +note Emitted ids opseq[s, s + n) as words. +fn opowds s ulong n ulong to void +pv = ulong 0 +for i ulong n +id = ulong get opseq add s i +opow id pv eq i 0 +pv = id +end +end + +note --- prefix parsing --- +note Parse the OE45 v1 prefix in opdb[a, b) into opseq / opsl. The first line must be +note `oe45 v1`; each further line one message valid under the contract validator; the +note sequence G (A R)* or G followed by a final `act refuse C end` (interface §3: a refuse +note comes only right after G and gets no R; its P is decoded next). Ends in G, R or that +note refuse A (kind 5 below). 0 or 40. +fn opprefix a ulong b ulong to ulong +if not ophdr a b +ret 40 +end +p = add a 8 +n = ulong 0 +lk = ulong 0 +while lt p b bound 200 +e = p +while and lt e b ne get opdb e 10 bound 4097 +e = add e 1 +end +if or ge e b gt sub e p 4095 +ret 40 +end +for i ulong sub e p +put ocin i get opdb add p i +end +k = ocvline sub e p 0 +if lt k 0 +ret 40 +end +c = get ocnids 0 +if not opnextk lk ulong k +ret 40 +end +if and and eq k 2 eq get ocids 1 9 ne lk 1 +ret 40 +end +if gt add n c OPMAXL +ret 40 +end +for i ulong c +put opseq add n i uchar get ocids i +end +n = add n c +lk = ulong k +if and eq k 2 eq get ocids 1 9 +lk = ulong 5 +end +p = add e 1 +end +if not or or eq lk 1 eq lk 3 eq lk 5 +ret 40 +end +put opsl 0 n +ret 0 +end + +note Kind k may follow kind lk in a prefix (0 = nothing yet; 5 = a refuse A, which ends it). +fn opnextk lk ulong k ulong to bool +if eq lk 0 +ret eq k 1 +end +if or eq lk 1 eq lk 3 +ret eq k 2 +end +if eq lk 2 +ret eq k 3 +end +ret false +end + +fn ophdr a ulong b ulong to bool +if gt add a 8 b +ret false +end +for i ulong 8 +if ne get opdb add a i get ophd i +ret false +end +end +ret true +end + +note --- subcommands --- +fn opmode i ulong to ulong +n = argread i opcm 0 16 +if ne n 1 +exit 2 +end +m = ulong get opcm 0 +if not or eq m 85 eq m 71 +exit 2 +end +ret m +end + +fn opcinit to int +if ne argcnt 9 +exit 2 +end +opckdir 2 +opldat 3 +put opmeta 0 opdecu 4 +put opmeta 3 opdecu 5 +put opmeta 4 opdecu 6 +put opmeta 5 opdecu 7 +sh = opdecu 8 +if or eq sh 0 gt sh 30 +exit 2 +end +put opmeta 6 shl sub 127 sh 23 +put opmeta 7 1 +put opmeta 1 0 +put opmeta 2 0 +for s ulong 2 +n = opslp s +r = unlink opckp 0 n +end +opinit get opmeta 0 +opvpin +opsave +ret 0 +end + +fn opbind to void +d = new uchar 32 0 +for i ulong 32 +put d i get optds i +end +ophdat +for i ulong 32 +if ne get optds i get d i +exit 54 +end +end +end + +fn opctrain to int +if ne argcnt 6 +exit 2 +end +opckdir 2 +opload +opread 3 +opindex +opbind +until = opdecu 4 +every = opdecu 5 +if eq every 0 +exit 2 +end +optrain until every +ret 0 +end + +fn opcdev to int +if ne argcnt 4 +exit 2 +end +opckdir 2 +opload +opldat 3 +for i ulong 16 +put opst i 0 +end +n = get opne 0 +for e ulong n +opepi e +opdevep +end +w = write 1 opdl 0 2 +ocputn get opmeta 1 +ocputc 32 +ocputn n +for i ulong 5 +ocputc 32 +ocputn get opst add i 1 +end +ocputc 10 +ret 0 +end + +fn opcdec to int +if ne argcnt 5 +exit 2 +end +opckdir 2 +md = opmode 3 +opread 4 +r = opprefix 0 get opdn 0 +if ne r 0 +exit 40 +end +opload +n = get opsl 0 +r = opdecode n md +if ne r 0 +exit int r +end +c = get opln 0 +for i ulong c +put ocids i ulong get opseq add n i +end +b = ocdec c +if lt b 0 +exit 50 +end +w = write 1 ocout 0 ulong b +ocputc 10 +ret 0 +end + +note Next prefix start after a: the next line `oe45 v1` at a line start, or b. +fn opnextp a ulong b ulong to ulong +if ge add a 1 b +ret b +end +for q ulong sub b add a 1 +p = add add a 1 q +if eq get opdb sub p 1 10 +if ophdr p b +ret p +end +end +end +ret b +end + +fn opcbat to int +if ne argcnt 6 +exit 2 +end +opckdir 2 +md = opmode 3 +opload +opread 4 +b = get opdn 0 +a = ulong 0 +while lt a b bound 100000 +e = opnextp a b +r = opprefix a e +if ne r 0 +opon10 40 +opoc 10 +else +opbline md +end +a = e +end +n = oppath 5 +fd = int fopen opfp 0 n 577 420 +if lt fd 0 +exit 70 +end +p = ulong 0 +while lt p get opon 0 bound 5000 +w = write fd opob p sub get opon 0 p +if le w 0 +exit 70 +end +p = add p ulong w +end +if ne fsync fd 0 +exit 70 +end +if ne fclose fd 0 +exit 70 +end +ret 0 +end + +note One batch result line for the parsed prefix. +fn opbline md ulong to void +n = get opsl 0 +r = opdecode n md +c = get opln 0 +if eq r 0 +opoc 111 +opoc 107 +opoc 32 +for i ulong c +put ocids i ulong get opseq add n i +end +b = ocdec c +for i ulong ulong b +opoc get ocout i +end +else +opoc 101 +opoc 114 +opoc 114 +opoc 32 +opon10 r +if gt c 0 +opoc 32 +opowds n c +end +end +opoc 10 +end + +fn opcinfo to int +if ne argcnt 3 +exit 2 +end +opckdir 2 +opload +w = write 1 opil 0 2 +ocputc add 97 uchar get opslt 0 +for i ulong 8 +ocputc 32 +ocputn get opmeta i +end +ocputc 32 +for i ulong 32 +opphex get opck add 112 i +end +ocputc 32 +for i ulong 32 +opphex get opck add 8 i +end +ocputc 32 +for i ulong 32 +opphex get opck add 144 i +end +ocputc 10 +ret 0 +end + +fn opphex v uchar to void +opnib shr v 4 +opnib and v 15 +end + +fn opnib v uchar to void +if lt v 10 +ocputc add v 48 +else +ocputc add v 87 +end +end + +fn main to int +if lt argcnt 2 +exit 2 +end +n = argread 1 opcm 0 16 +if lt n 4 +exit 2 +end +c0 = get opcm 0 +c1 = get opcm 1 +if eq c0 105 +if eq get opcm 2 105 +ret opcinit +end +ret opcinfo +end +if eq c0 116 +ret opctrain +end +if eq c0 101 +ret opcdev +end +if eq c0 100 +ret opcdec +end +if eq c0 98 +ret opcbat +end +exit 2 +end diff --git a/native/omegese45/core/dependencies.json b/native/omegese45/core/dependencies.json new file mode 100644 index 0000000..cda857f --- /dev/null +++ b/native/omegese45/core/dependencies.json @@ -0,0 +1,39 @@ +{ + "schema": "oe45-core-external-source-v1", + "compiler": { + "source_repository": "aien-dev/omega-mv", + "source_commit": "bf54b19fa590e8ae925c0e80815516dbf41e7326", + "source_path": "seed/out/omc", + "binary_sha256": "62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b", + "target": "aarch64-linux-static-elf" + }, + "dependencies": [ + { + "repository": "aien-dev/omega-mv", + "commit": "bf54b19fa590e8ae925c0e80815516dbf41e7326", + "path": "om/sha256/sha256-om2.om", + "sha256": "dbf002dd6aa36585632b9d01d98ac3f0bd2fa0f0475082940de53638847994bb", + "owner": "omega-mv main", + "license": "repository AGPL-3.0 license", + "use": "checkpoint header digests (vocab pin, data binding, payload); first unit of the core build, its `export fn` lines rewritten to `fn`" + } + ], + "test_oracles": [ + { + "repository": "aien-dev/aien-train", + "path": "tests/omegese45/core/oracle.py", + "role": "Python stdlib referee for target/mask, reference policy and decode prefixes; verification only, never in the build" + } + ], + "host_tools": [ + {"name": "sh, cat, cp, cmp, dd, od, head, tail, cut, tr, wc, sha256sum", "version": "GNU coreutils 9.4 (Ubuntu 9.4-3ubuntu6.3)", "role": "build concatenation, byte flips and comparisons in build.sh and run-core.sh; verification and glue only", "omega_replacement": "none needed for the product path; the binaries are self-contained static ELF from omc"}, + {"name": "sed", "version": "GNU sed 4.9", "role": "rewrites `export fn` to `fn` in the pinned SHA unit (program mode refuses export)", "omega_replacement": "an omc unit-link mode that accepts exported library units (omega-mv proposal)"}, + {"name": "jq", "version": "jq-1.7", "role": "reads the pins from this file in build.sh", "omega_replacement": "none needed; verification glue"}, + {"name": "git", "version": "2.43.0", "role": "extracts the SHA unit at its pinned commit", "omega_replacement": "read-only checker, kept"}, + {"name": "python3", "version": "3.12.3", "role": "runs tests/omegese45/core/oracle.py (stdlib only), the independent referee", "omega_replacement": "none; an oracle must be independent of the implementation"}, + {"name": "taskset, ionice (util-linux 2.39.3), nice, GNU time 1.9", "version": "as named", "role": "CPU confinement and resource receipts", "omega_replacement": "none needed; host scheduling"} + ], + "product_claim": "bounded host CPU training of a small dense next-token model; no transformer, no GPU", + "new_foreign_implementation": false, + "gpu_or_simulator_execution": false +} diff --git a/native/omegese45/core/model.om b/native/omegese45/core/model.om new file mode 100644 index 0000000..95812b2 --- /dev/null +++ b/native/omegese45/core/model.om @@ -0,0 +1,279 @@ +note SPDX-License-Identifier: AGPL-3.0-only +note omegese45 core model (aien-train #45, pipeline lane): a dense next-token model +note over R45 ids. One hidden ReLU layer, 41 linear outputs, squared error to the one-hot +note target, plain per-position SGD. Forward and backward are written out here because the +note native tape (omega-mv native/autodiff664/tape.om @965fb762) holds at most 32 nodes of +note at most 64 elements in a 2048-float arena (docs/omegese45/PIPELINE.md, "Why not the tape"). +note Causal input for position t, built only from ids at positions < t: +note head slot p (0 <= p < 30, p < t): one-hot of id[p] feature p * 41 + id +note tail slot k (0 <= k < 64, k < t): one-hot of id[t-1-k] feature (30 + k) * 41 + id +note Arch: OPIN 3854 inputs, OPH 256 hidden, OPV 41 outputs. Parameters, payload order: +note W1[f][j] f < 3854, j < 256 (row-major), b1[256], W2[j][v] (row-major), b2[41]. +note Init algorithm 1: splitmix64 from the init seed; W1 then W2 in payload order, each +note value u = ((r >> 40) - 2^23) * 2^-23 scaled by 1/8 (W1) or 1/16 (W2); biases 0. +note Every value is a dyadic rational, exact in binary32. Needs vocab.om (ocv) before it. +const OPV ulong 41 +const OPHS ulong 30 +const OPTW ulong 64 +const OPIN ulong 3854 +const OPH ulong 256 +const OPW1N ulong 986624 +const OPW2N ulong 10496 +const OPNP ulong 997417 +const OPMAXL ulong 176 +global opw1 f32 986624 +global opb1 f32 256 +global opw2 f32 10496 +global opb2 f32 41 +global opseq uchar 256 +global opsl ulong 1 +global opmk uchar 256 +global opfx ulong 94 +global opfn ulong 1 +global ophp f32 256 +global oph f32 256 +global opy f32 41 +global opgy f32 41 +global opgh f32 256 +global oprs ulong 1 + +note splitmix64 (Steele, Lea, Flood 2014). +fn opnext to ulong +x = add get oprs 0 11400714819323198485 +put oprs 0 x +z = xor x shr x 30 +z = mul z 13787848793156543929 +z = xor z shr z 27 +z = mul z 10723151780598845931 +ret xor z shr z 31 +end + +note u in [-1, 1) on the 2^-23 grid, from the top 24 bits of the next generator value. +fn opunif to f32 +k = long shr opnext 40 +ret mul f32 sub k 8388608 0.00000011920928955078125f32 +end + +fn opinit seed ulong to void +put oprs 0 seed +for i ulong OPW1N +put opw1 i mul opunif 0.125f32 +end +for i ulong OPW2N +put opw2 i mul opunif 0.0625f32 +end +for j ulong OPH +put opb1 j 0.0f32 +end +for v ulong OPV +put opb2 v 0.0f32 +end +end + +note Parameter i of the payload order. +fn opgetp i ulong to f32 +if lt i OPW1N +ret get opw1 i +end +j = sub i OPW1N +if lt j OPH +ret get opb1 j +end +j = sub j OPH +if lt j OPW2N +ret get opw2 j +end +ret get opb2 sub j OPW2N +end + +fn opsetp i ulong x f32 to void +if lt i OPW1N +put opw1 i x +ret +end +j = sub i OPW1N +if lt j OPH +put opb1 j x +ret +end +j = sub j OPH +if lt j OPW2N +put opw2 j x +ret +end +put opb2 sub j OPW2N x +end + +note Active features of position t of opseq (ids at positions < t only). +fn opfeat t ulong to void +n = ulong 0 +hm = t +if gt hm OPHS +hm = OPHS +end +for p ulong hm +id = ulong get opseq p +if ne id 0 +put opfx n add mul p OPV id +n = add n 1 +end +end +km = t +if gt km OPTW +km = OPTW +end +for k ulong km +id = ulong get opseq sub sub t 1 k +if ne id 0 +put opfx n add mul add OPHS k OPV id +n = add n 1 +end +end +put opfn 0 n +end + +fn opfwd to void +for j ulong OPH +put ophp j get opb1 j +end +for f ulong get opfn 0 +r = mul get opfx f OPH +for j ulong OPH +put ophp j add get ophp j get opw1 add r j +end +end +for v ulong OPV +put opy v get opb2 v +end +for j ulong OPH +x = get ophp j +put oph j 0.0f32 +if gt x 0.0f32 +put oph j x +r = mul j OPV +for v ulong OPV +put opy v add get opy v mul x get opw2 add r v +end +end +end +end + +note Squared error to the one-hot of tg; dL/dy into opgy. Returns L. +fn oploss tg ulong to f32 +l = 0.0f32 +for v ulong OPV +d = get opy v +if eq v tg +d = sub d 1.0f32 +end +put opgy v mul 2.0f32 d +l = add l mul d d +end +ret l +end + +note dL/dhp into opgh (ReLU derivative 1 where hp > 0), from W2 before its update. +fn opbwd to void +for j ulong OPH +s = 0.0f32 +if gt get ophp j 0.0f32 +r = mul j OPV +for v ulong OPV +s = add s mul get opw2 add r v get opgy v +end +end +put opgh j s +end +end + +note p = p - lr * dL/dp for every parameter with a nonzero gradient path. +fn opupd lr f32 to void +for j ulong OPH +x = get oph j +if gt x 0.0f32 +r = mul j OPV +for v ulong OPV +q = add r v +g = mul lr mul x get opgy v +put opw2 q sub get opw2 q g +end +end +put opb1 j sub get opb1 j mul lr get opgh j +end +for v ulong OPV +put opb2 v sub get opb2 v mul lr get opgy v +end +for f ulong get opfn 0 +r = mul get opfx f OPH +for j ulong OPH +q = add r j +g = mul lr get opgh j +put opw1 q sub get opw1 q g +end +end +end + +note Target of position t: the id at t. +fn optgt t ulong to ulong +ret ulong get opseq t +end + +note A/P mask of opseq: 1 at every position of a message whose frame id is act or rep. +note Messages are split at `end` (id 5), which occurs only as a message terminator in R45. +fn opmask to void +n = get opsl 0 +fr = ulong 0 +st = true +for t ulong n +id = ulong get opseq t +if st +fr = id +end +put opmk t 0 +if or eq fr 2 eq fr 4 +put opmk t 1 +end +st = eq id 5 +end +end + +note One position: features, forward, loss, backward. Returns L. +fn opgrad t ulong to f32 +opfeat t +opfwd +l = oploss optgt t +opbwd +ret l +end + +note Train on the current episode: phase 1 every position, phase 2 the A/P positions. +note Returns the summed loss of the trained positions (before each update). +fn optrep ph ulong lr f32 to f32 +s = 0.0f32 +opmask +for t ulong get opsl 0 +if or eq ph 1 eq get opmk t 1 +s = add s opgrad t +opupd lr +end +end +ret s +end + +note Argmax of opy over ids with ocmk[id] = 1 (all = true ignores the mask); first wins. +fn opargmx all bool to ulong +b = ulong 0 +bv = 0.0f32 +have = false +for v ulong OPV +if or all eq get ocmk v 1 +x = get opy v +if or not have gt x bv +b = v +bv = x +have = true +end +end +end +ret b +end diff --git a/native/omegese45/core/run.om b/native/omegese45/core/run.om new file mode 100644 index 0000000..8a9c80a --- /dev/null +++ b/native/omegese45/core/run.om @@ -0,0 +1,311 @@ +note SPDX-License-Identifier: AGPL-3.0-only +note omegese45 core: data files, training schedule, dev metrics and decoding (aien-train #45, +note pipeline lane). Needs vocab.om, msg.om, model.om, ckpt.om (and the SHA unit) before it. +note Data file (.ids, written by native/omegese45/data/gen.om): records of one byte L (1 .. 176) +note then L ids (< 41). Text files are OE45 v1 (docs/omegese45/CONTRACT.md). +const OPDBN ulong 4194304 +const OPMAXE ulong 40000 +const OPBUD ulong 31 +global opdb uchar 4194305 +global opdn ulong 1 +global opeo ulong 40000 +global opne ulong 1 +global opperm ulong 40000 +global opfp uchar 4200 +global opst ulong 16 +global opln ulong 1 +global opsv uchar 256 + +note opst: run statistics. 0 unused, 1 positions, 2 correct (teacher-forced argmax), +note 3 messages, 4 exact U, 5 exact G, 6 epoch of opperm + 1. + +note argv[i] into opfp; returns its length. +fn oppath i ulong to ulong +r = argread i opfp 0 4096 +if or le r 0 gt r 4096 +exit 2 +end +ret ulong r +end + +fn opdecu i ulong to ulong +n = oppath i +v = ulong 0 +if or eq n 0 gt n 18 +exit 2 +end +for k ulong n +c = ulong get opfp k +if or lt c 48 gt c 57 +exit 2 +end +v = add mul v 10 sub c 48 +end +ret v +end + +note Read the file argv[i] whole into opdb (at most OPDBN bytes, else exit 2). +fn opread i ulong to void +n = oppath i +fd = int fopen opfp 0 n 0 0 +if lt fd 0 +exit 70 +end +p = ulong 0 +dn = false +while not dn bound 5000 +r = read fd opdb p sub add OPDBN 1 p +if lt r 0 +exit 70 +end +if eq r 0 +dn = true +else +p = add p ulong r +if gt p OPDBN +exit 2 +end +end +end +c = fclose fd +put opdn 0 p +end + +note Index the id records of opdb (exit 2 on a malformed file). +fn opindex to void +n = get opdn 0 +p = ulong 0 +e = ulong 0 +while lt p n bound 40001 +l = ulong get opdb p +if or or eq l 0 gt l OPMAXL ge e OPMAXE +exit 2 +end +if gt add add p 1 l n +exit 2 +end +for k ulong l +if ge ulong get opdb add add p 1 k OPV +exit 2 +end +end +put opeo e p +e = add e 1 +p = add add p 1 l +end +if eq e 0 +exit 2 +end +put opne 0 e +end + +note sha256 of opdb[0, opdn) into optds. +fn ophdat to void +c = new uchar 104 0 +b = new uchar 4096 0 +d = new uchar 32 0 +sha256_init c +n = get opdn 0 +p = ulong 0 +while lt p n bound 1100 +k = sub n p +if gt k 4096 +k = 4096 +end +for i ulong k +put b i get opdb add p i +end +sha256_update c part b 0 k +p = add p k +end +sha256_final c d +for i ulong 32 +put optds i get d i +end +end + +note Load the .ids file argv[i]: read, index, hash into optds. +fn opldat i ulong to void +opread i +opindex +ophdat +end + +note Episode e into opseq / opsl. +fn opepi e ulong to void +o = get opeo e +l = ulong get opdb o +for k ulong l +put opseq k get opdb add add o 1 k +end +put opsl 0 l +end + +note Epoch order: a Fisher-Yates permutation of 0 .. N-1 from splitmix64 seeded with +note orderseed + 1000003 * epoch, rebuilt from the step alone at resume. +fn opperms ep ulong to void +n = get opne 0 +put oprs 0 add get opmeta 5 mul ep 1000003 +for i ulong n +put opperm i i +end +i = n +while gt i 1 bound 40001 +j = rem opnext i +i = sub i 1 +x = get opperm i +put opperm i get opperm j +put opperm j x +end +put opst 6 add ep 1 +end + +note Train from opmeta[1] to min(until, total), saving every `every` steps and at the end. +note Prints `T step phase sum-loss-bits positions` at each save. +fn optrain until ulong every ulong to void +lr = bitcast f32 uint get opmeta 6 +s = get opmeta 1 +if gt until get opmeta 4 +until = get opmeta 4 +end +n = get opne 0 +ls = 0.0f32 +np = ulong 0 +while lt s until bound 999999 +ep = div s n +if ne get opst 6 add ep 1 +opperms ep +end +opepi get opperm rem s n +ph = ulong 2 +if lt s get opmeta 3 +ph = 1 +end +ls = add ls optrep ph lr +np = add np opnpos ph +s = add s 1 +put opmeta 1 s +if or eq rem s every 0 eq s until +opsave +oprt s ph ls np +ls = 0.0f32 +np = 0 +end +end +end + +note Trained positions of the current episode under phase ph. +fn opnpos ph ulong to ulong +if eq ph 1 +ret get opsl 0 +end +c = ulong 0 +for t ulong get opsl 0 +c = add c ulong get opmk t +end +ret c +end + +fn oprt s ulong ph ulong ls f32 np ulong to void +ocputc 84 +ocputc 32 +ocputn s +ocputc 32 +ocputn ph +ocputc 32 +ocputn ulong bitcast uint ls +ocputc 32 +ocputn np +ocputc 10 +end + +note Decode after the prefix opseq[0, n) (mode 85 U, 71 G). Generated ids follow the prefix +note in opseq. Returns 0 ok (count in opln), 50 invalid (U), 53 budget. +fn opdecode n ulong md ulong to ulong +st = ocstart 5 +put opln 0 0 +for i ulong OPBUD +t = add n i +opfeat t +opfwd +id = ulong 0 +if eq md 71 +if eq ocmask st 0 +ret 50 +end +id = opargmx false +else +id = opargmx true +end +put opseq t uchar id +put opln 0 add i 1 +st = ocstep st id +if eq md 71 +if ocfinal st +ret 0 +end +else +if eq id 5 +if ocfinal st +ret 0 +end +ret 50 +end +end +end +ret 53 +end + +note Dev metrics for one episode: at every A/P message, teacher-forced argmax accuracy and +note free decoding (U and G) from the true prefix; exact means the reference message. +fn opdevep to void +opmask +n = get opsl 0 +for t ulong n +if eq get opmk t 1 +opfeat t +opfwd +put opst 1 add get opst 1 1 +if eq opargmx true optgt t +put opst 2 add get opst 2 1 +end +end +end +s = ulong 0 +for t ulong n +if eq get opseq t 5 +if eq get opmk s 1 +opdevmsg s add sub t s 1 +end +s = add t 1 +end +end +end + +note Message at [s, s + l) of the current episode: decode U and G from its prefix. The +note episode is kept in opsv; decoding may write up to OPBUD ids from s, restored after each. +fn opdevmsg s ulong l ulong to void +for k ulong get opsl 0 +put opsv k get opseq k +end +put opst 3 add get opst 3 1 +put opst 4 add get opst 4 opdevx s l 85 +put opst 5 add get opst 5 opdevx s l 71 +end + +fn opdevx s ulong l ulong md ulong to ulong +rc = opdecode s md +ok = and eq rc 0 eq get opln 0 l +for k ulong l +if ne get opseq add s k get opsv add s k +ok = false +end +end +for k ulong OPBUD +put opseq add s k get opsv add s k +end +if ok +ret 1 +end +ret 0 +end diff --git a/native/omegese45/data/gen.om b/native/omegese45/data/gen.om new file mode 100644 index 0000000..c4d19e4 --- /dev/null +++ b/native/omegese45/data/gen.om @@ -0,0 +1,384 @@ +note SPDX-License-Identifier: AGPL-3.0-only +note omegese45 episode generator (aien-train #45, pipeline lane). It implements the +note reference policy of docs/omegese45/CONTRACT.md section 5 and the synthetic outcome +note distribution declared in docs/omegese45/PIPELINE.md (grammar coverage, not runtime frequency). Build order: +note cat native/omegese45/vocab.om native/omegese45/msg.om native/omegese45/data/gen.om +note argv: SEED COUNT OUT.oe45 OUT.ids (SEED, COUNT decimal; COUNT 1..40000). +note OUT.oe45: COUNT episodes, each the OE45 v1 text (line `oe45 v1`, one message per line). +note OUT.ids: COUNT records, each one byte L (1..176) then the L episode ids, one byte each. +note stdout: one line `oe45gen v1 seed=S count=N` followed by the coverage counters. +note Deterministic: the only randomness is splitmix64 seeded with SEED. Exits: 0 ok, 2 usage, +note 40 a generated message failed the contract validator (a generator defect), 70 file I/O. +global oprs ulong 1 +global opep ulong 256 +global opel ulong 1 +global opgp uchar 4096 +global opgb uchar 256 +global opgst ulong 64 +global opgfd ulong 2 + +note splitmix64 (Steele, Lea, Flood 2014): state += golden gamma, then the finaliser mix. +fn opnext to ulong +x = add get oprs 0 11400714819323198485 +put oprs 0 x +z = xor x shr x 30 +z = mul z 13787848793156543929 +z = xor z shr z 27 +z = mul z 10723151780598845931 +ret xor z shr z 31 +end + +note A value in 0 .. n-1: the generator output reduced mod n (declared; bias below 2^-40). +fn opbelow n ulong to ulong +ret rem opnext n +end + +fn oppush id ulong to void +n = get opel 0 +put opep n id +put opel 0 add n 1 +end + +note ushort 0x H H H for v in 0 .. 0xfff. +fn oppd v ulong to void +oppush 22 +oppush 24 +oppush add 25 and shr v 8 15 +oppush add 25 and shr v 4 15 +oppush add 25 and v 15 +end + +note ulong 0x H H H H for v in 0 .. 0xffff. +fn opps v ulong to void +oppush 23 +oppush 24 +oppush add 25 and shr v 12 15 +oppush add 25 and shr v 8 15 +oppush add 25 and shr v 4 15 +oppush add 25 and v 15 +end + +fn opcnt i ulong to void +put opgst i add get opgst i 1 +end + +note One dimension: 8% an edge 0x000 0x001 0x100 0x101 (2% each), 4% uniform in +note 0x101 .. 0xfff, 88% uniform in 0x001 .. 0x100. +fn opdim to ulong +u = opbelow 100 +if lt u 8 +e = opbelow 4 +opcnt add 40 e +if eq e 0 +ret 0 +end +if eq e 1 +ret 1 +end +if eq e 2 +ret 256 +end +ret 257 +end +if lt u 12 +ret add 257 opbelow 3839 +end +ret add 1 opbelow 256 +end + +note Synthetic outcome of one job attempt for grammar coverage, as class * 32 + code id: +note 55% ok (class 1), 15% fail transport (class 3), 30% split evenly (2% each) over the +note 15 other pairs: refused x {replay budget worker transport receipt recomp verdict io} +note (class 2) and fail x {replay budget worker receipt recomp verdict io} (class 3). +fn opout to ulong +u = opbelow 100 +if lt u 55 +ret 32 +end +if lt u 70 +ret add ulong 96 17 +end +c = div sub u 70 2 +if lt c 8 +ret add 64 add 14 c +end +c = sub c 8 +if ge c 3 +c = add c 1 +end +ret add 96 add 14 c +end + +fn opadim d ulong to bool +ret and ge d 1 le d 256 +end + +note The goal operands of the current episode: pair flag, m, k, n, seed1, seed2. +global opgv ulong 6 + +note A job attempt: act job mm D D D S end, with seed index j (0 seed1, 1 seed2). +fn opact j ulong to void +oppush 2 +oppush 8 +oppush 6 +oppd get opgv 1 +oppd get opgv 2 +oppd get opgv 3 +opps get opgv add 4 j +oppush 5 +end + +note The operands as G and P ok carry them: kind word, D D D, S [S]. +fn opops to void +if eq get opgv 0 1 +oppush 7 +else +oppush 6 +end +oppd get opgv 1 +oppd get opgv 2 +oppd get opgv 3 +opps get opgv 4 +if eq get opgv 0 1 +opps get opgv 5 +end +end + +note Draw the goal (kind, dims, seeds, in this order) and append G. True when admitted. +fn opgoal to bool +pr = opbelow 2 +put opgv 0 pr +put opgv 1 opdim +put opgv 2 opdim +put opgv 3 opdim +put opgv 4 opbelow 65536 +put opgv 5 0 +if eq pr 1 +put opgv 5 opbelow 65536 +opcnt 1 +else +opcnt 0 +end +oppush 1 +opops +oppush 5 +ret and and opadim get opgv 1 opadim get opgv 2 opadim get opgv 3 +end + +note Job j under the policy: A, then R; one retry after the first fail transport. +note Returns the last outcome (class * 32 + code id; 32 = ok). +fn opjob j ulong to ulong +t = ulong 0 +o = ulong 0 +dn = false +while not dn bound 3 +opact j +o = opout +cl = shr o 5 +cd = and o 31 +oppush 3 +if eq cl 1 +oppush 10 +dn = true +else +oppush add 9 cl +oppush cd +opcnt add 8 add mul sub cl 2 16 sub cd 13 +if and and eq cl 3 eq cd 17 eq t 0 +t = 1 +opcnt 3 +else +dn = true +end +end +oppush 5 +end +ret o +end + +note One episode by the reference policy into opep / opel. +fn opgen to void +put opel 0 0 +if not opgoal +opcnt 2 +oppush 2 +oppush 9 +oppush 13 +oppush 5 +oppush 4 +oppush 11 +oppush 13 +oppush 5 +ret +end +for j ulong add get opgv 0 1 +o = opjob j +if ne o 32 +opcnt 4 +oppush 4 +oppush add 9 shr o 5 +oppush and o 31 +oppush 5 +ret +end +end +opcnt 5 +oppush 4 +oppush 10 +opops +oppush 5 +end + +fn opatou n ulong to ulong +v = ulong 0 +if or eq n 0 gt n 18 +exit 2 +end +for i ulong n +c = ulong get opgp i +if or lt c 48 gt c 57 +exit 2 +end +v = add mul v 10 sub c 48 +end +ret v +end + +fn oparg i ulong to ulong +r = argread i opgp 0 4095 +if le r 0 +exit 2 +end +ret ulong r +end + +fn opopen i ulong to int +n = oparg i +fd = fopen opgp 0 n 577 420 +if lt fd 0 +exit 70 +end +ret int fd +end + +fn opwout fd int n ulong to void +o = ulong 0 +while lt o n bound 4097 +w = write fd ocout o sub n o +if le w 0 +exit 70 +end +o = add o ulong w +end +end + +fn opwbuf fd int n ulong to void +o = ulong 0 +while lt o n bound 257 +w = write fd opgb o sub n o +if le w 0 +exit 70 +end +o = add o ulong w +end +end + +note Write the episode: text (validated message by message) and its id record. +fn opemit tf int bf int to void +n = get opel 0 +put ocout 0 111 +put ocout 1 101 +put ocout 2 52 +put ocout 3 53 +put ocout 4 32 +put ocout 5 118 +put ocout 6 49 +put ocout 7 10 +opwout tf 8 +s = ulong 0 +for i ulong n +if eq get opep i 5 +c = add sub i s 1 +for j ulong c +put ocids j get opep add s j +end +if lt ocvids c 0 0 +exit 40 +end +b = ocdec c +if lt b 0 +exit 40 +end +put ocout ulong b 10 +opwout tf add ulong b 1 +s = add i 1 +end +end +if ne s n +exit 40 +end +put opgb 0 uchar n +for i ulong n +put opgb add i 1 uchar get opep i +end +opwbuf bf add n 1 +end + +note Coverage line: `oe45gen v1 SEED COUNT` then 26 counters in this order: mm pair oob retry +note stop okep e000 e001 e100 e101, refused replay budget worker transport receipt recomp +note verdict io, fail replay budget worker transport receipt recomp verdict io. +text opghd "oe45gen v1" + +fn opstat i ulong to void +ocputc 32 +ocputn get opgst i +end + +fn main to int +if ne argcnt 5 +exit 2 +end +seed = opatou oparg 1 +cnt = opatou oparg 2 +if or eq cnt 0 gt cnt 40000 +exit 2 +end +tf = opopen 3 +bf = opopen 4 +put oprs 0 seed +for e ulong cnt +opgen +opemit tf bf +end +if ne fsync tf 0 +exit 70 +end +if ne fsync bf 0 +exit 70 +end +if ne fclose tf 0 +exit 70 +end +if ne fclose bf 0 +exit 70 +end +w = write 1 opghd 0 len opghd +ocputc 32 +ocputn seed +ocputc 32 +ocputn cnt +for i ulong 6 +opstat i +end +for i ulong 4 +opstat add 40 i +end +for i ulong 8 +opstat add 9 i +end +for i ulong 8 +opstat add 25 i +end +ocputc 10 +ret 0 +end diff --git a/tests/omegese45/core/build.sh b/tests/omegese45/core/build.sh new file mode 100755 index 0000000..1ed8e01 --- /dev/null +++ b/tests/omegese45/core/build.sh @@ -0,0 +1,37 @@ +#!/bin/sh +# SPDX-License-Identifier: AGPL-3.0-only +# Build the omegese45 pipeline binaries (aien-train #45, pipeline lane). +# OMC=<omc bf54b19f> OMEGA=<omega-mv checkout with bf54b19f> OUT=<dir> sh tests/omegese45/core/build.sh [MODEL.om] +# Writes $OUT/oe45gen (generator), $OUT/oe45core (CLI), $OUT/oe45test (test driver) and +# $OUT/oe45mut (fault injector). MODEL.om (default native/omegese45/core/model.om) lets the +# suite build mutants. Host glue only: the pinned SHA unit comes from its exact Git object +# (native/omegese45/core/dependencies.json, sha256 checked); its `export fn` lines become +# `fn` (program mode refuses export), and OM-2 requires it first in the unit. +set -u +ROOT=$(cd "$(dirname "$0")/../../.." && pwd) +: "${OMC:?}" "${OMEGA:?}" "${OUT:?}" +mkdir -p "$OUT" +N=$ROOT/native/omegese45 +MODEL=${1:-$N/core/model.om} +DEPS=$N/core/dependencies.json +[ "$(sha256sum "$OMC" | cut -d' ' -f1)" = "$(jq -r .compiler.binary_sha256 "$DEPS")" ] || { echo "BUILD_FAIL omc-sha256"; exit 1; } +commit=$(jq -r '.dependencies[0].commit' "$DEPS") +path=$(jq -r '.dependencies[0].path' "$DEPS") +sum=$(jq -r '.dependencies[0].sha256' "$DEPS") +git -C "$OMEGA" show "$commit:$path" > "$OUT/sha256-om2.om" || { echo "BUILD_FAIL sha-unit-missing"; exit 1; } +echo "$sum $OUT/sha256-om2.om" | sha256sum -c --status || { echo "BUILD_FAIL sha-unit-sha256"; exit 1; } +sed 's/^export fn /fn /' "$OUT/sha256-om2.om" > "$OUT/sha-prog.om" +cat "$N/vocab.om" "$N/msg.om" "$N/data/gen.om" > "$OUT/gen.unit.om" +cat "$OUT/sha-prog.om" "$N/vocab.om" "$N/msg.om" "$MODEL" "$N/core/ckpt.om" \ + "$N/core/run.om" "$N/core/cli.om" > "$OUT/core.unit.om" +cat "$OUT/sha-prog.om" "$N/vocab.om" "$N/msg.om" "$MODEL" "$N/core/ckpt.om" \ + "$N/core/run.om" "$ROOT/tests/omegese45/core/main.om" > "$OUT/test.unit.om" +cp "$ROOT/tests/omegese45/core/mutate.om" "$OUT/mut.unit.om" +for u in gen core test mut; do + "$OMC" < "$OUT/$u.unit.om" > "$OUT/oe45$u" 2> "$OUT/$u.compile.stderr" + rc=$? + [ "$rc" = 0 ] || { echo "BUILD_FAIL $u rc=$rc $(cat "$OUT/$u.compile.stderr")"; exit 1; } + [ "$(od -An -tx1 -N4 "$OUT/oe45$u" | tr -d ' ')" = 7f454c46 ] || { echo "BUILD_FAIL $u not-elf"; exit 1; } + chmod 700 "$OUT/oe45$u" +done +echo BUILD_OK diff --git a/tests/omegese45/core/main.om b/tests/omegese45/core/main.om new file mode 100644 index 0000000..764fc77 --- /dev/null +++ b/tests/omegese45/core/main.om @@ -0,0 +1,546 @@ +note SPDX-License-Identifier: AGPL-3.0-only +note oe45core test driver (aien-train #45, pipeline lane). Replaces core/cli.om in the +note build: SHA unit, vocab.om, msg.om, core/model.om, core/ckpt.om, core/run.om, this file. +note grad CKDIR TRAIN.ids finite-difference gradient check rc 0 | 86 +note ldec CKDIR TRAIN.ids N loss over N episodes falls after one pass rc 0 | 87 +note mask TRAIN.ids K dump target and A/P mask of K episodes rc 0 +note leak CKDIR TRAIN.ids causal no-leak and its negative control rc 0 | 88 +note force SRC DST K K 1: b2[mm] = 100, 2: b2[end] = 100, 3: wrong vocab pin +note rt SRC DST load SRC, save into DST rc 0 +note vgen OE45 IDS every episode valid, ids == encoded text rc 0 | 40 +note vok FILE count batch result lines and validate ok lines +note Finite-difference step eps = 2^-6 = 0.015625 (2 eps = 0.03125), exact in f32. +global optg ulong 1200 +global optga f32 1200 +global optn ulong 1 +global opx2 uchar 4194305 +global opx2n ulong 1 +global opcm uchar 16 +text optgc "GC " +text optld "LD " +text optnl "NL " +text optvg "VG " +text optvk "VK " +text opth "oe45 v1\n" + +fn opputb b bool to void +if b +ocputc 49 +else +ocputc 48 +end +end + +note Replace the id at position p by another non-pad id (1 + (id + 7) mod 40). +fn opalt p ulong to void +v = ulong get opseq p +put opseq p uchar add 1 rem add v 7 40 +end + +fn opfabs x f32 to f32 +if lt x 0.0f32 +ret sub 0.0f32 x +end +ret x +end + +fn opgadd i ulong g f32 to void +n = get optn 0 +put optg n i +put optga n g +put optn 0 add n 1 +end + +fn oplos2 t ulong to f32 +opfeat t +opfwd +ret oploss optgt t +end + +note Record analytic gradients at position t: all of b2, and for sampled hidden units away +note from the ReLU kink: b1, nine W2 entries and the first and last active W1 rows. +fn opgrec t ulong to void +put optn 0 0 +l = opgrad t +for v ulong OPV +opgadd add add OPW1N add OPH OPW2N v get opgy v +end +for q ulong 16 +j = mul q 17 +if gt opfabs get ophp j 0.03125f32 +opgadd add OPW1N j get opgh j +for u ulong 9 +v = mul u 5 +q2 = add add OPW1N OPH add mul j OPV v +g2 = mul get oph j get opgy v +opgadd q2 g2 +end +if gt get opfn 0 0 +gv = get opgh j +fa = get opfx 0 +opgadd add mul fa OPH j gv +fb = get opfx sub get opfn 0 1 +opgadd add mul fb OPH j gv +end +end +end +end + +note Central difference for parameter i at position t (restores the parameter). +fn opfd i ulong t ulong to f32 +x = opgetp i +opsetp i add x 0.015625f32 +lp = oplos2 t +opsetp i sub x 0.015625f32 +lm = oplos2 t +opsetp i x +ret div sub lp lm 0.03125f32 +end + +note Tolerance |fd - g| <= 0.001 + 0.01 |g|. +fn opgok fd f32 g f32 to bool +tol = add 0.001f32 mul 0.01f32 opfabs g +ret le opfabs sub fd g tol +end + +note Central differences for the recorded entries; returns the number of failures. +fn opgchk t ulong to ulong +bad = ulong 0 +for k ulong get optn 0 +fd = opfd get optg k t +if not opgok fd get optga k +bad = add bad 1 +end +end +ret bad +end + +fn optgrad to int +if ne argcnt 4 +exit 2 +end +opckdir 2 +opload +opldat 3 +opepi 0 +n = get opsl 0 +bad = ulong 0 +tot = ulong 0 +for q ulong 3 +t = add 1 div mul q sub n 2 2 +opgrec t +bad = add bad opgchk t +tot = add tot get optn 0 +end +w = write 1 optgc 0 3 +ocputn tot +ocputc 32 +ocputn bad +ocputc 10 +if ne bad 0 +exit 86 +end +ret 0 +end + +note Sum of per-position loss over episodes [0, n). +fn oplsum n ulong to f32 +s = 0.0f32 +for e ulong n +opepi e +for t ulong get opsl 0 +s = add s oplos2 t +end +end +ret s +end + +fn optldec to int +if ne argcnt 5 +exit 2 +end +opckdir 2 +opload +opldat 3 +n = opdecu 4 +if or eq n 0 gt n get opne 0 +exit 2 +end +a = oplsum n +lr = bitcast f32 uint get opmeta 6 +for e ulong n +opepi e +l = optrep 1 lr +end +b = oplsum n +w = write 1 optld 0 3 +ocputn ulong bitcast uint a +ocputc 32 +ocputn ulong bitcast uint b +ocputc 10 +if ge b a +exit 87 +end +ret 0 +end + +fn optmask to int +if ne argcnt 4 +exit 2 +end +opldat 2 +k = opdecu 3 +if gt k get opne 0 +exit 2 +end +for e ulong k +opepi e +opmask +for t ulong get opsl 0 +ocputc 77 +ocputc 32 +ocputn e +ocputc 32 +ocputn t +ocputc 32 +ocputn optgt t +ocputc 32 +ocputn ulong get opmk t +ocputc 10 +end +end +ret 0 +end + +note 1 when the outputs equal the saved bits in opsv-like local copies. +fn opysame y edit f32 41 to bool +for v ulong OPV +if ne bitcast uint get opy v bitcast uint get y v +ret false +end +end +ret true +end + +fn optleak to int +if ne argcnt 4 +exit 2 +end +opckdir 2 +opload +opldat 3 +opepi 0 +n = get opsl 0 +t = div n 2 +y0 = new f32 41 0.0f32 +opfeat t +opfwd +for v ulong OPV +put y0 v get opy v +end +for p ulong sub n t +q = add t p +opalt q +end +opfeat t +opfwd +same = opysame y0 +opepi 0 +opfeat add t 1 +opfwd +for v ulong OPV +put y0 v get opy v +end +opalt t +opfeat add t 1 +opfwd +ctl = not opysame y0 +w = write 1 optnl 0 3 +ocputn t +ocputc 32 +opputb same +ocputc 32 +opputb ctl +ocputc 10 +if not and same ctl +exit 88 +end +ret 0 +end + +fn optforce to int +if ne argcnt 5 +exit 2 +end +opckdir 2 +opload +k = opdecu 4 +if eq k 1 +put opb2 6 100.0f32 +end +if eq k 2 +put opb2 5 100.0f32 +end +if eq k 3 +put opvp 0 uchar xor ulong get opvp 0 1 +end +opckdir 3 +opsave +ret 0 +end + +fn optrt to int +if ne argcnt 4 +exit 2 +end +opckdir 2 +opload +opckdir 3 +opsave +ret 0 +end + +note Read file argv[i] into opx2. +fn oprd2 i ulong to void +n = oppath i +fd = int fopen opfp 0 n 0 0 +if lt fd 0 +exit 70 +end +r = read fd opx2 0 4194305 +if or lt r 0 ge r 4194305 +exit 70 +end +put opx2n 0 ulong r +c = fclose fd +end + +fn ophdr2 a ulong b ulong to bool +if gt add a 8 b +ret false +end +for i ulong 8 +if ne get opdb add a i get opth i +ret false +end +end +ret true +end + +note Kind k may follow kind lk inside a complete episode (G (A R?)+ P). +fn opnxt2 lk ulong rf bool k ulong to bool +if eq lk 0 +ret eq k 1 +end +if eq lk 1 +ret eq k 2 +end +if eq lk 2 +if rf +ret eq k 4 +end +ret eq k 3 +end +if eq lk 3 +ret or eq k 2 eq k 4 +end +ret false +end + +note End of the line starting at opdb[p] (index of its LF); exits 40 when missing or long. +fn opeol p ulong b ulong to ulong +e = p +while and lt e b ne get opdb e 10 bound 4097 +e = add e 1 +end +if or ge e b gt sub e p 4095 +exit 40 +end +ret e +end + +note Validate the message opdb[p, e) (kind inferred); returns its kind, exits 40. +fn opvmsg p ulong e ulong to ulong +for i ulong sub e p +put ocin i get opdb add p i +end +k = ocvline sub e p 0 +if lt k 0 +exit 40 +end +ret ulong k +end + +note vgen state: 0 text pos, 1 ids pos, 2 episodes, 3 messages, 4 last kind (4 = between +note episodes), 5 last A was a refusal, 6 ids left in the current record. +global opvs ulong 8 + +note One step of vgen at text position opvs[0]: a header or one message line. +fn opvstep b ulong to void +p = get opvs 0 +x = get opvs 1 +if eq get opvs 4 4 +if not ophdr2 p b +exit 40 +end +if ge x get opx2n 0 +exit 40 +end +put opvs 6 ulong get opx2 x +put opvs 0 add p 8 +put opvs 1 add x 1 +put opvs 4 0 +put opvs 2 add get opvs 2 1 +ret +end +e = opeol p b +k = opvmsg p e +if not opnxt2 get opvs 4 eq get opvs 5 1 k +exit 40 +end +n = get ocnids 0 +if gt n get opvs 6 +exit 40 +end +for i ulong n +if ne ulong get opx2 add x i get ocids i +exit 40 +end +end +put opvs 5 0 +if and eq k 2 eq get ocids 1 9 +put opvs 5 1 +end +put opvs 6 sub get opvs 6 n +if and eq k 4 ne get opvs 6 0 +exit 40 +end +put opvs 1 add x n +put opvs 3 add get opvs 3 1 +put opvs 4 k +put opvs 0 add e 1 +end + +fn optvgen to int +if ne argcnt 4 +exit 2 +end +opread 2 +oprd2 3 +b = get opdn 0 +put opvs 4 4 +for z ulong b +if lt get opvs 0 b +opvstep b +end +end +if or ne get opvs 4 4 ne get opvs 1 get opx2n 0 +exit 40 +end +w = write 1 optvg 0 3 +ocputn get opvs 2 +ocputc 32 +ocputn get opvs 3 +ocputc 10 +ret 0 +end + +note Batch result lines: ok lines are validated as kind 0 messages; counts printed as +note VK ok-valid ok-invalid err40 err50 err53 other. +fn optvok to int +if ne argcnt 3 +exit 2 +end +opread 2 +b = get opdn 0 +p = ulong 0 +cnt = new ulong 6 0 +for z ulong b +if lt p b +e = opeol p b +if lt sub e p 3 +exit 40 +end +c = opvkind p e +put cnt c add get cnt c 1 +p = add e 1 +end +end +w = write 1 optvk 0 3 +for i ulong 5 +ocputn get cnt i +ocputc 32 +end +ocputn get cnt 5 +ocputc 10 +ret 0 +end + +note Class of batch line opdb[p, e): 0 ok and valid act/rep, 1 ok but invalid, 2.. errors. +fn opvkind p ulong e ulong to ulong +if ne get opdb p 111 +ret opdecu2 add p 4 +end +q = add p 3 +for i ulong sub e q +put ocin i get opdb add q i +end +k = ocvline sub e q 0 +if or eq k 2 eq k 4 +ret 0 +end +ret 1 +end + +note Error code at opdb[p]: 40 -> 2, 50 -> 3, 53 -> 4, other -> 5. +fn opdecu2 p ulong to ulong +a = get opdb p +c = get opdb add p 1 +if and eq a 52 eq c 48 +ret 2 +end +if and eq a 53 eq c 48 +ret 3 +end +if and eq a 53 eq c 51 +ret 4 +end +ret 5 +end + +fn main to int +if lt argcnt 2 +exit 2 +end +n = argread 1 opcm 0 16 +if lt n 2 +exit 2 +end +c0 = get opcm 0 +c1 = get opcm 1 +if eq c0 103 +ret optgrad +end +if eq c0 108 +if eq c1 100 +ret optldec +end +ret optleak +end +if eq c0 109 +ret optmask +end +if eq c0 102 +ret optforce +end +if eq c0 114 +ret optrt +end +if eq c0 118 +if eq c1 103 +ret optvgen +end +ret optvok +end +exit 2 +end diff --git a/tests/omegese45/core/mutate.om b/tests/omegese45/core/mutate.om new file mode 100644 index 0000000..2a5c60e --- /dev/null +++ b/tests/omegese45/core/mutate.om @@ -0,0 +1,103 @@ +note SPDX-License-Identifier: AGPL-3.0-only +note Native source fault injector for native/omegese45/core/model.om (aien-train #45). +note Reads one ASCII mode byte then model.om; writes the mutant to stdout. Exactly one +note match is required (rc 76 otherwise). Mode 0 flips the sign of the output gradient +note (the gradient check must fail, rc 86); mode 1 makes the target the id one position +note later (the mask/target oracle comparison must fail). +global opmin uchar 65536 +global opmmd ulong 1 +text opm0n "put opgy v mul 2.0f32 d\n" +text opm0r "put opgy v mul -2.0f32 d\n" +text opm1n "ret ulong get opseq t\n" +text opm1r "ret ulong get opseq add t 1\n" + +fn opmsize to ulong +if eq get opmmd 0 0 +ret len opm0n +end +ret len opm1n +end + +fn opmpat i ulong to uchar +if eq get opmmd 0 0 +ret get opm0n i +end +ret get opm1n i +end + +fn opmemit to void +if eq get opmmd 0 0 +n = write 1 opm0r 0 len opm0r +if ne n long len opm0r +exit 74 +end +ret +end +n = write 1 opm1r 0 len opm1r +if ne n long len opm1r +exit 74 +end +end + +fn opmat pos ulong to bool +for i ulong opmsize +if ne get opmin add pos i opmpat i +ret false +end +end +ret true +end + +fn main to int +p = ulong 0 +rd = true +while rd bound 65537 +if eq p 65536 +ret 75 +end +n = read 0 opmin p sub 65536 p +if eq n 0 +rd = false +else +if lt n 0 +ret 74 +end +p = add p ulong n +end +end +if lt p 2 +ret 75 +end +m = get opmin 0 +if or lt m 48 gt m 49 +ret 75 +end +put opmmd 0 ulong sub m 48 +ln = opmsize +if le p ln +ret 75 +end +found = ulong 0 +where = ulong 0 +for s ulong sub p ln +pos = add s 1 +if opmat pos +found = add found 1 +where = pos +end +end +if ne found 1 +ret 76 +end +n = write 1 opmin 1 sub where 1 +if ne n long sub where 1 +ret 74 +end +opmemit +tl = add where ln +n = write 1 opmin tl sub p tl +if ne n long sub p tl +ret 74 +end +ret 0 +end diff --git a/tests/omegese45/core/oracle.py b/tests/omegese45/core/oracle.py new file mode 100755 index 0000000..54f864b --- /dev/null +++ b/tests/omegese45/core/oracle.py @@ -0,0 +1,119 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: AGPL-3.0-only +# Independent test oracle for tests/omegese45/core/run-core.sh (aien-train #45, pipeline +# lane). Python stdlib only; it is a referee for the .om code, never part of the pipeline. +# oracle.py mask VOCAB.tsv EPISODES.oe45 K expected `M e t target mask` lines +# oracle.py policy EPISODES.oe45 reference-policy check (rc 0 / 1) +# oracle.py prefixes EPISODES.oe45 K OUT EXPECT decode prefixes and expected next messages +import sys + +HDR = "oe45 v1" + + +def episodes(path): + eps, cur = [], None + with open(path, encoding="ascii") as f: + for line in f.read().split("\n")[:-1]: + if line == HDR: + cur = [] + eps.append(cur) + else: + cur.append(line.split(" ")) + return eps + + +def ids_of(words, vocab): + out = [] + for w in words: + if w.startswith("0x"): + out.append(vocab["0x"]) + out.extend(vocab[c] for c in w[2:]) + else: + out.append(vocab[w]) + return out + + +def cmd_mask(vocab_path, ep_path, k): + vocab = {} + with open(vocab_path, encoding="ascii") as f: + for line in f: + i, tok = line.split("\t")[:2] + vocab[tok] = int(i) + for e, msgs in enumerate(episodes(ep_path)[: int(k)]): + t = 0 + for m in msgs: + ap = 1 if m[0] in ("act", "rep") else 0 + for i in ids_of(m, vocab): + print(f"M {e} {t} {i} {ap}") + t += 1 + return 0 + + +def check_policy(msgs): + g = msgs[0] + if g[0] != "goal": + return "no goal" + kind, dims = g[1], g[2:8] + seeds = [g[9]] if kind == "mm" else [g[9], g[11]] + vals = [int(dims[i], 16) for i in (1, 3, 5)] + rest = msgs[1:] + if any(v < 1 or v > 256 for v in vals): + want = [["act", "refuse", "bound", "end"], ["rep", "refused", "bound", "end"]] + return None if rest == want else "bound" + pos = 0 + for s in seeds: + tries = 0 + while True: + a = ["act", "job", "mm"] + dims + ["ulong", s, "end"] + if rest[pos] != a: + return "act" + r = rest[pos + 1] + pos += 2 + if r == ["res", "ok", "end"]: + break + if r == ["res", "fail", "transport", "end"] and tries == 0: + tries = 1 + continue + want = [["rep", r[1], r[2], "end"]] + return None if rest[pos:] == want else "stop" + want = [["rep", "ok"] + g[1:]] + return None if rest[pos:] == want else "report" + + +def cmd_policy(ep_path): + bad = 0 + eps = episodes(ep_path) + for e, msgs in enumerate(eps): + why = check_policy(msgs) + if why: + bad += 1 + print(f"POLICY_BAD {e} {why}") + print(f"POLICY {len(eps)} {bad}") + return 1 if bad else 0 + + +def cmd_prefixes(ep_path, k, out_path, exp_path): + with open(out_path, "w", encoding="ascii") as out, open(exp_path, "w", encoding="ascii") as exp: + for msgs in episodes(ep_path)[: int(k)]: + for i in range(1, len(msgs)): + prev = msgs[i - 1] + # Every A/P position: after G or R, and the P that follows `act refuse` (no R). + if msgs[i][0] in ("act", "rep") and (prev[0] in ("goal", "res") or prev[:2] == ["act", "refuse"]): + out.write(HDR + "\n" + "".join(" ".join(m) + "\n" for m in msgs[:i])) + exp.write(" ".join(msgs[i]) + "\n") + return 0 + + +def main(argv): + if len(argv) == 5 and argv[1] == "mask": + return cmd_mask(argv[2], argv[3], argv[4]) + if len(argv) == 3 and argv[1] == "policy": + return cmd_policy(argv[2]) + if len(argv) == 6 and argv[1] == "prefixes": + return cmd_prefixes(argv[2], argv[3], argv[4], argv[5]) + print("usage: oracle.py mask VOCAB EPS K | policy EPS | prefixes EPS K OUT EXPECT", file=sys.stderr) + return 2 + + +if __name__ == "__main__": + sys.exit(main(sys.argv)) diff --git a/tests/omegese45/core/run-core.sh b/tests/omegese45/core/run-core.sh new file mode 100755 index 0000000..14a9290 --- /dev/null +++ b/tests/omegese45/core/run-core.sh @@ -0,0 +1,186 @@ +#!/bin/sh +# SPDX-License-Identifier: AGPL-3.0-only +# omegese45 pipeline suite (aien-train #45): generator, model, checkpoint and decode CLI. +# OMC=<omc bf54b19f> OMEGA=<omega-mv checkout with bf54b19f> OUT=<scratch dir> sh tests/omegese45/core/run-core.sh +# Host glue only (build via build.sh, file copies, byte flips, comparisons); every +# computation is in .om except tests/omegese45/core/oracle.py, the stdlib referee. +# Writes each rc/stdout under $OUT/run. Last line OE45_CORE_PASS (exit 0) or +# OE45_CORE_FAIL <check> (exit 1). Heavy steps run under taskset/nice/ionice. +set -u +ROOT=$(cd "$(dirname "$0")/../../.." && pwd) +: "${OMC:?set OMC to the pinned seed/out/omc}" +: "${OMEGA:?set OMEGA to an omega-mv checkout}" +: "${OUT:?set OUT to a scratch directory}" +mkdir -p "$OUT/bin" "$OUT/run" "$OUT/w" "$OUT/mut" +OUT=$(cd "$OUT" && pwd) +P="taskset -c 10-14 nice -n 19 ionice -c3" +ORA="python3 $ROOT/tests/omegese45/core/oracle.py" +VOCAB=$ROOT/docs/omegese45/vocab.tsv +B=$OUT/bin +W=$OUT/w +fail() { echo "OE45_CORE_FAIL $1"; exit 1; } +ok() { echo "ok $1"; } +# run TAG CMD...: run in $W, keep stdout/stderr/rc, print the rc. +run() { + tag=$1; shift + (cd "$W" && $P "$@" > "$OUT/run/$tag.stdout" 2> "$OUT/run/$tag.stderr") + echo $? > "$OUT/run/$tag.rc" + cat "$OUT/run/$tag.rc" +} +flip() { # flip FILE OFFSET: xor one byte with 1 + b=$(od -An -tu1 -j"$2" -N1 "$1" | tr -d ' ') + printf "\\$(printf %o $((b ^ 1)))" | dd of="$1" bs=1 seek="$2" conv=notrunc 2> /dev/null +} +field() { # field TAG N: Nth space-separated word of the first stdout line + sed -n 1p "$OUT/run/$1.stdout" | cut -d' ' -f"$2" +} + +# 1. Build (pinned compiler and SHA unit checked by build.sh). +OMC=$OMC OMEGA=$OMEGA OUT=$B sh "$ROOT/tests/omegese45/core/build.sh" > "$OUT/run/build.out" || fail "build $(cat "$OUT/run/build.out")" +ok build + +# 2. Generator: determinism, seed sensitivity, contract validity, reference policy. +[ "$(run gen1 "$B/oe45gen" 4501 300 train.oe45 train.ids)" = 0 ] || fail gen +[ "$(run gen2 "$B/oe45gen" 4501 300 again.oe45 again.ids)" = 0 ] || fail gen-rerun +cmp -s "$W/train.oe45" "$W/again.oe45" && cmp -s "$W/train.ids" "$W/again.ids" || fail gen-determinism +cmp -s "$OUT/run/gen1.stdout" "$OUT/run/gen2.stdout" || fail gen-stats-determinism +[ "$(run gen3 "$B/oe45gen" 4502 60 dev.oe45 dev.ids)" = 0 ] || fail gen-dev +cmp -s "$W/train.ids" "$W/dev.ids" && fail gen-seed-insensitive +[ "$(run vgen "$B/oe45test" vgen train.oe45 train.ids)" = 0 ] || fail gen-contract-validity +[ "$(field vgen 2)" = 300 ] || fail gen-episode-count +[ "$(run vgendev "$B/oe45test" vgen dev.oe45 dev.ids)" = 0 ] || fail gen-contract-validity-dev +cp "$W/train.ids" "$W/bad.ids" +flip "$W/bad.ids" 40 +[ "$(run vgenbad "$B/oe45test" vgen train.oe45 bad.ids)" = 40 ] || fail vgen-negative-control +$ORA policy "$W/train.oe45" > "$OUT/run/policy.stdout" || fail reference-policy +$ORA policy "$W/dev.oe45" > "$OUT/run/policydev.stdout" || fail reference-policy-dev +ok generator + +# 3. Step-0 checkpoint: deterministic init, vocab pin equals vocab.tsv. +mkdir -p "$W/ck0" "$W/ck0b" +[ "$(run init "$B/oe45core" init ck0 train.ids 45 300 1200 7 7)" = 0 ] || fail init +[ "$(run initb "$B/oe45core" init ck0b train.ids 45 300 1200 7 7)" = 0 ] || fail init-rerun +cmp -s "$W/ck0/ck.a" "$W/ck0b/ck.a" || fail init-determinism +[ -e "$W/ck0/ck.b" ] && fail init-one-slot +[ "$(run info0 "$B/oe45core" info ck0)" = 0 ] || fail info +[ "$(field info0 12)" = "$(sha256sum "$VOCAB" | cut -d' ' -f1)" ] || fail vocab-pin +sha256sum "$W/ck0/ck.a" > "$OUT/run/ck0.sha256" +ok step0 + +# 4. Gradient check, loss decrease, target/mask oracle, causal no-leak. +[ "$(run grad "$B/oe45test" grad ck0 train.ids)" = 0 ] || fail gradient-check +[ "$(run ldec "$B/oe45test" ldec ck0 train.ids 50)" = 0 ] || fail loss-decrease +[ "$(run mask "$B/oe45test" mask train.ids 300)" = 0 ] || fail mask-dump +$ORA mask "$VOCAB" "$W/train.oe45" 300 > "$OUT/run/mask.expect" || fail mask-oracle +cmp -s "$OUT/run/mask.stdout" "$OUT/run/mask.expect" || fail mask-target +[ "$(run leak "$B/oe45test" leak ck0 train.ids)" = 0 ] || fail causal-no-leak +ok model + +# 5. Training, kill -9 mid-run, resume: byte-identical to the uninterrupted run. +cp -r "$W/ck0" "$W/cku" +cp -r "$W/ck0" "$W/ckk" +[ "$(run train "$B/oe45core" train cku train.ids 1200 100)" = 0 ] || fail train +krc=$(run kill timeout -s KILL 2 "$B/oe45core" train ckk train.ids 1200 100) +[ "$krc" = 137 ] || fail "kill-not-mid-run rc=$krc" +[ "$(run resume "$B/oe45core" train ckk train.ids 1200 100)" = 0 ] || fail resume +cmp -s "$W/cku/ck.a" "$W/ckk/ck.a" && cmp -s "$W/cku/ck.b" "$W/ckk/ck.b" || fail resume-not-identical +[ "$(run bind "$B/oe45core" train cku dev.ids 1300 100)" = 54 ] || fail data-binding +ok resume + +# 6. Round trip: load then save reproduces the payload exactly. +mkdir -p "$W/ckr" +[ "$(run infou "$B/oe45core" info cku)" = 0 ] || fail info-trained +slot=$(field infou 2) +[ "$(run rt "$B/oe45test" rt cku ckr)" = 0 ] || fail round-trip +r=$(ls "$W/ckr") +tail -c +241 "$W/cku/ck.$slot" > "$OUT/run/rt.src" +tail -c +241 "$W/ckr/$r" > "$OUT/run/rt.dst" +cmp -s "$OUT/run/rt.src" "$OUT/run/rt.dst" || fail round-trip-payload +[ "$(run infor "$B/oe45core" info ckr)" = 0 ] || fail info-round-trip +[ "$(field infor 4)" = "$(field infou 4)" ] || fail round-trip-step +ok round-trip + +# 7. Corrupt slots: newest corrupt -> older slot; both corrupt -> 51; wrong vocab -> 52. +gen=$(field infou 5) +other=a +[ "$slot" = a ] && other=b +cp -r "$W/cku" "$W/ckc" +flip "$W/ckc/ck.$slot" 5000 +[ "$(run infoc "$B/oe45core" info ckc)" = 0 ] || fail fallback +[ "$(field infoc 2)" = "$other" ] && [ "$(field infoc 5)" = $((gen - 1)) ] || fail fallback-slot +cp -r "$W/cku" "$W/ckh" +flip "$W/ckh/ck.$slot" 100 +[ "$(run infoh "$B/oe45core" info ckh)" = 0 ] && [ "$(field infoh 2)" = "$other" ] || fail fallback-header +cp -r "$W/cku" "$W/ckt" +head -c 1000 "$W/cku/ck.$slot" > "$W/ckt/ck.$slot" +[ "$(run infot "$B/oe45core" info ckt)" = 0 ] && [ "$(field infot 2)" = "$other" ] || fail fallback-truncated +flip "$W/ckc/ck.$other" 3000000 +[ "$(run info51 "$B/oe45core" info ckc)" = 51 ] || fail both-corrupt-51 +mkdir -p "$W/ckn" +[ "$(run info51e "$B/oe45core" info ckn)" = 51 ] || fail empty-51 +mkdir -p "$W/ckv" +[ "$(run forcev "$B/oe45test" force cku ckv 3)" = 0 ] || fail force-vocab +[ "$(run info52 "$B/oe45core" info ckv)" = 52 ] || fail wrong-vocab-52 +ok checkpoint + +# 8. Decode: U and G, guided decode never emits an illegal id, budget 53, invalid 50, prefix 40. +$ORA prefixes "$W/dev.oe45" 60 "$W/pre.oe45" "$OUT/run/pre.expect" || fail prefixes +{ echo "oe45 v1"; sed -n 2p "$W/dev.oe45"; } > "$W/one.oe45" +for c in ck0 cku; do + for m in U G; do + [ "$(run "b$c$m" "$B/oe45core" batch $c $m pre.oe45 "b$c$m.out")" = 0 ] || fail "batch-$c-$m" + [ "$(run "v$c$m" "$B/oe45test" vok "b$c$m.out")" = 0 ] || fail "vok-$c-$m" + done + [ "$(field "v${c}G" 3)" = 0 ] && [ "$(field "v${c}G" 4)" = 0 ] && [ "$(field "v${c}G" 5)" = 0 ] && [ "$(field "v${c}G" 6)" = 0 ] && [ "$(field "v${c}G" 7)" = 0 ] || fail "guided-illegal-$c" + [ "$(field "v${c}U" 3)" = 0 ] || fail "unguided-invalid-ok-$c" +done +[ "$(wc -l < "$W/bckuG.out")" = "$(wc -l < "$OUT/run/pre.expect")" ] || fail batch-line-count +[ "$(run decg "$B/oe45core" decode cku G one.oe45)" = 0 ] || fail decode-G +[ "ok $(cat "$OUT/run/decg.stdout")" = "$(sed -n 1p "$W/bckuG.out")" ] || fail decode-batch-agree +urc=$(run decu "$B/oe45core" decode cku U one.oe45) +[ "$urc" = 0 ] || fail "decode-U fixture expected rc 0, got $urc" +[ "ok $(cat "$OUT/run/decu.stdout")" = "$(sed -n 1p "$W/bckuU.out")" ] || fail decode-U-batch-agree +mkdir -p "$W/ckm" "$W/cke" +[ "$(run forcem "$B/oe45test" force cku ckm 1)" = 0 ] || fail force-mm +[ "$(run dec53 "$B/oe45core" decode ckm U one.oe45)" = 53 ] || fail budget-53 +[ -s "$OUT/run/dec53.stdout" ] && fail budget-53-stdout +[ "$(run dec53g "$B/oe45core" decode ckm G one.oe45)" = 0 ] || fail guided-under-mm-bias +[ "$(run forcee "$B/oe45test" force cku cke 2)" = 0 ] || fail force-end +[ "$(run dec50 "$B/oe45core" decode cke U one.oe45)" = 50 ] || fail invalid-50 +{ echo "oe45 v1"; sed -n 2,3p "$W/dev.oe45"; } > "$W/badp.oe45" +[ "$(run dec40 "$B/oe45core" decode cku G badp.oe45)" = 40 ] || fail prefix-40 +{ echo "oe45 v2"; sed -n 2p "$W/dev.oe45"; } > "$W/badh.oe45" +[ "$(run dec40h "$B/oe45core" decode cku G badh.oe45)" = 40 ] || fail header-40 +[ "$(run dec52 "$B/oe45core" decode ckv G one.oe45)" = 52 ] || fail decode-52 +# Refuse prefix (interface §3): G then `act refuse C end` is a decode point for P (rc 0, +# decode and batch); a refuse after an R, or any message after the refuse, is 40. +G12C="goal mm ushort 0x12c ushort 0x008 ushort 0x008 ulong 0x0005 end" +G008="goal mm ushort 0x008 ushort 0x008 ushort 0x008 ulong 0x0005 end" +A008="act job mm ushort 0x008 ushort 0x008 ushort 0x008 ulong 0x0005 end" +printf 'oe45 v1\n%s\nact refuse bound end\n' "$G12C" > "$W/refp.oe45" +[ "$(run decref "$B/oe45core" decode cku G refp.oe45)" = 0 ] || fail refuse-prefix-decode +[ "$(run batref "$B/oe45core" batch cku G refp.oe45 refb.out)" = 0 ] || fail refuse-prefix-batch +[ "ok $(cat "$OUT/run/decref.stdout")" = "$(cat "$W/refb.out")" ] || fail refuse-prefix-batch-agree +printf 'oe45 v1\n%s\n%s\nres ok end\nact refuse bound end\n' "$G008" "$A008" > "$W/refr.oe45" +[ "$(run decrefr "$B/oe45core" decode cku G refr.oe45)" = 40 ] || fail refuse-after-R-40 +printf 'oe45 v1\n%s\nact refuse bound end\nact refuse bound end\n' "$G12C" > "$W/refa.oe45" +[ "$(run decrefa "$B/oe45core" decode cku G refa.oe45)" = 40 ] || fail second-A-after-refuse-40 +printf 'oe45 v1\n%s\nact refuse bound end\nres fail transport end\n' "$G12C" > "$W/refx.oe45" +[ "$(run decrefx "$B/oe45core" decode cku G refx.oe45)" = 40 ] || fail R-after-refuse-40 +cat "$W/refr.oe45" "$W/refp.oe45" "$W/refa.oe45" > "$W/refm.oe45" +[ "$(run batrefm "$B/oe45core" batch cku G refm.oe45 refm.out)" = 0 ] || fail refuse-batch-mixed +[ "$(sed -n 1p "$W/refm.out")" = 40 ] && [ "$(sed -n 2p "$W/refm.out" | cut -c1-3)" = "ok " ] && [ "$(sed -n 3p "$W/refm.out")" = 40 ] || fail refuse-batch-mixed-lines +ok decode + +# 9. Mutants: each must be KILLED by the named check. +[ "$(run m0 sh -c "printf 0 | cat - '$ROOT/native/omegese45/core/model.om' | '$B/oe45mut' > '$OUT/mut/model0.om'")" = 0 ] || fail mutant0-inject +[ "$(run m1 sh -c "printf 1 | cat - '$ROOT/native/omegese45/core/model.om' | '$B/oe45mut' > '$OUT/mut/model1.om'")" = 0 ] || fail mutant1-inject +OMC=$OMC OMEGA=$OMEGA OUT=$OUT/mut/b0 sh "$ROOT/tests/omegese45/core/build.sh" "$OUT/mut/model0.om" > "$OUT/run/mb0.out" || fail mutant0-build +OMC=$OMC OMEGA=$OMEGA OUT=$OUT/mut/b1 sh "$ROOT/tests/omegese45/core/build.sh" "$OUT/mut/model1.om" > "$OUT/run/mb1.out" || fail mutant1-build +g0=$(run mgrad0 "$OUT/mut/b0/oe45test" grad ck0 train.ids) +[ "$g0" = 86 ] || fail "mutant0-sign-flip-survived rc=$g0" +echo "mutant0 sign-flip KILLED by gradient check (rc 86)" +[ "$(run mmask1 "$OUT/mut/b1/oe45test" mask train.ids 300)" = 0 ] || fail mutant1-mask-run +cmp -s "$OUT/run/mmask1.stdout" "$OUT/run/mask.expect" && fail mutant1-wrong-target-survived +echo "mutant1 wrong-target KILLED by mask/target oracle" +echo OE45_CORE_PASS