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/patches/ce02d2c6d554db61 # 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 ## GitHub aien-dev/omega-mv#772 (code only) closed derived `ce02d2c6d554db61` #772 Imported from GitHub aien-dev/omega-mv#772 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `62d1d0d668f897386a0e311374f8dbcc5c32dde8` · Head `106f2565cb569efbbd0cc32a2ea86fc32751cd82` ### Fetch it A git bundle of the pull request's head, 40200 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/ce02d2c6d554db61.bundle -o ce02d2c6d554db61.bundle git fetch ce02d2c6d554db61.bundle refs/pull/772/head ``` Raw bundle · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/omega-mv 772 106f2565cb569efbbd0cc32a2ea86fc32751cd82 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":772,"url":"https://github.com/aien-dev/omega-mv/pull/772","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:32Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index f3e51fe46..403c60771 100644 --- a/.crumb +++ b/.crumb @@ -72,38 +72,38 @@ }, { "digest": "f765ad87fdddd9b47f690b07298c951a0f7e7675dc5de4ffe44e33a0c14b1986", - "last_commit": "a8a6a3d3c", + "last_commit": "62d1d0d66", "name": "spec", "purpose": "Directory spec. Purpose not yet described by a human." }, { "digest": "aaf5acb82fd4c720cd60c85fd6087f636c72a98e2f3740c9295dcfa525dc64d7", - "last_commit": "bf54b19fa", + "last_commit": "089e5b053", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { "digest": "5395ff8ff9afceebe8e453788f80a3064b831513cc4cb92fd55869115e06b874", - "last_commit": "a8a6a3d3c", + "last_commit": "62d1d0d66", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { "digest": "308db0e6cf45c0a48f01f5f5f228450f191389de68006915b9ecf9c65b9a2e29", - "last_commit": "a8a6a3d3c", + "last_commit": "62d1d0d66", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], "children_root": "sha256:07bf1706dcffbad66c0353871ff67a6749055da03cee8d8ebdf9a4c91e36bddc", - "compiled_at": "2026-10-30T12:31:50Z", + "compiled_at": "2026-10-30T16:30:44Z", "compiler": "crumb-compile/1", - "digest": "sha256:904fca8c0e0cf3e3a5e5adb73393e01c7018b920bb542d289904240f70e400d6", + "digest": "sha256:812e1a4c63e79cbe6277da45b01408b546a012ba1141f38c3b2b55734b2ca13f", "evidence_files": 12622, "evidence_root": "sha256:b1a08e2ce56e6feada0d8a31f06fbd7adee57adc1c1ad8dec220293ee5d439f9", - "files": 17849, - "generated_at_commit": "52a82f392fa513ebbc2d9d719a0f14c385289b06", - "source_tree": "sha256:75458da6553a0ee5ea2af95f46afb658e8a3f6e53cca6e3b4b9874035f78c2ed" + "files": 17864, + "generated_at_commit": "32e54942f7b192af41ac9d3601a3cce5d494dc65", + "source_tree": "sha256:0e7abe8ee6aa205f03595fab6298688b10114491f281eb2deb6aba44e5c7572d" }, "owner_lane": "", "provenance": { diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index dda6d20b5..ab006a7ad 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -20,6 +20,7 @@ Every model below did real work. A model is listed only for work it did. The orc | Codex (GPT-6 Astra) | Seeded executable contracts, loop-head invariants, release erasure, purity and runtime refusal controls | | Codex (GPT-6.1 Sol) | Corrected boolean bitwise typing in seeded OSC IR output, with C-referee regression cases | | Codex (GPT-6.1 Sol) | Seeded Omega OSC IR v1 to WebAssembly MVP backend, native differential gate, refusal and mutant controls | +| OpenAI GPT-6 Astra | SC1 conserved reservation vectors, public envelopes, native controls, independent finite edge oracle and helper measurements (#757/#759/#673) | | Codex | Handwritten bounded PD0 stream primitive and binary consumer in Omega, native tests, and host-reference/source review (native execution NOT_RUN) | | Codex | Current .om front-page status and source-backed C migration inventory | | Codex | BUILD receipt cleanliness enforcement and optional diagnostic pointer regression fixes | diff --git a/seed/authority/envelope.om b/seed/authority/envelope.om new file mode 100644 index 000000000..c1b1d6423 --- /dev/null +++ b/seed/authority/envelope.om @@ -0,0 +1,76 @@ +note SC1-E pure public partition helper, not a scheduler or secrecy proof. +note Record8: format,owner,reservation-id,public-boundary,active,capacity,partition,zero. +note Open once before any secret work. Owner/id refer to existing writer reservation. +note Fixed public partition must cover descendants, cleanup and supervisor work too. +note Failure leaves record unchanged. State and boundary are trusted writer inputs. +note Copies do not mint authority: only the single serialized owner may mutate live state. +fn ep_valid e view ulong 8 to ulong +if ne get e 0 1 +ret 1 +end +if or eq get e 1 0 or eq get e 2 0 eq get e 3 0 +ret 1 +end +if or gt get e 4 1 ne get e 7 0 +ret 1 +end +if or eq get e 6 0 gt get e 6 get e 5 +ret 1 +end +ret 0 +end +fn ep_open e edit ulong 8 owner ulong id ulong boundary ulong cap ulong part ulong to ulong +for i ulong 8 +if ne get e i 0 +ret 1 +end +end +if or eq owner 0 or eq id 0 eq boundary 0 +ret 1 +end +if or eq part 0 gt part cap +ret 1 +end +put e 0 1 +put e 1 owner +put e 2 id +put e 3 boundary +put e 4 1 +put e 5 cap +put e 6 part +ret 0 +end +fn ep_available e view ulong 8 to ulong +if ne ep_valid e 0 +ret 0 +end +if eq get e 4 0 +ret get e 5 +end +ret sub get e 5 get e 6 +end +note event1 completion,2 cancellation,3 error,4 supervisor-work. None refunds. +fn ep_event e edit ulong 8 event ulong to ulong +if ne ep_valid e 0 +ret 1 +end +if or lt event 1 gt event 4 +ret 1 +end +ret 0 +end +note Unknown quiescence returns4 and retains. Do not certify secret-dependent release delay. +note Boundary is a public schedule identity, not a secret-selected completion timestamp. +fn ep_release e edit ulong 8 boundary ulong quiet bool to ulong +if ne ep_valid e 0 +ret 1 +end +if ne boundary get e 3 +ret 2 +end +if not quiet +ret 4 +end +put e 4 0 +ret 0 +end diff --git a/seed/authority/reserve.om b/seed/authority/reserve.om new file mode 100644 index 000000000..cce09d196 --- /dev/null +++ b/seed/authority/reserve.om @@ -0,0 +1,308 @@ +note SC1-R pure serial transitions. No authentication, locking, persistence or allocator. +note Fresh implementation; old AGPL action/delegate/reuse contracts read, not copied. +note State64: B[0:8], U[8:16], slot charges[16:32], slot metadata[32:56]. +note Metadata12: id,phase,request,owner,grant,object,version,epoch, four zero words. +note Phase0 idle,1 reserved,2 uncertain,3 committed attributable used stock. +note Header56: next-id,spent-fuel,fuel-bound,request-highwater0/1,owner0/1,format1. +note Token8: slot,id,request,owner,grant,object,version,epoch. IDs/requests never wrap. +note Owners are fixed public partitions. Per-owner request sequence must strictly increase. +note Caller validates originals and trusted identities inside existing serialized writer. +note Zero return success; 1 invalid state/input,2 binding/replay,3 capacity,4 unknown. +note Arrays passed to one operation must not alias. Snapshot state is authoritative, not a client copy. +note Local subtraction guards implement SC1-Q boundary rule without struct provenance claims. + +fn rv_meta slot ulong to ulong +ret add 32 mul slot 12 +end +fn rv_charge slot ulong to ulong +ret add 16 mul slot 8 +end +fn rv_phase s view ulong 64 slot ulong to ulong +ret get s add rv_meta slot 1 +end +fn rv_valid s view ulong 64 to ulong +if ne get s 63 1 +ret 1 +end +if or eq get s 56 0 gt get s 57 get s 58 +ret 1 +end +if or eq get s 61 0 or eq get s 62 0 eq get s 61 get s 62 +ret 1 +end +for j ulong 2 +m = rv_meta j +p = get s add m 1 +if gt p 3 +ret 1 +end +for k ulong 4 +if ne get s add m add 8 k 0 +ret 1 +end +end +if ne p 0 +if or eq get s m 0 ge get s m get s 56 +ret 1 +end +if ne get s add m 3 get s add 61 j +ret 1 +end +if ne get s add m 2 get s add 59 j +ret 1 +end +for k ulong 6 +if eq get s add m add 2 k 0 +ret 1 +end +end +else +for k ulong 12 +if ne get s add m k 0 +ret 1 +end +end +end +end +if and ne rv_phase s 0 0 ne rv_phase s 1 0 +if eq get s 32 get s 44 +ret 1 +end +end +for d ulong 8 +left = get s d +used = get s add 8 d +if gt used left +ret 1 +end +left = sub left used +for j ulong 2 +q = get s add rv_charge j d +p = rv_phase s j +if eq p 0 +if ne q 0 +ret 1 +end +end +if or eq p 1 eq p 2 +if gt q left +ret 1 +end +left = sub left q +end +if eq p 3 +if gt q used +ret 1 +end +used = sub used q +end +end +end +ret 0 +end +fn rv_init s edit ulong 64 b view ulong 8 owners view ulong 2 fuel ulong to ulong +for i ulong 64 +if ne get s i 0 +ret 1 +end +end +if eq get owners 0 0 +ret 1 +end +if eq get owners 1 0 +ret 1 +end +if eq get owners 0 get owners 1 +ret 1 +end +for i ulong 8 +put s i get b i +end +put s 56 1 +put s 58 fuel +put s 61 get owners 0 +put s 62 get owners 1 +put s 63 1 +ret 0 +end +fn rv_bind s view ulong 64 t view ulong 8 to ulong +if ne rv_valid s 0 +ret 1 +end +if gt get t 0 1 +ret 2 +end +m = rv_meta get t 0 +if eq get s add m 1 0 +ret 2 +end +if ne get s m get t 1 +ret 2 +end +for i ulong 6 +if ne get s add m add 2 i get t add 2 i +ret 2 +end +end +ret 0 +end +fn rv_room s view ulong 64 d ulong to ulong +left = sub get s d get s add 8 d +for j ulong 2 +p = rv_phase s j +if or eq p 1 eq p 2 +left = sub left get s add rv_charge j d +end +end +ret left +end +fn rv_reserve s edit ulong 64 t view ulong 8 q view ulong 8 fuel ulong to ulong +if ne rv_valid s 0 +ret 1 +end +if gt get t 0 1 +ret 2 +end +j = get t 0 +if ne rv_phase s j 0 +ret 2 +end +if or ne get t 1 get s 56 eq get s 56 18446744073709551615 +ret 2 +end +if ne get t 3 get s add 61 j +ret 2 +end +if le get t 2 get s add 59 j +ret 2 +end +for i ulong 6 +if eq get t add i 2 0 +ret 2 +end +end +if gt fuel sub get s 58 get s 57 +ret 3 +end +for d ulong 8 +if gt get q d rv_room s d +ret 3 +end +end +note Mutation begins only after all eight stocks and all bindings validate. +for d ulong 8 +put s add rv_charge j d get q d +end +m = rv_meta j +put s m get t 1 +put s add m 1 1 +for i ulong 6 +put s add m add 2 i get t add 2 i +end +put s add 59 j get t 2 +put s 56 add get s 56 1 +put s 57 add get s 57 fuel +ret 0 +end +fn rv_uncertain s edit ulong 64 t view ulong 8 to ulong +r = rv_bind s t +if ne r 0 +ret r +end +if eq rv_phase s get t 0 3 +ret 4 +end +put s add rv_meta get t 0 1 2 +ret 4 +end +fn rv_clear s edit ulong 64 slot ulong to void +for i ulong 8 +put s add rv_charge slot i 0 +end +for i ulong 12 +put s add rv_meta slot i 0 +end +end +note quiet and public are authoritative adapter facts, never client flags. +note No completion/cancel/error calls this until actual effects and public release permit. +fn rv_commit s edit ulong 64 t view ulong 8 actual view ulong 8 quiet bool public bool to ulong +r = rv_bind s t +if ne r 0 +ret r +end +j = get t 0 +if eq rv_phase s j 3 +ret 2 +end +if not and quiet public +ret 4 +end +for d ulong 8 +if gt get actual d get s add rv_charge j d +ret 3 +end +end +for d ulong 8 +put s add 8 d add get s add 8 d get actual d +put s add rv_charge j d get actual d +end +put s add rv_meta j 1 3 +ret 0 +end +note Internal apply helper requires rv_reclaim preflight; not an admission API. +fn rv_reclaimed s edit ulong 64 gone view ulong 8 j ulong to void +bits = ulong 0 +for d ulong 8 +q = sub get s add rv_charge j d get gone d +put s add rv_charge j d q +put s add 8 d sub get s add 8 d get gone d +bits = or bits q +end +if eq bits 0 +rv_clear s j +end +end +note Reclaim vector denotes stock actually reclaimed with required durability. +note Stock is attributable to this slot; cannot release somebody else's used charge. +fn rv_reclaim s edit ulong 64 t view ulong 8 gone view ulong 8 durable bool public bool to ulong +r = rv_bind s t +if ne r 0 +ret r +end +j = get t 0 +if ne rv_phase s j 3 +ret 2 +end +if not and durable public +ret 4 +end +for d ulong 8 +if gt get gone d get s add rv_charge j d +ret 3 +end +end +rv_reclaimed s gone j +ret 0 +end +note Recovery raises used to max(ledger,observed), never discounts missing evidence. +note Caller supplies authoritative complete retained+temporary physical stock census. +note Reservations stay charged; inconsistent capacity leaves snapshot untouched and refuses admission. +fn rv_recover s edit ulong 64 actual view ulong 8 to ulong +if ne rv_valid s 0 +ret 1 +end +for d ulong 8 +old = get s add 8 d +if gt get actual d old +if gt sub get actual d old rv_room s d +ret 3 +end +end +end +for d ulong 8 +if gt get actual d get s add 8 d +put s add 8 d get actual d +end +end +ret 0 +end diff --git a/seed/qualification/security673/resources/README.txt b/seed/qualification/security673/resources/README.txt new file mode 100644 index 000000000..ca20d9fc0 --- /dev/null +++ b/seed/qualification/security673/resources/README.txt @@ -0,0 +1,161 @@ +SC1-R / SC1-E pure bounded qualification + +Scope +New Apache-2.0 implementation under the repository license. The old AGPL +contracts were read for their trusted-caller/unknown/replay semantics, not copied. +Two fixed owners, eight stocks, serial pure transitions. No daemon, store, lock, +scheduler, syscall-effect substitute, compiler extension or authentication. + +Stock indices +0 processes/descendants; 1 descriptors; 2 resident memory; 3 queued bytes; +4 persistent bytes; 5 temporary snapshot bytes; 6 retained history/logs; +7 cleanup reserve. These are separately budgeted stocks. A physical parent must +be charged exactly once by the accounting policy, not once per alias/name. +Fuel is a separate monotonically spent scalar. There is no replenishment API. + +Reservation API (seed/authority/reserve.om) +All operations return ulong: 0 success, 1 invalid input/state, 2 binding/replay, +3 capacity refusal, 4 unknown/retained. rv_uncertain returns4 after marking the +reservation uncertain. Other refusing public transitions leave the state unchanged. +All arrays within an operation must be nonaliasing. These are trusted implementation +functions, not sealed capabilities. Do not expose raw state, rv_clear, rv_reclaimed, +rv_room or integer flags as client-authorized operations. + +State: edit/view ulong64. Layout is documented beside the source. Token: ulong8, +slot,id,request,owner,grant,object,version,epoch. Quantity vectors: ulong8. +Identity words are exact trusted adapter handles, not truncated hashes. The owner +must map full authenticated identities to collision-free, nonreused handles and +persist that mapping in its existing snapshot. This helper does not authenticate +handles, compare full signed requests or implement upstream AUM no-op semantics. + +rv_init(state,capacities,owners2,fuelbound): genesis only, all-zero destination. +rv_valid(state): validate serialization including aggregate subtraction-based bounds. +rv_reserve(state,token,q,fuel): all-or-nothing eight-dimensional reservation. Token +id must equal state.next-id, and request must exceed the fixed owner's highwater. +The maximum id refuses before increment; no wrap or rotation. An owner has one +slot, retained until committed stock is actually reclaimed. Copying token/state +never supplies a second authoritative writer. Two independent genesis states are +not a shared budget. Requests are monotonic per owner; retries need owner dedup +before this API, not a new reserve or a forged larger request id. +rv_uncertain(state,token): cancellation, lost acknowledgement, death and timeout +retain full stock. Already-committed stock remains charged. +rv_commit(state,token,actual,quiet,public): validates actual<=reserved in every +dimension, then moves actual to used and frees slack. Requires authoritative +quiescence and observation release permission, even for zero actual. No fuel refund. +rv_reclaim(state,token,gone,durable,public): subtract only the named slot's used +stock, only after actual reclamation plus required durability/public release. +Zero remaining stock retires the slot but keeps highwater and next-id. +rv_recover(state,actual): complete authoritative physical census raises used to +max(ledger,actual), retains all unsettled reservations, refuses capacity mismatch +without mutation. Smaller observations never refund. Unattributed recovered stock +has no reclamation shortcut here. The owner must reconcile attribution before any +future accounting design permits its release. + +There is no delegation API: copying a parent charge is not delegation. A future +owner's split must atomically subtract from the parent and allocate the child in +the same writer transaction; this bounded two-owner profile makes no such claim. +QuantityLane supplies nominal checked quantity operations; this module independently +recomputes capacity from original operands with guarded subtraction. Raw wrapped +sums and client-supplied derived availability are never accepted as evidence. + +Envelope API (seed/authority/envelope.om) +Record ulong8: format,owner,reservation-id,public-release-boundary,active,capacity, +partition,zero. ep_open(record,owner,id,boundary,capacity,partition) initializes +an all-zero record once, before secrets. ep_event(record,event1..4) represents +completion/cancel/error/supervisor-work and never changes public availability. +ep_available reports capacity minus the fixed active partition. ep_release requires +exact public boundary identity and authoritative quiescence. Unknown returns4 and +retains charge. A released record retains its identity and cannot be reopened. +Restart validates/restores the whole record. This is one public stock projection; +the scheduler must reserve all eight real stocks with the same owner/id and an +appropriate fixed public partition. A scalar projection is not proof that actual +supervisor, descendant or physical usage is contained. + +Integration BLOCKED: WORM / existing omnet snapshot writer +Current service snapshot has no resource reservation ledger, request id or explicit +epoch. Integrate these fields and identity mappings in that owner's existing +snapshot schema and transaction, never a second file ledger. Initialize only at +explicit genesis; missing/corrupt restored accounting is not empty capacity. +Inside the same serialized dsrequest/dssave interval: authenticate principal/action, +validate current policy epoch and object/version, resolve exact request-byte dedup, +reserve complete stock+fuel, create the inactive candidate and bounded response, +write/fsync/validate temporary snapshot, rename, fsync pinned directory, publish, +ack. Resource/dedup/authority fields must commit together. A lost ack must return +stored disposition without duplicate reservation or an unbounded snapshot rewrite. +Before rename, no physical refund until temporary cleanup is proved. After uncertain +rename/sync, fail-stop; no new admission or rollback. Recovery must reconcile actual +retained+temporary bytes, validate bindings and re-establish durability before +admission. Client flags cannot stand in for these observations. Existing registered +NodeID/NodeKey adapter remains owner; this module does not replace it. + +Integration BLOCKED: scheduler/public observation owner +Reserve fixed public partition and public release identity before secret work; +charge descendants, cleanup and supervisor work inside it. Persist envelope owner, +id, boundary, partition and active bit with the corresponding reservation. Complete, +cancel, error and connection loss cannot refund or alter public readiness. At the +public boundary release only with authoritative quiescence. Unknown retains; a +secret-dependent public delay is NOT certified noninterference. Fixed partitions +and occupied committed slots lose utilization and can starve later work. There is +no unlimited-demand availability or actual concurrency claim. + +Native replay (AArch64 Linux, no GPU, from repository root) + nice -n 19 sh seed/omega-from-seed.sh + sha256sum seed/out/omc +Recorded receipts used compiler: 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 +After merging main (qty keyword, #909/#914) the committed compiler is +62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b. A 2026-10-30 +replay with it of every command below gave the same results: demo, exhaust and +measure exit0; mutants modes1..4 exit7 and mode5 exit4 at the named assertions; +oracle --edges 1296 bytes, SHA-256 19e4706d...de03. No receipt was re-recorded. +For NAME in demo, exhaust, measure, run the following existing-tool +composition (replace NAME literally; these commands are not a shipped runner): + 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 + chmod +x /tmp/sc1-NAME + nice -n 19 /tmp/sc1-NAME +negative.om is compiled ALONE as an exact-source mutator. Modes1..4 mutate actual +ep_event; mode5 mutates actual rv_reserve. Link each generated module with the +unchanged checks.om and demo.om. Require normal exit7 with the E failure marker, +or exit4 with the R2 marker. Exact commands are in review-addendum.txt. + nice -n 19 seed/out/omc < seed/qualification/security673/resources/oracle.om > /tmp/sc1-oracle + chmod +x /tmp/sc1-oracle + nice -n 19 /tmp/sc1-oracle + /usr/bin/time -v nice -n 19 /tmp/sc1-measure + +Evidence categories +Formal proof: NOT_RUN. R3: independent finite enumeration18 states78 edges, +whole-service effectfree crash including selfloop; not uncertain storage recovery +or correspondence to the different attributable-slot resource helper. +Native differential:448 small reservation cases plus helper binding, exact status, +stale/cleared/reused token, attributable reclaim, conservation, overflow, atomic +rollback, recovery/fuel and actual paired occupancy/admission fixtures. +Native controls: five separately mutated production-source modules compile and +reach the SAME demo/checker assertions; no duplicated negative assertions. +Native measurement:63 raw paired samples,100 cycles/sample; nearest-rank +p50/p95/p99 indices31/59/62 (p99 is the maximum, not a tail-confidence claim). +The unchecked baseline is deliberately unsafe. Trusted caller fuel charge is0 in +this benchmark, so it establishes no work-pricing policy. Full raw outputs and +actual source/compiler/executable/argv/cwd identities are in native-review-rev2. +The original native-20261025 receipt is historical and does NOT qualify final SC1. +Independent ResourceReview found no remaining actionable findings after repair. +Actual writer/store/scheduler integration, authoritative census attribution, +current policy/object revalidation, durable fuel/envelope restoration and physical +power loss remain BLOCKED/NOT_RUN. Same-helper checks do not discharge them. + +Independent complete-relation replay (SC1 revision2) +The oracle now accepts --edges and writes the entire36x36 byte adjacency matrix, +row-major state code9*u+3*r1+r2. Its1296 bytes match an external tuple-set BFS +byte-for-byte, not just counts. Matrix SHA-256: +19e4706d53b940f5f99d9337a0277e00844a9355d96d60ea4c19af8288e8de03 +r3-edges.json records every state and ordered edge plus exact source/compiler/ +binary identities and the matrix encoding. The four no-reservation self-loops +and four simultaneous-two-reservation crash edges distinguish the78-edge model. +This does not qualify uncertain-effect recovery or actual resource accounting. + +Clean checkout replay +clean-replay.json records an independent native replay at495a53ba6: bootstrap +fixed point734f0a39..., crumb verification, demo and448-case differential exit0, +all five rebuilt source mutants normal-fail7/7/7/7/4 at their named assertions, +and the complete oracle matrix exactly matches the independently reviewed bytes. +The matched100-cycle sample p50 was2448ns unchecked versus88401ns checked; +raw63-pair data and a separate1480KiB peak-RSS measurement are retained. This is +helper overhead, not service throughput, durable integration or a secrecy proof. diff --git a/seed/qualification/security673/resources/checks.om b/seed/qualification/security673/resources/checks.om new file mode 100644 index 000000000..bdaebd452 --- /dev/null +++ b/seed/qualification/security673/resources/checks.om @@ -0,0 +1,406 @@ +note Concatenate reserve.om envelope.om checks.om and one driver. +fn setup s edit ulong 64 cap ulong to ulong +b = new ulong 8 cap +o = new ulong 2 0 +put o 0 11 +put o 1 22 +ret rv_init s b o 100 +end +fn token t edit ulong 8 slot ulong id ulong req ulong to void +put t 0 slot +put t 1 id +put t 2 req +put t 3 mul add slot 1 11 +for i ulong 4 +put t add 4 i add i 1 +end +end +fn same a view ulong 64 b view ulong 64 to bool +for i ulong 64 +if ne get a i get b i +ret false +end +end +ret true +end +fn copy64 a edit ulong 64 b view ulong 64 to void +for i ulong 64 +put a i get b i +end +end +fn test_r1 to bool +s = new ulong 64 0 +t = new ulong 8 0 +q = new ulong 8 4 +old = new ulong 64 0 +if ne setup s 6 0 +ret false +end +token t 0 1 1 +if ne rv_reserve s t q 7 0 +ret false +end +copy64 old s +token t 1 2 1 +if ne rv_reserve s t q 7 3 +ret false +end +ret and same s old eq rv_valid s 0 +end +fn test_binding to bool +s = new ulong 64 0 +t = new ulong 8 0 +q = new ulong 8 2 +old = new ulong 64 0 +if ne setup s 6 0 +ret false +end +token t 0 1 1 +if ne rv_reserve s t q 1 0 +ret false +end +copy64 old s +for i ulong 8 +v = get t i +put t i add v 1 +if ne rv_commit s t q true true 2 +ret false +end +put t i v +if not same s old +ret false +end +end +ret true +end +fn test_replay to bool +s = new ulong 64 0 +t = new ulong 8 0 +q = new ulong 8 2 +z = new ulong 8 0 +old = new ulong 64 0 +if ne setup s 6 0 +ret false +end +token t 0 1 1 +if ne rv_reserve s t q 1 0 +ret false +end +if ne rv_commit s t z true true 0 +ret false +end +if ne rv_reclaim s t z true true 0 +ret false +end +copy64 old s +if ne rv_commit s t z true true 2 +ret false +end +if ne rv_reclaim s t z true true 2 +ret false +end +put t 2 2 +if ne rv_reserve s t q 1 2 +ret false +end +if not same s old +ret false +end +put t 1 2 +if ne rv_reserve s t q 1 0 +ret false +end +copy64 old s +put t 1 1 +put t 2 1 +if ne rv_uncertain s t 2 +ret false +end +ret same s old +end +fn test_attrib to bool +s = new ulong 64 0 +t = new ulong 8 0 +q = new ulong 8 2 +old = new ulong 64 0 +if ne setup s 6 0 +ret false +end +token t 0 1 1 +if ne rv_reserve s t q 1 0 +ret false +end +if ne rv_commit s t q true true 0 +ret false +end +token t 1 2 1 +if ne rv_reserve s t q 1 0 +ret false +end +if ne rv_commit s t q true true 0 +ret false +end +copy64 old s +for d ulong 8 +put q d 3 +end +token t 0 1 1 +if ne rv_reclaim s t q true true 3 +ret false +end +if ne get s 8 4 +ret false +end +ret same s old +end +fn test_lifecycle to bool +s = new ulong 64 0 +t = new ulong 8 0 +q = new ulong 8 4 +c = new ulong 8 2 +z = new ulong 8 0 +if ne setup s 6 0 +ret false +end +token t 0 1 1 +if ne rv_reserve s t q 7 0 +ret false +end +if ne rv_uncertain s t 4 +ret false +end +if ne get s 16 4 +ret false +end +if ne rv_commit s t c false true 4 +ret false +end +if ne rv_commit s t c true false 4 +ret false +end +if ne rv_commit s t c true true 0 +ret false +end +if or ne get s 8 2 ne get s 16 2 +ret false +end +if ne rv_commit s t z true true 2 +ret false +end +if ne rv_reclaim s t c false true 4 +ret false +end +if ne rv_reclaim s t c true true 0 +ret false +end +if or ne get s 8 0 ne get s 57 7 +ret false +end +put t 1 2 +if ne rv_reserve s t q 1 2 +ret false +end +put t 2 2 +if ne rv_reserve s t q 1 0 +ret false +end +if ne rv_commit s t z true true 0 +ret false +end +if ne rv_reclaim s t z true true 0 +ret false +end +ret and eq get s 57 8 eq rv_valid s 0 +end +fn test_atomic to bool +s = new ulong 64 0 +t = new ulong 8 0 +q = new ulong 8 4 +old = new ulong 64 0 +if ne setup s 6 0 +ret false +end +token t 0 1 1 +put q 7 7 +copy64 old s +if ne rv_reserve s t q 1 3 +ret false +end +if not same s old +ret false +end +put q 7 4 +if ne rv_reserve s t q 1 0 +ret false +end +copy64 old s +put q 7 5 +if ne rv_commit s t q true true 3 +ret false +end +ret same s old +end +fn test_extrema to bool +s = new ulong 64 0 +t = new ulong 8 0 +q = new ulong 8 18446744073709551615 +old = new ulong 64 0 +if ne setup s 18446744073709551615 0 +ret false +end +token t 0 1 1 +if ne rv_reserve s t q 100 0 +ret false +end +if ne rv_commit s t q true true 0 +ret false +end +token t 1 2 1 +put q 0 1 +copy64 old s +if ne rv_reserve s t q 0 3 +ret false +end +if not same s old +ret false +end +put s 56 18446744073709551615 +put t 1 18446744073709551615 +copy64 old s +if ne rv_reserve s t q 0 2 +ret false +end +ret same s old +end +fn test_recovery to bool +s = new ulong 64 0 +t = new ulong 8 0 +q = new ulong 8 60 +old = new ulong 64 0 +if ne setup s 100 0 +ret false +end +for d ulong 8 +put s add 8 d 40 +end +if ne rv_recover s q 0 +ret false +end +if ne get s 8 60 +ret false +end +token t 0 1 1 +copy64 old s +if ne rv_reserve s t q 0 3 +ret false +end +if not same s old +ret false +end +put q 7 101 +if ne rv_recover s q 3 +ret false +end +ret same s old +end +fn test_envelope to bool +a = new ulong 8 0 +b = new ulong 8 0 +if ne ep_open a 11 1 9 2 2 0 +ret false +end +if ne ep_open b 11 1 9 2 2 0 +ret false +end +for event ulong 4 +if ne ep_event a add event 1 0 +ret false +end +if ne ep_available a ep_available b +ret false +end +end +if ne ep_release a 8 true 2 +ret false +end +if ne ep_release a 9 false 4 +ret false +end +for i ulong 8 +put b i get a i +end +if ne ep_valid b 0 +ret false +end +if or ne get b 1 11 or ne get b 2 1 ne get b 3 9 +ret false +end +if ne ep_available b 0 +ret false +end +if ne ep_release b 9 true 0 +ret false +end +ret eq ep_available b 2 +end +note Baseline admission is a mutable capacity2 stock, secret occupancy then public request1. +fn public_admit stock edit ulong 2 request ulong to bool +if gt get stock 1 get stock 0 +ret false +end +if gt request sub get stock 0 get stock 1 +ret false +end +put stock 1 add get stock 1 request +ret true +end +fn baseline_leaks to bool +a = new ulong 2 0 +b = new ulong 2 0 +put a 0 2 +put b 0 2 +if not public_admit a 1 +ret false +end +if not public_admit b 2 +ret false +end +ra = public_admit a 1 +rb = public_admit b 1 +ret and ra not rb +end +fn occupy amount ulong to ulong +s = new ulong 2 0 +put s 0 2 +if not public_admit s amount +ret 3 +end +ret get s 1 +end +fn envelope_admit e view ulong 8 request ulong to bool +s = new ulong 2 0 +put s 0 ep_available e +ret public_admit s request +end +note Protected admission uses public maxima, not secret stock1/2. +fn protected_pair to bool +a = new ulong 8 0 +b = new ulong 8 0 +if ne ep_open a 11 1 9 2 2 0 +ret false +end +if ne ep_open b 11 1 9 2 2 0 +ret false +end +sa = occupy 1 +sb = occupy 2 +if or ne sa 1 ne sb 2 +ret false +end +ra = envelope_admit a 1 +rb = envelope_admit b 1 +if or ra rb +ret false +end +ret and eq ra rb ne sa sb +end diff --git a/seed/qualification/security673/resources/clean-replay.json b/seed/qualification/security673/resources/clean-replay.json new file mode 100644 index 000000000..0f741e1e5 --- /dev/null +++ b/seed/qualification/security673/resources/clean-replay.json @@ -0,0 +1,243 @@ +{ + "profile": "SC1-R/E revision2 pure helper and finite specification model only", + "source_commit": "495a53ba6", + "contract_sha256": "ced61decef1ff4efbf5bc81598db648aa810be434e373e9bc1563dbcb4523496", + "compiler_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61", + "target": "linux-aarch64 native host; no GPU", + "clean_checkout": true, + "runs": [ + { + "name": "demo", + "source_files": { + "seed/authority/reserve.om": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "seed/authority/envelope.om": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "seed/qualification/security673/resources/checks.om": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "seed/qualification/security673/resources/demo.om": "b5cd163926815c4abf2b7a4548e59da309ec35e7ddd9cf8ad53aebeff59713c3" + }, + "composition_sha256": "027ab88439289d30701f5fbf89e0e07a06f3c9c19816a11df620841d736bdac7", + "binary_sha256": "588ad6e76ee79b9517c361bbf1b8302c32cc1ece518c231ab69e755cadd7c0be", + "compile_exit": 0, + "argv": [ + "build/sc1-clean/demo" + ], + "cwd": "clean repository root", + "exit": 0, + "stdout_sha256": "c34161e563f2af49722002ed5ece636a5afcc5a6ba7106d4027c91d971c5629d", + "stdout_bytes": 308, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nPASS E1-E6 paired_admission events release restart\n", + "stdout_encoding": "utf8", + "stderr": "" + }, + { + "name": "exhaust", + "source_files": { + "seed/authority/reserve.om": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "seed/authority/envelope.om": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "seed/qualification/security673/resources/checks.om": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "seed/qualification/security673/resources/exhaust.om": "1929828a17a813b3bf54afe72f3187e3b512f9be1815bbbf6c7e679fc4323e46" + }, + "composition_sha256": "b6405e2032823698e4268c9859054834c7d79db72babe96d942ee079586ee488", + "binary_sha256": "dc7904bb2fae0f344a09d57e599961fe4b197eff7c12b774000e96f73ac662a8", + "compile_exit": 0, + "argv": [ + "build/sc1-clean/exhaust" + ], + "cwd": "clean repository root", + "exit": 0, + "stdout_sha256": "7538cddf5a8d7a0015d2d6faf4b278b6eaeb29960788d4a71e110360cba95e27", + "stdout_bytes": 75, + "stdout": "PASS conservation finite differential 448 cases; conservative restart/fuel\n", + "stdout_encoding": "utf8", + "stderr": "" + }, + { + "name": "measure", + "source_files": { + "seed/authority/reserve.om": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "seed/authority/envelope.om": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "seed/qualification/security673/resources/checks.om": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "seed/qualification/security673/resources/measure.om": "429cf7c089b60bd05d2fed38092d8c05f2561dce587bbbcb95a21efbbb998e69" + }, + "composition_sha256": "5eb8fbf042b6497a3b4f3c7d2999cf165cacf85474823a395a8871282fc74f87", + "binary_sha256": "34bd18944533b8fa6055890db9bd2dd493de4aaf7c5f995061e743f4a0787e4e", + "compile_exit": 0, + "argv": [ + "build/sc1-clean/measure" + ], + "cwd": "clean repository root", + "exit": 0, + "stdout_sha256": "3de5768650f0167db440f7f239a038aebe459ed061b63276b2aa56d1e306079a", + "stdout_bytes": 895, + "stdout": "RAW paired samples: baseline_ns then checked_ns, 63 pairs in execution order\n3136\n93569\n2464\n90001\n2496\n89153\n2432\n89489\n2384\n89233\n2416\n89041\n2400\n100833\n2448\n88465\n2480\n88833\n2448\n89041\n2448\n88912\n2433\n89472\n2448\n88817\n2432\n87809\n2432\n88769\n2432\n88737\n2432\n87889\n2432\n89425\n2448\n87905\n2448\n87793\n2432\n88209\n2448\n88049\n2416\n87648\n2448\n87809\n2432\n88673\n2464\n87953\n2448\n88401\n2448\n88225\n2464\n91089\n2448\n88513\n2448\n88273\n2448\n88353\n2448\n88161\n2464\n87408\n2448\n88433\n2448\n88049\n2448\n88033\n2432\n87905\n2400\n88049\n2416\n102161\n2464\n88769\n2448\n87969\n2448\n87809\n2448\n88065\n2448\n88257\n2416\n88608\n2448\n88321\n2432\n88801\n2416\n88289\n2464\n91969\n2448\n88273\n2448\n88241\n2448\n88609\n2448\n88353\n2448\n88881\n2448\n87441\n2432\n88033\n2432\n87984\n2432\n88673\n2448\n88577\n2448\n91105\n2464\n88001\n2432\n88449\nMEASURE helper cycles=100 samples=63 baseline_ns p50/p95/p99 then checked_ns p50/p95/p99\n2448\n2464\n3136\n88401\n91969\n102161\n", + "stdout_encoding": "utf8", + "stderr": "" + }, + { + "name": "oracle", + "source_files": { + "seed/qualification/security673/resources/oracle.om": "0590272c1b5d5d0b4da3c39274d1bf39b9e313263168a575c716595f90717f91" + }, + "composition_sha256": "0590272c1b5d5d0b4da3c39274d1bf39b9e313263168a575c716595f90717f91", + "binary_sha256": "c76f84a09e246c7c84038b8367b62076eba16f2833134b70bd7e75bbaa9316c0", + "compile_exit": 0, + "argv": [ + "build/sc1-clean/oracle", + "--edges" + ], + "cwd": "clean repository root", + "exit": 0, + "stdout_sha256": "19e4706d53b940f5f99d9337a0277e00844a9355d96d60ea4c19af8288e8de03", + "stdout_bytes": 1296, + "stdout": "010101010000010000000000000000000000000000000000000000000000000000000000010000000100000100010000000000000000000000000000000000000000000000000000010000000001000000010000000000000000010000000000000000000000000000000000010000000101000000010000000000000000000000000000000000000000000000000000010100010000000000000100010000000000000000000000000000000000000000000000010001010000000000000001010000000000000000010000000000000000000000000000010000000000000100010000000000000000010000000000000000000000000000000000010100000000010000000100000000010000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000010101010000010000000000000000000000000000000000000000000100000000000000010000000100000000010000000000000000000000000000000000000001000000000000010000000000000000010000000000000000010000000000000000000000010000000000010000000100000000010000000000000000000000000000000000000000000100000000010100010000000000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000010000000000000000010000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000010100010000000000000000000000000000000000000000000000000100000000000000010000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000010000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "stdout_encoding": "hex", + "stderr": "" + }, + { + "name": "actual-source-mutant1", + "mutator_source_sha256": "39364ac59ed1bcbe77665c072d811d142d789ec12cc506f43e40ef8838bba1ec", + "mutator_binary_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "mutator_argv": [ + "build/sc1-clean/negative", + "1" + ], + "mutator_input": "seed/authority/envelope.om", + "mutator_input_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator_output_sha256": "5abde8f52f6a7678b9ccf11a9d05d602f1bb8040f66b0c5e2f1f654a693792b8", + "mutator_exit": 0, + "composition_sha256": "afe077518644917faa5639706205d2537aaa87e4bde8c27986f87d03badebdc3", + "binary_sha256": "57c081d91a2ef25637d37bc8ba5ba42488370b27372c41e1352dfbb41ddc045d", + "compile_exit": 0, + "argv": [ + "build/sc1-clean/mutant1" + ], + "cwd": "clean repository root", + "exit": 7, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nFAIL E1-E6 paired_admission events release restart\n", + "stderr": "", + "expected_normal_exit": 7 + }, + { + "name": "actual-source-mutant2", + "mutator_source_sha256": "39364ac59ed1bcbe77665c072d811d142d789ec12cc506f43e40ef8838bba1ec", + "mutator_binary_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "mutator_argv": [ + "build/sc1-clean/negative", + "2" + ], + "mutator_input": "seed/authority/envelope.om", + "mutator_input_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator_output_sha256": "6a7ad4fe7c7e0b0e963a918051ed0bf4db33a72f4d953b939210d646338bc9cc", + "mutator_exit": 0, + "composition_sha256": "d676ac413724f84de3d357cf1b2632a10ffae861faa262f7e8909f7c9990c8bf", + "binary_sha256": "f94598c4203a0327c47af243f2e6fd35fa7d176454663c1e9823f8118116f613", + "compile_exit": 0, + "argv": [ + "build/sc1-clean/mutant2" + ], + "cwd": "clean repository root", + "exit": 7, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nFAIL E1-E6 paired_admission events release restart\n", + "stderr": "", + "expected_normal_exit": 7 + }, + { + "name": "actual-source-mutant3", + "mutator_source_sha256": "39364ac59ed1bcbe77665c072d811d142d789ec12cc506f43e40ef8838bba1ec", + "mutator_binary_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "mutator_argv": [ + "build/sc1-clean/negative", + "3" + ], + "mutator_input": "seed/authority/envelope.om", + "mutator_input_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator_output_sha256": "8f9946fa9d1e6e1c438e7b198eb84f03d13b88818270132dd34f7c4f4199dfa1", + "mutator_exit": 0, + "composition_sha256": "b76d855aeebc9af396cb998ea25e877bf4db0bb2518a2ae6c942169217b11a2f", + "binary_sha256": "e148a69740cc880ec3ae61f9460506e47bdfc4eaf70085a6b547e1904c6675f6", + "compile_exit": 0, + "argv": [ + "build/sc1-clean/mutant3" + ], + "cwd": "clean repository root", + "exit": 7, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nFAIL E1-E6 paired_admission events release restart\n", + "stderr": "", + "expected_normal_exit": 7 + }, + { + "name": "actual-source-mutant4", + "mutator_source_sha256": "39364ac59ed1bcbe77665c072d811d142d789ec12cc506f43e40ef8838bba1ec", + "mutator_binary_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "mutator_argv": [ + "build/sc1-clean/negative", + "4" + ], + "mutator_input": "seed/authority/envelope.om", + "mutator_input_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator_output_sha256": "2978e0fd6ad46dfbf85556185908fcc1c3da15aade740feac8640021d53db93d", + "mutator_exit": 0, + "composition_sha256": "c03480d3ef9911cd041f7eca4e1af43d8a1e55d7a97abf1c5560d2dd56ba5e47", + "binary_sha256": "338f7f98a8a910fec6c93d7cd3a6191b9a31c93fec05ec8a7b7464feeb3fb045", + "compile_exit": 0, + "argv": [ + "build/sc1-clean/mutant4" + ], + "cwd": "clean repository root", + "exit": 7, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nFAIL E1-E6 paired_admission events release restart\n", + "stderr": "", + "expected_normal_exit": 7 + }, + { + "name": "actual-source-mutant5", + "mutator_source_sha256": "39364ac59ed1bcbe77665c072d811d142d789ec12cc506f43e40ef8838bba1ec", + "mutator_binary_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "mutator_argv": [ + "build/sc1-clean/negative", + "5" + ], + "mutator_input": "seed/authority/reserve.om", + "mutator_input_sha256": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "mutator_output_sha256": "aabcdf49a786f0484d962cfc2c34ddaefd315c7781e8f083c6da29118c8baf21", + "mutator_exit": 0, + "composition_sha256": "bcff71256c33a167b26bcd2ff9c67c7aa9428d5962550cf0dc6fa403a4addcf8", + "binary_sha256": "ebb317d299429e7cf9c653fd505f6d3032cf9ff05f677d9efa3b3bd83eb62e8b", + "compile_exit": 0, + "argv": [ + "build/sc1-clean/mutant5" + ], + "cwd": "clean repository root", + "exit": 4, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nFAIL R2 all-or-nothing eight stocks\n", + "stderr": "", + "expected_normal_exit": 4 + } + ], + "resource_repeat": { + "argv": [ + "/usr/bin/time", + "-f", + "max_rss_kib=%M elapsed_s=%e user_s=%U sys_s=%S", + "nice", + "-n", + "19", + "build/sc1-clean/measure" + ], + "exit": 0, + "stdout": "RAW paired samples: baseline_ns then checked_ns, 63 pairs in execution order\n3584\n94049\n2464\n89425\n2432\n89841\n2464\n88721\n2432\n89985\n2432\n90240\n2449\n90016\n2432\n89441\n2464\n102849\n2464\n89057\n2448\n88865\n2496\n87809\n2448\n88353\n2496\n89233\n2432\n88369\n2432\n88737\n2432\n89073\n2432\n88465\n2432\n88272\n2432\n92433\n2448\n88497\n2416\n88561\n2416\n89057\n2448\n88433\n2432\n87537\n2448\n88481\n2432\n88193\n2448\n89601\n2432\n88401\n2448\n87648\n9649\n88944\n2432\n88833\n2448\n88641\n2480\n89057\n2448\n89185\n2432\n88337\n2480\n88065\n2480\n88689\n2416\n88401\n2448\n88769\n2448\n90800\n2432\n88705\n2432\n88721\n2464\n87985\n2448\n88065\n2448\n88145\n2432\n88577\n2448\n88785\n2432\n88561\n2512\n88929\n2480\n88209\n2464\n91297\n2448\n88640\n2448\n88593\n2448\n88497\n2432\n87729\n2448\n88193\n2448\n88353\n2432\n88593\n2448\n88113\n2432\n87825\n2448\n88353\n2448\n106593\nMEASURE helper cycles=100 samples=63 baseline_ns p50/p95/p99 then checked_ns p50/p95/p99\n2448\n2496\n9649\n88640\n92433\n106593\n", + "stderr": "max_rss_kib=1480 elapsed_s=0.00 user_s=0.00 sys_s=0.00\n", + "binary_sha256": "34bd18944533b8fa6055890db9bd2dd493de4aaf7c5f995061e743f4a0787e4e" + }, + "edge_comparison": { + "complete_relation_bytes": 1296, + "sha256": "19e4706d53b940f5f99d9337a0277e00844a9355d96d60ea4c19af8288e8de03", + "comparison": "Exact same complete matrix as independent tuple BFS recorded in r3-edges.json; separately reviewed. Not reserve.om correspondence." + }, + "limits": [ + "Pure helper only; trusted single writer/nonaliasing inputs", + "No actual store/scheduler integration, durable reservation/fuel, actual concurrent writer or power-loss result", + "Finite oracle model distinct from helper; no formal proof", + "Host measurements uncontrolled background load; no timing secrecy claim", + "p99 of63 samples is maximum, not confidence bound" + ] +} diff --git a/seed/qualification/security673/resources/demo.om b/seed/qualification/security673/resources/demo.om new file mode 100644 index 000000000..76bd89667 --- /dev/null +++ b/seed/qualification/security673/resources/demo.om @@ -0,0 +1,75 @@ +text r1 "R1 capacity6 requests4\n" +text binding "R2 binding slot/id/request/owner/grant/object/version/epoch\n" +text life "R2 reserve uncertain commit reclaim replay fuel\n" +text atom "R2 all-or-nothing eight stocks\n" +text over "R2 u64 extrema and id exhaustion\n" +text rec "R4 durable60 ledger40 refuses60\n" +text env "E1-E6 paired_admission events release restart\n" +text ok "PASS " +text bad "FAIL " +fn say result bool which ulong to void +if result +n = write 1 ok 0 len ok +else +n = write 1 bad 0 len bad +end +if eq which 1 +n = write 1 r1 0 len r1 +end +if eq which 2 +n = write 1 binding 0 len binding +end +if eq which 3 +n = write 1 life 0 len life +end +if eq which 4 +n = write 1 atom 0 len atom +end +if eq which 5 +n = write 1 over 0 len over +end +if eq which 6 +n = write 1 rec 0 len rec +end +if eq which 7 +n = write 1 env 0 len env +end +end +fn main to int +r = test_r1 +say r 1 +if not r +ret 1 +end +r = and test_binding test_replay +say r 2 +if not r +ret 2 +end +r = and test_lifecycle test_attrib +say r 3 +if not r +ret 3 +end +r = test_atomic +say r 4 +if not r +ret 4 +end +r = test_extrema +say r 5 +if not r +ret 5 +end +r = test_recovery +say r 6 +if not r +ret 6 +end +r = and protected_pair and baseline_leaks test_envelope +say r 7 +if not r +ret 7 +end +ret 0 +end diff --git a/seed/qualification/security673/resources/exhaust.om b/seed/qualification/security673/resources/exhaust.om new file mode 100644 index 000000000..2b4190eb0 --- /dev/null +++ b/seed/qualification/security673/resources/exhaust.om @@ -0,0 +1,98 @@ +note Finite differential stock test: 7 capacities x8 first q x8 second q =448. +note All eight dimensions equal in this enumeration; heterogeneous rollback is in demo. +text pass "PASS conservation finite differential 448 cases; conservative restart/fuel\n" +text fail "FAIL conservation_or_retention\n" +fn onecase cap ulong first ulong second ulong to bool +s = new ulong 64 0 +t = new ulong 8 0 +q = new ulong 8 first +old = new ulong 64 0 +if ne setup s cap 0 +ret false +end +token t 0 1 1 +copy64 old s +r = rv_reserve s t q 1 +if le first cap +if ne r 0 +ret false +end +else +if or ne r 3 not same s old +ret false +end +end +left = cap +if eq r 0 +left = sub left first +end +token t 1 get s 56 1 +for d ulong 8 +put q d second +end +copy64 old s +r = rv_reserve s t q 1 +if le second left +if ne r 0 +ret false +end +else +if or ne r 3 not same s old +ret false +end +end +ret eq rv_valid s 0 +end +fn retained to bool +s = new ulong 64 0 +t = new ulong 8 0 +q = new ulong 8 4 +z = new ulong 8 0 +old = new ulong 64 0 +if ne setup s 6 0 +ret false +end +token t 0 1 1 +if ne rv_reserve s t q 100 0 +ret false +end +if ne rv_uncertain s t 4 +ret false +end +copy64 old s +if ne rv_recover s z 0 +ret false +end +if not same s old +ret false +end +token t 1 2 1 +for d ulong 8 +put q d 1 +end +if ne rv_reserve s t q 1 3 +ret false +end +if not same s old +ret false +end +ret eq rv_valid s 0 +end +fn main to int +for cap ulong 7 +for first ulong 8 +for second ulong 8 +if not onecase cap first second +n = write 1 fail 0 len fail +ret 1 +end +end +end +end +if not retained +n = write 1 fail 0 len fail +ret 2 +end +n = write 1 pass 0 len pass +ret 0 +end diff --git a/seed/qualification/security673/resources/fixtures.txt b/seed/qualification/security673/resources/fixtures.txt new file mode 100644 index 000000000..8ba725801 --- /dev/null +++ b/seed/qualification/security673/resources/fixtures.txt @@ -0,0 +1,15 @@ +SC1 revision2 resource expectations, contract ced61decef1ff4efbf5bc81598db648aa810be434e373e9bc1563dbcb4523496. Original draft receipt remains historical and does not qualify revision2. +Plan: 1 implement pure serial transitions and envelope; 2 independent R3 oracle and helper-driven fixtures/negative controls; 3 pinned native runs and helper measurement; 4 document exact owner integration blockers. +R1 B=6, two q=4: first accepts, second refuses unchanged. +R2 eight-dimensional atomic reserve/commit/reclaim, c<=q, wrong token, duplicate request, stale id, unknown/cancel retention, spent fuel no refund, exhausted id, overflow and last-dimension failure leave all words unchanged. +R3 independent finite oracle: capacity3, u/r1/r2, q1/2, c0..q, release1, whole-service effectfree crash including selfloop. Reachable states18, distinct edges78. Per-client crash is not this model. +R4 capacity100, ledger40, actual retained committed60: recovered used60, new60 refuses. +E1 mutable baseline capacity2 admits secret occupancy1/2, then public request1 differently. Presecret full envelope2 denies public1 equally after the two secret occupancy runs. +E2 exact-source completion-only refund mutant, compiled with actual checks.om/demo.om, normal named paired-observation failure7. +E3 exact-source cancel-only refund mutant, same checker and named normal failure7. +E4 exact-source error-only refund mutant, same checker and named normal failure7. +E5 exact-source supervisor-work-only refund mutant, same checker and named normal failure7. +E6 release requires public boundary AND authoritative quiescence; unknown retains. Snapshot-copy/restart retains owner, id, boundary and charge. Actual scheduler/store correspondence BLOCKED. +R2 boundary additions: exact binding status2, id /tmp/sc1-demo" + }, + "negative": { + "sources": { + "seed/authority/reserve.om": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "seed/authority/envelope.om": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "seed/qualification/security673/resources/checks.om": "731ac1cb8c244ede5199e7d35a3e49a929e15311a577f490f96be0e5b090b486", + "seed/qualification/security673/resources/negative.om": "49996414322c88b52bba7387c331f6cbf6b3306b56701f46fb35f7ed9576a72c" + }, + "concatenated_source_sha256": "5429fb002ecf93da919c15de6b423e4e00eca8af0dfd672a421d061d36a6044d", + "executable_sha256": "8c2f257729f533589d21587dabb365e3c055bf107f89ce3983c076f4c1c22523", + "executable_bytes": 18060, + "compiler_exit": 0, + "compiler_stderr": "", + "command": "cat seed/authority/reserve.om seed/authority/envelope.om seed/qualification/security673/resources/checks.om seed/qualification/security673/resources/negative.om | nice -n 19 seed/out/omc > /tmp/sc1-negative" + }, + "measure": { + "sources": { + "seed/authority/reserve.om": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "seed/authority/envelope.om": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "seed/qualification/security673/resources/checks.om": "731ac1cb8c244ede5199e7d35a3e49a929e15311a577f490f96be0e5b090b486", + "seed/qualification/security673/resources/measure.om": "056348b587dec4ff4e82f4ff5563c28b16fbe0dddef13f69af0e29477bffeed8" + }, + "concatenated_source_sha256": "d91a92d2030f0a5d6723a82ea9915adbbf6be01f602e4046619e44c4a290e378", + "executable_sha256": "f7d1b186f7800513b5ca218314a366d8abe61846227504eab119cc8d78cc0f46", + "executable_bytes": 18984, + "compiler_exit": 0, + "compiler_stderr": "", + "command": "cat seed/authority/reserve.om seed/authority/envelope.om seed/qualification/security673/resources/checks.om seed/qualification/security673/resources/measure.om | nice -n 19 seed/out/omc > /tmp/sc1-measure" + }, + "oracle": { + "sources": { + "seed/qualification/security673/resources/oracle.om": "3cdc7b965c0d32d9475c27bbc5bc75dc479d93b41d82e3401b077cbcf85e1af9" + }, + "concatenated_source_sha256": "3cdc7b965c0d32d9475c27bbc5bc75dc479d93b41d82e3401b077cbcf85e1af9", + "executable_sha256": "fa5031f7e4cfaf9cc237b6cb8d063cdee0b0d76df603d11204f713305706b1b8", + "executable_bytes": 1576, + "compiler_exit": 0, + "compiler_stderr": "", + "command": "cat seed/qualification/security673/resources/oracle.om | nice -n 19 seed/out/omc > /tmp/sc1-oracle" + }, + "exhaust": { + "sources": { + "seed/authority/reserve.om": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "seed/authority/envelope.om": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "seed/qualification/security673/resources/checks.om": "731ac1cb8c244ede5199e7d35a3e49a929e15311a577f490f96be0e5b090b486", + "seed/qualification/security673/resources/exhaust.om": "1929828a17a813b3bf54afe72f3187e3b512f9be1815bbbf6c7e679fc4323e46" + }, + "concatenated_source_sha256": "4412cbceb670e29b625094086c624383da03a7ea3871c1109c4c6b089bba21ec", + "executable_sha256": "d737baf21438d928dc1b83a6b64e00eb3ee967944be74744b9f29c78c8583278", + "executable_bytes": 18836, + "compiler_exit": 0, + "compiler_stderr": "", + "command": "cat seed/authority/reserve.om seed/authority/envelope.om seed/qualification/security673/resources/checks.om seed/qualification/security673/resources/exhaust.om | nice -n 19 seed/out/omc > /tmp/sc1-exhaust" + } + }, + "runs": [ + { + "name": "demo", + "args": [], + "command": "nice -n 19 /tmp/sc1-demo", + "exit": 0, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nPASS E1-E5 baseline leak protected events release restart\n", + "stderr": "", + "expected_exit": 0 + }, + { + "name": "oracle", + "args": [], + "command": "nice -n 19 /tmp/sc1-oracle", + "exit": 0, + "stdout": "PASS R3 states=18 edges=78 whole-service-effectfree-crash\n", + "stderr": "", + "expected_exit": 0 + }, + { + "name": "negative", + "args": [ + "1" + ], + "command": "nice -n 19 /tmp/sc1-negative 1", + "exit": 21, + "stdout": "FAIL expected assertion: paired_public_observation\n", + "stderr": "", + "expected_exit": 21 + }, + { + "name": "negative", + "args": [ + "2" + ], + "command": "nice -n 19 /tmp/sc1-negative 2", + "exit": 22, + "stdout": "FAIL expected assertion: paired_public_observation\n", + "stderr": "", + "expected_exit": 22 + }, + { + "name": "negative", + "args": [ + "3" + ], + "command": "nice -n 19 /tmp/sc1-negative 3", + "exit": 23, + "stdout": "FAIL expected assertion: paired_public_observation\n", + "stderr": "", + "expected_exit": 23 + }, + { + "name": "negative", + "args": [ + "4" + ], + "command": "nice -n 19 /tmp/sc1-negative 4", + "exit": 24, + "stdout": "FAIL expected assertion: paired_public_observation\n", + "stderr": "", + "expected_exit": 24 + }, + { + "name": "negative", + "args": [ + "5" + ], + "command": "nice -n 19 /tmp/sc1-negative 5", + "exit": 25, + "stdout": "FAIL expected assertion: all_or_nothing_vector\n", + "stderr": "", + "expected_exit": 25 + }, + { + "name": "measure", + "args": [], + "command": "nice -n 19 /tmp/sc1-measure", + "exit": 0, + "stdout": "MEASURE helper cycles=100 samples=63 baseline_ns p50/p95/p99 then checked_ns p50/p95/p99\n2512\n2576\n4256\n89713\n95825\n102498\n", + "stderr": "", + "expected_exit": 0 + }, + { + "name": "exhaust", + "args": [], + "command": "nice -n 19 /tmp/sc1-exhaust", + "exit": 0, + "stdout": "PASS conservation finite differential 448 cases; conservative restart/fuel\n", + "stderr": "", + "expected_exit": 0 + } + ], + "claims": { + "formal_proof": "NOT_RUN", + "finite_R3": "18 states / 78 distinct edges, independent model only", + "differential": "448 bounded cases plus named transition fixtures", + "native": "PASS", + "service_concurrency": "BLOCKED", + "durable_snapshot_integration": "BLOCKED", + "scheduler_integration": "BLOCKED", + "process_crashes": "NOT_RUN", + "power_loss": "NOT_RUN" + }, + "resource_measurement": { + "command": "/usr/bin/time -v nice -n 19 /tmp/sc1-measure", + "exit": 0, + "stdout": "MEASURE helper cycles=100 samples=63 baseline_ns p50/p95/p99 then checked_ns p50/p95/p99\n2512\n2576\n3392\n89169\n92145\n130050\n", + "stderr": "\tCommand being timed: \"nice -n 19 /seed/qualification/security673/resources/native-20261025/measure\"\n\tUser time (seconds): 0.00\n\tSystem time (seconds): 0.00\n\tPercent of CPU this job got: 100%\n\tElapsed (wall clock) time (h:mm:ss or m:ss): 0:00.00\n\tAverage shared text size (kbytes): 0\n\tAverage unshared data size (kbytes): 0\n\tAverage stack size (kbytes): 0\n\tAverage total size (kbytes): 0\n\tMaximum resident set size (kbytes): 1480\n\tAverage resident set size (kbytes): 0\n\tMajor (requiring I/O) page faults: 0\n\tMinor (reclaiming a frame) page faults: 80\n\tVoluntary context switches: 0\n\tInvoluntary context switches: 1\n\tSwaps: 0\n\tFile system inputs: 0\n\tFile system outputs: 0\n\tSocket messages sent: 0\n\tSocket messages received: 0\n\tSignals delivered: 0\n\tPage size (bytes): 4096\n\tExit status: 0\n", + "command_path_redacted": true, + "scope": "whole measured invocation; helper cycles not service throughput" + }, + "fixtures_sha256": "def36aa5087c57ecb6bb78ade37d126f7b6fc01cdd420bdfee651d00c74d4117", + "measurement_summary": { + "samples": 63, + "cycles_per_sample": 100, + "baseline_ns_p50_p95_p99": [ + 2512, + 2576, + 4256 + ], + "checked_ns_p50_p95_p99": [ + 89713, + 95825, + 102498 + ], + "checked_per_cycle_ns_p50": 897.13, + "checked_to_unchecked_p50_ratio": 35.71377388535032, + "maximum_rss_kib_resource_repeat": 1480, + "meaning": "overhead against unsafe unchecked matched vector mutation; retain no-win result" + } +} diff --git a/seed/qualification/security673/resources/native-review-rev2/receipt.b80c39bed82d28b30701d155238fce93eee896b02c0f34301aa6c3190d168f55.json b/seed/qualification/security673/resources/native-review-rev2/receipt.b80c39bed82d28b30701d155238fce93eee896b02c0f34301aa6c3190d168f55.json new file mode 100644 index 000000000..6d7397927 --- /dev/null +++ b/seed/qualification/security673/resources/native-review-rev2/receipt.b80c39bed82d28b30701d155238fce93eee896b02c0f34301aa6c3190d168f55.json @@ -0,0 +1,1057 @@ +{ + "schema": "security673-resources-review-repair-v2", + "source_commit": "7a17375ceec875571f409d8e64193ef92fef5bf2", + "contract_sha256": "ced61decef1ff4efbf5bc81598db648aa810be434e373e9bc1563dbcb4523496", + "historical_receipt": "receipt.946b6219f9e203ce78c643781906a5fbe7f20b022e73f6fe3599a8a7ae5dcd1b.json", + "historical_scope": "Draft contract only; controls did not qualify same-checker rev2 obligations. Not retroactively relabeled.", + "target": { + "machine": "aarch64", + "sysname": "Linux", + "release": "7.0.0-1019-nvidia", + "abi": "Linux AArch64 ELF64 native" + }, + "compiler": { + "source_sha256": "2e35db7d6c2066fb4a20d19b8a9579c44caca9c9937b0594a89422010b673637", + "executable_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61", + "argv": [ + "nice", + "-n", + "19", + "seed/out/omc" + ], + "cwd": "repository worktree at source_commit; only explicitly hashed source files used", + "stdin": "concatenated sources in listed order", + "stdout": "ELF bytes saved as the named executable under execution cwd" + }, + "fixture_sha256": "72409ad8eb02191c91db1c6b2a5aade5f68dd8911e2752364c0ab8ee4e39430c", + "builds": { + "demo": { + "source_paths": [ + "seed/authority/reserve.om", + "seed/authority/envelope.om", + "seed/qualification/security673/resources/checks.om", + "seed/qualification/security673/resources/demo.om" + ], + "sources_sha256": { + "seed/authority/reserve.om": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "seed/authority/envelope.om": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "seed/qualification/security673/resources/checks.om": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "seed/qualification/security673/resources/demo.om": "b5cd163926815c4abf2b7a4548e59da309ec35e7ddd9cf8ad53aebeff59713c3" + }, + "stdin_sha256": "027ab88439289d30701f5fbf89e0e07a06f3c9c19816a11df620841d736bdac7", + "argv": [ + "nice", + "-n", + "19", + "seed/out/omc" + ], + "exit": 0, + "stderr": "", + "executable_sha256": "588ad6e76ee79b9517c361bbf1b8302c32cc1ece518c231ab69e755cadd7c0be", + "executable_bytes": 22136, + "output_file": "/tmp/sc1-resources-rev2/demo" + }, + "exhaust": { + "source_paths": [ + "seed/authority/reserve.om", + "seed/authority/envelope.om", + "seed/qualification/security673/resources/checks.om", + "seed/qualification/security673/resources/exhaust.om" + ], + "sources_sha256": { + "seed/authority/reserve.om": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "seed/authority/envelope.om": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "seed/qualification/security673/resources/checks.om": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "seed/qualification/security673/resources/exhaust.om": "1929828a17a813b3bf54afe72f3187e3b512f9be1815bbbf6c7e679fc4323e46" + }, + "stdin_sha256": "b6405e2032823698e4268c9859054834c7d79db72babe96d942ee079586ee488", + "argv": [ + "nice", + "-n", + "19", + "seed/out/omc" + ], + "exit": 0, + "stderr": "", + "executable_sha256": "dc7904bb2fae0f344a09d57e599961fe4b197eff7c12b774000e96f73ac662a8", + "executable_bytes": 23192, + "output_file": "/tmp/sc1-resources-rev2/exhaust" + }, + "measure": { + "source_paths": [ + "seed/authority/reserve.om", + "seed/authority/envelope.om", + "seed/qualification/security673/resources/checks.om", + "seed/qualification/security673/resources/measure.om" + ], + "sources_sha256": { + "seed/authority/reserve.om": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "seed/authority/envelope.om": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "seed/qualification/security673/resources/checks.om": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "seed/qualification/security673/resources/measure.om": "429cf7c089b60bd05d2fed38092d8c05f2561dce587bbbcb95a21efbbb998e69" + }, + "stdin_sha256": "5eb8fbf042b6497a3b4f3c7d2999cf165cacf85474823a395a8871282fc74f87", + "argv": [ + "nice", + "-n", + "19", + "seed/out/omc" + ], + "exit": 0, + "stderr": "", + "executable_sha256": "34bd18944533b8fa6055890db9bd2dd493de4aaf7c5f995061e743f4a0787e4e", + "executable_bytes": 23812, + "output_file": "/tmp/sc1-resources-rev2/measure" + }, + "negative": { + "source_paths": [ + "seed/qualification/security673/resources/negative.om" + ], + "sources_sha256": { + "seed/qualification/security673/resources/negative.om": "39364ac59ed1bcbe77665c072d811d142d789ec12cc506f43e40ef8838bba1ec" + }, + "stdin_sha256": "39364ac59ed1bcbe77665c072d811d142d789ec12cc506f43e40ef8838bba1ec", + "argv": [ + "nice", + "-n", + "19", + "seed/out/omc" + ], + "exit": 0, + "stderr": "", + "executable_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "executable_bytes": 2888, + "output_file": "/tmp/sc1-resources-rev2/negative" + } + }, + "runs": [ + { + "argv": [ + "nice", + "-n", + "19", + "./demo" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "588ad6e76ee79b9517c361bbf1b8302c32cc1ece518c231ab69e755cadd7c0be", + "exit": 0, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nPASS E1-E6 paired_admission events release restart\n", + "stderr": "", + "name": "demo", + "expected_exit": 0 + }, + { + "argv": [ + "nice", + "-n", + "19", + "./exhaust" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "dc7904bb2fae0f344a09d57e599961fe4b197eff7c12b774000e96f73ac662a8", + "exit": 0, + "stdout": "PASS conservation finite differential 448 cases; conservative restart/fuel\n", + "stderr": "", + "name": "exhaust", + "expected_exit": 0 + }, + { + "argv": [ + "nice", + "-n", + "19", + "./measure" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "34bd18944533b8fa6055890db9bd2dd493de4aaf7c5f995061e743f4a0787e4e", + "exit": 0, + "stdout": "RAW paired samples: baseline_ns then checked_ns, 63 pairs in execution order\n2144\n58625\n1152\n54208\n1152\n54257\n1136\n58240\n1152\n54129\n1152\n54144\n1136\n54545\n1152\n54272\n1136\n54353\n1152\n54448\n1152\n54225\n1136\n54320\n1152\n53937\n1152\n53888\n1136\n54273\n1120\n54400\n1152\n54385\n1136\n54448\n1152\n54257\n1152\n54064\n1136\n54353\n1152\n57008\n1136\n54145\n1152\n54384\n1136\n54017\n1152\n54304\n1136\n54193\n1136\n54352\n1152\n54225\n1136\n54320\n1136\n54113\n1136\n54192\n1136\n54017\n1152\n54224\n1168\n54177\n1136\n54176\n1136\n54033\n1136\n54160\n1104\n57553\n1136\n54192\n1152\n54177\n1152\n54496\n1152\n54401\n1136\n53984\n1136\n54193\n1152\n54320\n1136\n54273\n1136\n54320\n1136\n54145\n1136\n54144\n1136\n54417\n1152\n54384\n1168\n53905\n1152\n54048\n1152\n54193\n1152\n54144\n1136\n58401\n1136\n54000\n1136\n54385\n1136\n54192\n1136\n54321\n1152\n54032\n1136\n54129\nMEASURE helper cycles=100 samples=63 baseline_ns p50/p95/p99 then checked_ns p50/p95/p99\n1136\n1152\n2144\n54225\n57553\n58625\n", + "stderr": "", + "name": "measure", + "expected_exit": 0, + "measurement": { + "units": "nanoseconds per100 cycles", + "raw_pairs_baseline_then_checked": [ + [ + 2144, + 58625 + ], + [ + 1152, + 54208 + ], + [ + 1152, + 54257 + ], + [ + 1136, + 58240 + ], + [ + 1152, + 54129 + ], + [ + 1152, + 54144 + ], + [ + 1136, + 54545 + ], + [ + 1152, + 54272 + ], + [ + 1136, + 54353 + ], + [ + 1152, + 54448 + ], + [ + 1152, + 54225 + ], + [ + 1136, + 54320 + ], + [ + 1152, + 53937 + ], + [ + 1152, + 53888 + ], + [ + 1136, + 54273 + ], + [ + 1120, + 54400 + ], + [ + 1152, + 54385 + ], + [ + 1136, + 54448 + ], + [ + 1152, + 54257 + ], + [ + 1152, + 54064 + ], + [ + 1136, + 54353 + ], + [ + 1152, + 57008 + ], + [ + 1136, + 54145 + ], + [ + 1152, + 54384 + ], + [ + 1136, + 54017 + ], + [ + 1152, + 54304 + ], + [ + 1136, + 54193 + ], + [ + 1136, + 54352 + ], + [ + 1152, + 54225 + ], + [ + 1136, + 54320 + ], + [ + 1136, + 54113 + ], + [ + 1136, + 54192 + ], + [ + 1136, + 54017 + ], + [ + 1152, + 54224 + ], + [ + 1168, + 54177 + ], + [ + 1136, + 54176 + ], + [ + 1136, + 54033 + ], + [ + 1136, + 54160 + ], + [ + 1104, + 57553 + ], + [ + 1136, + 54192 + ], + [ + 1152, + 54177 + ], + [ + 1152, + 54496 + ], + [ + 1152, + 54401 + ], + [ + 1136, + 53984 + ], + [ + 1136, + 54193 + ], + [ + 1152, + 54320 + ], + [ + 1136, + 54273 + ], + [ + 1136, + 54320 + ], + [ + 1136, + 54145 + ], + [ + 1136, + 54144 + ], + [ + 1136, + 54417 + ], + [ + 1152, + 54384 + ], + [ + 1168, + 53905 + ], + [ + 1152, + 54048 + ], + [ + 1152, + 54193 + ], + [ + 1152, + 54144 + ], + [ + 1136, + 58401 + ], + [ + 1136, + 54000 + ], + [ + 1136, + 54385 + ], + [ + 1136, + 54192 + ], + [ + 1136, + 54321 + ], + [ + 1152, + 54032 + ], + [ + 1136, + 54129 + ] + ], + "quantiles_ns": { + "baseline": [ + 1136, + 1152, + 2144 + ], + "checked": [ + 54225, + 57553, + 58625 + ] + }, + "rank_indices_zero_based": [ + 31, + 59, + 62 + ], + "p99_is_sample_maximum": true + } + } + ], + "source_mutants": [ + { + "mode": 1, + "fixture": "E2", + "event": "completion", + "original_module": "seed/authority/envelope.om", + "original_module_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator": { + "argv": [ + "nice", + "-n", + "19", + "./negative", + "1" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "exit": 0, + "stdout": "note SC1-E pure public partition helper, not a scheduler or secrecy proof.\nnote Record8: format,owner,reservation-id,public-boundary,active,capacity,partition,zero.\nnote Open once before any secret work. Owner/id refer to existing writer reservation.\nnote Fixed public partition must cover descendants, cleanup and supervisor work too.\nnote Failure leaves record unchanged. State and boundary are trusted writer inputs.\nnote Copies do not mint authority: only the single serialized owner may mutate live state.\nfn ep_valid e view ulong 8 to ulong\nif ne get e 0 1\nret 1\nend\nif or eq get e 1 0 or eq get e 2 0 eq get e 3 0\nret 1\nend\nif or gt get e 4 1 ne get e 7 0\nret 1\nend\nif or eq get e 6 0 gt get e 6 get e 5\nret 1\nend\nret 0\nend\nfn ep_open e edit ulong 8 owner ulong id ulong boundary ulong cap ulong part ulong to ulong\nfor i ulong 8\nif ne get e i 0\nret 1\nend\nend\nif or eq owner 0 or eq id 0 eq boundary 0\nret 1\nend\nif or eq part 0 gt part cap\nret 1\nend\nput e 0 1\nput e 1 owner\nput e 2 id\nput e 3 boundary\nput e 4 1\nput e 5 cap\nput e 6 part\nret 0\nend\nfn ep_available e view ulong 8 to ulong\nif ne ep_valid e 0\nret 0\nend\nif eq get e 4 0\nret get e 5\nend\nret sub get e 5 get e 6\nend\nnote event1 completion,2 cancellation,3 error,4 supervisor-work. None refunds.\nfn ep_event e edit ulong 8 event ulong to ulong\nif ne ep_valid e 0\nret 1\nend\nif or lt event 1 gt event 4\nret 1\nend\nif eq event 1\nput e 4 0\nend\nret 0\nend\nnote Unknown quiescence returns4 and retains. Do not certify secret-dependent release delay.\nnote Boundary is a public schedule identity, not a secret-selected completion timestamp.\nfn ep_release e edit ulong 8 boundary ulong quiet bool to ulong\nif ne ep_valid e 0\nret 1\nend\nif ne boundary get e 3\nret 2\nend\nif not quiet\nret 4\nend\nput e 4 0\nret 0\nend\n", + "stderr": "" + }, + "mutator_stdin_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator_stdout_module_sha256": "5abde8f52f6a7678b9ccf11a9d05d602f1bb8040f66b0c5e2f1f654a693792b8", + "mutator_stdout_module_bytes": 1766, + "mutator_stdout_semantics": "Exact emitted mutated Omega module bytes decoded as UTF-8, also bound by hash.", + "unchanged_checks_sha256": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "unchanged_demo_sha256": "b5cd163926815c4abf2b7a4548e59da309ec35e7ddd9cf8ad53aebeff59713c3", + "compile_argv": [ + "nice", + "-n", + "19", + "seed/out/omc" + ], + "compile_stdin_sha256": "afe077518644917faa5639706205d2537aaa87e4bde8c27986f87d03badebdc3", + "compile_exit": 0, + "compile_stderr": "", + "executable_sha256": "57c081d91a2ef25637d37bc8ba5ba42488370b27372c41e1352dfbb41ddc045d", + "execution": { + "argv": [ + "nice", + "-n", + "19", + "./mutant1" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "57c081d91a2ef25637d37bc8ba5ba42488370b27372c41e1352dfbb41ddc045d", + "exit": 7, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nFAIL E1-E6 paired_admission events release restart\n", + "stderr": "" + }, + "expected_exit": 7, + "expected_final_assertion": "FAIL E1-E6 paired_admission events release restart" + }, + { + "mode": 2, + "fixture": "E3", + "event": "cancel", + "original_module": "seed/authority/envelope.om", + "original_module_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator": { + "argv": [ + "nice", + "-n", + "19", + "./negative", + "2" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "exit": 0, + "stdout": "note SC1-E pure public partition helper, not a scheduler or secrecy proof.\nnote Record8: format,owner,reservation-id,public-boundary,active,capacity,partition,zero.\nnote Open once before any secret work. Owner/id refer to existing writer reservation.\nnote Fixed public partition must cover descendants, cleanup and supervisor work too.\nnote Failure leaves record unchanged. State and boundary are trusted writer inputs.\nnote Copies do not mint authority: only the single serialized owner may mutate live state.\nfn ep_valid e view ulong 8 to ulong\nif ne get e 0 1\nret 1\nend\nif or eq get e 1 0 or eq get e 2 0 eq get e 3 0\nret 1\nend\nif or gt get e 4 1 ne get e 7 0\nret 1\nend\nif or eq get e 6 0 gt get e 6 get e 5\nret 1\nend\nret 0\nend\nfn ep_open e edit ulong 8 owner ulong id ulong boundary ulong cap ulong part ulong to ulong\nfor i ulong 8\nif ne get e i 0\nret 1\nend\nend\nif or eq owner 0 or eq id 0 eq boundary 0\nret 1\nend\nif or eq part 0 gt part cap\nret 1\nend\nput e 0 1\nput e 1 owner\nput e 2 id\nput e 3 boundary\nput e 4 1\nput e 5 cap\nput e 6 part\nret 0\nend\nfn ep_available e view ulong 8 to ulong\nif ne ep_valid e 0\nret 0\nend\nif eq get e 4 0\nret get e 5\nend\nret sub get e 5 get e 6\nend\nnote event1 completion,2 cancellation,3 error,4 supervisor-work. None refunds.\nfn ep_event e edit ulong 8 event ulong to ulong\nif ne ep_valid e 0\nret 1\nend\nif or lt event 1 gt event 4\nret 1\nend\nif eq event 2\nput e 4 0\nend\nret 0\nend\nnote Unknown quiescence returns4 and retains. Do not certify secret-dependent release delay.\nnote Boundary is a public schedule identity, not a secret-selected completion timestamp.\nfn ep_release e edit ulong 8 boundary ulong quiet bool to ulong\nif ne ep_valid e 0\nret 1\nend\nif ne boundary get e 3\nret 2\nend\nif not quiet\nret 4\nend\nput e 4 0\nret 0\nend\n", + "stderr": "" + }, + "mutator_stdin_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator_stdout_module_sha256": "6a7ad4fe7c7e0b0e963a918051ed0bf4db33a72f4d953b939210d646338bc9cc", + "mutator_stdout_module_bytes": 1766, + "mutator_stdout_semantics": "Exact emitted mutated Omega module bytes decoded as UTF-8, also bound by hash.", + "unchanged_checks_sha256": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "unchanged_demo_sha256": "b5cd163926815c4abf2b7a4548e59da309ec35e7ddd9cf8ad53aebeff59713c3", + "compile_argv": [ + "nice", + "-n", + "19", + "seed/out/omc" + ], + "compile_stdin_sha256": "d676ac413724f84de3d357cf1b2632a10ffae861faa262f7e8909f7c9990c8bf", + "compile_exit": 0, + "compile_stderr": "", + "executable_sha256": "f94598c4203a0327c47af243f2e6fd35fa7d176454663c1e9823f8118116f613", + "execution": { + "argv": [ + "nice", + "-n", + "19", + "./mutant2" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "f94598c4203a0327c47af243f2e6fd35fa7d176454663c1e9823f8118116f613", + "exit": 7, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nFAIL E1-E6 paired_admission events release restart\n", + "stderr": "" + }, + "expected_exit": 7, + "expected_final_assertion": "FAIL E1-E6 paired_admission events release restart" + }, + { + "mode": 3, + "fixture": "E4", + "event": "error", + "original_module": "seed/authority/envelope.om", + "original_module_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator": { + "argv": [ + "nice", + "-n", + "19", + "./negative", + "3" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "exit": 0, + "stdout": "note SC1-E pure public partition helper, not a scheduler or secrecy proof.\nnote Record8: format,owner,reservation-id,public-boundary,active,capacity,partition,zero.\nnote Open once before any secret work. Owner/id refer to existing writer reservation.\nnote Fixed public partition must cover descendants, cleanup and supervisor work too.\nnote Failure leaves record unchanged. State and boundary are trusted writer inputs.\nnote Copies do not mint authority: only the single serialized owner may mutate live state.\nfn ep_valid e view ulong 8 to ulong\nif ne get e 0 1\nret 1\nend\nif or eq get e 1 0 or eq get e 2 0 eq get e 3 0\nret 1\nend\nif or gt get e 4 1 ne get e 7 0\nret 1\nend\nif or eq get e 6 0 gt get e 6 get e 5\nret 1\nend\nret 0\nend\nfn ep_open e edit ulong 8 owner ulong id ulong boundary ulong cap ulong part ulong to ulong\nfor i ulong 8\nif ne get e i 0\nret 1\nend\nend\nif or eq owner 0 or eq id 0 eq boundary 0\nret 1\nend\nif or eq part 0 gt part cap\nret 1\nend\nput e 0 1\nput e 1 owner\nput e 2 id\nput e 3 boundary\nput e 4 1\nput e 5 cap\nput e 6 part\nret 0\nend\nfn ep_available e view ulong 8 to ulong\nif ne ep_valid e 0\nret 0\nend\nif eq get e 4 0\nret get e 5\nend\nret sub get e 5 get e 6\nend\nnote event1 completion,2 cancellation,3 error,4 supervisor-work. None refunds.\nfn ep_event e edit ulong 8 event ulong to ulong\nif ne ep_valid e 0\nret 1\nend\nif or lt event 1 gt event 4\nret 1\nend\nif eq event 3\nput e 4 0\nend\nret 0\nend\nnote Unknown quiescence returns4 and retains. Do not certify secret-dependent release delay.\nnote Boundary is a public schedule identity, not a secret-selected completion timestamp.\nfn ep_release e edit ulong 8 boundary ulong quiet bool to ulong\nif ne ep_valid e 0\nret 1\nend\nif ne boundary get e 3\nret 2\nend\nif not quiet\nret 4\nend\nput e 4 0\nret 0\nend\n", + "stderr": "" + }, + "mutator_stdin_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator_stdout_module_sha256": "8f9946fa9d1e6e1c438e7b198eb84f03d13b88818270132dd34f7c4f4199dfa1", + "mutator_stdout_module_bytes": 1766, + "mutator_stdout_semantics": "Exact emitted mutated Omega module bytes decoded as UTF-8, also bound by hash.", + "unchanged_checks_sha256": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "unchanged_demo_sha256": "b5cd163926815c4abf2b7a4548e59da309ec35e7ddd9cf8ad53aebeff59713c3", + "compile_argv": [ + "nice", + "-n", + "19", + "seed/out/omc" + ], + "compile_stdin_sha256": "b76d855aeebc9af396cb998ea25e877bf4db0bb2518a2ae6c942169217b11a2f", + "compile_exit": 0, + "compile_stderr": "", + "executable_sha256": "e148a69740cc880ec3ae61f9460506e47bdfc4eaf70085a6b547e1904c6675f6", + "execution": { + "argv": [ + "nice", + "-n", + "19", + "./mutant3" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "e148a69740cc880ec3ae61f9460506e47bdfc4eaf70085a6b547e1904c6675f6", + "exit": 7, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nFAIL E1-E6 paired_admission events release restart\n", + "stderr": "" + }, + "expected_exit": 7, + "expected_final_assertion": "FAIL E1-E6 paired_admission events release restart" + }, + { + "mode": 4, + "fixture": "E5", + "event": "supervisor-work", + "original_module": "seed/authority/envelope.om", + "original_module_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator": { + "argv": [ + "nice", + "-n", + "19", + "./negative", + "4" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "exit": 0, + "stdout": "note SC1-E pure public partition helper, not a scheduler or secrecy proof.\nnote Record8: format,owner,reservation-id,public-boundary,active,capacity,partition,zero.\nnote Open once before any secret work. Owner/id refer to existing writer reservation.\nnote Fixed public partition must cover descendants, cleanup and supervisor work too.\nnote Failure leaves record unchanged. State and boundary are trusted writer inputs.\nnote Copies do not mint authority: only the single serialized owner may mutate live state.\nfn ep_valid e view ulong 8 to ulong\nif ne get e 0 1\nret 1\nend\nif or eq get e 1 0 or eq get e 2 0 eq get e 3 0\nret 1\nend\nif or gt get e 4 1 ne get e 7 0\nret 1\nend\nif or eq get e 6 0 gt get e 6 get e 5\nret 1\nend\nret 0\nend\nfn ep_open e edit ulong 8 owner ulong id ulong boundary ulong cap ulong part ulong to ulong\nfor i ulong 8\nif ne get e i 0\nret 1\nend\nend\nif or eq owner 0 or eq id 0 eq boundary 0\nret 1\nend\nif or eq part 0 gt part cap\nret 1\nend\nput e 0 1\nput e 1 owner\nput e 2 id\nput e 3 boundary\nput e 4 1\nput e 5 cap\nput e 6 part\nret 0\nend\nfn ep_available e view ulong 8 to ulong\nif ne ep_valid e 0\nret 0\nend\nif eq get e 4 0\nret get e 5\nend\nret sub get e 5 get e 6\nend\nnote event1 completion,2 cancellation,3 error,4 supervisor-work. None refunds.\nfn ep_event e edit ulong 8 event ulong to ulong\nif ne ep_valid e 0\nret 1\nend\nif or lt event 1 gt event 4\nret 1\nend\nif eq event 4\nput e 4 0\nend\nret 0\nend\nnote Unknown quiescence returns4 and retains. Do not certify secret-dependent release delay.\nnote Boundary is a public schedule identity, not a secret-selected completion timestamp.\nfn ep_release e edit ulong 8 boundary ulong quiet bool to ulong\nif ne ep_valid e 0\nret 1\nend\nif ne boundary get e 3\nret 2\nend\nif not quiet\nret 4\nend\nput e 4 0\nret 0\nend\n", + "stderr": "" + }, + "mutator_stdin_sha256": "f557529582693bab99f84a84f999793f04509b35c92962fdc19c73fd63b3c00e", + "mutator_stdout_module_sha256": "2978e0fd6ad46dfbf85556185908fcc1c3da15aade740feac8640021d53db93d", + "mutator_stdout_module_bytes": 1766, + "mutator_stdout_semantics": "Exact emitted mutated Omega module bytes decoded as UTF-8, also bound by hash.", + "unchanged_checks_sha256": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "unchanged_demo_sha256": "b5cd163926815c4abf2b7a4548e59da309ec35e7ddd9cf8ad53aebeff59713c3", + "compile_argv": [ + "nice", + "-n", + "19", + "seed/out/omc" + ], + "compile_stdin_sha256": "c03480d3ef9911cd041f7eca4e1af43d8a1e55d7a97abf1c5560d2dd56ba5e47", + "compile_exit": 0, + "compile_stderr": "", + "executable_sha256": "338f7f98a8a910fec6c93d7cd3a6191b9a31c93fec05ec8a7b7464feeb3fb045", + "execution": { + "argv": [ + "nice", + "-n", + "19", + "./mutant4" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "338f7f98a8a910fec6c93d7cd3a6191b9a31c93fec05ec8a7b7464feeb3fb045", + "exit": 7, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nPASS R2 all-or-nothing eight stocks\nPASS R2 u64 extrema and id exhaustion\nPASS R4 durable60 ledger40 refuses60\nFAIL E1-E6 paired_admission events release restart\n", + "stderr": "" + }, + "expected_exit": 7, + "expected_final_assertion": "FAIL E1-E6 paired_admission events release restart" + }, + { + "mode": 5, + "fixture": "R2", + "event": "partial-vector", + "original_module": "seed/authority/reserve.om", + "original_module_sha256": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "mutator": { + "argv": [ + "nice", + "-n", + "19", + "./negative", + "5" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "exit": 0, + "stdout": "note SC1-R pure serial transitions. No authentication, locking, persistence or allocator.\nnote Fresh implementation; old AGPL action/delegate/reuse contracts read, not copied.\nnote State64: B[0:8], U[8:16], slot charges[16:32], slot metadata[32:56].\nnote Metadata12: id,phase,request,owner,grant,object,version,epoch, four zero words.\nnote Phase0 idle,1 reserved,2 uncertain,3 committed attributable used stock.\nnote Header56: next-id,spent-fuel,fuel-bound,request-highwater0/1,owner0/1,format1.\nnote Token8: slot,id,request,owner,grant,object,version,epoch. IDs/requests never wrap.\nnote Owners are fixed public partitions. Per-owner request sequence must strictly increase.\nnote Caller validates originals and trusted identities inside existing serialized writer.\nnote Zero return success; 1 invalid state/input,2 binding/replay,3 capacity,4 unknown.\nnote Arrays passed to one operation must not alias. Snapshot state is authoritative, not a client copy.\nnote Local subtraction guards implement SC1-Q boundary rule without struct provenance claims.\n\nfn rv_meta slot ulong to ulong\nret add 32 mul slot 12\nend\nfn rv_charge slot ulong to ulong\nret add 16 mul slot 8\nend\nfn rv_phase s view ulong 64 slot ulong to ulong\nret get s add rv_meta slot 1\nend\nfn rv_valid s view ulong 64 to ulong\nif ne get s 63 1\nret 1\nend\nif or eq get s 56 0 gt get s 57 get s 58\nret 1\nend\nif or eq get s 61 0 or eq get s 62 0 eq get s 61 get s 62\nret 1\nend\nfor j ulong 2\nm = rv_meta j\np = get s add m 1\nif gt p 3\nret 1\nend\nfor k ulong 4\nif ne get s add m add 8 k 0\nret 1\nend\nend\nif ne p 0\nif or eq get s m 0 ge get s m get s 56\nret 1\nend\nif ne get s add m 3 get s add 61 j\nret 1\nend\nif ne get s add m 2 get s add 59 j\nret 1\nend\nfor k ulong 6\nif eq get s add m add 2 k 0\nret 1\nend\nend\nelse\nfor k ulong 12\nif ne get s add m k 0\nret 1\nend\nend\nend\nend\nif and ne rv_phase s 0 0 ne rv_phase s 1 0\nif eq get s 32 get s 44\nret 1\nend\nend\nfor d ulong 8\nleft = get s d\nused = get s add 8 d\nif gt used left\nret 1\nend\nleft = sub left used\nfor j ulong 2\nq = get s add rv_charge j d\np = rv_phase s j\nif eq p 0\nif ne q 0\nret 1\nend\nend\nif or eq p 1 eq p 2\nif gt q left\nret 1\nend\nleft = sub left q\nend\nif eq p 3\nif gt q used\nret 1\nend\nused = sub used q\nend\nend\nend\nret 0\nend\nfn rv_init s edit ulong 64 b view ulong 8 owners view ulong 2 fuel ulong to ulong\nfor i ulong 64\nif ne get s i 0\nret 1\nend\nend\nif eq get owners 0 0\nret 1\nend\nif eq get owners 1 0\nret 1\nend\nif eq get owners 0 get owners 1\nret 1\nend\nfor i ulong 8\nput s i get b i\nend\nput s 56 1\nput s 58 fuel\nput s 61 get owners 0\nput s 62 get owners 1\nput s 63 1\nret 0\nend\nfn rv_bind s view ulong 64 t view ulong 8 to ulong\nif ne rv_valid s 0\nret 1\nend\nif gt get t 0 1\nret 2\nend\nm = rv_meta get t 0\nif eq get s add m 1 0\nret 2\nend\nif ne get s m get t 1\nret 2\nend\nfor i ulong 6\nif ne get s add m add 2 i get t add 2 i\nret 2\nend\nend\nret 0\nend\nfn rv_room s view ulong 64 d ulong to ulong\nleft = sub get s d get s add 8 d\nfor j ulong 2\np = rv_phase s j\nif or eq p 1 eq p 2\nleft = sub left get s add rv_charge j d\nend\nend\nret left\nend\nfn rv_reserve s edit ulong 64 t view ulong 8 q view ulong 8 fuel ulong to ulong\nif ne rv_valid s 0\nret 1\nend\nif gt get t 0 1\nret 2\nend\nj = get t 0\nif ne rv_phase s j 0\nret 2\nend\nif or ne get t 1 get s 56 eq get s 56 18446744073709551615\nret 2\nend\nif ne get t 3 get s add 61 j\nret 2\nend\nif le get t 2 get s add 59 j\nret 2\nend\nfor i ulong 6\nif eq get t add i 2 0\nret 2\nend\nend\nif gt fuel sub get s 58 get s 57\nret 3\nend\nfor d ulong 8\nif gt get q d rv_room s d\nret 3\nend\nput s add rv_charge j d get q d\nend\nnote Mutation begins only after all eight stocks and all bindings validate.\nfor d ulong 8\nput s add rv_charge j d get q d\nend\nm = rv_meta j\nput s m get t 1\nput s add m 1 1\nfor i ulong 6\nput s add m add 2 i get t add 2 i\nend\nput s add 59 j get t 2\nput s 56 add get s 56 1\nput s 57 add get s 57 fuel\nret 0\nend\nfn rv_uncertain s edit ulong 64 t view ulong 8 to ulong\nr = rv_bind s t\nif ne r 0\nret r\nend\nif eq rv_phase s get t 0 3\nret 4\nend\nput s add rv_meta get t 0 1 2\nret 4\nend\nfn rv_clear s edit ulong 64 slot ulong to void\nfor i ulong 8\nput s add rv_charge slot i 0\nend\nfor i ulong 12\nput s add rv_meta slot i 0\nend\nend\nnote quiet and public are authoritative adapter facts, never client flags.\nnote No completion/cancel/error calls this until actual effects and public release permit.\nfn rv_commit s edit ulong 64 t view ulong 8 actual view ulong 8 quiet bool public bool to ulong\nr = rv_bind s t\nif ne r 0\nret r\nend\nj = get t 0\nif eq rv_phase s j 3\nret 2\nend\nif not and quiet public\nret 4\nend\nfor d ulong 8\nif gt get actual d get s add rv_charge j d\nret 3\nend\nend\nfor d ulong 8\nput s add 8 d add get s add 8 d get actual d\nput s add rv_charge j d get actual d\nend\nput s add rv_meta j 1 3\nret 0\nend\nnote Internal apply helper requires rv_reclaim preflight; not an admission API.\nfn rv_reclaimed s edit ulong 64 gone view ulong 8 j ulong to void\nbits = ulong 0\nfor d ulong 8\nq = sub get s add rv_charge j d get gone d\nput s add rv_charge j d q\nput s add 8 d sub get s add 8 d get gone d\nbits = or bits q\nend\nif eq bits 0\nrv_clear s j\nend\nend\nnote Reclaim vector denotes stock actually reclaimed with required durability.\nnote Stock is attributable to this slot; cannot release somebody else's used charge.\nfn rv_reclaim s edit ulong 64 t view ulong 8 gone view ulong 8 durable bool public bool to ulong\nr = rv_bind s t\nif ne r 0\nret r\nend\nj = get t 0\nif ne rv_phase s j 3\nret 2\nend\nif not and durable public\nret 4\nend\nfor d ulong 8\nif gt get gone d get s add rv_charge j d\nret 3\nend\nend\nrv_reclaimed s gone j\nret 0\nend\nnote Recovery raises used to max(ledger,observed), never discounts missing evidence.\nnote Caller supplies authoritative complete retained+temporary physical stock census.\nnote Reservations stay charged; inconsistent capacity leaves snapshot untouched and refuses admission.\nfn rv_recover s edit ulong 64 actual view ulong 8 to ulong\nif ne rv_valid s 0\nret 1\nend\nfor d ulong 8\nold = get s add 8 d\nif gt get actual d old\nif gt sub get actual d old rv_room s d\nret 3\nend\nend\nend\nfor d ulong 8\nif gt get actual d get s add 8 d\nput s add 8 d get actual d\nend\nend\nret 0\nend\n", + "stderr": "" + }, + "mutator_stdin_sha256": "68c7073007ff9225bda89051f307fa1d844d79c2225869ffeec33b081343a308", + "mutator_stdout_module_sha256": "aabcdf49a786f0484d962cfc2c34ddaefd315c7781e8f083c6da29118c8baf21", + "mutator_stdout_module_bytes": 6137, + "mutator_stdout_semantics": "Exact emitted mutated Omega module bytes decoded as UTF-8, also bound by hash.", + "unchanged_checks_sha256": "cc0861fad965e6db9ca141f1255c16d677e898fa327fbfbf95732294430c0827", + "unchanged_demo_sha256": "b5cd163926815c4abf2b7a4548e59da309ec35e7ddd9cf8ad53aebeff59713c3", + "compile_argv": [ + "nice", + "-n", + "19", + "seed/out/omc" + ], + "compile_stdin_sha256": "bcff71256c33a167b26bcd2ff9c67c7aa9428d5962550cf0dc6fa403a4addcf8", + "compile_exit": 0, + "compile_stderr": "", + "executable_sha256": "ebb317d299429e7cf9c653fd505f6d3032cf9ff05f677d9efa3b3bd83eb62e8b", + "execution": { + "argv": [ + "nice", + "-n", + "19", + "./mutant5" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "ebb317d299429e7cf9c653fd505f6d3032cf9ff05f677d9efa3b3bd83eb62e8b", + "exit": 4, + "stdout": "PASS R1 capacity6 requests4\nPASS R2 binding slot/id/request/owner/grant/object/version/epoch\nPASS R2 reserve uncertain commit reclaim replay fuel\nFAIL R2 all-or-nothing eight stocks\n", + "stderr": "" + }, + "expected_exit": 4, + "expected_final_assertion": "FAIL R2 all-or-nothing eight stocks" + } + ], + "mutator_refusals": [ + { + "argv": [ + "nice", + "-n", + "19", + "./negative", + "1" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "exit": 4, + "stdout": "", + "stderr": "", + "case": "missing", + "stdin_sha256": "049532d3bf88d8abaede42dff6642b402008e141b7635cb1e1f8aca26a5e4ebf", + "expected_exit": 4, + "expected_stdout": "" + }, + { + "argv": [ + "nice", + "-n", + "19", + "./negative", + "1" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "7aad6bb205a05e6b22ad78b09518eb4d212b4307c572b718e872a89e1b08ee73", + "exit": 4, + "stdout": "", + "stderr": "", + "case": "duplicate", + "stdin_sha256": "e0545c08cd649de53bd7ccba98df8e9f165fb41cde111591e82b1d6f65ed90fe", + "expected_exit": 4, + "expected_stdout": "" + } + ], + "obligations": { + "R1": "VERIFIED pure capacity6/two4 fixture only", + "R2": "VERIFIED named native helper fixtures, 448 finite cases and same-checker partial-vector mutant; not a general proof", + "R3": "NOT_RECORDED_HERE; Main owns revised complete-edge corpus/replay; no reserve.om correspondence claim", + "R4": "VERIFIED pure ledger40/retained60/new60 fixture only", + "R5": "BLOCKED actual writer/concurrency/crash/standing temporary reserve integration", + "E1": "VERIFIED bounded mutable admission occupancy1/2/public1 pair only", + "E2": "VERIFIED completion-specific ep_event source mutant, same checks/demo exit7", + "E3": "VERIFIED cancellation-specific ep_event source mutant, same checks/demo exit7", + "E4": "VERIFIED error-specific ep_event source mutant, same checks/demo exit7", + "E5": "VERIFIED supervisor-specific ep_event source mutant, same checks/demo exit7", + "E6_helper": "VERIFIED pure public boundary/quiescence/recovered identity fixture", + "E6_scheduler": "BLOCKED actual scheduler/store correspondence", + "formal_proof": "NOT_RUN", + "process_crashes": "NOT_RUN", + "power_loss": "NOT_RUN" + }, + "resource_repeat": { + "argv": [ + "/usr/bin/time", + "-v", + "nice", + "-n", + "19", + "./measure" + ], + "cwd": "/tmp/sc1-resources-rev2", + "executable_sha256": "34bd18944533b8fa6055890db9bd2dd493de4aaf7c5f995061e743f4a0787e4e", + "exit": 0, + "stdout": "RAW paired samples: baseline_ns then checked_ns, 63 pairs in execution order\n1824\n57425\n1184\n54032\n1136\n54465\n1136\n54016\n1136\n54385\n1136\n54480\n1136\n54337\n1136\n54400\n1152\n54273\n1152\n61488\n1152\n54257\n1152\n54352\n1121\n54416\n1136\n54817\n1152\n54496\n1152\n54401\n1136\n54160\n1136\n54753\n1152\n54112\n1152\n54481\n1152\n54320\n1136\n54353\n1152\n54368\n1136\n54497\n1152\n54384\n1152\n54545\n1136\n54144\n1136\n57169\n1152\n54160\n1152\n54161\n1136\n54272\n1136\n54145\n1152\n54256\n1152\n54513\n1152\n54128\n1136\n54145\n1136\n54160\n1136\n54081\n1136\n54288\n1136\n54337\n1136\n54496\n1152\n54401\n1152\n54464\n1136\n54353\n1152\n54160\n1136\n55985\n1136\n54592\n1136\n54337\n1136\n54064\n1152\n54417\n1136\n54512\n1136\n54225\n1136\n54048\n1104\n54433\n1136\n53936\n1136\n54433\n1136\n54688\n1152\n54273\n1152\n54352\n1136\n54337\n1136\n54240\n1152\n54161\n1136\n56480\nMEASURE helper cycles=100 samples=63 baseline_ns p50/p95/p99 then checked_ns p50/p95/p99\n1136\n1152\n1824\n54352\n56480\n61488\n", + "stderr": "\tCommand being timed: \"nice -n 19 ./measure\"\n\tUser time (seconds): 0.00\n\tSystem time (seconds): 0.00\n\tPercent of CPU this job got: 75%\n\tElapsed (wall clock) time (h:mm:ss or m:ss): 0:00.00\n\tAverage shared text size (kbytes): 0\n\tAverage unshared data size (kbytes): 0\n\tAverage stack size (kbytes): 0\n\tAverage total size (kbytes): 0\n\tMaximum resident set size (kbytes): 1480\n\tAverage resident set size (kbytes): 0\n\tMajor (requiring I/O) page faults: 0\n\tMinor (reclaiming a frame) page faults: 81\n\tVoluntary context switches: 1\n\tInvoluntary context switches: 0\n\tSwaps: 0\n\tFile system inputs: 0\n\tFile system outputs: 0\n\tSocket messages sent: 0\n\tSocket messages received: 0\n\tSignals delivered: 0\n\tPage size (bytes): 4096\n\tExit status: 0\n", + "measurement": { + "units": "nanoseconds per100 cycles", + "raw_pairs_baseline_then_checked": [ + [ + 1824, + 57425 + ], + [ + 1184, + 54032 + ], + [ + 1136, + 54465 + ], + [ + 1136, + 54016 + ], + [ + 1136, + 54385 + ], + [ + 1136, + 54480 + ], + [ + 1136, + 54337 + ], + [ + 1136, + 54400 + ], + [ + 1152, + 54273 + ], + [ + 1152, + 61488 + ], + [ + 1152, + 54257 + ], + [ + 1152, + 54352 + ], + [ + 1121, + 54416 + ], + [ + 1136, + 54817 + ], + [ + 1152, + 54496 + ], + [ + 1152, + 54401 + ], + [ + 1136, + 54160 + ], + [ + 1136, + 54753 + ], + [ + 1152, + 54112 + ], + [ + 1152, + 54481 + ], + [ + 1152, + 54320 + ], + [ + 1136, + 54353 + ], + [ + 1152, + 54368 + ], + [ + 1136, + 54497 + ], + [ + 1152, + 54384 + ], + [ + 1152, + 54545 + ], + [ + 1136, + 54144 + ], + [ + 1136, + 57169 + ], + [ + 1152, + 54160 + ], + [ + 1152, + 54161 + ], + [ + 1136, + 54272 + ], + [ + 1136, + 54145 + ], + [ + 1152, + 54256 + ], + [ + 1152, + 54513 + ], + [ + 1152, + 54128 + ], + [ + 1136, + 54145 + ], + [ + 1136, + 54160 + ], + [ + 1136, + 54081 + ], + [ + 1136, + 54288 + ], + [ + 1136, + 54337 + ], + [ + 1136, + 54496 + ], + [ + 1152, + 54401 + ], + [ + 1152, + 54464 + ], + [ + 1136, + 54353 + ], + [ + 1152, + 54160 + ], + [ + 1136, + 55985 + ], + [ + 1136, + 54592 + ], + [ + 1136, + 54337 + ], + [ + 1136, + 54064 + ], + [ + 1152, + 54417 + ], + [ + 1136, + 54512 + ], + [ + 1136, + 54225 + ], + [ + 1136, + 54048 + ], + [ + 1104, + 54433 + ], + [ + 1136, + 53936 + ], + [ + 1136, + 54433 + ], + [ + 1136, + 54688 + ], + [ + 1152, + 54273 + ], + [ + 1152, + 54352 + ], + [ + 1136, + 54337 + ], + [ + 1136, + 54240 + ], + [ + 1152, + 54161 + ], + [ + 1136, + 56480 + ] + ], + "quantiles_ns": { + "baseline": [ + 1136, + 1152, + 1824 + ], + "checked": [ + 54352, + 56480, + 61488 + ] + }, + "rank_indices_zero_based": [ + 31, + 59, + 62 + ], + "p99_is_sample_maximum": true + }, + "scope": "Whole invocation peak resources; helper cycles only, no service throughput. unsafe unchecked baseline is not a deployable alternative." + } +} diff --git a/seed/qualification/security673/resources/negative.om b/seed/qualification/security673/resources/negative.om new file mode 100644 index 000000000..998b2f936 --- /dev/null +++ b/seed/qualification/security673/resources/negative.om @@ -0,0 +1,104 @@ +note Exact-once source mutator. stdin original module; stdout mutated module. +note argv1=1..4 mutates ep_event for that event only;5 mutates rv_reserve rollback. +note Compile emitted module with UNCHANGED checks.om and demo.om. Expected exits7/4. +note Reject missing/duplicate pattern, oversized source and I/O errors normally. +global source uchar 16384 +global needle uchar 256 +global params ulong 2 +global arg uchar 8 +text epfind "if or lt event 1 gt event 4\nret 1\nend\nret 0\nend\n" +text rvfind "for d ulong 8\nif gt get q d rv_room s d\nret 3\nend\nend\n" +text eppre "if or lt event 1 gt event 4\nret 1\nend\nif eq event " +text eppost "\nput e 4 0\nend\nret 0\nend\n" +text rvbad "for d ulong 8\nif gt get q d rv_room s d\nret 3\nend\nput s add rv_charge j d get q d\nend\n" +fn choose mode ulong to void +if eq mode 5 +put params 1 len rvfind +for i ulong len rvfind +put needle i get rvfind i +end +else +put params 1 len epfind +for i ulong len epfind +put needle i get epfind i +end +end +end +fn matches at ulong to bool +for i ulong get params 1 +if ne get source add at i get needle i +ret false +end +end +ret true +end +fn input to bool +size = ulong 0 +while lt size len source bound 16384 +n = read 0 source size sub len source size +if lt n 0 +ret false +end +if eq n 0 +put params 0 size +ret true +end +size = add size ulong n +end +ret false +end +fn replacement mode ulong to bool +if eq mode 5 +ret eq write 1 rvbad 0 len rvbad long len rvbad +end +if ne write 1 eppre 0 len eppre long len eppre +ret false +end +if ne write 1 arg 0 1 1 +ret false +end +ret eq write 1 eppost 0 len eppost long len eppost +end +fn main to int +if ne argcnt 2 +ret 2 +end +if ne argread 1 arg 0 8 1 +ret 2 +end +mode = ulong get arg 0 +if or lt mode 49 gt mode 53 +ret 2 +end +mode = sub mode 48 +choose mode +if not input +ret 3 +end +if lt get params 0 get params 1 +ret 4 +end +count = ulong 0 +found = ulong 0 +for at ulong add sub get params 0 get params 1 1 +if matches at +count = add count 1 +found = at +end +end +if ne count 1 +ret 4 +end +if ne write 1 source 0 found long found +ret 5 +end +if not replacement mode +ret 5 +end +start = add found get params 1 +size = sub get params 0 start +if ne write 1 source start size long size +ret 5 +end +ret 0 +end diff --git a/seed/qualification/security673/resources/oracle.om b/seed/qualification/security673/resources/oracle.om new file mode 100644 index 000000000..2e748d59d --- /dev/null +++ b/seed/qualification/security673/resources/oracle.om @@ -0,0 +1,83 @@ +note R3 independent enumeration. No reserve.om calls. State code u*9+r1*3+r2. +note Frozen capacity3, reserve1/2, commit0..q, release1, whole-service crash. +global seen uchar 36 +global edges uchar 1296 +global arg uchar 16 +text edgearg "--edges" +text pass "PASS R3 states=18 edges=78 whole-service-effectfree-crash\n" +text fail "FAIL R3 states18_edges78\n" +fn edge a ulong b ulong to void +put edges add mul a 36 b 1 +put seen b 1 +end +fn expand a ulong to void +u = div a 9 +x = rem div a 3 3 +y = rem a 3 +edge a mul u 9 +if gt u 0 +edge a sub a 9 +end +for j ulong 2 +q = x +scale = ulong 3 +if eq j 1 +q = y +scale = 1 +end +if eq q 0 +for k ulong 2 +want = add k 1 +if le add add u x add y want 3 +edge a add a mul want scale +end +end +else +for c ulong add q 1 +edge a add sub a mul q scale mul c 9 +end +end +end +end +fn main to int +put seen 0 1 +for round ulong 36 +for a ulong 36 +if ne get seen a 0 +expand a +end +end +end +n = ulong 0 +e = ulong 0 +for a ulong 36 +n = add n ulong get seen a +end +for a ulong 1296 +e = add e ulong get edges a +end +if or ne n 18 ne e 78 +w = write 1 fail 0 len fail +ret 1 +end +if eq argcnt 2 +if ne argread 1 arg 0 len arg long len edgearg +ret 2 +end +for i ulong len edgearg +if ne get arg i get edgearg i +ret 2 +end +end +w = write 1 edges 0 len edges +if ne w long len edges +ret 3 +end +ret 0 +end +if ne argcnt 1 +ret 2 +end +w = write 1 pass 0 len pass +ret 0 +end diff --git a/seed/qualification/security673/resources/r3-edges.json b/seed/qualification/security673/resources/r3-edges.json new file mode 100644 index 000000000..1f611d799 --- /dev/null +++ b/seed/qualification/security673/resources/r3-edges.json @@ -0,0 +1,1051 @@ +{ + "profile": "SC1-R revision2 R3", + "source_sha256": "0590272c1b5d5d0b4da3c39274d1bf39b9e313263168a575c716595f90717f91", + "binary_sha256": "c76f84a09e246c7c84038b8367b62076eba16f2833134b70bd7e75bbaa9316c0", + "compiler_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61", + "native_exit": 0, + "states": [ + [ + 0, + 0, + 0 + ], + [ + 0, + 0, + 1 + ], + [ + 0, + 0, + 2 + ], + [ + 0, + 1, + 0 + ], + [ + 0, + 1, + 1 + ], + [ + 0, + 1, + 2 + ], + [ + 0, + 2, + 0 + ], + [ + 0, + 2, + 1 + ], + [ + 1, + 0, + 0 + ], + [ + 1, + 0, + 1 + ], + [ + 1, + 0, + 2 + ], + [ + 1, + 1, + 0 + ], + [ + 1, + 1, + 1 + ], + [ + 1, + 2, + 0 + ], + [ + 2, + 0, + 0 + ], + [ + 2, + 0, + 1 + ], + [ + 2, + 1, + 0 + ], + [ + 3, + 0, + 0 + ] + ], + "edges": [ + [ + [ + 0, + 0, + 0 + ], + [ + 0, + 0, + 0 + ] + ], + [ + [ + 0, + 0, + 0 + ], + [ + 0, + 0, + 1 + ] + ], + [ + [ + 0, + 0, + 0 + ], + [ + 0, + 0, + 2 + ] + ], + [ + [ + 0, + 0, + 0 + ], + [ + 0, + 1, + 0 + ] + ], + [ + [ + 0, + 0, + 0 + ], + [ + 0, + 2, + 0 + ] + ], + [ + [ + 0, + 0, + 1 + ], + [ + 0, + 0, + 0 + ] + ], + [ + [ + 0, + 0, + 1 + ], + [ + 0, + 1, + 1 + ] + ], + [ + [ + 0, + 0, + 1 + ], + [ + 0, + 2, + 1 + ] + ], + [ + [ + 0, + 0, + 1 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 0, + 0, + 2 + ], + [ + 0, + 0, + 0 + ] + ], + [ + [ + 0, + 0, + 2 + ], + [ + 0, + 1, + 2 + ] + ], + [ + [ + 0, + 0, + 2 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 0, + 0, + 2 + ], + [ + 2, + 0, + 0 + ] + ], + [ + [ + 0, + 1, + 0 + ], + [ + 0, + 0, + 0 + ] + ], + [ + [ + 0, + 1, + 0 + ], + [ + 0, + 1, + 1 + ] + ], + [ + [ + 0, + 1, + 0 + ], + [ + 0, + 1, + 2 + ] + ], + [ + [ + 0, + 1, + 0 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 0, + 1, + 1 + ], + [ + 0, + 0, + 0 + ] + ], + [ + [ + 0, + 1, + 1 + ], + [ + 0, + 0, + 1 + ] + ], + [ + [ + 0, + 1, + 1 + ], + [ + 0, + 1, + 0 + ] + ], + [ + [ + 0, + 1, + 1 + ], + [ + 1, + 0, + 1 + ] + ], + [ + [ + 0, + 1, + 1 + ], + [ + 1, + 1, + 0 + ] + ], + [ + [ + 0, + 1, + 2 + ], + [ + 0, + 0, + 0 + ] + ], + [ + [ + 0, + 1, + 2 + ], + [ + 0, + 0, + 2 + ] + ], + [ + [ + 0, + 1, + 2 + ], + [ + 0, + 1, + 0 + ] + ], + [ + [ + 0, + 1, + 2 + ], + [ + 1, + 0, + 2 + ] + ], + [ + [ + 0, + 1, + 2 + ], + [ + 1, + 1, + 0 + ] + ], + [ + [ + 0, + 1, + 2 + ], + [ + 2, + 1, + 0 + ] + ], + [ + [ + 0, + 2, + 0 + ], + [ + 0, + 0, + 0 + ] + ], + [ + [ + 0, + 2, + 0 + ], + [ + 0, + 2, + 1 + ] + ], + [ + [ + 0, + 2, + 0 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 0, + 2, + 0 + ], + [ + 2, + 0, + 0 + ] + ], + [ + [ + 0, + 2, + 1 + ], + [ + 0, + 0, + 0 + ] + ], + [ + [ + 0, + 2, + 1 + ], + [ + 0, + 0, + 1 + ] + ], + [ + [ + 0, + 2, + 1 + ], + [ + 0, + 2, + 0 + ] + ], + [ + [ + 0, + 2, + 1 + ], + [ + 1, + 0, + 1 + ] + ], + [ + [ + 0, + 2, + 1 + ], + [ + 1, + 2, + 0 + ] + ], + [ + [ + 0, + 2, + 1 + ], + [ + 2, + 0, + 1 + ] + ], + [ + [ + 1, + 0, + 0 + ], + [ + 0, + 0, + 0 + ] + ], + [ + [ + 1, + 0, + 0 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 1, + 0, + 0 + ], + [ + 1, + 0, + 1 + ] + ], + [ + [ + 1, + 0, + 0 + ], + [ + 1, + 0, + 2 + ] + ], + [ + [ + 1, + 0, + 0 + ], + [ + 1, + 1, + 0 + ] + ], + [ + [ + 1, + 0, + 0 + ], + [ + 1, + 2, + 0 + ] + ], + [ + [ + 1, + 0, + 1 + ], + [ + 0, + 0, + 1 + ] + ], + [ + [ + 1, + 0, + 1 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 1, + 0, + 1 + ], + [ + 1, + 1, + 1 + ] + ], + [ + [ + 1, + 0, + 1 + ], + [ + 2, + 0, + 0 + ] + ], + [ + [ + 1, + 0, + 2 + ], + [ + 0, + 0, + 2 + ] + ], + [ + [ + 1, + 0, + 2 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 1, + 0, + 2 + ], + [ + 2, + 0, + 0 + ] + ], + [ + [ + 1, + 0, + 2 + ], + [ + 3, + 0, + 0 + ] + ], + [ + [ + 1, + 1, + 0 + ], + [ + 0, + 1, + 0 + ] + ], + [ + [ + 1, + 1, + 0 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 1, + 1, + 0 + ], + [ + 1, + 1, + 1 + ] + ], + [ + [ + 1, + 1, + 0 + ], + [ + 2, + 0, + 0 + ] + ], + [ + [ + 1, + 1, + 1 + ], + [ + 0, + 1, + 1 + ] + ], + [ + [ + 1, + 1, + 1 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 1, + 1, + 1 + ], + [ + 1, + 0, + 1 + ] + ], + [ + [ + 1, + 1, + 1 + ], + [ + 1, + 1, + 0 + ] + ], + [ + [ + 1, + 1, + 1 + ], + [ + 2, + 0, + 1 + ] + ], + [ + [ + 1, + 1, + 1 + ], + [ + 2, + 1, + 0 + ] + ], + [ + [ + 1, + 2, + 0 + ], + [ + 0, + 2, + 0 + ] + ], + [ + [ + 1, + 2, + 0 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 1, + 2, + 0 + ], + [ + 2, + 0, + 0 + ] + ], + [ + [ + 1, + 2, + 0 + ], + [ + 3, + 0, + 0 + ] + ], + [ + [ + 2, + 0, + 0 + ], + [ + 1, + 0, + 0 + ] + ], + [ + [ + 2, + 0, + 0 + ], + [ + 2, + 0, + 0 + ] + ], + [ + [ + 2, + 0, + 0 + ], + [ + 2, + 0, + 1 + ] + ], + [ + [ + 2, + 0, + 0 + ], + [ + 2, + 1, + 0 + ] + ], + [ + [ + 2, + 0, + 1 + ], + [ + 1, + 0, + 1 + ] + ], + [ + [ + 2, + 0, + 1 + ], + [ + 2, + 0, + 0 + ] + ], + [ + [ + 2, + 0, + 1 + ], + [ + 3, + 0, + 0 + ] + ], + [ + [ + 2, + 1, + 0 + ], + [ + 1, + 1, + 0 + ] + ], + [ + [ + 2, + 1, + 0 + ], + [ + 2, + 0, + 0 + ] + ], + [ + [ + 2, + 1, + 0 + ], + [ + 3, + 0, + 0 + ] + ], + [ + [ + 3, + 0, + 0 + ], + [ + 2, + 0, + 0 + ] + ], + [ + [ + 3, + 0, + 0 + ], + [ + 3, + 0, + 0 + ] + ] + ], + "matrix_encoding": "36x36 row-major bytes; state code9*u+3*r1+r2; byte1 iff edge", + "matrix_sha256": "19e4706d53b940f5f99d9337a0277e00844a9355d96d60ea4c19af8288e8de03", + "independent_oracle": "external Python tuple-set BFS, distinct from .om in-place encoded-state iteration", + "comparison": "all1296 bytes equal;18 states78 edges", + "contract_sha256": "ced61decef1ff4efbf5bc81598db648aa810be434e373e9bc1563dbcb4523496", + "build_command": "seed/out/omc < seed/qualification/security673/resources/oracle.om > /tmp/sc1-oracle && chmod +x /tmp/sc1-oracle", + "run_command": "/tmp/sc1-oracle --edges", + "args": [ + "--edges" + ], + "stdout_bytes": 1296, + "stdout_sha256": "19e4706d53b940f5f99d9337a0277e00844a9355d96d60ea4c19af8288e8de03", + "independent_review": "ResourceReview independently enumerated the mathematical tuple BFS and matched all states/edges and matrix hash; it did not execute the native artifact", + "oracle_definition": "Start{(0,0,0)}; successor union: (u,0,0), release(u-1,r1,r2) if u>0, each idle client reserveq in{1,2} if sum+q<=3, each active client commitc in0..q increasing u and clearing only that client; closure by set BFS; sort states/edges. This is a development oracle, not a shipped runner." +} diff --git a/seed/qualification/security673/resources/review-addendum.txt b/seed/qualification/security673/resources/review-addendum.txt new file mode 100644 index 000000000..a2ad10b7b --- /dev/null +++ b/seed/qualification/security673/resources/review-addendum.txt @@ -0,0 +1,75 @@ +Resource qualification repair after independent ResourceReview +Contract: SC1 revision2 ced61decef1ff4efbf5bc81598db648aa810be434e373e9bc1563dbcb4523496. +This addendum supersedes README.txt's old negative-driver commands, five-bad-adapter +claim, E fixture numbering and summary-only measurement description. Parent owns +README.txt and the separate R3 full-edge additions. No production module changed. + +Historical receipt946b6219 remains an immutable draft-contract result. Its negative +controls compared duplicated assertions, not the actual demo checker, and its four +event labels represented one universal refund mutant. It does not qualify rev2. + +The repaired negative.om is an exact-source mutator, not an alternate checker. +It accepts original module bytes on stdin, requires exactly one complete target +substring and emits the changed module. Modes1..4 insert an event-specific refund +inside actual ep_event; each only triggers completion/cancel/error/supervisor-work, +respectively. Mode5 changes actual rv_reserve to write each vector component before +checking later dimensions. The generated sources compile with the SAME unmodified +checks.om and demo.om as the good implementation. All five compiled and executed: +- E2-E5 modes1..4: normal exit7, FAIL E1-E6 paired_admission events release restart. +- R2 mode5: normal exit4, FAIL R2 all-or-nothing eight stocks. +All earlier demo assertions execute normally before those named failures. There is +no independent assertion in negative.om that can stand in for a weakened checker. +Missing/duplicate source patterns return4 with empty output. Signals, compile errors +and unrelated exits never count as successful negative controls. + +E1 now executes admission operations: mutable baseline capacity2 first admits secret +occupancy1 or2, then public request1 succeeds only in the occupancy1 arm. Protected +arms initialize fixed public envelope2 before their separate secret occupancy runs; +public request1 then refuses equally using ep_available, not actual secret stock. +This is a bounded untimed helper model, not real scheduler correspondence. + +R2 now checks binding refusal exactly2, reserve id /tmp/sc1-mutator + chmod +x /tmp/sc1-mutator +For an envelope event (example mode2, cancellation): + nice -n 19 /tmp/sc1-mutator 2 < seed/authority/envelope.om > /tmp/sc1-envelope-mutant.om + cat seed/authority/reserve.om /tmp/sc1-envelope-mutant.om seed/qualification/security673/resources/checks.om seed/qualification/security673/resources/demo.om | nice -n 19 seed/out/omc > /tmp/sc1-mutant + chmod +x /tmp/sc1-mutant + nice -n 19 /tmp/sc1-mutant +Expect normal exit7 and the named FAIL above. Repeat modes1,3,4 independently. +For vector rollback: + nice -n 19 /tmp/sc1-mutator 5 < seed/authority/reserve.om > /tmp/sc1-reserve-mutant.om + cat /tmp/sc1-reserve-mutant.om seed/authority/envelope.om seed/qualification/security673/resources/checks.om seed/qualification/security673/resources/demo.om | nice -n 19 seed/out/omc > /tmp/sc1-mutant + chmod +x /tmp/sc1-mutant + nice -n 19 /tmp/sc1-mutant +Expect normal exit4 and the named R2 FAIL. Good demo/exhaust/measure retain the +README composition command; negative is no longer linked with those modules. + +Measurement now writes63 raw baseline/checked pairs in execution order before the +quantiles. The new receipt preserves complete stdout, raw samples, actual argv, +execution cwd, source/compiler/executable hashes and the resource-measured repeat. +p99 with63 samples is the maximum; no tail-confidence claim. The checked helper is +slower than the unsafe unchecked baseline, retained as a no-win overhead result. +Numbers from different runs are not controlled cross-revision performance claims. +No service throughput, secrecy proof, process-crash or power-loss result follows. ```