interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / native / control / evidence / 659 / README.md

117 lines · 5801 bytes Raw Blame History Rendered
1# Issue 659 evidence
2
3Evidence class: **EMULATED**. The host is x86_64 Linux. QEMU executes both the
4AArch64 seeded compiler and the AArch64 test programs. No performance timing,
5Spark/GB10 execution, production dispatch or power-loss qualification is claimed.
6
7Functional source is recorded separately from evidence-only follow-up commits.
8The final source-bound run is in `qualified/receipt.json` when present. Files
9directly in this directory are chronological development evidence and do not
10independently bind a clean source commit. They are preserved, including the
11initial 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
23The seed reconstruction starts with the existing `seed/rung0/load0.sh`, then
24runs seed0 -> hex1 -> asm2 -> om4 -> omc stage1 -> stage2 -> stage3 under QEMU.
25Each reconstructed rung matches the pinned published binary. All three omc
26stages match one another and `seed/out/omc`.
27`seed-rebuild.sha256` records the actual output hashes. This checks the
28reconstruction and fixed point; it is not diverse-double-compilation proof.
29
30## Replay commands
31
32The source and tools must be pinned before replay. `qemu-aarch64-static` below
33is the executable with the hash above, and `OMC` is the verified compiler.
34Use a private output directory; never replace the source compiler or evidence.
35
36```sh
37OMC=/absolute/path/to/verified/omc
38QEMU=/absolute/path/to/qemu-aarch64-static
39OUT=/absolute/path/to/private-output
40mkdir -p "$OUT"
41cat native/control/src/action.om native/control/tests/action.om > "$OUT/action.om"
42"$QEMU" "$OMC" < "$OUT/action.om" > "$OUT/action.elf"
43chmod +x "$OUT/action.elf"
44"$QEMU" "$OUT/action.elf"
45
46cat native/control/src/delegate.om native/control/tests/delegate.om > "$OUT/delegate.om"
47"$QEMU" "$OMC" < "$OUT/delegate.om" > "$OUT/delegate.elf"
48chmod +x "$OUT/delegate.elf"
49"$QEMU" "$OUT/delegate.elf"
50
51cat native/control/src/reuse.om native/control/tests/reuse.om > "$OUT/reuse.om"
52"$QEMU" "$OMC" < "$OUT/reuse.om" > "$OUT/reuse.elf"
53chmod +x "$OUT/reuse.elf"
54"$QEMU" "$OUT/reuse.elf"
55```
56
57Expected final output of the 2026-10-23 source, respectively (the tests have
58since gained assertions; the current counts are in
59[../replay-20261116/README.md](../replay-20261116/README.md)):
60
61```text
62action checks=219 000
63delegate checks=074 000
64reuse checks=074 000
65```
66
67Each program returns 0 on those results, 1 on a failed assertion and 2 on failed
68report output. Each assertion is executed in Om. The reporting counters are not
69host-calculated. Source concatenation and process invocation are external
70build/test transport, not a shipped foreign test implementation.
71
72For the three baseline negative controls, replace `src/MODULE.om` in the same
73commands with `tests/negative/MODULE-stub.om`. Each must compile with exit 0,
74run with exit 1 and print failed assertions. The original RED tests were run
75before writing each real implementation; the final-source replay repeats the
76controls against the current tests.
77
78For the ten guard mutants, apply the corresponding `qualified/*.diff` with
79`git apply --unidiff-zero` in an isolated scratch checkout to a
80scratch copy of the production module, then compile it with the unchanged Om
81tests. Every mutant must compile successfully and fail assertions with exit 1.
82A compiler error, signal or timeout does not count as detecting a mutant.
83
84The three compile-refusal inputs are concatenated after the named production
85module 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
93No test binary should be run from a refused compilation. Aliasing a mutable
94record as its own independent authority-facts argument must remain refused.
95
96## What remains
97
982026-10-23 final functional source: `baa1587fc1542177595b90dccf36f98b1e294b0a`.
99The clean-source replay in [qualified/receipt.json](qualified/receipt.json)
100records 367 passing assertions, three detected always-accept stubs, ten
101detected compiled guard mutants and three expected compiler refusals. Each
102mutant 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.