interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / qualification / security673 / game / MODEL.md

47 lines · 10299 bytes Raw Blame History Rendered
1# SC1-G append game v1 (frozen before implementation)
2
3This is an offline finite experiment, not an authority, scheduler, store or general verifier.
4Plan: (1) freeze this model and fixtures; (2) implement seeded solver and independently enumerated checker; (3) compile and exercise native controls once coherent; (4) retain raw evidence and document correspondence limits.
5
6## Domain and encoding
7
8State = a + 18*b + 324*e + 648*v + 1296*r, plus BAD=2592.
9There are 2593 enumerated states, not a reachability-only universe. a,b are two clients, e/v are current policy epoch/object version (0 or 1), r is whole-service recovery-required (0 or 1). Epoch/version saturate at1; repeated revoke/substitute are explicit stutters. Initial state0. Each client has one operation identity, never reused, and one record of persistent size1. Capacity3, full atomic reservation2 (persistent1 and temporary1). Charges derive from phase, not from an independently trusted ledger.
10
11Client phases: 0 idle,1 queued,2 reserved,3..6 prepared with expected epoch=(phase-3)%2 and expected version=(phase-3)/2,7..10 writing with the same encoding offset7,11 renamed/uncertain durability (reservation2 retained),12 durable (used1),13 durable/lost acknowledgement (used1),14 acknowledged (used1),15 split-fence completion pending,16 split-fence dispatched,17 uncertain but refunded (invalid). Phases15/16 are explicitly defective candidate states, not concrete runtime states. They retain charge2 and capture expected generation0/0. Their purpose is to represent an unfenced asynchronous effect proposal which cannot atomically protect both bindings. States with15/16 require e=v=0 to satisfy the local invariant.
12
13Local invariant: not BAD; no phase17; total charges<=3; defective phases require current generation0/0. Charges: phases0/1=0, phases12..14=1, all other phases=2. Initial state satisfies it. No secret affects these fields.
14
15## Actions, disturbances and ordering
16
1718 actions:0 quiescent stutter,1 whole-service recover,2+8*c+k for client c in{0,1}. k=0 reserve,1 abort,2 prepare,3 write,4 commit,5 settle,6 acknowledge/retry,7 unsafe split dispatch/advance. Availability: recovery-required permits only1. Otherwise0 only if both clients are idle or acknowledged; queued permits reserve when complete charge fits and abort always; reserved permits abort/prepare; prepared permits abort/write/split; writing permits abort/commit; uncertain permits settle; durable/lostack permits acknowledge/retry; split-dispatched permits advance; split-pending permits epoch-only commit or object-only settle. No action exists for invalid phase17. An empty action set refuses. All enabled actions have exactly nine disturbances; an empty disturbance set refuses.
18
19Disturbance IDs:0 none,1 concurrent request client0,2 concurrent request client1,3 revoke,4 substitute,5 whole-service crash,6 partialwrite,7 delayedcompletion,8 lostack. All nine are enumerated for every enabled action, including explicit irrelevant-event stutters; no fairness is assumed. Concurrent requests queue only idle clients. Revocation/substitution change current epoch/version before the selected action. Crash interrupts the selected action before effect and sets recovery-required, retaining both charges and all phases. Delay preserves the state without executing the selected action. Other disturbances execute the action; partialwrite interrupts write or settle and retains the charge. Lostack changes a successful settle or acknowledgement to lostack.
20
21Reserve is all-or-nothing. Abort is authoritative pre-rename cleanup, available only before uncertain. Prepare captures current e/v. Write moves prepared to writing, except partialwrite retains prepared. Commit rechecks both expected tags after interference: mismatch refuses with unchanged phase; match performs rename and becomes uncertain, never refunds. Settle is authoritative directory sync: partialwrite retains uncertain, otherwise durable or lostack. Acknowledge/retry marks acknowledged without another effect or charge. Recovery after all pre-action disturbances authoritatively cleans pre-rename phases2..10 to idle and establishes durability of11 as12, preserving12..14; it clears r. Recovery of defective15/16 goes BAD (no sound reconciliation modeled). Crash/delay interrupt recovery too. Quiescent stutter may receive concurrent requests.
22
23Unsafe split from prepared enters16 only with e=v=0, otherwise it refuses. Advance enters15; revocation/substitution before advance cancels it to idle, crash cancels it to idle and sets recovery-required, delay preserves it. At15, epoch-only action fails under substitute and object-only action fails under revoke; the matching fence refuses and cancels to idle. With neither generation disturbance, split completion becomes acknowledged; partialwrite/delay retain15; crash cancels to idle and sets recovery-required. These special defective proposal transitions precede generic environmental handling. Thus for every disturbance some action can survive, but no single action survives all. This is the quantifier witness. The checker rejects these candidates; they are not admitted service behaviors.
24
25
26## Solver, certificate, costs and observation
27
28Synchronous greatest fixed point starts with local invariants; remove states with no action having all nine successors in the previous set. Stop only at equality. Certificate contains one little-endian u32 action mask for every state; zero means excluded. Include every safe action in the exact certificate. The separate checker regenerates transitions without sharing the solver transition helper, computes the losing attractor with reverse-order in-place elimination, checks initial inclusion, each submitted action and every disturbance, and exact equality for this finite model. This distinguishes a safe subset from the maximal region. Fixed bounds refuse exhaustion, never report safety.
29
30Synthetic costs only: unsafe split0, abort4, other actions2, stutter/recover1. Ranking requires an explicitly current synthetic-cost identity1; unknown0/stale2 refuse. Rank only independently safe action bits, never subtract a finite security penalty. No #583 runtime estimates or performance predictions. #647's general ownership-analysis seam was unavailable in its issue comment; use only this bounded fixture scan, not a replacement verifier/worklist.
31
32Paired observation fixture is separate: two secret occupancies1/2 inside public envelope2 expose equal capacity/admission, public release identity and readiness. The baseline exposes occupancy and differs. No claim about the actual scheduler, cache, timing or secret closure.
33
34Parent-requested relational extension, frozen before its implementation: decorate each locally invariant game state having a full charge2 with hidden occupancy1 or2 inside that fixed reservation envelope. Other states carry hidden0. For every pair and every actual enabled action/disturbance, compare public enabled masks, actual regenerated successor state (the full public projection), public available capacity and ready/recovery observations. After losing the full envelope, the hidden label becomes0; otherwise it is retained. Hidden labels have no influence on protected actions/transitions by construction; the exhaustive product check establishes only this explicitly extended finite relation. A baseline accessor which uses occupancy rather than reservation to admit the other queued client exposes different action masks (state20), and must exit78 at PAIRED_PRODUCT. The separate scalar envelope fixture is not a substitute for this product check. Neither check qualifies machine secrecy, secret dependency closure or the actual scheduler.
35
36Hidden-label update convention: a new envelope entered from hidden0 starts at hidden1; an existing envelope retains its hidden label, and removing it resets hidden0. Both1/2 source labels are independently checked at every eligible public state. This convention introduces no extra public transition or claim about how real secret allocation evolves.
37
38## Frozen expected behaviors
39
40G1 correct certificate accepted, initial included. G2 swapped quantifier candidate refused at split-pending. G3 omitted substitute candidate refused by full disturbance check. G4 stale-epoch commit transition refused against independently regenerated relation. G5 uncertain refund transition refused. G6 cheapest unsafe split proposal refused after safety. G7 one-round early stop refused because split-dispatched still leads to losing split-pending. All controls must compile and normally exit at a named assertion, never count a crash/build failure.
41G8 locally invariant split-pending loses; action commit has substitute witness, action settle has revoke witness. G9 reserve client0 (charge2) makes eager reserve client1 refuse (4>3); serial commit/settle/ack frees temporary1, then second reserve fits3 and both records eventually durable charge2. G10 no empty action/disturbance vacuity; explicit quiescent stutter. G11 paired public envelopes equal; occupancy baseline unequal. G12 stale/missing cost refuses; synthetic rank never selects split.
42
43Numerical fixed-point counts and certificate hash are not guessed or used to tune this model: record the independently compared frozen result corpus after execution. Any semantic correction requires a new model version, not silent expected-result edits.
44
45## Abstraction correspondence obligations
46
47This model assumes one writer, atomic full-vector reservation, exact original operands, current-policy authorization, stable object identity, authoritative cleanup/recovery, one operation identity per client, and idempotent lost-ack retry. It abstracts all snapshot bytes and histories to two charges and phase. It does not establish these assumptions in omnet, capture arbitrary filesystem interference, power loss, repeated requests, epoch wrap, unlimited demand, scheduler fairness or liveness. Atomic commit/recovery are proof obligations for the authority/store owner. Defective split states model why an unfenced external effect cannot inherit snapshot atomicity. Native execution of this model is not source-to-consumer translation correspondence under #623. Runtime promotion is prohibited pending owner integration and independent concrete correspondence evidence.