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 / seed / qualification / om2 / current / README.md

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