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

prefill_e2e2: build each mutant leg in its own target dir (PREFILL-E2E-2 false FAILs)

closed 63577a72a7bc88d7 #645 · opened 2026-10-18 13:07 UTC · closed 2026-10-19 14:06 UTC

Imported from GitHub aien-dev/aien-sovereign-core-mv#645, by drakestapleton

Base 12e71aad80fda23a428317d11b0dac02d1c777f1 · Head 0d035972fa28bd334ae50cb468534e139503c340

drakestapleton wrote on 2026-10-18 13:07 UTC

What

Each PREFILL-E2E-2 mutant leg (prefill_e2e2_run.sh mutant mN) now builds in its own target dir, $CARGO_TARGET_DIR/mutants/mN, instead of the dir shared with the clean leg. Docs: README build section and tools/aien-test/docs/LOCAL_VERIFICATION.md.

Why

Cargo names artifacts by package, not by source path: the mutant copies under /tmp/tmp.* produced rlibs and a test binary (prefill_e2e2-f4bd44a5eab8ce6e) with exactly the same names as the clean tree's. The gates of one head run in parallel, so a clean build that started while a mutant copy still existed saw the mutant's artifacts as fresh and the clean gate ran mutant code.

Evidence (aien-local-ci evidence store, aien-sovereign-core, since the rounding fix landed 2026-10-16 18:10Z):

clean PREFILL-E2E-2 runsFAILPASS
mutant gates ran alongside188
no mutant gates alongside127

Every one of the 18 failures has one of two byte-identical shapes: branch 1 appends into the root's shared one-token tail block without copy-on-write (mutant m7's exact change) or the old block is wiped after the copy so branch 2 reads zeros (mutant m3). On the failing head c77f488 (docs only) all nine gates started at 09:00:18Z, M7 finished at 09:01:54Z, and the clean gate failed at 09:07:12Z with the m7 shape. 136 mutant legs in the history "survived" the mirror way (the mutant ran clean artifacts). The engine's copy-on-write is correct; the failures are build-cache cross-talk. The one failure without mutants alongside is an older head with the pre-rounding-fix numeric shape.

Root cause of pipeline cause 8 in the 2026-10-18 CI ledger (~/handoffs/2026-10-18-ci-runners-rethink.md).

Cost

Eight extra persistent release target dirs under the pr and main targets (the current release dir is 784M). The first head after this change builds each mutant from scratch once; afterwards only the patched crates recompile.

Verification

The PR head's own run uses the new driver: its clean PREFILL-E2E-2 and all eight mutant gates must PASS on the Spark, in parallel, on the same target dir. Merge is paused by Drake's order (MERGE-PAUSE); no ready-to-merge label on purpose.

🤖 Generated with Claude Code

drakestapleton wrote on 2026-10-19 14:06 UTC

This was generated by AI during triage.

Closing as superseded by #673 (merged 2026-10-19 14:05Z as 0b7dabd8). #673 changes the same lines of crates/aien-runtime/tests/prefill_e2e2_run.sh: the mutant legs now build in their own target dir ($CARGO_TARGET_DIR/prefill-e2e2-mutants), never the shared one, and the copy is extracted with fresh file times (tar -m) so cargo cannot link a library built from another tree as fresh. That covers the cross-talk this PR measured (18 of 26 clean runs failing with the m7 or m3 shape). #673's head passed PREFILL-E2E-2 and all eight mutant gates on the Spark (bundle 72882c9e). The evidence table in this PR's description stays useful as the record of why.

Apply it

git checkout -b patch-63577a72a7bc88d7 12e71aad80fda23a428317d11b0dac02d1c777f1
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/63577a72a7bc88d7.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
645
0d035972fa28bd334ae50cb468534e139503c340
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":645,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/645","export_sha256":"d815604dc795b494a931d4c9d256159461266bed51d6da460421ed1d94dab90f","imported_utc":"2026-11-18T16:35:50Z"}

Changes

diff --git a/.crumb b/.crumb
index d38130fb..6dd6f899 100644
--- a/.crumb
+++ b/.crumb
@@ -119,14 +119,14 @@
         }
       ],
       "children_root": "sha256:111edf8bf001ed434f7dacbc6d8ab9d75f6bda2cd909d01264fb42bbe38b1d74",
-      "compiled_at": "2026-10-17T11:58:09Z",
+      "compiled_at": "2026-10-18T13:04:28Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:90138b1fd1cf3ffa4f762b157930e959f2bea50c41351c40b41330ae9edff05b",
+      "digest": "sha256:130555cb65eb56cc463db212323255911f71d35e4f39d61f11161655e31ea69d",
       "evidence_files": 1578,
       "evidence_root": "sha256:135e27a1a0704c4a8371cd2c1eb555f2b5beec61c212949b029a5457418a7160",
       "files": 5891,
