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 / SECURITY-673 / correction1 / REPORT.md
| 1 | # Corrective branch qualification |
| 2 | |
| 3 | Scope: #669, with bounded compiler-input and test-verdict checks relevant to #671/#624. |
| 4 | This receipt does not close #673, qualify a sandbox, or approve release. |
| 5 | |
| 6 | Threat model: source input can require a branch beyond its encoding range. The protected asset |
| 7 | is control-flow integrity of the emitted program, and accurate acceptance/refusal by the compiler. |
| 8 | The demonstrated defect was wrong branch encoding, not demonstrated data theft or host compromise. |
| 9 | Enforcement is `seed/omc/omc.om:disp19`, consumed by `patch19` and `blo`, on Linux AArch64. |
| 10 | The corrected backward unsigned boundary is2^64-1048576. Both exact signed extrema are accepted; |
| 11 | both adjacent out-of-range values and both alignment controls refuse24. Current callers either |
| 12 | use that guard or the documented aligned8MiB imm26 capacity invariant. |
| 13 | |
| 14 | `native-gate6.log`, `.err`, `.exit`, `source-identities.txt`, and `native-gate6-identities.txt` |
| 15 | are the final author result for this slice. `native-gate6-artifacts.tar.gz` retains every generated |
| 16 | source, compiler/probe/program binary, parameter fixture, decoder output and child diagnostic. |
| 17 | The numeric filenames are linked to raw commands in the log. Source identities include the gate, |
| 18 | helpers, om4, rebuilt compiler source, runner binary and external decoder. Platform/version files |
| 19 | identify the actual native host and decoder. The archive is synthetic and contains no private data. |
| 20 | |
| 21 | Properties tested: self-rebuild equality; eight exact encoder boundaries; real backward array fill; |
| 22 | small and maximum forward programs decode to the marker and execute0; oversized if, nested if, |
| 23 | while and trap-site programs refuse24 with empty output; a compiled range-bypass mutant emits |
| 24 | the wrong target, which the external decoder plus checker rejects61. That malformed program is |
| 25 | never executed. Seven decoder-text controls cover a valid marker, malformed target, wrong register, |
| 26 | duplicate marker, absent marker, wrong target and mnemonic-prefix confusion. Empty input refuses62. |
| 27 | |
| 28 | Supervisor controls in `control-*.log`, `.err` and `control-exits.txt` exercise ordinary wrong exit, |
| 29 | self-signal and deadline overrun; all returned99. Signals/timeouts are reported INVALID within the |
| 30 | failed run, not PASS. The child wait low byte9 is recorded for signal/deadline controls. There is no |
| 31 | process-tree or kernel resource isolation claim. |
| 32 | |
| 33 | Independent review found an overly permissive marker/target parser. The final source adds token |
| 34 | delimiters and an exact pinned-format x1 marker, with the review reproducers in the native corpus. |
| 35 | The independent final review is recorded separately and must match these source identities. |
| 36 | |
| 37 | Failed author attempts remain in this directory. Initial mutator/checker builds failed16,12,17; |
| 38 | gate builds failed13,3,18,7. These are failed development attempts, not security passes. The first |
| 39 | probe run mistakenly executed empty failed-build outputs through Bash, producing misleading0s. |
| 40 | `probe-results.txt` and initial probe files are INVALID and excluded. Subsequent execution requires |
| 41 | successful compilation and ELF inspection, and the native coordinator independently checks ELF |
| 42 | magic before execution. Gate attempt1 failed105 in fixture-byte narrowing; attempt4 failed99 when |
| 43 | the array fixture did not compile. Both were corrected and rerun. Other earlier passes are |
| 44 | superseded by final-source gate6, not silently substituted for it. |
| 45 | |
| 46 | Historical preservation: the seven `evidence/SEED-0/omc` files replaced by the initial candidate |
| 47 | are restored exactly from f0499f41. DeepSeek's replacement bytes remain separately under |
| 48 | `deepseek-gate5-preserved`. The retired shell669 gate remains as historical text, as well as in |
| 49 | its original Git commit. Its existing report and crash-inclusive log remain historical evidence |
| 50 | and are not the authority for this corrected slice. |
| 51 | |
| 52 | Residual assumptions: trusted Linux kernel, GNU decoder and filesystem; no concurrent source or |
| 53 | artifact modification by another process under the same account; same-lineage checker/runner; |
| 54 | fixed synthetic input families; no complete language proof, diverse compilation, timing-channel, |
| 55 | device-isolation or arbitrary-native-code sandbox claim. Existing seed reconstruction still uses |
| 56 | historical shell tooling. Closure requires the compiler/release owners' integrated review. |
| 57 | |
| 58 | Raw invocation for the final author run: |
| 59 | |
| 60 | ```text |
| 61 | build/security673-correction1/stage2 < seed/qualification/security673/gate669.om > build/security673-correction1/gate669 2> evidence/SECURITY-673/correction1/gate-build10.err |
| 62 | exit 0 |
| 63 | readelf -h build/security673-correction1/gate669 |
| 64 | exit 0 |
| 65 | chmod +x build/security673-correction1/gate669 |
| 66 | exit 0 |
| 67 | build/security673-correction1/gate669 > evidence/SECURITY-673/correction1/native-gate6.log 2> evidence/SECURITY-673/correction1/native-gate6.err |
| 68 | exit 0 |
| 69 | ``` |
| 70 | |
| 71 | Gate child commands and every actual exit are in the raw log; supervisor-control commands use |
| 72 | the same executable path followed by0,1,2, with fresh scratch and respective logs. They exited99. |