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/issues/abc498f0b1293ba2 # 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 # [OM-SEC P0] Enforce conserved service reservations through concurrency and crash recovery Open · #757 · open 2026-10-25 19:05 UTC Imported from GitHub aien-dev/omega-mv#757, by drakestapleton drakestapleton wrote on 2026-10-25 19:05 UTC ## Problem and current seam Per-process limits do not bound aggregate clients or persistent state. Existing #670 launcher limits, #649/#659 action lifecycle and seed/authority/{dispatch,store,lock}.om on fix/security673-qualified are the integration seam. Source inspected at `a35697e94b5eeb72efadfee6edab7f14344aea43`; review-stacked PRs #685/#686/#687 have separate corrected heads and remain separately qualified. Reconcile them instead of overwriting or claiming main already contains their fixes. ## Implement - Model each stock resource with nonnegative used U, reserved R and budget B; maintain U+R<=B componentwise. Include process trees, descriptors, queued bytes, parser/handshake costs, retained state, logs, temporary files, compaction and cleanup reserve. Account for shared physical parents without double-counting capacity. - Reserve atomically before consumption across the needed resource vector, or prove an ordered acquisition protocol. Reservations cannot be copied; delegation splits rather than creates capacity. - On completion charge actual consumption c<=q and release unused reservation q-c; refuse unreserved growth. Persistent storage stays charged until actual reclamation. Work/fuel is spent, not refunded as if it were memory; replenishment requires an explicit rate/scheduler contract. - Bind reservation to request/object/version and existing grant. Cancellation cannot release capacity while asynchronous effects remain possible; uncertain effects retain a conservative charge pending authoritative reconciliation. - Define durable ordering of intent, reservation, data and accounting updates, including fsync/rename/directory persistence assumptions. Recovery never manufactures capacity or blindly repeats an uncertain effect. Keep logical exactly-once claims conditional on provider support. - Integrate with existing store/dispatcher and #670 enforcement, not an isolated accounting demo. Provide bounded rejection/backpressure and per-domain fairness policy; safety does not imply starvation freedom. ## Frozen acceptance fixtures - Capacity 6, two clients requesting 4: independent checks reproduce oversubscription; atomic admission accepts at most one. - Reproduce scalar reserve/commit/abort/release invariant with an independent exact arithmetic oracle, then check compiled implementation transitions. - Small model: capacity 3, state {used,reservation1,reservation2}, each idle client reserves 1 or 2 when it fits; commit c in [0,q], release one used unit, or crash dropping only effect-free reservations. From {0,0,0}, 18 states and 78 distinct outgoing transitions in total preserve the invariant. Publish the precise transition generator; this model assumes atomicity and proves no disk behavior. - Crash counterexample: ledger 40, durable storage 60, capacity 100, admission 60 must not be allowed after recovery. Recover/reconcile unsettled charge before admission. - Inject crashes/short writes/disk full/cancellation at every supported persistence boundary; test concurrent restart and revocation. Missing persistence primitives are explicit compiler-owner dependencies. - Distinguish budget refusal, retryable backpressure and uncertain completion. Measure throughput/latency/accounting overhead; no availability promise against unlimited demand. Research: resource-aware session types https://doi.org/10.1145/`3209108`.`3209146` ; Nomos https://doi.org/10.1109/CSF51468.2021.00004 ; Perennial https://doi.org/10.1145/`3341301`.`3359632` . Their cost/persistence models are not automatically physical service bounds. ## Delivery contract Parent: aien-dev/omega-mv#673. Additive scoped work; preserve existing programme, compiler, authority/store, verifier and publication owners. Reconcile main, live branches/PRs, issue comments and applicable repository instructions before edits. One writer per shared path. New first-party implementation, test and runner logic is seeded .om; independent third-party provers/Wolfram may be development oracles outside the delivered runtime. No second compiler, scheduler, authority or store. Version semantic changes; qualify consumers before removing superseded active implementations; preserve historical evidence. Separate implementation status from assurance: formal proof, exact finite-model result, differential tests, native/emulated run and hardware qualification are distinct. Unknown/timeouts/build errors/missing evidence never establish safety. Record exact source, semantic profile, compiler, target, executable, checker, model/config/fixtures, raw commands/exits and independent final-source review. No deployment or live workload interruption is authorized by this issue. ## Linked dependencies Quantity semantics: #756. Authority/recovery integration: #670 and #659. Coordinate public reservation/reclamation contracts with #759. Consumer: aien-dev/omnet#3. No comments. Sign in to comment