interplane.Get Omega
Read in your language

omega-harness

Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories

Brought by drakestapleton

Omega Node: build a seeded .om runtime for operator-directed hive control

Open · #205 · open 2026-11-07 00:16 UTC

Imported from GitHub aien-dev/omega-harness#205, by drakestapleton

drakestapleton wrote on 2026-11-07 00:16 UTC

Shared-state direction and checked model

Drake asks for a shared rhythm: coordinated work on common state, fewer repeated messages, and no imposed team lanes. Draft PR #206 records the resulting shared-state/pulse design, Wolfram calculations, and a Lean 4.35.0 checked abstract model. All 15 theorem declarations pass; only standard axiom dependencies are used, and a false-statement negative control fails as intended.

Use versioned shared artifacts, wake-on-change, bounded delta publication and operator-controlled work credits held through review. A pulse must not be a global barrier; slow readers/workers must not stall the whole hive. Stop and steering bypass routine batching. Preserve lossless authority records; only replaceable observations may be coalesced. The physical-wave analogy is a coordination hypothesis, not evidence that data transfer can be eliminated.

These proofs establish properties of the explicit model, not the native implementation. Shared-memory ordering, finite-width counters, authenticated tickets, durable recovery and .om refinement remain qualification obligations. Performance examples are modeled, not measured.


User-directed architecture

Drake requests a new Omega-native runtime node, invented and owned within Sovereign Intelligence. Working name: Omega Node. The server/runtime implementation language is seeded .om. The Node.js backend in #204 is an interaction reference, not the production foundation.

This issue establishes the build contract; it does not claim a compiled or deployed node. No new runtime repository has been created yet. Resolve its canonical placement with the existing repository map and owner before creating it. Keep compiler extensions in omega-mv, foreign interfaces in omega-bridge, and the existing hive authority migration coordinated with aien-dev/aien-sovereign-core-mv#925. Do not run two writable authorities for the same hive.

Definition

One native service per participating machine, exposing a versioned command/event interface and explicit worker capabilities. Within a hive, only the designated authority commits task transitions. Additional nodes execute delegated attempts with fencing and report observations. Network loss never grants a worker promotion/publication authority.

Small .om components:

  • reactor: bounded nonblocking I/O, timers, fairness and backpressure;
  • authority: checked commands, task/attempt generations and durable decisions;
  • supervisor: explicit executable/stdio/cwd/env contract, lifecycle and actual cancellation acknowledgement;
  • adapters: local Omega and selected external provider tools;
  • presentation service: snapshots and events for the operator's live board. UI state is a projection.

The queen proposes decomposition and routing. The operator sets goals and limits. Deterministic Omega code decides whether each requested transition is valid; natural-language output never becomes authority merely because an agent said it.

Source inspected, not inferred

Omega main 7caba0c0094628b384abf8961a33bd95ae9412cc; committed seed/out/omc SHA-256 5f90edea61bac241398df5036990d899361a5acd9decb37954ce088ec0f6f6df.

  • Compiler implementation: hpollfds emits bounded polling.
  • Process fixture: fork, packed execprog, pipefds, dupfd, waitio, killpid and waitpid.
  • Network fixture: native server/client using sockets, bind/listen/accept and send/recv.
  • File-lock fixture.
  • Language contract: fsync/fdsync, renames, partial-I/O obligations, execprog environment and descriptor policy.
  • Existing native authority dispatcher and store: reuse and qualify these foundations rather than invent a competing record store. These are bounded/synthetic implementations, not evidence of general provider orchestration. Reconcile known authority follow-ups, including omega-mv#670, before reuse.

Current execprog constraints matter: empty environment, no PATH search, preserves cwd and stdio, closes descriptors >=3, argument packet at most 4096 bytes. A CLI bridge must not assume inherited HOME/PATH/login variables or unlimited prompt arguments. Long prompts need a documented stream/file route. Define a separately reviewed, explicit environment/launch capability if required; do not loosen execprog silently. execpure's strict profile cannot be assumed to run networked provider CLIs.

First deliverable: N0 native node probe

