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 / native / control / evidence / 659 / README.md
| 1 | # Issue 659 evidence |
| 2 | |
| 3 | Evidence class: **EMULATED**. The host is x86_64 Linux. QEMU executes both the |
| 4 | AArch64 seeded compiler and the AArch64 test programs. No performance timing, |
| 5 | Spark/GB10 execution, production dispatch or power-loss qualification is claimed. |
| 6 | |
| 7 | Functional source is recorded separately from evidence-only follow-up commits. |
| 8 | The final source-bound run is in `qualified/receipt.json` when present. Files |
| 9 | directly in this directory are chronological development evidence and do not |
| 10 | independently bind a clean source commit. They are preserved, including the |
| 11 | initial failing controls and the later delegation rights-profile correction. |
| 12 | |
| 13 | ## Tools |
| 14 | |
| 15 | - Seed/compiler source: `aien-dev/omega-mv@57f5f4258cebf3d5b2c22853cd062e351265c525`. |
| 16 | - Compiler SHA-256: `01b1545b23e8ff40cb5691e20b5df910ea4acaefde3495f0d62d270465b98cd6`. |
| 17 | - QEMU: `qemu-aarch64 version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.18)`. |
| 18 | - QEMU executable SHA-256: `e4f8d99e9ff69c3cefffab71cee358ce2af1ecba1282d04c3eeb44ef76f5a71e`. |
| 19 | - Ubuntu package SHA-256: `5bb397f66063efa349f6fd5cb3b68cd96f29edd0994e4ba5115cf0859a716bf0`. |
| 20 | - The package was extracted into the scratch tool directory. It is an external |
| 21 | execution emulator, not a project build/runtime dependency. |
| 22 | |
| 23 | The seed reconstruction starts with the existing `seed/rung0/load0.sh`, then |
| 24 | runs seed0 -> hex1 -> asm2 -> om4 -> omc stage1 -> stage2 -> stage3 under QEMU. |
| 25 | Each reconstructed rung matches the pinned published binary. All three omc |
| 26 | stages match one another and `seed/out/omc`. |
| 27 | `seed-rebuild.sha256` records the actual output hashes. This checks the |
| 28 | reconstruction and fixed point; it is not diverse-double-compilation proof. |
| 29 | |
| 30 | ## Replay commands |
| 31 | |
| 32 | The source and tools must be pinned before replay. `qemu-aarch64-static` below |
| 33 | is the executable with the hash above, and `OMC` is the verified compiler. |
| 34 | Use a private output directory; never replace the source compiler or evidence. |
| 35 | |
| 36 | ```sh |
| 37 | OMC=/absolute/path/to/verified/omc |
| 38 | QEMU=/absolute/path/to/qemu-aarch64-static |
| 39 | OUT=/absolute/path/to/private-output |
| 40 | mkdir -p "$OUT" |
| 41 | cat native/control/src/action.om native/control/tests/action.om > "$OUT/action.om" |
| 42 | "$QEMU" "$OMC" < "$OUT/action.om" > "$OUT/action.elf" |
| 43 | chmod +x "$OUT/action.elf" |
| 44 | "$QEMU" "$OUT/action.elf" |
| 45 | |
| 46 | cat native/control/src/delegate.om native/control/tests/delegate.om > "$OUT/delegate.om" |
| 47 | "$QEMU" "$OMC" < "$OUT/delegate.om" > "$OUT/delegate.elf" |
| 48 | chmod +x "$OUT/delegate.elf" |
| 49 | "$QEMU" "$OUT/delegate.elf" |
| 50 | |
| 51 | cat native/control/src/reuse.om native/control/tests/reuse.om > "$OUT/reuse.om" |
| 52 | "$QEMU" "$OMC" < "$OUT/reuse.om" > "$OUT/reuse.elf" |
| 53 | chmod +x "$OUT/reuse.elf" |
| 54 | "$QEMU" "$OUT/reuse.elf" |
| 55 | ``` |
| 56 | |
| 57 | Expected final output of the 2026-10-23 source, respectively (the tests have |
| 58 | since gained assertions; the current counts are in |
| 59 | [../replay-20261116/README.md](../replay-20261116/README.md)): |
| 60 | |
| 61 | ```text |
| 62 | action checks=219 000 |
| 63 | delegate checks=074 000 |
| 64 | reuse checks=074 000 |
| 65 | ``` |
| 66 | |
| 67 | Each program returns 0 on those results, 1 on a failed assertion and 2 on failed |
| 68 | report output. Each assertion is executed in Om. The reporting counters are not |
| 69 | host-calculated. Source concatenation and process invocation are external |
| 70 | build/test transport, not a shipped foreign test implementation. |
| 71 | |
| 72 | For the three baseline negative controls, replace `src/MODULE.om` in the same |
| 73 | commands with `tests/negative/MODULE-stub.om`. Each must compile with exit 0, |
| 74 | run with exit 1 and print failed assertions. The original RED tests were run |
| 75 | before writing each real implementation; the final-source replay repeats the |
| 76 | controls against the current tests. |
| 77 | |
| 78 | For the ten guard mutants, apply the corresponding `qualified/*.diff` with |
| 79 | `git apply --unidiff-zero` in an isolated scratch checkout to a |
| 80 | scratch copy of the production module, then compile it with the unchanged Om |
| 81 | tests. Every mutant must compile successfully and fail assertions with exit 1. |
| 82 | A compiler error, signal or timeout does not count as detecting a mutant. |
| 83 | |
| 84 | The three compile-refusal inputs are concatenated after the named production |
| 85 | module and compiled in the same way: |
| 86 | |
| 87 | | Input under `tests/negative/` | Module | Expected compiler exit | |
| 88 | |---|---|---| |
| 89 | | `wrong-action-size.om` | action | 7 | |
| 90 | | `aliased-action.om` | action | 19 | |
| 91 | | `wrong-payload-size.om` | reuse | 7 | |
| 92 | |
| 93 | No test binary should be run from a refused compilation. Aliasing a mutable |
| 94 | record as its own independent authority-facts argument must remain refused. |
| 95 | |
| 96 | ## What remains |
| 97 | |
| 98 | 2026-10-23 final functional source: `baa1587fc1542177595b90dccf36f98b1e294b0a`. |
| 99 | The clean-source replay in [qualified/receipt.json](qualified/receipt.json) |
| 100 | records 367 passing assertions, three detected always-accept stubs, ten |
| 101 | detected compiled guard mutants and three expected compiler refusals. Each |
| 102 | mutant ran and failed assertions; none was counted from a compiler error. |
| 103 | |
| 104 | - Independent review of the final functional source: run on 2026-11-16 for the |
| 105 | replay onto omega-mv main (see [../replay-20261116/README.md](../replay-20261116/README.md)); |
| 106 | its findings were fixed before landing. |
| 107 | - Trusted authority/receipt verification and durable store/dispatch integration: |
| 108 | NOT_RUN. These modules accept facts produced by those owners. |
| 109 | - Concurrent actors, actual crash/restart, persistence failure and revocation |
| 110 | racing with dispatch: NOT_RUN at the integration boundary. |
| 111 | - Spark/GB10 GPU and other hardware profiles: NOT_RUN. Native AArch64 CPU |
| 112 | execution on the Spark host ran on 2026-11-16 (replay record above). |
| 113 | - Full existing runtime suite: NOT_RUN; no legacy runtime source or build target |
| 114 | changes. The full new component suites and compiled controls are exercised. |
| 115 | - Landing: by the lane's own exact-head review and receipt (receipts, not |
| 116 | approvals; no review desk, Drake 2026-11-11). A passing component receipt is |
| 117 | not permission to mark the parent issues complete. |