interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / crates / aien-omega-compose

4ba4b4e build: refuse an omega checkout with uncommitted tracked changes Drake Stapleton committed 2026-11-06
..
abi/
src/
tests/
.crumb369
Cargo.toml674
README.md2744
build.rs10008

README.md

aien-omega-compose

Rust binding to omega COMPOSITION-2 through the rxc_host C ABI (src/runtime/rxc_host_abi.h, archive build/librx_compose.a, make target in omega mk/rx_compose_lib.mk). NEXT-PHASE-1 cut 1b.

Building against omega

The library is built from an omega checkout whose HEAD must equal omega.lock (the same pin aien-omega-gpu uses; since NEXT-PHASE-1 it is omega 62b6a28, which contains librx_compose.a). Default build, no override:

AIEN_OMEGA_DIR=<omega checkout at omega.lock>
AIEN_PHYSICS_DIR=<physics checkout at omega physics.lock>
AIEN_AIENOS_LOCK_REPO=<aienos clone>
cargo test -p aien-omega-compose
VariableMeaning
AIEN_OMEGA_DIRomega checkout at omega.lock; shared with aien-omega-gpu
AIEN_OMEGA_COMPOSE_DIRa different omega checkout for this crate only (takes precedence over AIEN_OMEGA_DIR)
AIEN_OMEGA_COMPOSE_SHAdeveloper override: full 40-hex sha the checkout must be at instead of omega.lock, for building against an unmerged omega branch. Prints a build warning; never used for a release build or a campaign receipt.
AIEN_PHYSICS_DIRphysics checkout at omega's physics.lock (default <omega>/../physics)
AIEN_AIENOS_LOCK_REPOaienos clone holding omega's aienos.lock commit (passed as AIENOS_LOCK_REPO)
AIEN_OMEGA_COMPOSE_LIBlink a prebuilt librx_compose.a instead (not sha-checked)
AIEN_FORCE_CPU_STUB=1stub: every call returns ComposeError::Unavailable (build time only; for a CPU-only run use AIEN_BACKEND=cpu, which makes the daemon refuse a GPU build)

With no checkout and no library set the crate builds the stub and prints a warning. Use AIEN_OMEGA_COMPOSE_DIR together with AIEN_OMEGA_COMPOSE_SHA, so an override never changes the checkout aien-omega-gpu checks against omega.lock.

The integration test (tests/compose.rs) is ignored in a stub build.

Semantics (from the C header)

  • open binds the directory to one AienMachineId (machine.id); another machine is refused. The Cortex journal is <dir>/cortex.cx.
  • register_skill before the first run/recall/info. At most 2 Skills. Callbacks run on omega World worker threads.
  • run(task, now_us): the Skills compete on staged J-Space branches, AEGIS checks each result with the set_verify callback, the winner commits. The result carries the Cortex record ids, branch count and verdict.
  • A reopen appends records; pre-restart records stay an unchanged prefix.
  • Torn journal tail: refuse_torn = true refuses without touching the file; otherwise it is repaired when it lies past the last commit, and refused explicitly (stably) when it lies inside the committed record.