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/aienux/patches/a31482e634256ce5 # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/aienux#395 (code only) closed derived `a31482e634256ce5` #395 Imported from GitHub aien-dev/aienux#395 (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 `3d6824ff4d70241b79924f4bfa93a8a8b9c2d052` · Head `e7c2366ef78210e3ade72e35300dcfc6cfb0fc5e` drakestapleton reviewed (COMMENTED) on 2026-10-30 11:18 UTC Triage: needs-changes (merge conflicts with `main`) Low risk and valuable: it only adds gate `inputs:` (no gate command changes, nothing removed), so gates stop being skipped. After rebasing, re-trace any gates or files added on `main` since 2026-10-16. To be merge-ready: rebase and pass checks. Worth landing early, since it makes gating of the other PRs more reliable. drakestapleton wrote on 2026-10-30 12:04 UTC Gate-input re-trace after merging main (head `44f1fd15`) This PR merged main twice: `aab6de6d` in `bf113aa8`, then `7ef0ea44` (which includes #462) in `44f1fd15`. Both conflicts were in generated `.crumb` files only. No gate command or input list was changed, and `crumb verify` reports 96 crumbs current. First merge (`aab6de6d`). Files added since the PR's earlier base `29e884d5`: - `native/disk/`: `OMEGA_NVME_READ.md`, `omega_nvme.om`, `omega_nvme_main.om`, `omega_nvme_transport.om`. Under `tests/`: `omega_nvme_adminwrap.om`, `omega_nvme_failstop.om`, `omega_nvme_probe.om`, `omega_nvme_receipt.txt`, `omega_nvme_reuse_search.txt`, `omega_nvme_runner.c`, `omega_nvme_test.sh`. - `native/kernel/dev/`: `rtl8127_bind.c`, `rtl8127_bind.h`. - `native/net/`: `aienos_report.c`, `aienos_report.h`, `aienos_rtl8127.c`, `aienos_rtl8127.h`. Under `tests/`: `report_send.c`, `rtl8127_test.c`. - `native/omega/platform/`: `README.md`, `cppc-fixture.json`, `gate.py`, `kernel-repro.py`, `pcie-cooling-proposal.patch`, `pcie-cooling-ref.c`, `readback.om`, `unit.om`, plus the generated crumbs. - `scripts/ck_spark_report_test.sh`. - Docs: `docs/SPARK_RTL8127.md` and `docs/campaigns/SPARK-BOOT-INPUT-20261028.md`. No gate reads these. Main also modified `native/kernel/Makefile`, `native/kernel/stage.mk`, `native/net/Makefile`, `scripts/native_boot_preflight.sh`, `scripts/qemu_ck_b7b_probe_test.sh` and `scripts/stage_one_time_boot_ck_b7b.sh`. I checked each non-doc, non-crumb path (50 in total) against the inputs declared in `tests/gates/*.gate`, for every gate whose `run.sh` step compiles or runs it. That found 0 gaps: - `native/` paths are covered by the `native/` input of AIENOS-CK-HOST-TESTS, AIENOS-CK-STAGE-TESTS, AIENOS-CK-B7B-PROBE and AIENOS-CK-QEMU-GATES. - Net files are also covered by AIENOS-NATIVE-NET. - Disk files are also covered by the native disk gates. - `scripts/` paths are covered by the `scripts/` input of AIENOS-CK-B7B-PROBE, AIENOS-CK-QEMU-GATES, the owner-key gate and AIENOS-VERIFY-ALL. No gate calls `scripts/ck_spark_report_test.sh`, but it sits under the `scripts/` tree those gates already list. The B7b gate still runs `--self-test` (which now includes the event-readout refusal cases), the default mode and `--positive`, as this PR wrote it. Second merge (`7ef0ea44`, #462). Files changed: - Added: `.github/dependabot.yml`, `.github/workflows/sbom.yml`, `AUDIT_SCOPE.md`, `SECURITY.md`. - Modified: `.github/workflows/aien-verification.yml`, `.github/workflows/copilot-setup-steps.yml`. These are CI configuration and docs. None of them is under a tree that a gate's `run.sh` step compiles or runs. The scripted check above ran before this merge and didn't cover these files; this classification comes from reading the file list. Conclusion: gate input coverage still holds after both merges. No input list needs to change. Not run: the QEMU gates (`ck-qemu-gates`, `disk-qemu`, B7b default/`--positive`/`--events`) need `qemu-system-aarch64`, which the agent VM doesn't have. Nothing ran on Pi 5, DGX Spark/GB10, iMac or physical NVMe. Any hardware behaviour in the files that came from main is hardware-unverified here and is left as main wrote it. — Grokbot ### Fetch it A git bundle of the pull request's head, 16746 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/aienux/patches/a31482e634256ce5.bundle -o a31482e634256ce5.bundle git fetch a31482e634256ce5.bundle refs/pull/395/head ``` Raw bundle · 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/aienux 395 e7c2366ef78210e3ade72e35300dcfc6cfb0fc5e ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aienux","number":395,"url":"https://github.com/aien-dev/aienux/pull/395","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:21Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index 03ae3e60..189b0f3e 100644 --- a/.crumb +++ b/.crumb @@ -22,44 +22,44 @@ "children": [ { "digest": "b7d58d76e7dacaa887051e8c2d64e2eaef683c9ba82c03e073002f6ddd920239", - "last_commit": "45d8f79", + "last_commit": "9f9b346c", "name": "crates", "purpose": "Directory crates. Purpose not yet described by a human." }, { "digest": "74bb22d6e439ad7405487d6846114229171cd42746cd2c3e7b2c2d41276008c4", - "last_commit": "4c25c6c", + "last_commit": "8182d6d3", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, { "digest": "0660522029d1706b495ea85da3194a9bcad5d7938241850f23920cd513f1b46d", - "last_commit": "b4c351e", + "last_commit": "aab6de6d", "name": "native", "purpose": "Directory native. Purpose not yet described by a human." }, { - "digest": "26606d0e8c4950a8c3c6e095c1420389acb5a4a1147b16b98c282db4c227d037", - "last_commit": "b4c351e", + "digest": "29e4b821b3b6cbd6ee01c8af06694de4a5118a2cf5f96ac6c7acca68f658d26c", + "last_commit": "bf113aa8", "name": "scripts", "purpose": "Directory scripts. Purpose not yet described by a human." }, { "digest": "e891c078bec120c3fdb14e13b7dd25d69054f608c2ea632adf2fd2b6e45d8fa1", - "last_commit": "29e884d", + "last_commit": "29e884d5", "name": "tools", "purpose": "First-party host artifact preparation tools" } ], - "children_root": "sha256:6bff61a659f1d6cfabc6ed7b237f02e998a6a134d21ece5aaa50af71fd3ab6ad", - "compiled_at": "2026-10-31T03:56:20Z", + "children_root": "sha256:a0cb9848caff8506cb044ae23751d1009b2359a03cec2882dcabe488cba98b6e", + "compiled_at": "2026-10-31T11:56:25Z", "compiler": "crumb-compile/1", - "digest": "sha256:66341791f683dae8f96d7aacc1842c249981f31ea4c2195997b827b43e18f3d9", + "digest": "sha256:8b51bc64008c9409492c736772f17cb7a7eb0a9e172971442af781baff4ee30d", "evidence_files": 274, "evidence_root": "sha256:af014a4ed8f6fe759fc5809807fb47578d3410811b522d9f65d749382b029802", - "files": 3729, - "generated_at_commit": "b4c351e7bc9c01e9384c19e9d6fc2ab4d2472e85", - "source_tree": "sha256:07c799c6a9a44467b36b39c4e9994e3bdd6417e0f726088b621e03b254c2e12e" + "files": 3730, + "generated_at_commit": "44f1fd15f64091e7c6ede3711b81aff3650711ff", + "source_tree": "sha256:76cc390202866ba028407965c89aab48ffdde357e9ce4cccb75678c15febba4a" }, "owner_lane": "", "provenance": { diff --git a/scripts/.crumb b/scripts/.crumb index a3e0db29..c0105d7e 100644 --- a/scripts/.crumb +++ b/scripts/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-31T02:58:08Z", + "compiled_at": "2026-10-31T11:56:25Z", "compiler": "crumb-compile/1", - "digest": "sha256:26606d0e8c4950a8c3c6e095c1420389acb5a4a1147b16b98c282db4c227d037", + "digest": "sha256:29e4b821b3b6cbd6ee01c8af06694de4a5118a2cf5f96ac6c7acca68f658d26c", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 133, - "generated_at_commit": "66bf338dd2c1ce4cf01f7f43094a939a33d1933a", - "source_tree": "sha256:222753c1362fb664e9d68a84113e34410a0eec5a1999c2135052abe9b513b221" + "generated_at_commit": "44f1fd15f64091e7c6ede3711b81aff3650711ff", + "source_tree": "sha256:638a38daf9f1fff1b7934a8f0d08aa94f914c93550fe54763f6e128396b78bc9" }, "owner_lane": "", "provenance": { diff --git a/scripts/qemu_artifact_test.sh b/scripts/qemu_artifact_test.sh index 0f769765..f85e5dca 100755 --- a/scripts/qemu_artifact_test.sh +++ b/scripts/qemu_artifact_test.sh @@ -120,7 +120,7 @@ fi # Test-only signing: debug build by design (release refuses the feature). cargo build --quiet -p aienos-artifact-tool --features seed0b-test-signing -tool="target/debug/aienos-artifact-tool" +tool="${CARGO_TARGET_DIR:-target}/debug/aienos-artifact-tool" esp_art="${work}/esp/EFI/AIENOS/ARTIFACTS" mkdir -p "${work}/esp/EFI/BOOT" "${esp_art}" "${fixtures}/pack.sh" "${tool}" "${esp_art}" @@ -210,7 +210,7 @@ commit="$(git rev-parse HEAD 2>/dev/null || echo unknown)" build_image() { # features, output AIENOS_COMMIT="${commit}" AIENOS_RESTART_SECS=1 cargo build --quiet --release \ -p aienos-boot --target aarch64-unknown-uefi --features "$1" --bin aienos-handoff - cp target/aarch64-unknown-uefi/release/aienos-handoff.efi "$2" + cp "${CARGO_TARGET_DIR:-target}"/aarch64-unknown-uefi/release/aienos-handoff.efi "$2" } if [[ -z "${captured}" ]]; then build_image seed0b-qualification "${work}/qualification.efi" diff --git a/scripts/qemu_boot_test.sh b/scripts/qemu_boot_test.sh index 897fda1d..f94c0a90 100755 --- a/scripts/qemu_boot_test.sh +++ b/scripts/qemu_boot_test.sh @@ -38,7 +38,7 @@ work="$(mktemp -d)" trap 'rm -rf "${work}"' EXIT mkdir -p "${work}/esp/EFI/BOOT" "${work}/esp/EFI/AIENOS" touch "${work}/esp/EFI/AIENOS/BOOTREPORT.TXT" -cp target/aarch64-unknown-uefi/release/aienos-handoff.efi "${work}/esp/EFI/BOOT/BOOTAA64.EFI" +cp "${CARGO_TARGET_DIR:-target}"/aarch64-unknown-uefi/release/aienos-handoff.efi "${work}/esp/EFI/BOOT/BOOTAA64.EFI" cp "${vars_fd}" "${work}/vars.fd" log="${work}/serial.log" diff --git a/scripts/verify_all.sh b/scripts/verify_all.sh index 49944abb..249a121c 100755 --- a/scripts/verify_all.sh +++ b/scripts/verify_all.sh @@ -120,9 +120,9 @@ echo "PASS AArch64 build: aienos-kernel for aarch64-unknown-none" echo "" echo "--- [AArch64 UEFI Image Builds] ---" cargo build --release -p aienos-boot --target aarch64-unknown-uefi --features firmware --bin aienos-boot -cargo run --quiet --release -p aienos-evidence -- verify-efi target/aarch64-unknown-uefi/release/aienos-boot.efi +cargo run --quiet --release -p aienos-evidence -- verify-efi "${CARGO_TARGET_DIR:-target}"/aarch64-unknown-uefi/release/aienos-boot.efi cargo build --release -p aienos-boot --target aarch64-unknown-uefi --features handoff --bin aienos-handoff -cargo run --quiet --release -p aienos-evidence -- verify-efi target/aarch64-unknown-uefi/release/aienos-handoff.efi +cargo run --quiet --release -p aienos-evidence -- verify-efi "${CARGO_TARGET_DIR:-target}"/aarch64-unknown-uefi/release/aienos-handoff.efi echo "PASS AArch64 build: aienos-boot.efi and aienos-handoff.efi PE headers verified" # Step 6: QEMU AArch64 UEFI Boot Verification (Emulator Boot Test) diff --git a/tests/gates/aienos-ck-b7b-probe.gate b/tests/gates/aienos-ck-b7b-probe.gate index c8ca7105..ba4908bc 100644 --- a/tests/gates/aienos-ck-b7b-probe.gate +++ b/tests/gates/aienos-ck-b7b-probe.gate @@ -16,6 +16,7 @@ inputs: - crates/aienos-infer-kernel/ - tests/gates/ - scripts/ + - native/ run: exec: tests/gates/run.sh args: ["ck-b7b-probe"] diff --git a/tests/gates/aienos-ck-host-tests.gate b/tests/gates/aienos-ck-host-tests.gate index b3f9cb0c..b0ba45d0 100644 --- a/tests/gates/aienos-ck-host-tests.gate +++ b/tests/gates/aienos-ck-host-tests.gate @@ -15,6 +15,12 @@ inputs: - crates/aienos-fpu-probe/ - crates/aienos-infer-kernel/ - tests/gates/ + - native/ + - scripts/native_package_test.sh + - scripts/native_package.sh + - crates/aienos-infer/ + - Cargo.toml + - .cargo/ run: exec: tests/gates/run.sh args: ["ck-host-tests"] diff --git a/tests/gates/aienos-ck-owner-keys.gate b/tests/gates/aienos-ck-owner-keys.gate index d0cd33a5..9a9053a4 100644 --- a/tests/gates/aienos-ck-owner-keys.gate +++ b/tests/gates/aienos-ck-owner-keys.gate @@ -16,6 +16,7 @@ inputs: - crates/aienos-infer-kernel/ - tests/gates/ - scripts/ + - native/ run: exec: tests/gates/run.sh args: ["ck-owner-keys"] diff --git a/tests/gates/aienos-ck-qemu-gates.gate b/tests/gates/aienos-ck-qemu-gates.gate index 7ebbb030..a1e0a341 100644 --- a/tests/gates/aienos-ck-qemu-gates.gate +++ b/tests/gates/aienos-ck-qemu-gates.gate @@ -16,6 +16,12 @@ inputs: - crates/aienos-infer-kernel/ - tests/gates/ - scripts/ + - native/ + - crates/ + - Cargo.toml + - Cargo.lock + - .cargo/ + - vendor/ run: exec: tests/gates/run.sh args: ["ck-qemu-gates"] diff --git a/tests/gates/aienos-ck-stage-tests.gate b/tests/gates/aienos-ck-stage-tests.gate index af76e173..f0c1e17a 100644 --- a/tests/gates/aienos-ck-stage-tests.gate +++ b/tests/gates/aienos-ck-stage-tests.gate @@ -15,6 +15,7 @@ inputs: - crates/aienos-fpu-probe/ - crates/aienos-infer-kernel/ - tests/gates/ + - native/ run: exec: tests/gates/run.sh args: ["ck-stage-tests"] diff --git a/tests/gates/aienos-crypto-boundary.gate b/tests/gates/aienos-crypto-boundary.gate index f923bce0..d6d481af 100644 --- a/tests/gates/aienos-crypto-boundary.gate +++ b/tests/gates/aienos-crypto-boundary.gate @@ -12,6 +12,9 @@ inputs: - Cargo.lock - vendor/ - tests/gates/ + - crates/ + - .cargo/ + - docs/adr/0015-golden-vectors.json run: exec: tests/gates/run.sh args: ["crypto-boundary"] diff --git a/tests/gates/aienos-disk-qemu.gate b/tests/gates/aienos-disk-qemu.gate index d8ac7a13..2b8fe430 100644 --- a/tests/gates/aienos-disk-qemu.gate +++ b/tests/gates/aienos-disk-qemu.gate @@ -10,6 +10,7 @@ inputs: - scripts/qemu_native_nvme_test.sh - scripts/lib_gate_hold.sh - tests/gates/ + - scripts/qemu_native_sdhci_test.sh run: exec: tests/gates/run.sh args: ["disk-qemu"] diff --git a/tests/gates/aienos-infer-crate.gate b/tests/gates/aienos-infer-crate.gate index 9110ee81..03612d05 100644 --- a/tests/gates/aienos-infer-crate.gate +++ b/tests/gates/aienos-infer-crate.gate @@ -10,6 +10,9 @@ inputs: - Cargo.toml - Cargo.lock - tests/gates/ + - crates/ + - .cargo/ + - vendor/ run: exec: tests/gates/run.sh args: ["infer-crate"] diff --git a/tests/gates/aienos-infer-forward.gate b/tests/gates/aienos-infer-forward.gate new file mode 100644 index 00000000..2782428a --- /dev/null +++ b/tests/gates/aienos-infer-forward.gate @@ -0,0 +1,26 @@ +# tests/gates/aienos-infer-forward.gate +# Not hosted (the hosted runner has no model file): release-build Llama forward comparisons against llama.cpp +# (crates/aienos-infer/tests/forward.rs) with the real model; FAILS if the model is missing or any test SKIPs +# (measured 2026-10-16 on the Spark: 178 s test wall, release build warm; timeout 15m leaves room for a cold build) +gate: AIENOS-INFER-FORWARD +manifest_version: 2 +owner: aienos +requires: + - host +inputs: + - crates/aienos-infer/ + - Cargo.toml + - Cargo.lock + - tests/gates/ + - crates/ + - .cargo/ + - vendor/ +run: + exec: tests/gates/run.sh + args: ["infer-forward"] +expects: + exit: 0 + verdict: PASS +timeout: 15m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/aienos-native-argus.gate b/tests/gates/aienos-native-argus.gate index ffb04708..d521cfe5 100644 --- a/tests/gates/aienos-native-argus.gate +++ b/tests/gates/aienos-native-argus.gate @@ -8,6 +8,7 @@ requires: inputs: - native/argus/ - tests/gates/ + - native/capability/ run: exec: tests/gates/run.sh args: ["native-argus"] diff --git a/tests/gates/aienos-native-capability.gate b/tests/gates/aienos-native-capability.gate index e2410afb..b87f0540 100644 --- a/tests/gates/aienos-native-capability.gate +++ b/tests/gates/aienos-native-capability.gate @@ -8,6 +8,7 @@ requires: inputs: - native/capability/ - tests/gates/ + - native/argus/ run: exec: tests/gates/run.sh args: ["native-capability"] diff --git a/tests/gates/aienos-native-crypto.gate b/tests/gates/aienos-native-crypto.gate index 7025555f..6394691e 100644 --- a/tests/gates/aienos-native-crypto.gate +++ b/tests/gates/aienos-native-crypto.gate @@ -8,6 +8,7 @@ requires: inputs: - native/crypto/ - tests/gates/ + - native/argus/ run: exec: tests/gates/run.sh args: ["native-crypto"] diff --git a/tests/gates/aienos-native-m5.gate b/tests/gates/aienos-native-m5.gate index 5682a090..440d4678 100644 --- a/tests/gates/aienos-native-m5.gate +++ b/tests/gates/aienos-native-m5.gate @@ -8,6 +8,9 @@ requires: inputs: - native/m5/ - tests/gates/ + - native/argus/ + - native/crypto/ + - native/sig/ run: exec: tests/gates/run.sh args: ["native-m5"] diff --git a/tests/gates/aienos-native-net.gate b/tests/gates/aienos-native-net.gate index ac8d497c..010d767b 100644 --- a/tests/gates/aienos-native-net.gate +++ b/tests/gates/aienos-native-net.gate @@ -8,6 +8,9 @@ requires: inputs: - native/net/ - tests/gates/ + - native/argus/ + - native/crypto/ + - native/sig/ run: exec: tests/gates/run.sh args: ["native-net"] diff --git a/tests/gates/aienos-store-native.gate b/tests/gates/aienos-store-native.gate index f7c3bfb2..02b47867 100644 --- a/tests/gates/aienos-store-native.gate +++ b/tests/gates/aienos-store-native.gate @@ -8,6 +8,11 @@ requires: inputs: - native/store/ - tests/gates/ + - native/argus/ + - native/crypto/ + - native/disk/ + - native/m5/ + - docs/adr/0015-golden-vectors.json run: exec: tests/gates/run.sh args: ["store-native"] diff --git a/tests/gates/aienos-verify-all.gate b/tests/gates/aienos-verify-all.gate index 39690c64..7237486a 100644 --- a/tests/gates/aienos-verify-all.gate +++ b/tests/gates/aienos-verify-all.gate @@ -11,6 +11,14 @@ inputs: - crates/ - native/boot/ - tests/gates/ + - scripts/ + - evidence/ + - native/kernel/tests/fixtures/ + - Cargo.toml + - Cargo.lock + - .cargo/ + - vendor/ + - docs/adr/0015-golden-vectors.json run: exec: tests/gates/run.sh args: ["verify-all"] diff --git a/tests/gates/run.sh b/tests/gates/run.sh index 3c24bf5b..49331c66 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -130,9 +130,34 @@ case "$step" in cargo test -p aienos-infer cargo build -p aienos-infer --target aarch64-unknown-none ;; + # Not hosted (the hosted runner has no model file): the real Llama forward comparisons in + # crates/aienos-infer/tests/forward.rs, release build. The sandbox finds the model at + # $HOME/models (aien-run-exec bind-mounts the operator's ~/models read-only there). + # A missing model or any SKIPPED line is a FAIL, never a silent pass. + infer-forward) + model="${AIENOS_MODEL:-$HOME/models/aien-mail/Llama-3.2-1B-Instruct-Q4_K_M.gguf}" + if [ ! -f "$model" ]; then + echo "::error::model file $model not present; infer-forward needs the real model" >&2 + obs model_present false + exit 1 + fi + obs model_present true + export AIENOS_MODEL="$model" + set -o pipefail + cargo test --release -p aienos-infer --test forward 2>&1 | tee "$TMP/forward.log" + if grep -q 'SKIPPED' "$TMP/forward.log"; then + echo "::error::forward tests printed SKIPPED" >&2 + obs skipped_in_log true + exit 1 + fi + obs skipped_in_log false + ;; # ci.yml (disabled on GitHub since the CK workflow took over): the suites it still names store-native) make -C native/store test mutants ;; - verify-all) bash scripts/verify_all.sh ;; + verify-all) + export AIENOS_MODEL="${AIENOS_MODEL:-/nonexistent/no-model.gguf}" # hosted parity: the debug workspace sweep skips forward tests (they run in infer-forward) + bash scripts/verify_all.sh + ;; zero-disk-secrets) echo "Auditing repository for prohibited plaintext secret files..." if find . -maxdepth 4 -name ".env*" -not -path "*/.git/*" -not -path "*/target/*" -not -path "*/vendor/*" | grep -q .; then ```