Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/patches/68366993cf14bf0a # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/aien-sovereign-core-mv#649 (code only) closed derived `68366993cf14bf0a` #649 Imported from GitHub aien-dev/aien-sovereign-core-mv#649 (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 `12e71aad80fda23a428317d11b0dac02d1c777f1` · Head `7ffc10a0bc190370d19d373bbccd436760c793d6` ### Apply it ``` git checkout -b patch-68366993cf14bf0a 12e71aad80fda23a428317d11b0dac02d1c777f1 curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/68366993cf14bf0a.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 649 7ffc10a0bc190370d19d373bbccd436760c793d6 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":649,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/649","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:45Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index d38130fb..799aff6c 100644 --- a/.crumb +++ b/.crumb @@ -112,21 +112,21 @@ "purpose": "" }, { - "digest": "b787845b373f1f2ef48522c2575a6de8ad32e3584bef4b578ba61d2ab053187c", - "last_commit": "fe3677c3", + "digest": "f363b08e713fc95b31cfa39b73501f7c090c5f7f5fc77d05c0d221f3276fe9ac", + "last_commit": "bc1f7c9e", "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:ed77ce5f1b500dee7cc37d79bd8f4fed6d2b6c07683e119715e07dc713e8edd4", + "compiled_at": "2026-10-18T14:31:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:90138b1fd1cf3ffa4f762b157930e959f2bea50c41351c40b41330ae9edff05b", + "digest": "sha256:827a157b398d4bd7fbcd81ddfd7ce4736352e47bf104e14635cdb1f131224c7f", "evidence_files": 1578, "evidence_root": "sha256:135e27a1a0704c4a8371cd2c1eb555f2b5beec61c212949b029a5457418a7160", "files": 5891, - "generated_at_commit": "6fb606867d2cd502b9475cd2ff0cc85ab40b16c9", - "source_tree": "sha256:7ac140a01c7f7ef0cc9f91a7cf9ea94fb063f8ca7f24365f185b9da5b2ed26b9" + "generated_at_commit": "a2539f8cd411659af9440616e813a4e447f87dce", + "source_tree": "sha256:3f60c172ea68653b2b74fb092f824dbc16f98d3691fdc444b48ff7fb19c89a9b" } }, "history": [], diff --git a/tests/gates/run.sh b/tests/gates/run.sh index 3514e894..b14bc381 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -25,6 +25,11 @@ if [ -n "${HOME:-}" ] && [ ! -w "$HOME" ]; then HOME="$(mktemp -d)"; export HOME trap 'rm -rf "$HOME"' EXIT if [ -f "$ro_home/.gitconfig" ]; then cp "$ro_home/.gitconfig" "$HOME/.gitconfig"; fi + # The miri sysroot that install.sh prebuilt under the read-only HOME (#600) stays the one miri uses; + # the fresh HOME would otherwise send `cargo miri setup` off to rebuild it offline, which cannot work. + if [ -z "${MIRI_SYSROOT:-}" ] && [ -d "$ro_home/.cache/miri/lib" ]; then + MIRI_SYSROOT="$ro_home/.cache/miri"; export MIRI_SYSROOT + fi fi obs() { printf 'AIEN-OBS %s %s\n' "$1" "$2"; } # Inside the user sandbox (AIEN_SANDBOX_NESTED=1, set by the worker) five aien-test self-tests that would diff --git a/tests/gates/sc-miri.gate b/tests/gates/sc-miri.gate index 87bf9144..7b3bab2f 100644 --- a/tests/gates/sc-miri.gate +++ b/tests/gates/sc-miri.gate @@ -1,12 +1,11 @@ # tests/gates/sc-miri.gate # Mirrors hosted: hardening.yml miri: cargo +nightly miri test for aien-capability and aien-kv-cache + run_mutants.sh miri (hosted 1622 s) -# requires: operator in addition to host because the nightly miri component is not installed on this machine (rustup component add miri --toolchain nightly); the operator decides whether to install it. Hosted installs it on every run. +# requires: host only. The nightly toolchain with miri and a prebuilt miri sysroot are seeded read-only into the sandbox by tools/aien-local-ci/install.sh (#600), so the run needs no network and no operator step. gate: SC-MIRI manifest_version: 2 owner: aien-sovereign-core requires: - host - - operator inputs: - crates/aien-capability/ - crates/aien-kv-cache/ diff --git a/tools/aien-local-ci/.crumb b/tools/aien-local-ci/.crumb index 61fb8264..fb3e9792 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-18T13:36:29Z", "compiler": "crumb-compile/1", - "digest": "sha256:b787845b373f1f2ef48522c2575a6de8ad32e3584bef4b578ba61d2ab053187c", + "digest": "sha256:f363b08e713fc95b31cfa39b73501f7c090c5f7f5fc77d05c0d221f3276fe9ac", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 12, - "generated_at_commit": "fe3677c38c6cd8219db0959d954c8d83e1c8a52c", - "source_tree": "sha256:9cfa14eaf95c90bacd4d1a84f592c18e7a0f9abe0eb5992f9b779cf1a78b9d52" + "generated_at_commit": "bc1f7c9e5468d21275d70765aa0198e1702bb31e", + "source_tree": "sha256:a7a2b88a2c25942a05a661cad6a59c7a6bee8af81e05af22ab00020be19be299" } }, "layer": "infra", diff --git a/tools/aien-local-ci/README.md b/tools/aien-local-ci/README.md index af8d9224..b566fec7 100644 --- a/tools/aien-local-ci/README.md +++ b/tools/aien-local-ci/README.md @@ -88,7 +88,8 @@ added by this lane. | `cargo/` | root 0755 | CARGO_HOME (cargo works with it read-only: `--locked --offline` builds need no writes there) | | `cargo/registry`, `cargo/git` | root, read-only | seeded once from `~/.cargo` (1.9 GB + 1.3 GB; the git cache is needed because `Cargo.lock` has 3 git sources) | | `cargo/bin` | root | the operator's `rustup` binary + proxy symlinks; no second rustup install | -| `rustup/` | root, read-only | `settings.toml` (default 1.98.1) + `toolchains/1.98.1-aarch64-unknown-linux-gnu` copied (631 MB) | +| `rustup/` | root, read-only | `settings.toml` (default 1.98.1) + `toolchains/1.98.1-aarch64-unknown-linux-gnu` copied (631 MB), plus `toolchains/nightly-aarch64-unknown-linux-gnu` with miri for SC-MIRI | +| `.cache/miri` | root, read-only | miri sysroot built once by `install.sh` against the copied nightly (110 MB); `cargo +nightly miri setup` in the sandbox finds it and writes nothing (#600) | | `.gitconfig` | root 0644 | `safe.directory = *` (git 2.43 has no path globs; aien-run reaches nothing else) | | `mirror/.git` | drakestapleton 0755 | bare mirror of the trusted clone, refreshed by `wt.sh sync`; unwritable by aien-run | | `wt//` | root dir drakestapleton:aien-run 1775, `.git` root 0644, files aien-run | checkouts; aien-run can add files, cannot replace `.git` or write the mirror | diff --git a/tools/aien-local-ci/install.sh b/tools/aien-local-ci/install.sh index 807592a3..e1176a80 100755 --- a/tools/aien-local-ci/install.sh +++ b/tools/aien-local-ci/install.sh @@ -20,6 +20,7 @@ RUN_HOME=/var/lib/aien-run OPERATOR=${AIEN_OPERATOR:-drakestapleton} OP_HOME=$(getent passwd "$OPERATOR" | cut -d: -f6) TOOLCHAIN=${AIEN_TOOLCHAIN:-1.98.1-aarch64-unknown-linux-gnu} +MIRI_TOOLCHAIN=${AIEN_MIRI_TOOLCHAIN:-nightly-aarch64-unknown-linux-gnu} STATE="$OP_HOME/.local/state/aien-local-ci" # crumb source: aien-architecture main at this commit (2026-10-11, on GitHub main), file tools/crumb/crumb.c # (git blob 841f5317480b6643086061585c4309097975d8f9). Built with gcc 13.3.0 the binary's sha256 is @@ -91,13 +92,34 @@ seed_ro() { # seed_ro SRC DST seed_ro "$OP_HOME/.cargo/registry" "$RUN_HOME/cargo/registry" seed_ro "$OP_HOME/.cargo/git" "$RUN_HOME/cargo/git" seed_ro "$OP_HOME/.rustup/toolchains/$TOOLCHAIN" "$RUN_HOME/rustup/toolchains/$TOOLCHAIN" +# SC-MIRI (#600): the operator's nightly (with the miri and rust-src components) is copied the same way, and +# the miri sysroot is built once here, as root, into aien-run's default ~/.cache/miri. It has to be built against +# the copied toolchain path (cargo-miri hashes the source path, so a sysroot built from ~/.rustup is rejected and +# rebuilt, which fails on the read-only cache). The build fetches std's dependencies with a throwaway CARGO_HOME; +# the sandbox then only reads the finished sysroot and `cargo +nightly miri setup` is a no-op. +seed_ro "$OP_HOME/.rustup/toolchains/$MIRI_TOOLCHAIN" "$RUN_HOME/rustup/toolchains/$MIRI_TOOLCHAIN" +if [[ -x $RUN_HOME/rustup/toolchains/$MIRI_TOOLCHAIN/bin/cargo-miri ]]; then + S install -d -o root -g root -m 0755 "$RUN_HOME/.cache" + if ! S test -d "$RUN_HOME/.cache/miri/lib"; then + S rm -rf "$RUN_HOME/.cache/miri" "$tmp/miri-cargo" + S env -i HOME=/root RUSTUP_HOME="$RUN_HOME/rustup" CARGO_HOME="$tmp/miri-cargo" \ + MIRI_SYSROOT="$RUN_HOME/.cache/miri" PATH="$RUN_HOME/cargo/bin:/usr/bin:/bin" \ + "$RUN_HOME/cargo/bin/cargo" "+$MIRI_TOOLCHAIN" miri setup + S rm -rf "$tmp/miri-cargo" + say "built miri sysroot $RUN_HOME/.cache/miri" + fi + S chown -R root:root "$RUN_HOME/.cache/miri" + S chmod -R a+rX,u-w,go-w "$RUN_HOME/.cache/miri" +else + say "skip miri sysroot (no cargo-miri in $MIRI_TOOLCHAIN: rustup component add miri rust-src --toolchain nightly)" +fi # 4. rustup: the operator's rustup binary acts as the proxy (cargo/rustc/... are symlinks to it), with # RUSTUP_HOME=/var/lib/aien-run/rustup holding only settings.toml + the copied toolchain. No rustup-init, # no downloads: rust-toolchain.toml pins resolve against the copied toolchain only. S install -d -o root -g root -m 0755 "$RUN_HOME/cargo/bin" S install -o root -g root -m 0755 "$OP_HOME/.cargo/bin/rustup" "$RUN_HOME/cargo/bin/rustup" -for p in cargo rustc rustdoc rustfmt cargo-fmt cargo-clippy clippy-driver rust-gdb rust-lldb; do +for p in cargo rustc rustdoc rustfmt cargo-fmt cargo-clippy clippy-driver rust-gdb rust-lldb cargo-miri miri; do S ln -sfn rustup "$RUN_HOME/cargo/bin/$p" done printf 'version = "12"\ndefault_toolchain = "%s"\nprofile = "minimal"\n\n[overrides]\n' "$TOOLCHAIN" > "$tmp/settings.toml" ```