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/bench/omc_efficiency/PROTOCOL-3.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 / bench / omc_efficiency / PROTOCOL-3.md` 79 lines · 4759 bytes Raw Blame History Rendered 1 # OMC-EFF-3: OM-2 source profile for the candidate A/B (additive, before any candidate measurement) 2 3 Status: frozen in the commit that adds this file. This file is additive. `PROTOCOL.md` (sha256 ``ae1d1b2a`…033a`) and `PROTOCOL-2.md` 4 (sha256 ``28e8d773`…dac5`) and their evidence are not edited. Their arms, rounds, warm-ups, metrics, 5 statistics, validity rules and the PROTOCOL-2 section 4 verdict thresholds apply unchanged. This file 6 adds one choice, the source profile. 7 8 ## 1. Why 9 10 The compiler owner's candidate changes code generation only for OM-2 units: it adds a bounded cache of loop 11 constants in callee-saved registers and saves and restores exactly the registers it uses. OM-1 output is 12 declared byte-for-byte unchanged. The suite kernels are OM-1 units, so on them the candidate cannot 13 differ from the baseline. The candidate A/B therefore runs both arms on the same OM-2 sources. 14 15 ## 2. The OM-2 sources (committed; never generated at run time) 16 17 `kernels/om2/CASE.om` holds one file per case. Each file is `kernels/CASE.om` with exactly two 18 differences: 19 20 1. One line `om2` is placed before the first line that is not a note. This is the opt-in, OMEGESE.md 9.13. 21 2. The global `out`, an OM-2 reserved word that is error 16 in an OM-2 unit, is spelled `obuf` everywhere. 22 23 The C twins, `want/` and the mutant edits are unchanged. `run.sh --profile om2` refuses to run, exiting 70, 24 unless every om2 file has exactly one `om2` line, that line is the first non-note line, and the file minus 25 that line equals `sed 's/\bout\b/obuf/g' kernels/CASE.om` byte for byte. The script checks this relation and 26 never produces a source. 27 28 Before the freeze I observed with the baseline omc ``befb8199`…a1d`: 29 30 - every om2 kernel compiles with rc 0; 31 - each prints the `want/` bytes and exactly one runtime line; 32 - each one's bytes differ from its OM-1 build. OM-2 units also take OM-2 lowering, for example an 33 immediate offset for a constant index up to 4095. 34 35 The OMC-EFF-1 and OMC-EFF-2 numbers therefore do not describe OM-2 builds. No OM-2 timing was read 36 before this freeze. 37 38 ## 3. Rows and provenance 39 40 - **Case names.** With `--profile om2` every case argument, and so the case field of every `T`, `P` and `B` 41 row and of `sizes.txt`, is `om2/CASE`. Work paths are `src/om2/CASE.om`, `bin/ARM/om2/CASE` and 42 `want/om2/CASE.out`. The conductor is unchanged. `--profile om1`, the default, keeps the 43 OMC-EFF-2 behaviour and names. 44 - **Provenance.** `provenance.txt` records `profile` and the sha256 of all three protocols. 45 - **Hashes.** `inputs.sha256` covers `PROTOCOL*.md`, `conductor.om`, `run.sh`, `selftest.sh`, `kernels/*.om`, 46 `kernels/om2/*.om`, `kernels/*.c` and `want/*.out`. `arms.sha256` covers every built file. 47 - **Self-test.** `selftest.sh` adds two checks: an om2 case is labelled `om2/fib` on every row and passes, 48 and the om2 build of fib differs from the OM-1 build, which shows that the om2 source was compiled as OM-2. 49 50 ## 4. Candidate A/B (the owner declares the candidate sha and the seed before the run) 51 52 Run `sh bench/omc_efficiency/run.sh --profile om2 --ab BASE CAND SEED OUTDIR 19`, with 53 BASE = omc ``befb8199db8c4bca188a494dfaac2a6f0ee5c36fcea11188c75666c55fce8a1d``. The verdict per case `om2/CASE` 54 follows PROTOCOL-2 section 4 unchanged: 55 56 - **REGRESSION** when the median instruction ratio is above 1.005, or when the median `runtime_ns` ratio 57 `omcC/omcB` is above 1.03 and the interval's lower bound is above 1. 58 - **IMPROVED** when the median runtime ratio is at most 0.97 and the upper bound is below 1. 59 - **NO_CHANGE** otherwise. 60 61 The interval is x(6)..x(16) of 21 paired ratios. Each ratio is written with its direction (below 1 = faster). 62 63 Additional record: with `--ab --profile om2`, `om1-identity.txt` states for each OM-1 kernel whether 64 BASE and CAND emit identical bytes. Any `differs` contradicts the candidate's OM-1 claim. In that case 65 the OM-2 verdict is reported together with that finding, and an `--profile om1` A/B is owed before the 66 candidate is described as neutral on OM-1. 67 68 ## 5. Null control (declared here, run once after this freeze, before any candidate) 69 70 Run `run.sh --profile om2 --ab` with BASE = CAND = ``befb8199`…a1d` and seed ``20261029``. Every case must be 71 NO_CHANGE, every instruction ratio must be exactly 1, and `om1-identity.txt` must say `same` seven times. 72 Any other outcome is reported before any candidate verdict, and the thresholds are not widened. 73 74 ## 6. Disclosures 75 76 - `out` is renamed because OM-2 reserves it. That is a source difference forced by the language and the 77 only difference other than the `om2` line. 78 - The candidate's design is the owner's statement and has not been examined here. 79 - No optimization code exists in this tree. No candidate omc was built or run.