-      "generated_at_commit": "6fb606867d2cd502b9475cd2ff0cc85ab40b16c9",
-      "source_tree": "sha256:7ac140a01c7f7ef0cc9f91a7cf9ea94fb063f8ca7f24365f185b9da5b2ed26b9"
+      "generated_at_commit": "12e71aad80fda23a428317d11b0dac02d1c777f1",
+      "source_tree": "sha256:f1cfa834abb956f61f1434285d14bc7444c3cc82c42d0956b463a0da21ef9a80"
     }
   },
   "history": [],
diff --git a/README.md b/README.md
index c592b572..c8bcd0c6 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,8 @@ 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)
 ```
 
+The PREFILL-E2E-2 mutant legs build in their own target dirs (`target/mutants/mN`), never in the shared one; see `tools/aien-test/docs/LOCAL_VERIFICATION.md` for why.
+
 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)).
diff --git a/crates/aien-runtime/tests/prefill_e2e2_run.sh b/crates/aien-runtime/tests/prefill_e2e2_run.sh
index 73dca004..6812d4c6 100755
--- a/crates/aien-runtime/tests/prefill_e2e2_run.sh
+++ b/crates/aien-runtime/tests/prefill_e2e2_run.sh
@@ -98,13 +98,18 @@ run_mutant() {
 	lg="$out/AIENTEST-DOGFOOD-$sha8-$id.log"
 	# The patch goes into a private copy of the tree, never into the checkout: aien-test runs gates in
 	# parallel in one checkout, and a patched file there fails their clean-tree checks (and the main leg's
-	# fmt check). The copy shares CARGO_TARGET_DIR so dependencies build once.
+	# fmt check). Each mutant builds in its own target dir under CARGO_TARGET_DIR: cargo names artifacts
+	# by package, not by source path, so a mutant's patched rlibs and the clean tree's rlibs would overwrite
+	# each other in one shared dir and a clean run that starts while a mutant copy still exists reuses the
+	# mutant's artifacts as fresh (PREFILL-E2E-2 failed 18 of 26 clean runs with the m7 or m3 shape when
+	# the mutant gates ran alongside, 2026-10-16 to 10-18; mutants survived the same way). The per-mutant
+	# dir persists across heads, so after the first build only the patched crates recompile.
 	work=$(mktemp -d) || exit 3
 	trap 'rm -rf "$work"' EXIT
 	trap 'rm -rf "$work"; exit 143' HUP INT TERM
 	git ls-files -z --cached --others --exclude-standard --deduplicate |
 		tar --null --ignore-failed-read -T - -cf - | tar -xf - -C "$work" || exit 3
-	CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-$PWD/target}
+	CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-$PWD/target}/mutants/$id
 	export CARGO_TARGET_DIR
 	cd "$work" || exit 3
 	git apply "$patch" || exit 3
diff --git a/tools/aien-test/docs/LOCAL_VERIFICATION.md b/tools/aien-test/docs/LOCAL_VERIFICATION.md
index d8f9951c..5f141085 100644
--- a/tools/aien-test/docs/LOCAL_VERIFICATION.md
+++ b/tools/aien-test/docs/LOCAL_VERIFICATION.md
@@ -139,6 +139,17 @@ aien-proof `slots/gpu.lock`; the worker's target priming takes only the
 target-dir lock. Known limit: a gb10 gate is never killed on timeout, so a
 hung one holds the target dir until it exits on its own.
 
+The PREFILL-E2E-2 mutant legs (`crates/aien-runtime/tests/prefill_e2e2_run.sh`
+`mutant mN`) build in `$CARGO_TARGET_DIR/mutants/mN`, one dir per mutant, never
+in the shared dir. Cargo names artifacts by package and not by source path, so a
+mutant's patched rlibs carried the same file names as the clean tree's: in one
+shared dir they overwrote each other, and a clean build that started while a
+mutant copy still existed took the mutant's artifacts as fresh. 2026-10-16 to
+10-18 the clean PREFILL-E2E-2 gate failed 18 of 26 runs that had the mutant
+gates alongside (always with the m7 or m3 failure shape) and 1 of 28 without;
+136 mutant legs "survived" the same way. The per-mutant dirs persist across
+heads, so only the patched crates recompile after the first build.
+
 Under `--sandbox user` every checkout is made with INFRA's worktree tool
 (`--wt-tool`, default `<clones>/aien-sovereign-core/tools/aien-local-ci/wt.sh`;
 without it the worker refuses to run). `wt.sh sync` refreshes the bare mirror