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 / security673 / relational / README.txt

147 lines · 11013 bytes Raw Blame History
1#758 relational comparison slice, SC1 revision2
2
3Current contract: ced61decef1ff4efbf5bc81598db648aa810be434e373e9bc1563dbcb4523496.
4Current records: CURRENT-BINDINGS.json (run4), evidence/run5/RUN5.txt (review fixes), FROZEN-R2.txt,
5SC1-L.txt, SHA256SUMS.
6BINDINGS.json, CONSUMER-BINDINGS.json and FROZEN.txt are HISTORICAL DRAFT records for commit
74883943fd993401a3701d95f9c5fa031a6c887ea, not current-source qualifications. Their old L1-L8 IDs
8and draft8bc52 contract are not SC1 revision2 IDs. Historical run1/run2/run3 evidence and the
9parent's initial-clean-replay.json are preserved. No old PASS is relabeled as a new qualification.
10
11Obligation matrix
12-----------------
13L1 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.
16L2 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.
19L3 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.
30L4 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.
37L5 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.
40L6 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.
42L7 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
46Measured repaired suite
47-----------------------
48run4 (historical, CURRENT-BINDINGS.json): qualification.cases56/56 (then including the L4 scan),
49bindings.cases16/16, consumer.cases4/4, binding-negative.cases exit1 with2 FAIL rows.
50Logs: evidence/run4/{qualification,bindings,consumer,wrongbindings}.
51run5 (review fixes, evidence/run5/RUN5.txt): L4 moved out of qualification.cases into
52l4-tripwire.cases; derive-address-nobounds and scan-address-nobounds added. qualification.cases
5356/56, bindings.cases16/16, consumer.cases4/4, binding-negative.cases exit1 with exactly the
54wrong-source-bytes and wrong-checker-bytes FAIL rows; l4-tripwire.cases2/2 reported separately.
55These gate PASS counts include expected scanner refusals and FAIL verdicts. They are not blanket
56SC1-L or service PASS counts.
57
58paired.om now executes4,186,878 comparison assertions: each of32 positions, all256 base values,
59all255 nonzero mismatch masks, and complemented paired inputs with the same mismatch. It also
60checks identical flips at two positions and all32 positions for every mask, plus complements.
61The exact same checker compiles with the XOR-instead-of-OR accumulator mutant and normally reaches
62assertion16 at the first two-position cancellation. The constant-validity mutant reaches13.
63This repairs the original narrow test, which only covered differences1/129 and let XOR survive.
64
65Whole raw compare32 remains776bytes/194 instructions. Existing scanner reports64 public-index
66loads, zero branches, zero UNKNOWN/UNHANDLED: PASS for its architectural model. Current native
67paired harness is separately hashed in CURRENT-BINDINGS.json. The wrong-image containment test
68now searches the2184-byte embed executable, larger than776, and fails hits!=1 with assertion61;
69it no longer tests only the an>bn early refusal. embed.om is mechanical byte containment only.
70
71Before scans, qualification.cases re-compiles EVERY recorded raw control and compares emitted
72bytes directly against the exact scanner-input file. It also re-derives paired/native mutation
73bases and reproduces raw/ELF mutation outputs with patchword.om. consumer.cases re-derives the
74captured dseqhash excerpt's raw output. bindings.cases independently re-derives its native/raw
75bases and wrong image. File-byte comparisons are stronger than accepting self-reported hashes.
76
77The wrong-checker control now compiles the ACTUAL pinned scanner with exact-once source mutation
78rvfix pass bound33->34. Its executable hash changes to73b682c9e26f30520b9cfd3030a706e77912303c7bedc582889f9a902b855cee,
79which the existing gate rejects against the originalaa60061e... pin. It is not branch.om compared
80to a scanner hash. No scanner working-tree file is edited or deployed; mutated .src/.elf files are
81immutable test artifacts, not a second scanner implementation.
82
83Emitted mutation details
84------------------------
85CMP x0,#0 -> CMP x1,#0 (f100001f -> f100003f) changes the branch decision's source.
86AND x4,x1,x3 -> AND x4,x2,x3 (8a030024 -> 8a030044) changes the address selector's source.
87patchword.om requires exactly one aligned old instruction in each complete raw/ELF artifact.
88Native executions both retain output7 for both secrets. Full raw branch code also embeds exactly.
89Address raw/ELF have different mode-specific trap tails, so they are separately bound, NOT called
90translation-proved. The scanner receives the COMPLETE raw artifact including trap tail.
91Arm DDI0487M.d C6.2.96 p1973 and C6.2.15 p1832 define Rn bits9:5. objdump is external oracle only.
92
93Boundary and provenance
94-----------------------
95Actual omnet closure is in OMNET-AUDIT.txt and omnet-audit.json. The captured audit used mixed live
96working-tree inputs at HEAD6eb49ccf, whereas SC1 base is1e075776. adapter.om differs; the captured
97helpers comparison agrees. Neither entire base is qualified by that audit. Argon2i/BLAKE2b,
98JSON/base64, list matching, copies, snapshot/BLAKE2s, restart, cleanup and intended bootstrap
99secret disclosure remain outside this comparison's assurance. Public length/candidate count/shape
100are declared by SC1 revision2, not inferred length hiding. No omnet source was changed here.
101
102Source labels/disclosure are explicit assertions, not enforced information-flow types. The
103scanner cannot authenticate target/model/disclosure metadata or authorize returned data. Dynamic
104native instruction/address traces, mechanized relational proof, authenticated translation receipt,
105physical constant time, cache/speculation/latency protection and service scheduling secrecy are
106NOT_RUN. #759 separately owns the real envelope. No foreign first-party implementation was added.
107
108Replay
109------
110One omega-mv checkout, from the repository root (AArch64 Linux, no GPU). The automatic form is the
111local gate tests/gates/omega-security758.gate:
112
113 bash tests/gates/run.sh security758
114
115It checks seed/out/omc against seed/out/omc.sha256, rebuilds the OM-2 case gate from
116seed/qualification/om2/gate.om with that compiler (sha256
1176c8691c21074595312fdd0f22ca30b6fbe48fb88f2fb0a58936f2960056acefa, byte-identical to the committed
118evidence/run1/gate.bin), runs the five case files below and requires exits 0,0,0,1,0 with exactly
119the two intended binding-negative FAIL rows. The scanner is seed/qualification/om2/leak/leakscan.om
120on main: introduced by 725ca83978a7e547e354011fc1f9ce3c84958592 (#752) and unchanged since; its blob
121da9268a0c835e056ddb5ddc39f570bcbc741089a is identical to the earlier pin
122155ff3178f35013e405ed40d09a7dd75ede2a403 (and gate.om blob 38db128f21511f18ca3b1d26b90f357de0c436e2
123likewise). 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
131are relative to the repository root. The suite was first bound to compiler 734f0a39...6b61 at base
13200eb0e7106d2; MAIN-REPLAY.txt records that the current seed/out/omc 62775d2a...712b produces the same
133results and byte-identical ELFs. Do not use the unrelated seed/qualification/security673/gate669.om
134conductor. Never overwrite old scratch/evidence. No GPU, deployment, new scanner/checker authority,
135compiler edits or consumer edits occurred.
136
137Independent final review/replay
138RelationalReview rechecked sourceacf6cecc24a2f691a9cbebea3bac77ea009f25e5 and found no
139remaining 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
141adds that control and the reviewer's mutant now fails scan-address-nobounds (evidence/run5/RUN5.txt).
142clean-replay.json records a fresh sibling-checkout bootstrap and rebuilt existing
143OM2 case runner:56/56,16/16,4/4 and exactly two expected binding-negative FAIL rows.
144The parent's initial invocation of the unrelated gate669 API refused90; that setup
145error is retained and does not count as qualification. No source fix was needed.
146L4/L5/L6/L7 owner blockers above remain unchanged. Historical run4 documentation
147bindings refer to acf6cecc, not this later review/replay note.