Build a real seeded .om executable on Linux AArch64. It must:

  1. Accept versioned local commands over a Unix socket, validate the local peer and each command.
  2. Provide IDENTITY, SNAPSHOT, PAUSE, RESUME and SHUTDOWN. Names here specify protocol operations, not new language syntax.
  3. Run two synthetic .om workers: one responsive, one deliberately slow. Bound frame lengths, buffered bytes, task slots and per-loop work before accepting input.
  4. Continue answering control requests while the slow worker is blocked. Record measured latency with machine, load, configuration and a predeclared acceptance threshold.
  5. Stop/reap an owned worker and distinguish stop_requested, stopped and unknown.
  6. Reject malformed/truncated/oversized frames and handle partial reads/writes and EOF.

N0 is disposable process/liveness qualification. It has no production task authority and must not attach to the live hive.

N1 durable authority and recovery

Extend the existing authority path to meet core#925's contract. Freeze byte layout, schema version, command ID, expected revision, attempt ID, fencing generation, checksum/hash role, counter exhaustion and failure responses before implementing serialization.

  • Duplicate command IDs return the previously committed result.
  • Persist decision before acknowledging it; define process-crash and power-loss guarantees separately, including parent-directory sync and disk-full failures.
  • Reject stale attempts at actual mutation/publication boundaries.
  • Replay committed decisions only. Ambiguous external effects stay unknown pending reconciliation.
  • Exercise competing claimers, partial writes, truncation, crash points, restart and receipt tampering.
  • Reconstruct identical authoritative state from the journal; summaries/crumbs remain derived data.
  • The native transition model and acceptance tests should be in .om; use independent oracles without making them production dependencies. Any formal proof names its model-to-code boundary.

N2 one end-to-end worker

Connect one local Omega worker through an explicitly declared adapter; execute one bounded engineering task in an isolated workspace; capture exact base/artifact/check identities; operator acceptance and publication remain distinct. Observe inherited resources, process-group escape, timeout and cancellation behavior rather than claiming containment from PID tracking.

N3 visuals and provider expansion

Serve live snapshots/events from Omega. Preserve operator selection, command acknowledgement, pending/applied steering and reconnection semantics. Reuse only useful UI interaction lessons from #204. Evaluate existing omega-mv#785/browser work before assuming a qualified Wasm UI exists. Qualify Claude, Codex, Grok and Muse individually against pinned installed versions. Preserve official login flows and explicit provider choice. A web subscription alone is not a generic API entitlement. Declare retained provider executables/host services openly. Then add peer nodes, disconnect/rejoin tests, bounded fan-out and explicit authority transfer. Start local before distributed coordination.

Exit criteria and current status

Target: the operator can see and redirect every owned attempt; a slow/disconnected provider cannot block control; restart cannot duplicate an uncertain effect; stale workers cannot publish. Status: PROPOSED build contract, source inventory completed. New native code, compilation, runtime measurements and hardware qualification: NOT_RUN. This session's execution host is x86_64; it did not run the AArch64 seed or substitute a foreign-language implementation. Existing test files were inspected, not rerun.

drakestapleton wrote on 2026-11-07 00:23 UTC

Drake has asked me (Codex) to contribute the implementation directly. I am taking the first shared-memory transport component in a new omega-mv branch, scoped to seed/node/: bounded immutable publication, per-worker notification, stop observation, and actual forked-worker checks. I will not alter the live Core/Crumb authority path or another contributor's branch. Linear project: https://linear.app/drake-stapleton/project/omega-node-shared-memory-hive-runtime-37058a1eac4b . Source baseline omega-mv 7caba0c0094628b384abf8961a33bd95ae9412cc. Native Spark connection is currently offline; native qualification will be explicitly distinguished from available local checks. Plan: (1) implement and review the transport contract; (2) exercise it with the pinned compiler where available; (3) open a draft PR with exact evidence and remaining integration work.

drakestapleton wrote on 2026-11-07 00:27 UTC

Contribution opened: https://github.com/aien-dev/omega-mv/pull/1055 . Handwritten .om transport implements bounded immutable publication, topic cursors, per-worker eventfd hints and stop priority. Emulated process acceptance and all five negative controls passed; crumb/evidence/secret gates passed at the submitted head. The PR includes a content-addressed receipt. Native AArch64 and live integration remain NOT_RUN. DRA-286 through DRA-292 now track implementation, with dependencies and milestones in the Omega Node project. The existing seed/agent/agent.om is an integration starting point; no production authority or live model service was replaced.

Sign in to comment