omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / evidence / prefetch-640 / reproduce.md
| 1 | # Host reproduction |
| 2 | |
| 3 | Run from this repository root on Linux AArch64. `OMC` below names the qualified |
| 4 | compiler whose SHA256 is recorded in `receipt.json`. Check that digest before |
| 5 | building. `OUT` must name a fresh directory. These are developer orchestration |
| 6 | commands; the classifier and fixture generation are native handwritten Omega. |
| 7 | No command below executes a GPU test. |
| 8 | |
| 9 | ```sh |
| 10 | mkdir "$OUT" && |
| 11 | quiet-build sh -c '"$OMC" < native/prefetch/classify.om > "$OUT/classify"' && |
| 12 | quiet-build sh -c '"$OMC" < native/prefetch/review-fixtures.om > "$OUT/fixtures"' && |
| 13 | quiet-build sh -c '"$OMC" < native/prefetch/review-nested.om > "$OUT/nested"' && |
| 14 | chmod 700 "$OUT/classify" "$OUT/fixtures" "$OUT/nested" |
| 15 | ``` |
| 16 | |
| 17 | Export `OMC` and `OUT` for the build commands. Only execute outputs if every |
| 18 | build exits zero; compare the classifier digest to `native/prefetch/classify.sha256`. |
| 19 | For mode0 (argmax mismatch), generate a complete log and receipt: |
| 20 | |
| 21 | ```sh |
| 22 | quiet-build "$OUT/fixtures" 0 L > "$OUT/0.log" |
| 23 | quiet-build "$OUT/fixtures" 0 J > "$OUT/0.json" |
| 24 | quiet-build "$OUT/classify" 1 "$OUT/0.log" "$OUT/0.json" |
| 25 | ``` |
| 26 | |
| 27 | Expect `PREFETCH_CONTROL: CAUGHT`, exit0. Fixture mode1 is logits-only, |
| 28 | mode2 both mismatches, mode3 complete pass (supply observed child exit0, |
| 29 | expect UNCAUGHT/exit1). The other modes and observed exits are recorded in |
| 30 | `results.txt`. For modesL..X, use the selected mode's generated log with the |
| 31 | normal mode0 receipt, except Q uses mode1 receipt, preserving tok_same. |
| 32 | Their expected return is65 except P/Q, which correspond to numerical checks. |
| 33 | Each classifier invocation must be a fresh process. |
| 34 | |
| 35 | Generate a contradictory nested flag without damaging JSON syntax: |
| 36 | |
| 37 | ```sh |
| 38 | quiet-build "$OUT/nested" 0 < "$OUT/0.json" > "$OUT/bad.json" |
| 39 | quiet-build "$OUT/classify" 1 "$OUT/0.log" "$OUT/bad.json" |
| 40 | ``` |
| 41 | |
| 42 | Expect INVALID/exit65. Native nested modes0..9 cover all cases in |
| 43 | `nested-results.txt`; all must return65. Generation itself must exit zero. |
| 44 | The final independent review covers53 invocations and an independent |
| 45 | byte-identical classifier build. `initial-finding.txt` documents the prior |
| 46 | version's real defect and is superseded by `review.txt`. |
| 47 | |
| 48 | The shell admission cases in `parent-checks.txt` deliberately fail before |
| 49 | the script reaches any device command. Do not run the full GPU script merely |
| 50 | to reproduce host qualification. Hardware experiment remains NOT_RUN. |