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 / CONTEXT.md

75 lines · 6193 bytes Raw Blame History Source

aien-sovereign-core

The Rust workspace for the AIEN host runtime on Linux (DGX Spark target): the aien command line, a single-process runtime daemon, the inference ABI and scheduler, and the supporting services around them. This file lists what exists and who owns what. It makes no claim that any part is complete or released; the README states the release state, and docs/audits/ in aien-architecture holds the integration audit.

Ownership: this repository has no CODEOWNERS file, so per-component owners are not recorded here (UNVERIFIED who owns each crate). Cross-repo plans and decisions are owned by aien-architecture (PLAN_AUTHORITY.md, CURRENT_EXECUTION_PLAN.md, ADRs). Decisions made in this repo live in docs/adr/.

Language

Runtime daemon: The long-running process started by aien start (it runs as aien --daemon). It owns the model, the KV memory and the socket the command line talks to. Code: crates/aien-runtime, started from crates/aien-cli/src/commands.rs. Avoid: server, service

Approval desk: The operator's approval step for effects. It is required by default; a desk key created by aien compose desk-key --create 1 must exist before the daemon starts. Code: aien-runtime/src/compose/bridge.rs, approved_auth.rs. Avoid: login, auth

Objective record: The operator's written objective, stored as objectives/<id>.json under the provenance folder, re-read by the daemon when a grant is bound to it. Code: aien-runtime/src/objective.rs, aien-cli/src/objective.rs. Avoid: task, ticket

Compose home: The state folder holding the desk key and composition state (AIEN_COMPOSE_DIR, else under AIEN_RUNTIME_STATE_DIR, else XDG state, else ~/.local/state/aien-runtime/compose).

Candidate: The release candidate this tree may be released as, named in release/candidate.toml with its model digests and source pins. omega.lock pins the omega commit that is linked. Changed only with aien-architecture's candidate manifest.

Generation controller: The one module that runs a generation for any model: it keeps the sequence ledger (history and position), reuses a prefix, rewinds, exports and restores the KV cache, picks each token, applies constraints, stops and streams. Written once; drives a forward pass through the ForwardPass trait (ADR 0004). Planned code: aien-inference-abi, type GenerationController<M>. Avoid: engine, sequence driver, inference loop, runtime (that word means the daemon)

Forward pass: One model's implementation behind the seam: its weights, layer maths, kernels, attention path and cache, prefill strategy, decode graph, output head, traces and mutants. The 30B MoE, the 8B dense and the host fake are each one forward pass. It never loops over tokens itself. Avoid: engine, model (ambiguous with the weights file), backend

KV geometry: The numbers that fix the KV cache's layout and payload bytes (layers, query heads, KV heads, head width, rope theta, block size), produced from a model's config and read by every cache constructor and by persistence. Type KvGeometry (ADR 0004). Model-independent: no cache code reads Qwen3MoeConfig directly. Avoid: config, shape, dims

Head: The pending output a forward call leaves behind for one position, from which the next token is chosen. Read once, as either the chip's own argmax or the full logits. One after prefill, one per decoded token. Avoid: pending token, logits buffer, output (overloaded)

Step rule: What a constraint allows at one decode step: anything, an allowed set of token ids, one forced token, or finish. Applied by the generation controller between the head and the sampler. Type StepRule (ADR 0004). Avoid: mask (that is one way to apply a rule, not the rule), grammar

Host fake: The test-only forward pass that runs with no chip and no weights, on a real host KV cache, with tokens that depend on every stored KV row. Used to test the generation controller end to end, including constraints and persistence. Type EchoChainModel (ADR 0004). Avoid: mock, stub (the serve-http stub engine is a different thing)

Components (from crate descriptions)

Runtime and inference

Identity, memory, evidence

Services and tools

Where things are