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 / seed / qualification / om2 / current / README.md
| 1 | # Current ABI and SHA qualification |
| 2 | |
| 3 | `qualify.py` is an external testing instrument, outside the delivered Omega |
| 4 | closure. It orchestrates the existing seeded `omc`, the locked seeded bridge |
| 5 | `src/native.om`, the independent C callers in `../oracle/s5s7`, and the existing |
| 6 | `om/units.sh` identity checks. Python performs no production computation. |
| 7 | |
| 8 | From a clean Omega checkout on Linux AArch64: |
| 9 | |
| 10 | ```sh |
| 11 | python3 seed/qualification/om2/current/qualify.py \ |
| 12 | --bridge /path/to/clean/locked/omega-bridge \ |
| 13 | --output /path/to/new/evidence-directory |
| 14 | ``` |
| 15 | |
| 16 | The bridge checkout must be exactly the commit in `om/omega-bridge.lock`. |
| 17 | The compiler is this checkout's `seed/out/omc`. The command needs Python 3, |
| 18 | Git, `cc`, `nm`, and `sh`. Use the assigned CPU and low priority when running |
| 19 | on a shared host. The large SHA cases read more than 4 GiB each through a |
| 20 | read-only zero-page mapping; they do not allocate that much resident memory. |
| 21 | |
| 22 | The output directory must not exist. It holds immutable input snapshots, |
| 23 | generated bindings, executables, every subprocess command and exit, stdout, |
| 24 | stderr, and their digests. `result.json` records the source and bridge heads, |
| 25 | compiler digest, individual cases and controls. A failed or interrupted run |
| 26 | keeps its evidence. A successful run hashes its complete artifact set. |
| 27 | Tracked source must be clean, and all snapshotted inputs plus source HEAD |
| 28 | are checked again before PASS. |
| 29 | |
| 30 | Every `abi-*` and `sha-*` declared `notrun` case in |
| 31 | `../sec/s5s7/candidate.cases` must be exercised here. The inventory comparison |
| 32 | fails if a case is added, omitted, or duplicated. Each C driver's expected |
| 33 | case names are read from its explicit `check` calls and must appear once in |
| 34 | its output. The ABI symbol and stale-source/compiler/profile cases are |
| 35 | executed separately. The identity checker is copied into the evidence directory; |
| 36 | only its OMC_PIN literal is replaced, exactly once, with the digest of the |
| 37 | snapshotted candidate compiler. Bindings are freshly generated there before |
| 38 | the positive and negative identity checks. The projected script, original |
| 39 | script digest and derived pin are recorded. Canonical pins, sources and |
| 40 | generated artifacts are unchanged. This is candidate checker qualification, |
| 41 | not a claim that the canonical generated bindings are current. |
| 42 | |
| 43 | Wrong source identity, wrong compiler identity and a |
| 44 | wrong independent SHA digest must each fail for the expected reason. |
| 45 | |
| 46 | Exit 0 means this ABI/SHA gate passed. Exit 1 means a check failed; exit 3 |
| 47 | means required tools, the locked bridge, or a complete execution were |
| 48 | unavailable. A mismatched bridge is not silently substituted. Reusing an |
| 49 | output directory is refused. |
| 50 | |
| 51 | This gate does not turn `gate.om`'s declared omissions into PASS. A release |
| 52 | must run this command as its own required check, then join its source-bound |
| 53 | result with the other qualification records. It is not the full RM7 gate: |
| 54 | all-language ABI-v2 trap propagation and the full `om-units` gate remain |
| 55 | separate obligations. It does not qualify leakage or physical x86. Leakage |
| 56 | requires all exported SHA entries, not only the first entry, to pass their |
| 57 | own scanner and independent decoder checks. |