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

GitHub aien-dev/aien-sovereign-core-mv#220 (code only)

closed derived 377fb2296c8f56d9 #220

Imported from GitHub aien-dev/aien-sovereign-core-mv#220 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 80e071a3ef700dbe31b1b081a957eebdcbf5ffc3 · Head 93dc8fa85dc1bd0bf2a01f5e747be656079806ec

Apply it

git checkout -b patch-377fb2296c8f56d9 80e071a3ef700dbe31b1b081a957eebdcbf5ffc3
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/377fb2296c8f56d9.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aien-sovereign-core-mv
220
93dc8fa85dc1bd0bf2a01f5e747be656079806ec
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":220,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/220","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:21Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 11bbe442..81979b08 100644
--- a/.crumb
+++ b/.crumb
@@ -77,14 +77,14 @@
         }
       ],
       "children_root": "sha256:10d81c6270915316b54eee21734bb8e8f2716ffdc567100fb347a5f22ed95e24",
-      "compiled_at": "2026-10-06T01:17:44Z",
+      "compiled_at": "2026-10-06T02:42:51Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:427b1abd06f870fb1fa9e845ab7f98055b5e4ca7c6bc5ed5ea7b58f6d026b01d",
-      "evidence_files": 20,
-      "evidence_root": "sha256:1ef4526f6fe1ba0cee21a89c3313d37bf2e94e1aa2e9bd1a364225e52882d170",
-      "files": 687,
-      "generated_at_commit": "d4d732ddfb59b90019406ad06bc65ec7d982e6f8",
-      "source_tree": "sha256:cc2debed81e176e7593b190a0d79414b6b351b768a22fdb91a16d2a185d394ab"
+      "digest": "sha256:038366bb5f7ed4cc6d1fded08d5267da6bc51643eca0750286c34417f9c8ce7f",
+      "evidence_files": 21,
+      "evidence_root": "sha256:c6ca9ef9b435dc65c83779ef179f9b4531caaf9c9119598c886d05b5e37e8052",
+      "files": 688,
+      "generated_at_commit": "796b144abd8e4a2fbc68073ebc259ddd9822740c",
+      "source_tree": "sha256:b6cf3e40ae7d574ea7949b8645c9dc25b39cb8e04e960f0588701b73129a1b4b"
     }
   },
   "history": [],
