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 / evidence / VISOR / VISOR_V1_QUALIFICATION.md
| 1 | # Omega Visor V1 qualification (lane 8) |
| 2 | |
| 3 | Verdict: **OMEGA_VISOR_V1_PASS** |
| 4 | Receipt: `evidence/VISOR/632ba16d47358742c7908e176f0e702b7349dfce3ecd404151fd6b8705c18df1.json` |
| 5 | Commit: `8a7d95ef258130714cb4990e82415e947a634103` (tree dirty: False, see dirty_files) |
| 6 | Run: 20260929T050142Z on aarch64 7.0.0-1019-nvidia (NVIDIA_DGX_Spark) |
| 7 | |
| 8 | Scope: host-only: no GPU/silicon claim; no QEMU claim by the Visor (the pre-existing test-m5 gate runs its own QEMU check) |
| 9 | |
| 10 | ## The five gates in plain words |
| 11 | |
| 12 | | Gate | What it checks | Result | Tests | Failed | |
| 13 | |---|---|---|---|---| |
| 14 | | OMEGA_VISOR_SEMANTIC_PASS | Same meaning gets the same fingerprint (7, 07, 0x07, 0b111; spacing; comments); different widths differ; repeat runs match byte for byte | PASS | 541 | 0 | |
| 15 | | OMEGA_VISOR_VERIFY_PASS | The checker and the evidence viewer report what is really there, and a new user can find it from `help` | PASS | 151 | 0 | |
| 16 | | OMEGA_VISOR_REALIZE_PASS | Machine code built for an expression gives the same answer as the language; cost is labelled estimate, never measured; scripting behaves | PASS | 441 | 0 | |
| 17 | | OMEGA_VISOR_AUTHORITY_ISOLATION_PASS | The console can ask but never grant; bad or hostile input is refused cleanly and never crashes it | PASS | 180 | 0 | |
| 18 | | OMEGA_VISOR_REGRESSION_PASS | The older CPU milestone gates still pass and the tool still builds without the physics checkout | PASS | 92 | 0 | |
| 19 | |
| 20 | Hostile inputs: 69 tried, 60 refused cleanly, 0 crashed, 4 harmless blank/comment lines. |
| 21 | Repeatability: 3 runs, identical: True. Memory-checker build: {"status": "RUN", "sanitizer_reports": "none", "crashed": 0, "same_case_failures_as_release": true}. |
| 22 | |
| 23 | ## Receipt history |
| 24 | |
| 25 | | # | Receipt | Commit | Verdict | What changed | |
| 26 | |---|---|---|---|---| |
| 27 | | 1 | `evidence/VISOR/12785aab7bb22bc1fd1d4e71143c15f98f1e4bc94885e9b2a725487b023b7c93.json` | `ec2ec0b` | OMEGA_VISOR_V1_FAIL | first run: REALIZE failed on run arity (D2), AUTHORITY_ISOLATION failed on `--script /` exit 0 (D3); zero authority-path failures | |
| 28 | | 2 | `evidence/VISOR/632ba16d47358742c7908e176f0e702b7349dfce3ecd404151fd6b8705c18df1.json` | `8a7d95e` | OMEGA_VISOR_V1_PASS | this run | |
| 29 | |
| 30 | ## Why the verdict is what it is |
| 31 | |
| 32 | - All five gates passed. |
| 33 | |
| 34 | ## Defects found |
| 35 | |
| 36 | - **D1** (high; FIXED in ec2ec0b (found at 4fab549)): The ./omega shipped at commit 4fab549 (sha256 543d874d...d4d3) crashed on every realize/run path (exit 139 SIGSEGV in om_realization_show; 'stack smashing detected', exit 134). Cause: omega_main.d missing from VISOR_DEPS, so tools/omega.c was not rebuilt when src/visor/visor.h changed. ec2ec0b adds it; a clean-checkout build of 4fab549 was not tested. |
| 37 | - **D2** (medium; FIXED in d7e8a4c (open in receipt #1)): `run` did not check arity: `run f` -> 1, `run f 5 6` -> 11, `run _ 1` -> 12, `run _ 1 2 3` -> 3, all exit 0. At d7e8a4c: 'program f takes 1 input; give it on the command line', 'program f takes 1 input; got 2', '_ takes 2 operands; got 1 (give none, or all 2)', '... got 3 ...'; exit 1. |
| 38 | - **D3** (low; FIXED in d7e8a4c): `./omega --script /` exited 0; at d7e8a4c it prints 'error: --script: / is a directory' and exits 2. |
| 39 | - **D4** (cosmetic; FIXED in d7e8a4c): Doubled 'alternatives:' prefix, `effects x` error without 'error:', help `graph [x]` and `let x = <expr>`, parser jargon for `authorize x`/`execute _`: all corrected (hostile.expected and usability.expected regenerated; the only other changed line is the `run <type-id>` message, now '... is not an APPLY; only pure binary u64 applies run in V1', still exit 1). |
| 40 | |
| 41 | ## Test suites |
| 42 | |
| 43 | | Target | Result | Tests | Failed | Note | |
| 44 | |---|---|---|---|---| |
| 45 | | test-visor-semantic | PASS | 95 | 0 | | |
| 46 | | test-language | PASS | 407 | 0 | | |
| 47 | | test-visor-verify | PASS | 47 | 0 | | |
| 48 | | test-visor-evidence | PASS | 39 | 0 | | |
| 49 | | test-visor-machine | PASS | 36 | 0 | | |
| 50 | | test-visor-realization | PASS | 63 | 0 | | |
| 51 | | test-visor-console | PASS | 306 | 0 | | |
| 52 | | visor-authority-check | PASS | 1 | 0 | | |
| 53 | | visor-physics-free-check | PASS | 1 | 0 | | |
| 54 | | test-visor-world | PASS | 47 | 0 | | |
| 55 | | test-visor-authority | PASS | 84 | 0 | | |
| 56 | | test | PASS | 12 | 0 | | |
| 57 | | test-m5 | PASS | 9 | 0 | | |
| 58 | | test-m6 | PASS | 10 | 0 | | |
| 59 | | test-m7 | PASS | 10 | 0 | | |
| 60 | | test-m8 | PASS | 10 | 0 | | |
| 61 | | test-m9 | PASS | 10 | 0 | | |
| 62 | | test-m10 | PASS | 10 | 0 | | |
| 63 | | test-m13 | PASS | 10 | 0 | | |
| 64 | | test-m14 | PASS | 10 | 0 | | |
| 65 | | test-m12 | NOT_RUN | - | - | GPU/silicon target excluded by lane-8 brief: GPU (living matvec) | |
| 66 | | test-m15 | NOT_RUN | - | - | GPU/silicon target excluded by lane-8 brief: accelerator/GPU | |
| 67 | | test-m17 | NOT_RUN | - | - | GPU/silicon target excluded by lane-8 brief: Blackwell GPU | |
| 68 | | test-m18 | NOT_RUN | - | - | GPU/silicon target excluded by lane-8 brief: GPU | |
| 69 | | test-m19 | NOT_RUN | - | - | GPU/silicon target excluded by lane-8 brief: GPU | |
| 70 | | test-m11 | NOT_RUN | - | - | not in the lane-8 regression list | |
| 71 | |
| 72 | ## Usability findings (not failures unless listed as defects) |
| 73 | |
| 74 | - `true`/`false` echo as 1/0 although `type _` says bool; a user reads 1 as an integer. |
| 75 | - `why <x>` is described as 'explain where x came from' but only explains realizations; on a value it says `use realize x first`, and `realize x` then refuses a value, a dead end. |
| 76 | - Errors raised before parsing, and unknown commands, are labelled `unknown` (`error: unknown: invalid UTF-8 at byte 4`, `error: unknown: unknown command or invalid source line: 'authorize'`). |
| 77 | - `id` prints the same hash three times (id, canonical_sha256) plus canonical_len; the relation is not explained. |
| 78 | - After `realize _`, `_` silently becomes the realization, so `inspect _`/`type _` now refer to a different object than one line earlier. |
| 79 | - Every u64 ADD has the same realization id (`realized` = the ADD operation, not the apply), so `x + y` and `x + 1` share one realization id; correct per spec but surprising in `bindings`/`compare`. |
| 80 | - `run _ a b` (exactly all operands) on a binary-apply realization runs the operation on the given numbers, not on the object's operands (7+11 -> `run _ 1 2` prints 3); allowed by design after the D2 fix, but the output does not say the object's own operands were replaced. |
| 81 | - Machine/realization output uses hex profile codes (`profile 0x01 vs machine 0x01`), `physics flag=set seal=builder-constant placeholder`, and C function names (`omega_machine_estimate_latency(...)`, `omega_exec_native_f3`) as explanations; not readable without the C source. |
| 82 | - `verify` row INVARIANTS reports 399 generic checks that are 'not object-specific'; a user may read the PASS as evidence about their object. |
| 83 | - `evidence <name>` for a session object always says `no evidence`: receipts are repository files, not linked to session objects; 'what evidence supports this object' cannot be answered in V1. |
| 84 | - Blank lines produce no JSON object while comment-only lines produce one (`kind: none`); a script driver counting lines must know this. |
| 85 | - Commands after `quit` in --command/--script mode are silently dropped (exit 0). |
| 86 | - `--script /dev/null` (a character device, not a regular file) is accepted as an empty script (exit 0), although the round-2 note says non-regular files exit 2; harmless, but the claim and behaviour differ. |
| 87 | |
| 88 | ## What this does NOT claim |
| 89 | |
| 90 | - Host-only qualification on one DGX Spark (aarch64); no GPU, no silicon, no QEMU claim by the Visor. |
| 91 | - No measured or qualified cost: the Visor fills only predicted (static) and estimated (assumed machine model) cost; measured/qualified are ABSENT by design. |
| 92 | - Machine identity is the assumed canonical profile chosen from DMI, not an observed descriptor; the physics seal is a builder placeholder. |
| 93 | - World is unattached in the omega binary: `world` observes nothing; the snapshot API is covered only by the runtime-linked test-visor-world. |
| 94 | - Language V0 scope only: explicit-width unsigned integers, bool, let, + - * / & |, fn chains (x op c)...; realize/run cover u64 binary ADD/SUB/MUL/AND/OR only. |
| 95 | - Effects: the language cannot build an EFFECT object, so `run` on an effect is not reachable from the console; effect-request refusal is covered only by the C hostile suite (test-visor-authority) and the link check. |
| 96 | - GPU targets test-m12, test-m15, test-m17, test-m18, test-m19 and all Blackwell paths were not run (lane-8 brief); test-m11 was not in the list. |
| 97 | - The pre-existing test-m5 gate launches QEMU and writes build/qemu_omega_runner.bin under the shared build/ directory (hard-coded path in omegatool). |
| 98 | - The e2e session golden (tests/visor/sessions/e2e.expected) is compared host-independently only after ec2ec0b; the lane-8 goldens mask the machine block, machine name/id and estimated cycles. |
| 99 | - Determinism is shown across fresh processes on this host only, not across hosts, compilers or ABIs (golden bytes are pinned to LP64/aarch64). |
| 100 | - Visor V1 is not claimed safe against a hostile local user with write access to the binary or the evidence directory. |
| 101 | |
| 102 | ## How to re-run |
| 103 | |
| 104 | ``` |
| 105 | python3 tools/qualify_visor.py # everything, writes a new receipt |
| 106 | make OUT_DIR=build/q8r PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 build/q8r/omega |
| 107 | bash tests/visor/qualification/run_qualification.sh build/q8r/omega # console campaign only |
| 108 | ``` |