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

161 lines · 11007 bytes Raw Blame History
1SC1-R / SC1-E pure bounded qualification
2
3Scope
4New Apache-2.0 implementation under the repository license. The old AGPL
5contracts were read for their trusted-caller/unknown/replay semantics, not copied.
6Two fixed owners, eight stocks, serial pure transitions. No daemon, store, lock,
7scheduler, syscall-effect substitute, compiler extension or authentication.
8
9Stock indices
100 processes/descendants; 1 descriptors; 2 resident memory; 3 queued bytes;
114 persistent bytes; 5 temporary snapshot bytes; 6 retained history/logs;
127 cleanup reserve. These are separately budgeted stocks. A physical parent must
13be charged exactly once by the accounting policy, not once per alias/name.
14Fuel is a separate monotonically spent scalar. There is no replenishment API.
15
16Reservation API (seed/authority/reserve.om)
17All operations return ulong: 0 success, 1 invalid input/state, 2 binding/replay,
183 capacity refusal, 4 unknown/retained. rv_uncertain returns4 after marking the
19reservation uncertain. Other refusing public transitions leave the state unchanged.
20All arrays within an operation must be nonaliasing. These are trusted implementation
21functions, not sealed capabilities. Do not expose raw state, rv_clear, rv_reclaimed,
22rv_room or integer flags as client-authorized operations.
23
24State: edit/view ulong64. Layout is documented beside the source. Token: ulong8,
25slot,id,request,owner,grant,object,version,epoch. Quantity vectors: ulong8.
26Identity words are exact trusted adapter handles, not truncated hashes. The owner
27must map full authenticated identities to collision-free, nonreused handles and
28persist that mapping in its existing snapshot. This helper does not authenticate
29handles, compare full signed requests or implement upstream AUM no-op semantics.
30
31rv_init(state,capacities,owners2,fuelbound): genesis only, all-zero destination.
32rv_valid(state): validate serialization including aggregate subtraction-based bounds.
33rv_reserve(state,token,q,fuel): all-or-nothing eight-dimensional reservation. Token
34id must equal state.next-id, and request must exceed the fixed owner's highwater.
35The maximum id refuses before increment; no wrap or rotation. An owner has one
36slot, retained until committed stock is actually reclaimed. Copying token/state
37never supplies a second authoritative writer. Two independent genesis states are
38not a shared budget. Requests are monotonic per owner; retries need owner dedup
39before this API, not a new reserve or a forged larger request id.
40rv_uncertain(state,token): cancellation, lost acknowledgement, death and timeout
41retain full stock. Already-committed stock remains charged.
42rv_commit(state,token,actual,quiet,public): validates actual<=reserved in every
43dimension, then moves actual to used and frees slack. Requires authoritative
44quiescence and observation release permission, even for zero actual. No fuel refund.
45rv_reclaim(state,token,gone,durable,public): subtract only the named slot's used
46stock, only after actual reclamation plus required durability/public release.
47Zero remaining stock retires the slot but keeps highwater and next-id.
48rv_recover(state,actual): complete authoritative physical census raises used to
49max(ledger,actual), retains all unsettled reservations, refuses capacity mismatch
50without mutation. Smaller observations never refund. Unattributed recovered stock
51has no reclamation shortcut here. The owner must reconcile attribution before any
52future accounting design permits its release.
53
54There is no delegation API: copying a parent charge is not delegation. A future
55owner's split must atomically subtract from the parent and allocate the child in
56the same writer transaction; this bounded two-owner profile makes no such claim.
57QuantityLane supplies nominal checked quantity operations; this module independently
58recomputes capacity from original operands with guarded subtraction. Raw wrapped
59sums and client-supplied derived availability are never accepted as evidence.
60
61Envelope API (seed/authority/envelope.om)
62Record ulong8: format,owner,reservation-id,public-release-boundary,active,capacity,
63partition,zero. ep_open(record,owner,id,boundary,capacity,partition) initializes
64an all-zero record once, before secrets. ep_event(record,event1..4) represents
65completion/cancel/error/supervisor-work and never changes public availability.
66ep_available reports capacity minus the fixed active partition. ep_release requires
67exact public boundary identity and authoritative quiescence. Unknown returns4 and
68retains charge. A released record retains its identity and cannot be reopened.
69Restart validates/restores the whole record. This is one public stock projection;
70the scheduler must reserve all eight real stocks with the same owner/id and an
71appropriate fixed public partition. A scalar projection is not proof that actual
72supervisor, descendant or physical usage is contained.
73
74Integration BLOCKED: WORM / existing omnet snapshot writer
75Current service snapshot has no resource reservation ledger, request id or explicit
76epoch. Integrate these fields and identity mappings in that owner's existing
77snapshot schema and transaction, never a second file ledger. Initialize only at
78explicit genesis; missing/corrupt restored accounting is not empty capacity.
79Inside the same serialized dsrequest/dssave interval: authenticate principal/action,
80validate current policy epoch and object/version, resolve exact request-byte dedup,
81reserve complete stock+fuel, create the inactive candidate and bounded response,
82write/fsync/validate temporary snapshot, rename, fsync pinned directory, publish,
83ack. Resource/dedup/authority fields must commit together. A lost ack must return
84stored disposition without duplicate reservation or an unbounded snapshot rewrite.
85Before rename, no physical refund until temporary cleanup is proved. After uncertain
86rename/sync, fail-stop; no new admission or rollback. Recovery must reconcile actual
87retained+temporary bytes, validate bindings and re-establish durability before
88admission. Client flags cannot stand in for these observations. Existing registered
89NodeID/NodeKey adapter remains owner; this module does not replace it.
90
91Integration BLOCKED: scheduler/public observation owner
92Reserve fixed public partition and public release identity before secret work;
93charge descendants, cleanup and supervisor work inside it. Persist envelope owner,
94id, boundary, partition and active bit with the corresponding reservation. Complete,
95cancel, error and connection loss cannot refund or alter public readiness. At the
96public boundary release only with authoritative quiescence. Unknown retains; a
97secret-dependent public delay is NOT certified noninterference. Fixed partitions
98and occupied committed slots lose utilization and can starve later work. There is
99no unlimited-demand availability or actual concurrency claim.
100
101Native replay (AArch64 Linux, no GPU, from repository root)
102 nice -n 19 sh seed/omega-from-seed.sh
103 sha256sum seed/out/omc
104Recorded receipts used compiler: 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61
105After merging main (qty keyword, #909/#914) the committed compiler is
10662775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b. A 2026-10-30
107replay with it of every command below gave the same results: demo, exhaust and
108measure exit0; mutants modes1..4 exit7 and mode5 exit4 at the named assertions;
109oracle --edges 1296 bytes, SHA-256 19e4706d...de03. No receipt was re-recorded.
110For NAME in demo, exhaust, measure, run the following existing-tool
111composition (replace NAME literally; these commands are not a shipped runner):
112 cat seed/authority/reserve.om seed/authority/envelope.om seed/qualification/security673/resources/checks.om seed/qualification/security673/resources/NAME.om | nice -n 19 seed/out/omc > /tmp/sc1-NAME
113 chmod +x /tmp/sc1-NAME
114 nice -n 19 /tmp/sc1-NAME
115negative.om is compiled ALONE as an exact-source mutator. Modes1..4 mutate actual
116ep_event; mode5 mutates actual rv_reserve. Link each generated module with the
117unchanged checks.om and demo.om. Require normal exit7 with the E failure marker,
118or exit4 with the R2 marker. Exact commands are in review-addendum.txt.
119 nice -n 19 seed/out/omc < seed/qualification/security673/resources/oracle.om > /tmp/sc1-oracle
120 chmod +x /tmp/sc1-oracle
121 nice -n 19 /tmp/sc1-oracle
122 /usr/bin/time -v nice -n 19 /tmp/sc1-measure
123
124Evidence categories
125Formal proof: NOT_RUN. R3: independent finite enumeration18 states78 edges,
126whole-service effectfree crash including selfloop; not uncertain storage recovery
127or correspondence to the different attributable-slot resource helper.
128Native differential:448 small reservation cases plus helper binding, exact status,
129stale/cleared/reused token, attributable reclaim, conservation, overflow, atomic
130rollback, recovery/fuel and actual paired occupancy/admission fixtures.
131Native controls: five separately mutated production-source modules compile and
132reach the SAME demo/checker assertions; no duplicated negative assertions.
133Native measurement:63 raw paired samples,100 cycles/sample; nearest-rank
134p50/p95/p99 indices31/59/62 (p99 is the maximum, not a tail-confidence claim).
135The unchecked baseline is deliberately unsafe. Trusted caller fuel charge is0 in
136this benchmark, so it establishes no work-pricing policy. Full raw outputs and
137actual source/compiler/executable/argv/cwd identities are in native-review-rev2.
138The original native-20261025 receipt is historical and does NOT qualify final SC1.
139Independent ResourceReview found no remaining actionable findings after repair.
140Actual writer/store/scheduler integration, authoritative census attribution,
141current policy/object revalidation, durable fuel/envelope restoration and physical
142power loss remain BLOCKED/NOT_RUN. Same-helper checks do not discharge them.
143
144Independent complete-relation replay (SC1 revision2)
145The oracle now accepts --edges and writes the entire36x36 byte adjacency matrix,
146row-major state code9*u+3*r1+r2. Its1296 bytes match an external tuple-set BFS
147byte-for-byte, not just counts. Matrix SHA-256:
14819e4706d53b940f5f99d9337a0277e00844a9355d96d60ea4c19af8288e8de03
149r3-edges.json records every state and ordered edge plus exact source/compiler/
150binary identities and the matrix encoding. The four no-reservation self-loops
151and four simultaneous-two-reservation crash edges distinguish the78-edge model.
152This does not qualify uncertain-effect recovery or actual resource accounting.
153
154Clean checkout replay
155clean-replay.json records an independent native replay at495a53ba6: bootstrap
156fixed point734f0a39..., crumb verification, demo and448-case differential exit0,
157all five rebuilt source mutants normal-fail7/7/7/7/4 at their named assertions,
158and the complete oracle matrix exactly matches the independently reviewed bytes.
159The matched100-cycle sample p50 was2448ns unchecked versus88401ns checked;
160raw63-pair data and a separate1480KiB peak-RSS measurement are retained. This is
161helper overhead, not service throughput, durable integration or a secrecy proof.