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 / security673 / relational / README.txt
| 1 | #758 relational comparison slice, SC1 revision2 |
| 2 | |
| 3 | Current contract: ced61decef1ff4efbf5bc81598db648aa810be434e373e9bc1563dbcb4523496. |
| 4 | Current records: CURRENT-BINDINGS.json (run4), evidence/run5/RUN5.txt (review fixes), FROZEN-R2.txt, |
| 5 | SC1-L.txt, SHA256SUMS. |
| 6 | BINDINGS.json, CONSUMER-BINDINGS.json and FROZEN.txt are HISTORICAL DRAFT records for commit |
| 7 | 4883943fd993401a3701d95f9c5fa031a6c887ea, not current-source qualifications. Their old L1-L8 IDs |
| 8 | and draft8bc52 contract are not SC1 revision2 IDs. Historical run1/run2/run3 evidence and the |
| 9 | parent's initial-clean-replay.json are preserved. No old PASS is relabeled as a new qualification. |
| 10 | |
| 11 | Obligation matrix |
| 12 | ----------------- |
| 13 | L1 VERIFIED finite/native fixture: source output{0,1} independent of secret, faulty result=secret. |
| 14 | Ordinary inclusion4/4; both same-choice secret pairs differ; correct pairs agree. Assertion83 |
| 15 | catches a compiled leak-removing control. This is not a compiler preservation theorem. |
| 16 | L2 VERIFIED bounded component tests/static scan: compare32 has fixed public addresses/extents, |
| 17 | secret bytes and final equality-only disclosure. Whole776-byte raw function occurs once in |
| 18 | the current executed native paired harness. No real-daemon qualification follows. |
| 19 | L3 VERIFIED emitted controls: actual raw and ELF branch/address mutations preserve output7 for |
| 20 | secret0/1 but are refused by the scanner. Which scanner verdict path each control proves: |
| 21 | - branch, helper, error, division, early, public-branch-mut: the data-branch refusal |
| 22 | (VERDICT NOT_RUN, exit2, SUMMARY data-branch>=1). |
| 23 | - address, public-address-mut: ALSO only the data-branch refusal. omc guards a secret index with a |
| 24 | bounds-check b.cs (BRANCH @3 b.cs data), so exit2 comes from that branch, not from the load. |
| 25 | - address-nobounds (run5): the same address image with that b.cs (word3, 540000c2) patched to |
| 26 | NOP d503201f by patchword.om. No branch remains; the secret-indexed load (MEM @4 data-index) |
| 27 | alone yields VERDICT FAIL, exit1. This is the only control of the data-dependent-address |
| 28 | FAIL path; a scanner that never returns FAIL for data-index loads fails scan-address-nobounds. |
| 29 | No crash/build failure/UNKNOWN counts as a kill. |
| 30 | L4 BLOCKED stronger division policy: current scanner PASSES dividend.om (secret x0 divided by |
| 31 | constant7, then xor(q,q) returns0). SC1 revision2 forbids secret-dependent UDIV/SDIV, so that |
| 32 | artifact is UNQUALIFIED despite scanner PASS. The existing scanner owner must add reviewed |
| 33 | enforcement or approve explicit division-free admission. Secret divisor zero-check, helper |
| 34 | and explicit trap controls do produce DATA refusals, but do NOT establish division policy. |
| 35 | The scanner PASS on dividend.bin is a separately reported tripwire (l4-tripwire.cases, |
| 36 | "SECURITY758 TRIPWIRE L4-division-gap"), not part of any PASS total below. |
| 37 | L5 BLOCKED general target/model/disclosure/checker trust binding under #623/#624. Byte controls |
| 38 | are VERIFIED tests: re-derived source/native artifacts, actual mutated checker-output hash, |
| 39 | wrong-source bytes, wrong-image containment and compiler pin refusal. No alternate signer. |
| 40 | L6 BLOCKED real function-to-daemon correspondence: relevant emitted words AND call/return and |
| 41 | observation contracts must be bound. Test-harness containment is not daemon correspondence. |
| 42 | L7 BLOCKED actual consumer/whole closure qualification. Captured original dseqhash baseline has |
| 43 | DATA early-exit branch@12; native outputs1/0 and closure inventory are evidence of the baseline, |
| 44 | not approval of either an old base or a later consumer proposal. Consumer owner owns fixes. |
| 45 | |
| 46 | Measured repaired suite |
| 47 | ----------------------- |
| 48 | run4 (historical, CURRENT-BINDINGS.json): qualification.cases56/56 (then including the L4 scan), |
| 49 | bindings.cases16/16, consumer.cases4/4, binding-negative.cases exit1 with2 FAIL rows. |
| 50 | Logs: evidence/run4/{qualification,bindings,consumer,wrongbindings}. |
| 51 | run5 (review fixes, evidence/run5/RUN5.txt): L4 moved out of qualification.cases into |
| 52 | l4-tripwire.cases; derive-address-nobounds and scan-address-nobounds added. qualification.cases |
| 53 | 56/56, bindings.cases16/16, consumer.cases4/4, binding-negative.cases exit1 with exactly the |
| 54 | wrong-source-bytes and wrong-checker-bytes FAIL rows; l4-tripwire.cases2/2 reported separately. |
| 55 | These gate PASS counts include expected scanner refusals and FAIL verdicts. They are not blanket |
| 56 | SC1-L or service PASS counts. |
| 57 | |
| 58 | paired.om now executes4,186,878 comparison assertions: each of32 positions, all256 base values, |
| 59 | all255 nonzero mismatch masks, and complemented paired inputs with the same mismatch. It also |
| 60 | checks identical flips at two positions and all32 positions for every mask, plus complements. |
| 61 | The exact same checker compiles with the XOR-instead-of-OR accumulator mutant and normally reaches |
| 62 | assertion16 at the first two-position cancellation. The constant-validity mutant reaches13. |
| 63 | This repairs the original narrow test, which only covered differences1/129 and let XOR survive. |
| 64 | |
| 65 | Whole raw compare32 remains776bytes/194 instructions. Existing scanner reports64 public-index |
| 66 | loads, zero branches, zero UNKNOWN/UNHANDLED: PASS for its architectural model. Current native |
| 67 | paired harness is separately hashed in CURRENT-BINDINGS.json. The wrong-image containment test |
| 68 | now searches the2184-byte embed executable, larger than776, and fails hits!=1 with assertion61; |
| 69 | it no longer tests only the an>bn early refusal. embed.om is mechanical byte containment only. |
| 70 | |
| 71 | Before scans, qualification.cases re-compiles EVERY recorded raw control and compares emitted |
| 72 | bytes directly against the exact scanner-input file. It also re-derives paired/native mutation |
| 73 | bases and reproduces raw/ELF mutation outputs with patchword.om. consumer.cases re-derives the |
| 74 | captured dseqhash excerpt's raw output. bindings.cases independently re-derives its native/raw |
| 75 | bases and wrong image. File-byte comparisons are stronger than accepting self-reported hashes. |
| 76 | |
| 77 | The wrong-checker control now compiles the ACTUAL pinned scanner with exact-once source mutation |
| 78 | rvfix pass bound33->34. Its executable hash changes to73b682c9e26f30520b9cfd3030a706e77912303c7bedc582889f9a902b855cee, |
| 79 | which the existing gate rejects against the originalaa60061e... pin. It is not branch.om compared |
| 80 | to a scanner hash. No scanner working-tree file is edited or deployed; mutated .src/.elf files are |
| 81 | immutable test artifacts, not a second scanner implementation. |
| 82 | |
| 83 | Emitted mutation details |
| 84 | ------------------------ |
| 85 | CMP x0,#0 -> CMP x1,#0 (f100001f -> f100003f) changes the branch decision's source. |
| 86 | AND x4,x1,x3 -> AND x4,x2,x3 (8a030024 -> 8a030044) changes the address selector's source. |
| 87 | patchword.om requires exactly one aligned old instruction in each complete raw/ELF artifact. |
| 88 | Native executions both retain output7 for both secrets. Full raw branch code also embeds exactly. |
| 89 | Address raw/ELF have different mode-specific trap tails, so they are separately bound, NOT called |
| 90 | translation-proved. The scanner receives the COMPLETE raw artifact including trap tail. |
| 91 | Arm DDI0487M.d C6.2.96 p1973 and C6.2.15 p1832 define Rn bits9:5. objdump is external oracle only. |
| 92 | |
| 93 | Boundary and provenance |
| 94 | ----------------------- |
| 95 | Actual omnet closure is in OMNET-AUDIT.txt and omnet-audit.json. The captured audit used mixed live |
| 96 | working-tree inputs at HEAD6eb49ccf, whereas SC1 base is1e075776. adapter.om differs; the captured |
| 97 | helpers comparison agrees. Neither entire base is qualified by that audit. Argon2i/BLAKE2b, |
| 98 | JSON/base64, list matching, copies, snapshot/BLAKE2s, restart, cleanup and intended bootstrap |
| 99 | secret disclosure remain outside this comparison's assurance. Public length/candidate count/shape |
| 100 | are declared by SC1 revision2, not inferred length hiding. No omnet source was changed here. |
| 101 | |
| 102 | Source labels/disclosure are explicit assertions, not enforced information-flow types. The |
| 103 | scanner cannot authenticate target/model/disclosure metadata or authorize returned data. Dynamic |
| 104 | native instruction/address traces, mechanized relational proof, authenticated translation receipt, |
| 105 | physical constant time, cache/speculation/latency protection and service scheduling secrecy are |
| 106 | NOT_RUN. #759 separately owns the real envelope. No foreign first-party implementation was added. |
| 107 | |
| 108 | Replay |
| 109 | ------ |
| 110 | One omega-mv checkout, from the repository root (AArch64 Linux, no GPU). The automatic form is the |
| 111 | local gate tests/gates/omega-security758.gate: |
| 112 | |
| 113 | bash tests/gates/run.sh security758 |
| 114 | |
| 115 | It checks seed/out/omc against seed/out/omc.sha256, rebuilds the OM-2 case gate from |
| 116 | seed/qualification/om2/gate.om with that compiler (sha256 |
| 117 | 6c8691c21074595312fdd0f22ca30b6fbe48fb88f2fb0a58936f2960056acefa, byte-identical to the committed |
| 118 | evidence/run1/gate.bin), runs the five case files below and requires exits 0,0,0,1,0 with exactly |
| 119 | the two intended binding-negative FAIL rows. The scanner is seed/qualification/om2/leak/leakscan.om |
| 120 | on main: introduced by 725ca83978a7e547e354011fc1f9ce3c84958592 (#752) and unchanged since; its blob |
| 121 | da9268a0c835e056ddb5ddc39f570bcbc741089a is identical to the earlier pin |
| 122 | 155ff3178f35013e405ed40d09a7dd75ede2a403 (and gate.om blob 38db128f21511f18ca3b1d26b90f357de0c436e2 |
| 123 | likewise). The checker-pin case binds its compiled bytes (aa60061e...e633). By hand: |
| 124 | |
| 125 | P=seed/qualification/security673/relational C=seed/out/omc H=$(cut -c1-64 seed/out/omc.sha256) |
| 126 | "$C" < seed/qualification/om2/gate.om > /tmp/s758/gate.bin && chmod 700 /tmp/s758/gate.bin |
| 127 | for c in qualification bindings consumer binding-negative l4-tripwire; do |
| 128 | /tmp/s758/gate.bin "$C" "$H" "$P/$c.cases" /tmp/s758/$c; echo "$c exit=$?"; done |
| 129 | |
| 130 | (/tmp/s758 must exist and each scratch directory must not.) Expected exits 0,0,0,1,0. All case paths |
| 131 | are relative to the repository root. The suite was first bound to compiler 734f0a39...6b61 at base |
| 132 | 00eb0e7106d2; MAIN-REPLAY.txt records that the current seed/out/omc 62775d2a...712b produces the same |
| 133 | results and byte-identical ELFs. Do not use the unrelated seed/qualification/security673/gate669.om |
| 134 | conductor. Never overwrite old scratch/evidence. No GPU, deployment, new scanner/checker authority, |
| 135 | compiler edits or consumer edits occurred. |
| 136 | |
| 137 | Independent final review/replay |
| 138 | RelationalReview rechecked sourceacf6cecc24a2f691a9cbebea3bac77ea009f25e5 and found no |
| 139 | remaining actionable findings within bounded comparison/static-evidence scope. A later review |
| 140 | (#774, Rev774) found that no case exercised the data-dependent-address FAIL verdict (L3 above); run5 |
| 141 | adds that control and the reviewer's mutant now fails scan-address-nobounds (evidence/run5/RUN5.txt). |
| 142 | clean-replay.json records a fresh sibling-checkout bootstrap and rebuilt existing |
| 143 | OM2 case runner:56/56,16/16,4/4 and exactly two expected binding-negative FAIL rows. |
| 144 | The parent's initial invocation of the unrelated gate669 API refused90; that setup |
| 145 | error is retained and does not count as qualification. No source fix was needed. |
| 146 | L4/L5/L6/L7 owner blockers above remain unchanged. Historical run4 documentation |
| 147 | bindings refer to acf6cecc, not this later review/replay note. |