diff --git a/.crumb b/.crumb index d38130fb..7eaeff89 100644 --- a/.crumb +++ b/.crumb @@ -76,7 +76,7 @@ "purpose": "ALLEN scoped memory store: scopes enforced at recall, inspect/correct/export, key-destroying for" }, { - "digest": "44dc482b8c9db8919a68ec69b019cd77967232a6ec8b1910c0dfe3cd4d71f141", + "digest": "cd47dee5280a769dfc65a68275cc8a78b68392024f4d2bf25bd57383bce5c32a", "last_commit": "b9b52f9c", "name": "crates/aien-allen-profile", "purpose": "ALLEN persona profile v1: versioned, user-editable profile bound to the engaged ALLEN identity; " @@ -112,21 +112,21 @@ "purpose": "" }, { - "digest": "b787845b373f1f2ef48522c2575a6de8ad32e3584bef4b578ba61d2ab053187c", + "digest": "761ec03bf3abdd7548b67ef9fac479b3f5a54df82d084788bdf9c444ff2d6daa", "last_commit": "fe3677c3", "name": "tools/aien-local-ci", "purpose": "Local CI sandbox exec contract (C8), aien-run user/caches install, Forgejo trigger hook, health " } ], - "children_root": "sha256:111edf8bf001ed434f7dacbc6d8ab9d75f6bda2cd909d01264fb42bbe38b1d74", - "compiled_at": "2026-10-17T11:58:09Z", + "children_root": "sha256:31cf115012cf9c724c7ab1cfbaa8c28e2a028b2054da6e22255fce9397968353", + "compiled_at": "2026-10-18T04:49:16Z", "compiler": "crumb-compile/1", - "digest": "sha256:90138b1fd1cf3ffa4f762b157930e959f2bea50c41351c40b41330ae9edff05b", + "digest": "sha256:9be5f4b447e1683f000a53779fc614686bbdcd6e84e7a047d168cb6ae2aa98e8", "evidence_files": 1578, "evidence_root": "sha256:135e27a1a0704c4a8371cd2c1eb555f2b5beec61c212949b029a5457418a7160", "files": 5891, - "generated_at_commit": "6fb606867d2cd502b9475cd2ff0cc85ab40b16c9", - "source_tree": "sha256:7ac140a01c7f7ef0cc9f91a7cf9ea94fb063f8ca7f24365f185b9da5b2ed26b9" + "generated_at_commit": "12e71aad80fda23a428317d11b0dac02d1c777f1", + "source_tree": "sha256:b85438aa4ae566248e9e8aefbd6845e66fa9cc492b61c9836d214e73149c2dd2" } }, "history": [], diff --git a/README.md b/README.md index c592b572..4efd878c 100644 --- a/README.md +++ b/README.md @@ -2,36 +2,43 @@ [![License: AGPL-3.0-or-later](https://img.shields.io/badge/License-AGPL--3.0--or--later-blue.svg)](LICENSE) -The earlier **Linux-hosted** AIEN runtime, written in Rust: agent CLI, persistent memory (Cortex), a unified-memory KV-cache with copy-on-write branching, a continuous-batching scheduler, and an inference ABI whose GPU path runs AIEN's own Omega kernels. It runs on top of Linux on the NVIDIA DGX Spark (Grace Blackwell GB10) and is the reference for what the native stack must beat. +The Rust workspace of the AIEN host runtime and its verification tooling, running on Linux on the NVIDIA DGX Spark (Grace Blackwell GB10). It is where AIEN serves models today, where every change to the project is judged, and where releases are built and installed. -**This repository is legacy.** AIEN's own stack (the [aienos](https://github.com/aien-spark/aienos) kernel, the [omega](https://github.com/aien-spark/omega) runtime, [physics](https://github.com/aien-spark/physics) FORGE) is replacing it. Under [ADR 0024](https://github.com/aien-spark/aien-architecture/blob/main/docs/adr/0024-rust-scaffolding-omega-destination.md), working Rust here is kept as temporary scaffolding, not rewritten into C: it stays behind language-neutral boundaries and Omega replaces components one at a time after passing the same conformance tests. New Rust is allowed where it is not hardware-bound (for example the DEV-MODEL-0 program, a local development model on AIEN-owned inference). Component ownership (for example the Cortex now owned by omega, per ADR 0022) is recorded in [aien-architecture](https://github.com/aien-spark/aien-architecture); here `crates/cortex-rs` is non-authoritative and to be retired, not ported. +Part of [Aienix](https://github.com/aien-dev/aienix), the core tree of AIEN. Start there for how the pieces fit together. -No Python in this repo (a CI guard, `scripts/check-no-python.sh`, fails the build if any Python file is added), and no comparison with other people's systems: speed is measured against the machine's physical limit, and correctness against our own reference. +**Status 2026-10-18: research-grade, pre-alpha.** The crates build and are tested on the DGX Spark, and the judge below tests every AIEN pull request today. Nothing here is qualified as a finished system, and no public release exists. -> SUPERSEDED 2026-10-01 by [ADR 0024](https://github.com/aien-spark/aien-architecture/blob/main/docs/adr/0024-rust-scaffolding-omega-destination.md). Previous text, kept as history: **This repository is legacy.** The project's target language is C, and AIEN's own stack (the [aienos](https://github.com/aien-spark/aienos) kernel, the [omega](https://github.com/aien-spark/omega) runtime, [physics](https://github.com/aien-spark/physics) FORGE) is replacing it. No new Rust is added here, with one declared exception: the DEV-MODEL-0 program (a local development model on AIEN-owned inference) may temporarily extend this Rust substrate while the C replacements are built. Component ownership (for example the Cortex now owned by omega, per ADR 0022) is recorded in [aien-architecture](https://github.com/aien-spark/aien-architecture); here `crates/cortex-rs` is non-authoritative and to be retired, not ported. +What lives here: + +- **Host runtime.** The `aien` command line and the single-process runtime daemon (`crates/aien-cli`, `crates/aien-runtime`): model loading, the inference ABI (`crates/aien-inference-abi`), a unified-memory paged KV cache with copy-on-write branching (`crates/aien-kv-cache`, persistent form in `crates/aien-kv-store`), a continuous-batching scheduler with chunked prefill (`crates/aien-scheduler`), and an HTTP door that speaks a subset of the common chat-completions wire format (`crates/aien-serve-http`). +- **GPU through our own kernels.** The `crates/aien-omega-*` crates bind the Omega GPU engine from the [omega](https://github.com/aien-dev/omega) repository, pinned by `omega.lock`: matmul, bf16 and FP8 GEMV, MoE routing, prefill and decode attention, and the one-command-list decode step for Qwen3-30B-A3B. No CUDA toolkit anywhere. +- **The judge.** `tools/aien-test` and `tools/aien-local-ci` are the AIEN verification pipeline ([ADR 0033](https://github.com/aien-dev/aien-architecture/blob/main/docs/adr/0033-aien-verification-pipeline.md)): gate manifests, verdicts, immutable evidence receipts and signed bundles. Every pull request in every AIEN repository is judged on the Spark by this code before it merges; GitHub-hosted runners only check the signed bundle. +- **Releases.** `install.sh`, the release scripts and `docs/release/` build, sign, verify and install AIEN; `crates/aien-verify` and `crates/aien-campaign-verifier` check runs and evidence campaigns without linking the code under test. +- **Identity and agents.** ALLEN, the persistent cognitive entity boundary ([ADR 0035](https://github.com/aien-dev/aien-architecture/blob/main/docs/adr/0035-persistent-cognitive-entity-boundary-allen.md)) in `crates/aien-allen*`; the agent harness, MCP, capability and switchboard crates. +- **Supporting services and scaffolding.** Cortex memory (`crates/cortex-rs`, non-authoritative since omega owns Cortex under ADR 0022), the `spark-*` services, Crumb v1 (`crates/crumbs`) and the shared test board (`crates/aien-proof`). + +**Where it sits in AIEN.** [ADR 0024](https://github.com/aien-dev/aien-architecture/blob/main/docs/adr/0024-rust-scaffolding-omega-destination.md) sets the language rule: Rust is the scaffolding, Omega is the destination, and C or assembly stay only where hardware, boot, ABI or measurement justify them. Working Rust here is kept and extended, never rewritten into C as a migration step. Each subsystem sits behind a deliberately boring, language-neutral boundary so that Omega can replace it one piece at a time after passing the same conformance tests. Component ownership across repositories is recorded in [aien-architecture](https://github.com/aien-dev/aien-architecture). Earlier wording that called this repository legacy is withdrawn; its history is in the git log and in ADR 0024. ## Current state -Research-grade and pre-alpha. Crates build and have unit tests on the DGX Spark; execution is CPU plus GPU through AIEN's own Omega kernels. Modular MAX and Mojo were removed from the project on 2026-10-15. Nothing here is qualified on hardware as a finished system. Live status and sequencing: [CURRENT_EXECUTION_PLAN.md](https://github.com/aien-spark/aien-architecture/blob/main/CURRENT_EXECUTION_PLAN.md) and the [implementation status snapshot](https://github.com/aien-spark/aien-architecture/blob/main/docs/02-implementation-status.md). Component detail and platform status: [docs/PLATFORM_MATRIX.md](docs/PLATFORM_MATRIX.md), [docs/AIEN_RUNTIME_ARCHITECTURE.md](docs/AIEN_RUNTIME_ARCHITECTURE.md). +Research-grade and pre-alpha. Crates build and have unit tests on the DGX Spark; execution is CPU plus GPU through AIEN's own Omega kernels. Modular MAX and Mojo were removed from the project on 2026-10-15. Nothing here is qualified on hardware as a finished system, and no public release exists yet. Live status and sequencing: [CURRENT_EXECUTION_PLAN.md](https://github.com/aien-dev/aien-architecture/blob/main/CURRENT_EXECUTION_PLAN.md) and the [implementation status snapshot](https://github.com/aien-dev/aien-architecture/blob/main/docs/02-implementation-status.md). Component detail and platform status: [docs/PLATFORM_MATRIX.md](docs/PLATFORM_MATRIX.md), [docs/AIEN_RUNTIME_ARCHITECTURE.md](docs/AIEN_RUNTIME_ARCHITECTURE.md). Repository vocabulary and ownership notes: [CONTEXT.md](CONTEXT.md). Known limits: the GPU fallback counter covers only instrumented operations, so execution is not exclusively accelerated; Qwen full-runtime qualification is not complete; the C1 evidence campaign is in progress. ## Measured results -Every headline performance number must resolve to a reproducible command and an artifact bundle (commit identity, hardware and environment record, exact command, raw samples, SHA-256 digests, measurement definition, reproducibility steps). Earlier figures (branch fork latency, COW page mutation latency, memory sharing ratios, service comparison table) are withdrawn until regenerated to that standard. The evidence bundles live in [aien-spark/benchmarks](https://github.com/aien-spark/benchmarks). +Every headline performance number must resolve to a reproducible command and an artifact bundle (commit identity, hardware and environment record, exact command, raw samples, SHA-256 digests, measurement definition, reproducibility steps). Speed is reported against the machine's physical limit and against our own previous run, never against other people's systems; correctness against our own reference. Earlier figures (branch fork latency, COW page mutation latency, memory sharing ratios, service comparison table) are withdrawn until regenerated to that standard. The evidence bundles live in [benchmarks](https://github.com/aien-dev/benchmarks). ## Standing rules -Language rule: Rust is scaffolding, Omega is the destination, and C or assembly stay only where hardware, boot, ABI or measurement justifies them ([ADR 0024](https://github.com/aien-spark/aien-architecture/blob/main/docs/adr/0024-rust-scaffolding-omega-destination.md), which supersedes the old "C is the target, no new Rust" rule). No Python anywhere in repos, build, CI or tooling. No CUDA toolkit and no new CUDA dependence. No systemd in AIENOS. No outside dependencies in the trusted base. No Modular MAX or Mojo anywhere in the tree (removed 2026-10-15); kernels are Omega or Rust, closest to the metal, fastest wins, build what is missing. - -> SUPERSEDED 2026-10-01 by [ADR 0024](https://github.com/aien-spark/aien-architecture/blob/main/docs/adr/0024-rust-scaffolding-omega-destination.md) (language part only; the Python, CUDA, systemd and dependency rules above are unchanged). Previous text, kept as history: C is the target language, with assembly only where measured; no new Rust, and existing Rust is legacy. No new Python. The few existing `.py` files here (helper scripts and Modular experiment code) are legacy and are to be rewritten in C or shell. No CUDA toolkit and no new CUDA dependence. No systemd in AIENOS. No outside dependencies in the trusted base. Mojo is the default for kernels, not dogma: closest to the metal, fastest wins, beat it if you can, build what is missing. +Rust is scaffolding, Omega is the destination, C or assembly only where hardware, boot, ABI or measurement justify them ([ADR 0024](https://github.com/aien-dev/aien-architecture/blob/main/docs/adr/0024-rust-scaffolding-omega-destination.md)). No Python anywhere in repos, build, CI or tooling (`scripts/check-no-python.sh` fails the build if a Python file is added). No CUDA toolkit and no new CUDA dependence. No systemd in AIENOS. No outside dependencies in the trusted base. No Modular MAX or Mojo anywhere in the tree. No comparison with other people's systems. Kernels are Omega or Rust: closest to the metal, fastest wins, build what is missing. ## Build and test Needs Rust 1.98.1, the version pinned in `rust-toolchain.toml` (rustup installs it on first use), on the DGX Spark or another Linux machine. ```bash -git clone https://github.com/aien-spark/aien-sovereign-core +git clone https://github.com/aien-dev/aien-sovereign-core cd aien-sovereign-core cargo test --workspace -- --test-threads=1 # one test thread, as CI runs it scripts/repro-build.sh -p aien-cli # release build with machine-local paths removed; build aien-cli on its own, because its digest changes with the other packages in the same cargo command (docs/release/F1-binary-digest-difference.md) @@ -40,12 +47,12 @@ scripts/repro-build.sh -p aien-cli # release build with machine-local paths re Installing a release (state on 2026-10-11, from `install.sh` and the dry-run artifact of Actions run 38105672607, nothing else): - `install.sh` with no arguments builds from source and verifies no signature. With `AIEN_RELEASE_TAG=vX.Y.Z` it installs a published release instead: it downloads the archive, `SHA256SUMS.txt` and `SHA256SUMS.txt.sig`, checks the signature with `ssh-keygen`, then the archive checksum, and writes `install-receipt.json` with a `signature_check` of `release`, `internal-test-key` or `dry-run-key` (see [docs/release/RELEASE_SIGNING.md](docs/release/RELEASE_SIGNING.md)). -- No public release exists. The public release key is not pinned yet (`AIEN_RELEASE_SIGNER` is empty until the key ceremony in [docs/release/KEY_CEREMONY.md](docs/release/KEY_CEREMONY.md)), so nothing can install as `release`. v0.1.0 and v0.1.1 are internal test releases. The release gate (`scripts/check-release-candidate.sh`) fails on current main (omega.lock differs from the CAND-4 manifest), see [#414](https://github.com/aien-spark/aien-sovereign-core/issues/414). +- No public release exists. The public release key is not pinned yet (`AIEN_RELEASE_SIGNER` is empty until the key ceremony in [docs/release/KEY_CEREMONY.md](docs/release/KEY_CEREMONY.md)), so nothing can install as `release`. v0.1.0 and v0.1.1 are internal test releases. The release gate (`scripts/check-release-candidate.sh`) fails on current main (omega.lock differs from the CAND-4 manifest), see [#414](https://github.com/aien-dev/aien-sovereign-core/issues/414). - After an install, follow [docs/FIRST_RUN.md](docs/FIRST_RUN.md): create the desk key (`aien compose desk-key --create 1`; `aien start` refuses without it), provision the model, start, record an objective. Objective records default to a durable per-user folder (`~/.local/state/aien-runtime/provenance`), not `/tmp`. The installer does not provision a model. `aien harness` is not shipped in this release and exits with a refusal. ## Contributing -Read [CONSTITUTION.md](CONSTITUTION.md) and [AGENTS.md](AGENTS.md) before opening a pull request. Changes ship on a branch with verification proof: the commands you ran and their output. Prefer work that moves capability into the C repositories over new Rust here. Contact: aien@aienos.com. +Read [CONSTITUTION.md](CONSTITUTION.md) and [AGENTS.md](AGENTS.md) before opening a pull request. Changes ship on a branch with verification proof: the commands you ran and their output. A pull request merges only after the Spark judge passes it and a maintainer adds the `ready-to-merge` label; the verdict of record is the commit status "AIEN Verification (Spark)" (how it works: [tools/aien-local-ci/README.md](tools/aien-local-ci/README.md)). Keep new Rust behind language-neutral boundaries so Omega can take each piece over later (ADR 0024). Contact: aien@aienos.com. ## License and values diff --git a/crates/aien-allen-profile/.crumb b/crates/aien-allen-profile/.crumb index 3160744c..362faf0a 100644 --- a/crates/aien-allen-profile/.crumb +++ b/crates/aien-allen-profile/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-14T01:16:47Z", + "compiled_at": "2026-10-18T04:49:16Z", "compiler": "crumb-compile/1", - "digest": "sha256:44dc482b8c9db8919a68ec69b019cd77967232a6ec8b1910c0dfe3cd4d71f141", + "digest": "sha256:cd47dee5280a769dfc65a68275cc8a78b68392024f4d2bf25bd57383bce5c32a", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 8, - "generated_at_commit": "a055a6e313d18ffba5e11afb64416bb65d78c529", - "source_tree": "sha256:43fcec1ec429b6b0dbb9c462d1dd02bd1efc8294dc1a27b7deeba7adbf8ed4be" + "generated_at_commit": "12e71aad80fda23a428317d11b0dac02d1c777f1", + "source_tree": "sha256:595d7155fdeb036754b502b29a8b30aeed0a229de41c8631cb935e995d6e8ea7" } }, "name": "aien-allen-profile", diff --git a/crates/aien-allen-profile/README.md b/crates/aien-allen-profile/README.md index 2451d733..d0705850 100644 --- a/crates/aien-allen-profile/README.md +++ b/crates/aien-allen-profile/README.md @@ -5,7 +5,7 @@ whether it keeps to plain language, and a few working preferences. It is tied to your ALLEN identity, but it is not the identity. Renaming ALLEN never changes who it is. -Tracks aien-spark/aien-architecture#159. This is version 1, host side only. +Tracks aien-dev/aien-architecture#159. This is version 1, host side only. ## What you can change diff --git a/crates/cortex-rs/README.md b/crates/cortex-rs/README.md index b905861a..3940d0e0 100644 --- a/crates/cortex-rs/README.md +++ b/crates/cortex-rs/README.md @@ -14,7 +14,7 @@ Native Rust memory engine with SQLite FTS5 lexical recall, bi-encoder vector sim ## Overview -`cortex-rs` is the Linux-hosted memory service (native Rust, Axum) that Atlas and the AIEN agent tools call for lexical and semantic recall. It is not the canonical memory owner: under [ADR 0022](https://github.com/aien-spark/aien-architecture/blob/main/docs/adr/0022-canonical-cortex-owner.md) the canonical Cortex owner at the Omega layer is omega `rx_cortex`, and under [ADR 0036](https://github.com/aien-spark/aien-architecture/blob/main/docs/adr/0036-release-v1-memory-owner.md) the memory the v1 release tests is `aien-allen-memory` attached to an engaged ALLEN identity. +`cortex-rs` is the Linux-hosted memory service (native Rust, Axum) that the AIEN agent tools call for lexical and semantic recall. It is not the canonical memory owner: under [ADR 0022](https://github.com/aien-dev/aien-architecture/blob/main/docs/adr/0022-canonical-cortex-owner.md) the canonical Cortex owner at the Omega layer is omega `rx_cortex`, and under [ADR 0036](https://github.com/aien-dev/aien-architecture/blob/main/docs/adr/0036-release-v1-memory-owner.md) the memory the v1 release tests is `aien-allen-memory` attached to an engaged ALLEN identity. It provides hybrid search combining BM25 full-text indexing with ONNX vector embeddings, enabling autonomous agents to recall procedures, lessons, and architectural discoveries across thousands of turns without context collapse. diff --git a/llms.txt b/llms.txt index 2f260084..0325d164 100644 --- a/llms.txt +++ b/llms.txt @@ -1,6 +1,6 @@ -# AIEN Atlas Sovereign Core +# aien-sovereign-core -> High-performance native agent runtime, ultra-low-latency Axum web gateway, and the AIEN native inference runtime for NVIDIA DGX Spark GB10. +> The Rust workspace of the AIEN host runtime and its verification tooling on the NVIDIA DGX Spark GB10: the aien command line and runtime daemon, inference ABI, paged KV cache and scheduler, GPU through our own Omega kernels, the AIEN verification pipeline (the judge), and release install. Rust is scaffolding, Omega is the destination (ADR 0024). Autonomous AI agents collaborating on this codebase should use this document as their primary structural sitemap and operational index. diff --git a/tools/aien-local-ci/.crumb b/tools/aien-local-ci/.crumb index 61fb8264..9a16b2f8 100644 --- a/tools/aien-local-ci/.crumb +++ b/tools/aien-local-ci/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-17T11:27:44Z", + "compiled_at": "2026-10-18T04:49:16Z", "compiler": "crumb-compile/1", - "digest": "sha256:b787845b373f1f2ef48522c2575a6de8ad32e3584bef4b578ba61d2ab053187c", + "digest": "sha256:761ec03bf3abdd7548b67ef9fac479b3f5a54df82d084788bdf9c444ff2d6daa", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 12, - "generated_at_commit": "fe3677c38c6cd8219db0959d954c8d83e1c8a52c", - "source_tree": "sha256:9cfa14eaf95c90bacd4d1a84f592c18e7a0f9abe0eb5992f9b779cf1a78b9d52" + "generated_at_commit": "12e71aad80fda23a428317d11b0dac02d1c777f1", + "source_tree": "sha256:1711bba429f58915c229b2ce8461550b88289ae7bee2d9b41bf51609ea71d4c9" } }, "layer": "infra", diff --git a/tools/aien-local-ci/README.md b/tools/aien-local-ci/README.md index af8d9224..1405253b 100644 --- a/tools/aien-local-ci/README.md +++ b/tools/aien-local-ci/README.md @@ -169,7 +169,7 @@ GitHub to act. One instance at a time (`flock` on `$STATE/pipeline.lock`; a seco and refusal is one JSON line in `$STATE/pipeline.jsonl`. Exit 0 when the round ran (refusals included), 2 on a usage or configuration error. Overrides: `AIEN_STATE`, `AIEN_CLONES`, `AIEN_RECEIPTS`, `AIEN_RECEIPTS_BRANCH`, `AIEN_TEST_BIN`, `AIEN_GH_OWNER` (default `aien-dev`), `AIEN_REPOS`, `GH`, `GIT`. GitHub calls use the canonical slug -(`gh api repos/aien-dev/ --jq .full_name`, so `aienos` becomes `aien-spark/aienos`). +(`gh api repos/aien-dev/ --jq .full_name`, so `aienos` becomes `aien-dev/aienos-mv` while the temporary `-mv` names last). * **publish**: for each `$STATE/bundles///bundle.json` of a repository whose trusted clone has a key in `origin/main:.aien/verify.pub` (several keys allowed, one per line, `#` comments, same rule as aien-test): skip when