Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/evidence/CONTRACTS/20261026-00031d24/README.md # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / evidence / CONTRACTS / 20261026-00031d24 / README.md` 84 lines ยท 6983 bytes Raw Blame History Rendered 1 # Native executable contracts qualification 2 3 EXERCISED on the arm64 Linux host. This is not GPU qualification or a claim that all Omega 1.0 milestones are complete. PR: #807; guide update: aien-dev/omega-harness#27 (pending at collection). 4 5 ## Exact source and compiler 6 7 - Tested source: ``00031d2456b2fe1e6ecdee6a0245d4c27b6749d2``. 8 - `seed/omc/omc.om`: SHA256 ``0df1a31623f3aabadac6c7661744bf8a2f3a0d31a313639909001579a962e1ec``. 9 - Compiler: SHA256 ``3d2b7411b8a2ba1a3e770e70fd7c9be22100357c51206f2e90a80df826c30fa3``. 10 - Source has 11,555 lines and 390 functions; emitted compiler is 309,292 bytes. The fixpoint built by om4, stage1 and stage2 is identical. 11 - Word bookkeeping: `WolframLanguageEvaluator: (309292-176)/4 -> 77279`; 176 bytes are the ELF header, the remainder AArch64 instruction words. This is size bookkeeping, not a speed result. 12 13 ## Executed checks 14 15 A fresh local clone of the committed source ran, under `nice -n 19 ionice -c3`: 16 17 ``` 18 make -j2 build/omegese/omegese build/omega_emit/omega_emit build/checker2/checker2 19 sh seed/host/check.sh 20 sh seed/omc/gate5.sh 21 ``` 22 23 The combined process exited 0; `qualification.log` retains the output. The C comparison tools were built before the host script, so its IR path was exercised, not skipped. The unchanged C compiler/runtime oracle was used for the contract function's exact value/bit/trap comparison. The fixture inputs include both sides of the requires/ensures bounds. C source was not modified by this milestone. 24 25 - Contract conductor: `cases=44 pass=44 fail=0 invalid=0 not_run=0`. 26 - Two independent mutant compilers completed their test programs with exit 0 instead of required exit 109; stdout/stderr matched. The conductor correctly returned 1 and reported `cases=2 pass=0 fail=2 invalid=0 not_run=0`. One mutant erases enforcement; the other falsely proves every constant bool. A crash is not counted as detection. 27 - Frozen OM-1 C2 manifest: `cases=5876 pass=5876 fail=0 invalid=0 not_run=0`, including byte hashes and refusal diagnostics. `c2.log` records compiler identity and every verdict. This run used the exact source/compiler above before the commit was created; commit creation did not change the tested bytes. 28 - Native host qualification and its existing negative/regression controls passed. 29 - Referee gate5 completed 177 checks: seed fixpoint, om4 corpus, C referee, independent wrong-word mutants, deterministic output, nextfuzz and all historical error numbers 1..23. `GATE5 PASS` is the final line. 30 31 The existing Omega conductor rejects malformed or unknown rows, accounts INVALID and NOT_RUN separately, and refuses an empty case set. The reported denominators are its complete manifest counts, not a filtered set of successful rows. 32 33 ### Actual foreign binding 34 35 The pinned omega-bridge source ``431fff0a95f84c0a8bf9d3383f94d7e1f02d913e`` generated an actual 36 shared library from `seed/omc/contracts/bridge.om`. Its generator compiler was the required 37 historical ``734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61``, extracted from 38 Omega commit ``e17039d9ceeb30e0637ef4145e37afc5821c3773``; `OMEGA_NATIVE_OMC2` was the tested 39 contracts compiler above. No generator pin check was bypassed. 40 41 ``` 42 OMEGA_NATIVE_OMC=/path/to/`734f0a39`/omc \ 43 OMEGA_NATIVE_OMC2=/path/to/`3d2b7411`/omc \ 44 tools/native OUT /path/to/seed/omc/contracts/bridge.om 45 python3 seed/omc/contracts/bridge-check.py OUT/libomega_native.so 46 python3 seed/omc/contracts/bridge-check.py OUT/libomega_native.so --wrong-expectation 47 ``` 48 49 The checker is a verification-only Python ctypes caller, not a production implementation. 50 The real `omega2_check` export returns status 9 for input -1, status 0 with the expected 51 value for 0, 1, 9 and 10, and status 10 for 11 and 20. Failed calls leave the result sentinel 52 42 unchanged; a subsequent input 1 succeeds. Normal checker exit is 0; the deliberately 53 wrong expected status for input -1 gives exactly one mismatch and exit 1. `bridge.log` 54 retains both runs. `bridge-artifacts.tar.gz` retains generated declarations, code and library. 55 56 The initial attempt to bind the C-parity fixture's `int` result was correctly refused by 57 this bridge revision, whose scalar return subset is `ulong`, `long` or `void`. The explicit 58 `long` fixture tests that supported ABI without claiming that the bridge accepts every 59 native scalar signature. That broader limitation remains RM7. 60 61 ## Gate5 receipt-path repair 62 63 Gate5 now writes `build/seed/r5/evidence`, not the frozen `evidence/SEED-0/omc` tree. The living `seed/omc/size-history.tsv` retains the historical 1,037-byte prefix byte-for-byte (SHA256 ``cd0c201cd65fc560640be4d27e753d1655556a08e5801ff8f45748c16d0b076a``). It appends observed compiler rows; it does not auto-accept a new digest. 64 65 The exact committed last-row predicate was separately executed against the current, missing, empty and stale-last-row ledgers. Results are in `ledger-controls.txt`. In particular, putting the correct digest on an earlier row did not satisfy a wrong final row. After the full fresh-clone run, `git diff --exit-code -- evidence` returned 0 and `git status --porcelain -- evidence` was empty. No historical evidence was rewritten. 66 67 The removed source-prefix size diagnostic compiled incomplete programs whose forward signatures made its per-function sizes invalid. Whole-compiler measured size, compile-time collection, every correctness check and the last-row digest gate remain. Gate5's incidental timing table includes process startup and is not the preregistered efficiency milestone or an optimization claim. 68 69 ## Artifacts and hashes 70 71 `artifacts.tar.gz` contains the fresh run's `build/seed/r5/evidence` and `build/seed/contracts`, including compiler mutant logs, C/native parity rows, case outputs and binaries. Paths printed inside the logs are the original execution paths; this archive preserves their payloads. 72 73 ``` 74 `d0e4f2e37064f439fca07dabeabeed8e271de6071996746aef1288903fbb74c9` artifacts.tar.gz 75 `0707f0b2786ad8fc2a3278ee76bae4599d05712e81d45556bf563e4366ac7d70` c2.log 76 `6d2c2d2178e7beb2c6fc4cf36b9771c40578a76c43bd4f8278822a95c1d2565a` mutants.log 77 `9d6316d82435f165392168cf5ba72ea03053a2665e962a00d78f6c56a446fa81` qualification.log 78 ``` 79 80 ## Scope and remaining gates 81 82 Contracts are opt-in native OM-2 syntax. Debug is the default; release still checks syntax/types/purity before erasing predicates. Constant-true proof is distinguished from release policy. Requires/ensures/invariant runtime errors are existing traps 9/10; malformed or impure contracts are compiler error 30. IR rejects these source contracts rather than silently dropping them. C2 OM-1 bytes remain unchanged. 83 84 This does not qualify a new IR memory backend, GPU targets, a complete contract theorem prover, or host contracts in omega-bridge. The frozen C oracle remains an independent comparison implementation. PR #789's protected GPU-gate work remains BLOCKED_OPERATOR and was not bypassed. The separate efficiency experiment has no candidate result in this receipt.