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

[OM-CONTROL] Implement bounded action recovery, attenuated delegation and reuse admission in Om

Open · #659 · open 2026-10-23 19:59 UTC

Imported from GitHub aien-dev/omega-mv#659, by drakestapleton

drakestapleton wrote on 2026-10-23 19:59 UTC

Evidence and objective

Source review on 2026-10-23 identified useful contracts in Delentia's effect journal/idempotency and exact-payload approval, OctantOS's documented parent-child authority attenuation, and Aither's model/runtime-bound cache validation. These are architecture patterns to implement independently in Om, not foreign source to vendor.

Parent ownership: #649 action lifecycle, #651 reuse, #648 typed application interfaces; #599 remains the seed-to-application programme. This issue records one bounded implementation slice, not another runtime, scheduler, authority root, store or master plan.

Inspected inputs and ownership

  • main@cd5897e3f92f72a015892c67b17f096e433b54f7 still contains the C runtime.
  • seed/omega-in-omega@57f5f4258cebf3d5b2c22853cd062e351265c525 provides the public seeded compiler and its Om source.
  • feat/allen-hermes-omega-L690@c769fcf75d40c11de4fb6d36f3ddfdaac49637cc contains existing native Hermes modules. They will not be edited or replaced.
  • Existing seeded compiler, host facilities, store, capability authority and Renda PR/release ownership remain unchanged.
  • Proposed additive paths: native/control/src/*.om, native/control/tests/*.om, contract documentation and immutable test evidence. No new C/Rust/Python/OSC implementation or tests.

Scope

Implement bounded, caller-owned Om contract functions:

  1. Action state transitions that preserve request identity, mark interrupted effects as uncertain, refuse blind retry, require authoritative reconciliation, and recheck current authority and generation before a new attempt.
  2. Delegation constraints that can only reduce rights, resource budgets, lifetime and remaining delegation depth. No behavioral score can create authority.
  3. Reuse admission that compares complete typed identity fields and reports precise missing/mismatch reasons before a cached result is usable.

These functions do not perform storage, network calls, cryptography or capability minting. Existing trusted owners supply verified facts and durable serialization. A passing contract test does not establish a production integration or power-loss safety.

Acceptance frozen before implementation

  • Handwritten .om modules and .om tests compile with the pinned seeded compiler.
  • Tests execute compiled AArch64 code; any QEMU execution is labelled EMULATED, never hardware-qualified.
  • At the component-contract level, interrupted write + lost acknowledgement cannot become eligible for retry from a timeout, missing receipt, changed request, changed scope or revoked grant.
  • Confirmed not-performed reconciliation permits retry only with the original operation identity and fresh admission checks; confirmed performed never re-executes.
  • Tested child authority never exceeds its parent, including zero/overflow/depth/expiry boundaries.
  • Missing cache identities, each identity mismatch, scope mismatch and format skew refuse with stable diagnostic codes.
  • Meaningful RED tests and compiled negative controls detect bypassed uncertainty, authority and identity checks.
  • Record source/compiler/emulator/binary hashes, exact commands and raw outcomes. Test runner logic stays in Om.
  • Final-source independent review, authoritative-store/dispatch integration and real-host/hardware qualification remain explicit gates; do not close #649/#651 from this slice.

Delivery

Status: ACTIVE. Component implementation and emulated verification complete; production integration and independent review remain open. Implementation owner for these new paths: this Codex session, isolated branch feat/om-control-contracts. No shared compiler/runtime source edit and no production cutover in this slice. Preserve the existing Renda/desk PR/merge/release path and provide a branch/evidence handoff. Replacing existing active implementations and deleting superseded code remains the migration requirement once consumers are qualified.

Research provenance

Implementation and evidence handoff

Executed: 367 assertions across the three compiled Om suites; all pass under QEMU AArch64 on x86_64. Ten guard-removal mutants compile and then fail assertions. Three always-accept Om stubs also fail assertions; three malformed/aliased Om fixtures produce the expected compiler refusals. The seeded toolchain was reconstructed through seed0/hex1/asm2/om4/omc; compiler stages and the published compiler are byte-identical.

The public functional commit was fetched into a clean separate worktree and the full component suite and negative controls replayed there. The evidence-only commit changes no functional Om source. Only native/control/ is added.

Still NOT_RUN: independent final-source review; durable-store and authorized-dispatch integration; provider-side effects and crash/restart; cross-process races and revocation fencing; real AArch64/GB10 execution. These modules consume trusted verified facts, not user-supplied authorization booleans. No production consumer has been switched, no existing implementation is declared retired, and no performance gain is claimed.

Renda/desk handoff: the branch and evidence are ready for the existing PR/merge owner. No PR or merge was performed, and desk acknowledgement is not claimed. The next integration belongs to #649's effect/authority/store owners and #651's reuse owner, with #648 retaining application-interface work. Do not close this issue or its parents until the remaining stated gates are met.

Composition with durable reservations and real consumer

Integrate the existing action/delegation/reuse functions with #670's actual authority/object checks, #757's durable reservation ledger, and aien-dev/omnet#3. Trusted-caller facts must originate from qualified enforcement, not caller-controlled booleans.

  • Tie operation identity, expected object/policy/state generation and reservation ownership to a justified prepare/commit/reconcile transition. Re-read authoritative state under the same fencing discipline used to commit it.
  • Persist sufficient intent/accounting before irreversible consumption; cover data fsync, atomic publication and directory durability per the declared filesystem. Atomic rename alone is not a complete power-loss protocol.
  • Interrupted/uncertain effects retain conservative charges and cannot be blindly retried. Reconciliation cannot accept stale or mismatched receipts; cancellation/refund waits until consumption is excluded or accounted for.
  • Crash/rollback/epoch exhaustion cannot resurrect permissions or capacity. State assumptions about rollback resistance and trusted recovery source; no claim from ordinary file generations alone.
  • Consume #685/#686/#687 through existing owners; inject failures around lock, read, persist, dispatch, outcome/reacquire and cleanup. Preserve initial component evidence, label new native versus emulated results separately.

No comments.

Sign in to comment