diff --git a/docs/release/receipts/2026-10-06-install-upgrade-rollback.md b/docs/release/receipts/2026-10-06-install-upgrade-rollback.md
new file mode 100644
index 00000000..9c01c63b
--- /dev/null
+++ b/docs/release/receipts/2026-10-06-install-upgrade-rollback.md
@@ -0,0 +1,113 @@
+# Receipt: install, execute, upgrade, rollback, 2026-10-06 (NEXT-PHASE-4)
+
+Machine: NVIDIA DGX Spark (aarch64, Linux 7.0.0-1019-nvidia), host CPU only. No model was loaded and
+no GPU work was run (see step 2 for how `--version` was kept off nvidia-smi). Repository: aien-sovereign-core
+main at 80e071a (the CAND-3 sovereign-core pin). Nothing was written outside a scratch prefix; `$HOME` for the
+installer was an empty temporary directory, no `sudo`, no PATH profile edits (`AIEN_INSTALL_NO_PROFILE=1`).
+
+## Candidate (CAND-3 pins, frozen manifest qualification/candidates/CAND-3.toml)
+
+- sovereign-core 80e071a3ef700dbe31b1b081a957eebdcbf5ffc3
+- omega f816473df391bc4fbcf99df722edd70ed26ebef1 (checked out at that commit, `AIEN_OMEGA_DIR`)
+- physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf (equals omega `physics.lock`, `AIEN_PHYSICS_DIR`)
+- toolchain: rust-toolchain.toml, 1.98.1; fresh `CARGO_HOME`, `cargo fetch --locked`; `mojo` not on PATH
+- manifest digest `aien-cli-native-release` = 3a17ee79a238ad223fd59f4436d98906a0144b8d5ac47809da194a9ac1d493db
+
+Signing note (limit of this receipt): the private half of the AIEN release key is not available to this job
+and none was created or imported. The archives were signed with a throwaway key made inside the scratch prefix
+(`ssh-keygen -t ed25519`, comment np4-throwaway) and `AIEN_ALLOWED_SIGNERS` pointed at its public line, the same
+mechanism `scripts/test-install-release.sh` uses. So the signature-and-checksum path ran for real, but against a
+throwaway key, not the pinned release key. NOT_RUN: verification of a release signed by the pinned key. The
+refusal side was run: the same install with no signer override (pinned key from install.sh) printed
+"SHA256SUMS.txt signature is NOT valid. Nothing was installed." and created no bin directory.
+
+## 1. INSTALL: PASS
+
+Build (log np4-logs/build1.log):
+
+```
+cargo fetch --locked      (CARGO_HOME = fresh directory in the prefix)
+scripts/repro-build.sh -p aien-cli
+scripts/repro-build.sh -p spark-cockpit-rs -p spark-inquisitor -p cortex-encoder-rs -p cortex-rs -p spark-supervisor -p spark-debugger -p aien-cli
+scripts/repro-build.sh -p aien-cli     (again, last, see finding F1)
+scripts/package-release.sh <rel1>/sovereign-linux-aarch64.tar.gz
+(sign SHA256SUMS.txt with the throwaway key, namespace aien-release)
+AIEN_RELEASE_TAG=v0.0.0-np4 AIEN_RELEASE_BASE_URL=file://<rel1> AIEN_BIN_DIR=... AIEN_CONFIG_DIR=... \
+  AIEN_ALLOWED_SIGNERS=... AIEN_INSTALL_NO_PROFILE=1 bash <standalone copy of install.sh>   (env -i, empty HOME)
+```
+
+Results:
+
+- install.sh: "Release mode without a source tree", "Signature and checksum verified", 7 binaries installed
+  (aien, cortex, cortex-encoder-rs, spark-cockpit, spark-debugger, spark-inquisitor, spark-supervisor), config and
+  EN2 imprint written to the config directory. Empty HOME stayed empty.
+- archive sha256 e7411c7f9c0a4147... (archives are not byte-reproducible, tar stores mtimes; the binaries inside are)
+- installed `aien` sha256 3a17ee79a238ad223fd59f4436d98906a0144b8d5ac47809da194a9ac1d493db
+- Digest comparison to CAND-3 `aien-cli-native-release`: **EQUAL**.
+
+Finding F1 (measured, cause UNVERIFIED): `repro-build.sh -p aien-cli` alone gives 3a17ee79... (EQUAL to CAND-3).
+Building the seven packaged crates in one cargo command and taking that `aien-cli` gives
+ccecf9a13ef2c7a17eb54375b1f35efba2782b967635737bd19d34298b406ac9 (same size, 6,399,222 differing bytes). I believe
+dependency feature unification or code layout differs when more packages are in one invocation (UNVERIFIED, not
+investigated). The CAND-3 recipe is per-package, so the last command above rebuilt `aien-cli` alone before packaging.
+Also, `.github/workflows/release.yml` builds `cargo build --locked --release --workspace` (no repro-build, no
+`AIEN_OMEGA_DIR`), so a published release binary is not the candidate binary (UNVERIFIED which digest it yields;
+not built here).
+
+## 2. EXECUTE: PASS
+
+Run from an empty directory with `env -i`, no source tree. `--version` calls `nvidia-smi` when it is on PATH
+(crates/aien-inference-abi `ExecutionSurface::detect`), so it was run with PATH set to an empty directory.
+
+- `aien --version` -> `AIEN CLI v0.1.0 (Host: Linux CPU (20 Cores, 121 GB RAM))`, exit 0
+- `aien --help` -> slash command list, exit 0
+- `ldd` lists no cuda or nvidia library; `scripts/zero-cuda-gate.sh <installed aien>` -> ZERO_CUDA PASS; `--self-test` -> PASS
+  (negative control rejected a CUDA probe)
+- Not run: `aien doctor` and anything that probes the GB10 or loads a model (NOT_RUN, no-GPU rule).
+
+## 3. UPGRADE: PASS (by overwrite; no dedicated upgrade path exists)
+
+Change (scratch worktree only, not in this PR): one README line and the `--version` string
+`v0.1.0` -> `v0.1.0+np4-upgrade` in crates/aien-cli/src/main.rs. Rebuilt `-p aien-cli`, packaged release 2
+(archive sha256 8dec09b3f088fa9b...), signed with the same throwaway key, and ran the same install command over
+the first install after appending `# user edit` to operator.toml.
+
+- installed `aien` sha256 e789c04d55b1963efc5b766d23d9c7693863cc37200dbca51adb44d5fee7db46, changed from step 1
+- `aien --version` -> `AIEN CLI v0.1.0+np4-upgrade (Host: Linux CPU ...)`, exit 0
+- operator.toml kept (log: "Existing configuration found"), the user edit survived
+
+## 4. ROLLBACK: PASS as a fallback, MISSING: no native rollback
+
+install.sh keeps no previous version. Fallback used, labelled as such: run the same install command against the
+release 1 assets again.
+
+- installed `aien` sha256 3a17ee79a238ad223fd59f4436d98906a0144b8d5ac47809da194a9ac1d493db, equal to step 1 and to the
+  CAND-3 digest; `cmp` against the binary inside the release 1 archive: byte-equal
+- `aien --version` back to the step 1 output; zero-CUDA gate PASS; operator.toml unchanged by the rollback
+- Only `aien` was compared to a CAND-3 digest. The other six binaries came from the same archive; they were not in the
+  manifest and were not individually re-hashed after rollback beyond the archive match.
+
+## Gaps (the supported procedure lacks these; not implemented here)
+
+1. MISSING: no native rollback. No previous-version copy, no `--rollback`, no backup of the replaced binaries.
+   Rollback needs the old signed assets to still be available.
+2. MISSING: no recorded installed version. Nothing in the bin or config directory says which release is installed;
+   the same tag with different content installed without complaint (test used one tag for both releases), and there is
+   no downgrade or same-version guard.
+3. MISSING: no atomic replace. `cp` writes over each binary in place. Replacing a running binary may fail with
+   "Text file busy" or leave a half-written file on interruption (UNVERIFIED, not tested here). No `install -m` to temp
+   plus `mv`, and no all-or-nothing across the seven files.
+4. MISSING: no uninstall, and no list of installed files; a binary dropped from a later release (or `spark-cockpit-rs`
+   renamed `spark-cockpit`) is never removed. Also `cortex-encoder-rs` is installed under its crate name while the
+   others are renamed.
+5. GAP: EN2 imprint is copied with `cp -r` over the existing imprint every run, so local edits there are overwritten
+   (read from install.sh, not tested). operator.toml is preserved.
+6. GAP: published releases are not the candidate. release.yml builds `--workspace` without repro-build.sh or the omega pins
+   (finding F1). Next cut: make the release workflow build per the CAND recipe and publish the CAND digest list.
+7. GAP: no published linux-aarch64 asset has been verified on the Spark (inherited from the 2026-10-04 receipt), and the
+   pinned release key was never exercised here (NOT_RUN above).
+8. GAP: `package-release.sh` output is not byte-reproducible (tar mtimes, owner); only the binaries inside are.
+
+Next cut: one script (`scripts/upgrade-release.sh` or a mode of install.sh) that stages the new release, verifies, swaps
+atomically, records the installed tag and digests in a manifest file, and keeps one previous version for `--rollback`;
+plus the release workflow change in gap 6.