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] Agent-driven .om lifecycle across application and compute resources

Open · #649 · open 2026-10-23 12:16 UTC

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

drakestapleton wrote on 2026-10-23 12:16 UTC

Goal

Expose one agent-operable .om lifecycle for describing, inspecting and changing an application and its compute resources. The scope includes UI/service composition, storage/network dependencies, processes/jobs and CPU/GPU placement through registered qualified providers. Broad scope is expressed as provider coverage, not a claim that every device or cloud already works.

Parents: aien-dev/aien-architecture-mv#295/#298. Consume #642 planning, #643 transactional adapter lifecycle, #648 frontend/backend bindings, #628/#632 target/backend contracts, #644 buffer dependencies, aienux#446 host-service contracts and aien-sovereign-core-mv#706/#709 component/runtime contracts. Qualification lives in architecture #299 and Omega #624.

Code grounding

  • src/runtime/rx_capq.h already models semantic capability needs, typed inputs/results, effects/authority ceilings, locality, budgets, evidence and deterministic provider selection. Reuse its existing native migration.
  • src/omega_resolve.{h,c} is the existing semantic dependency resolver identified by #642; this work consumes its qualified native successor.
  • aien-sovereign-core-mv/crates/aien-runtime/src/objective.rs binds durable operator objectives to grants and rechecks them before intents and reconciliation. Preserve this behavior through its existing .om migration/authority owner.
  • Interplane core validates/translates messages; it explicitly executes and authorizes nothing. Do not turn it into a second scheduler or capability authority.

Work

  • In the existing .om application contract express typed resource references, desired configuration, observed state/version, dependencies, health criteria, operation intent, authority/objective reference, budget and evidence requirements. Cover UI endpoint, backend service, storage object, network binding, CPU job and optional GPU job as provider classes; each has discoverable supported operations.
  • Offer agent-callable inspect/plan/apply/status/events/cancel/reconcile/rollback-or-compensate operations through existing Omega command/API names. Resolve naming with current owners; these are semantic operations, not an instruction to add duplicate CLIs.
  • Reuse #642's pinned plan. Before each effect, check expected resource generation, still-valid provider/contract, objective and capability authority. Replan/refuse changed conditions; compilation or an LLM-generated plan never grants permission.
  • Extend the existing objective/effect lifecycle with durable operation IDs, dependency ordering, bounded concurrency/backpressure, explicit retries/deadlines, cancellation and crash recovery. Do not introduce a new master daemon, scheduler, state store or generic retry engine.
  • Distinguish requested/accepted/running/succeeded/failed/cancelling/cancelled/uncertain, mapped to existing lifecycle vocabulary. A timeout/disconnect does not prove an effect did not happen. Reconcile against the authoritative provider before retry; exactly-once requires provider support, not an invented promise.
  • Define ownership/conflict behavior for two agents or a human changing the same resource. Bind effects to preconditions and generation checks; retain independent services and use the existing local trace/provenance store.
  • Define per-operation reversibility: true rollback, compensating action, or irreversible. Do not promise atomic transactions across arbitrary backends. Partial failure produces a useful state and recovery plan; no duplicate storage writes or repeated deployments on restart.
  • Keep control metadata separate from tensor/data movement; use #644 handles/residency contracts. Map requested CPU/GPU placement to actual qualified resources and refuse unsupported devices. No silent remote execution or fallback.
  • Demonstrate an agent submitting .om intent to compose a UI and backend, run a real bounded CPU computation, store a result, stream progress and update UI; then inspect, cancel, recover from an injected service crash and restore a previous supported configuration. GPU and additional machine profiles are separately measured cells.
  • Tests cover stale plan, revoked authority, wrong objective, version skew, unavailable adapter, mid-effect crash, lost acknowledgement, duplicate command, concurrent change, partial rollback and unsupported provider. Raw action receipts must match actual effects, not generated descriptions.

Scope and delivery

Implement a finite end-to-end control path with a coverage registry for the wider ecosystem. Distinguish controlling an existing runtime via an adapter, executing .om natively, compiling to an outward target, and replacing an OS component. No 'entire ecosystem implemented' claim from one demo. Existing verified schemas/components feed this increment without reopening all prior work. Native facilities missing today are concrete dependencies to their existing owners.

Governing implementation direction

Drake, 2026-10-23: the agent must be able to control the compute ecosystem through Omega, including frontend/backend composition. .om is the only forward source-language path; .osc is legacy. Extend existing handwritten seeded .om production components and their current owners. External UI frameworks, runtimes and services are declared endpoints/targets, not hidden implementations of Omega semantics. Legacy C/Rust sources below document existing contracts and migration obligations; do not create parallel replacements or require legacy .osc production execution. Keep the Unix division of responsibilities: typed contracts and small adapters with bounded interfaces, one coherent Omega-facing surface. Reconcile current branches/comments/ledger and existing migration owners before editing. Reuse native capability, objective/effect, transport, adapter lifecycle, receipt, trace and judge machinery. Preserve existing Renda publication/review ownership and live services. Record source/tool/adapter/profile pins, real commands/exits, negative controls and independent final-source review. Unsupported/unrun targets are explicit. This issue authorizes development, not deployment to external accounts or changes to live machines.

Physical hardware is an intended endpoint

The scope explicitly includes driving physical hardware from compiled .om. Consume existing aien-dev/aienux#31 for PCIe/MMIO/DMA/NVMe and aien-dev/synapse#54 for the raw segment store. Agent intent flows through checked compiled operations; the LLM is not invoked for each register access or I/O completion.

Expose device/namespace identity, extent bounds, generation, queue/buffer limits, completion versus durability, timeout/uncertain state and reset ownership through existing contracts. Preserve DMA/buffer ownership until completion or proven quiescence; cancellation alone cannot release device-accessible memory. A hosted control adapter, emulated controller and native physical driver each retain distinct evidence. All forward first-party implementation remains .om; .osc remains legacy. Broader device families require their own qualified protocol/provider profiles.

The first physical storage work follows existing #31/#336 provisioning and hardware gates. Complete independent contract, code and disposable-emulator work first. Queue/buffer arithmetic has been checked with Wolfram in #31; no device performance claim follows from it.

drakestapleton wrote on 2026-10-23 22:23 UTC

Security qualification follow-up — 2026-10-23

Tracker: https://github.com/aien-dev/omega-mv/issues/673

User-authorized acceptance additions; existing ownership and scope remain. These are pending work, not claims of passing tests.

  • Integrate #659 contracts with authoritative store and actual dispatch; never trust caller-supplied authorization booleans.
  • Define the linearization/fencing point between current-grant validation and effect submission; test revocation before/after it, including queued work.
  • Inject a crash before/after each durable transition and external effect, including effect-completed/acknowledgement-lost. Uncertainty blocks blind retry until authoritative reconciliation.
  • Test duplicate request, object/descriptor reuse, changed scope/provider/policy, stale generation and restart rollback. Restart cannot revive a revoked grant or reset consumption limits.
  • Demonstrate a real consumer; passing caller-owned contract tests alone does not qualify production. Coordinate host #670 and device #672.

Delivery and qualification

Authorized security follow-up, 2026-10-23. Reconcile current source, branches, issue comments, AGENTS.md, plan authority and worktree ownership before edits. One writer per shared compiler/runtime file; preserve existing Renda/desk review and release ownership. All new first-party implementation, runners and tests use seeded .om. Missing facilities go to the existing compiler owner; no second compiler, runtime, authority or store. Qualify replacements and consumers before removing superseded active first-party code/dependencies; preserve Git history and immutable evidence. Record exact source/seed/compiler/binary/config/fixture identities, raw commands and exits, independent review and explicit PASS/FAIL/INVALID/NOT_RUN. Emulation is not hardware qualification. A hash/signature authenticates identity, not correctness. No automatic deployment, live GPU interruption, driver changes, private-data upload or issue closure from a source-only PR.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:11 UTC

Recovered GitHub comment by @aien-spark on 2026-10-24T01:17:34Z. Original comment 6378055851

The .om authority foundation is now in-tree on fix/security673-qualified:

  • cffd44b: seed/authority/{action,delegate,reuse}.om transition contracts, promoted from the control artifact. Checks: 219/074/074, all exit 0.
  • 637a91f: seed/authority/store.om, a durable 32-word record store with a generation file: same-directory temp write, fsync, atomic rename, exact 256-byte read, short/torn file refusal, and a caller-side generation check. Checks: 077/000, exit 0. All four programs run inside gate669.

This is the replacement under construction, not a second production authority service. It does not yet dispatch an effect, fence revocation across a running effect, or enforce a budget. The legacy C authority/reuse owners remain active until the dispatcher and consumer cutover exist.

Evidence: evidence/SECURITY-673/authority1; migration order: MIGRATION.md phase 2. Next is the dispatcher/revocation fence, then consumer cutover and C deletion.

Sign in to comment