From bd09ebc58a58b551b39fe462ef921597037a5af6 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 19 Oct 2026 08:19:51 -0500 Subject: [PATCH 1/3] gates: INTERPLANE-PACKAGE packages offline (the Spark judge has no network) cargo package --workspace --locked tried to update the crates.io index and failed on the Spark judge (index.crates.io does not resolve there), so every head that selected INTERPLANE-PACKAGE failed it (bundles 1d62139a, bb6e8579). --offline packages from the local registry cache, as every other gate does. Checked on the Spark: tests/gates/run.sh package exits 0 in 16 s. --- tests/gates/run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/gates/run.sh b/tests/gates/run.sh index 2b61611..384ccdd 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -78,7 +78,9 @@ case "$step" in package) # Release check: every crate packages and builds from its .crate alone. cd rust - cargo package --workspace --locked + # The Spark judge has no network (2026-10-19: index.crates.io did not resolve), so package + # from the local registry cache, like every other gate here. + cargo package --workspace --locked --offline ;; negative-controls) # trust corpus and protocol digests match conformance/TRUST-DIGEST.txt From 657081c4ee52134354968eded039a23064065e99 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 19 Oct 2026 08:38:38 -0500 Subject: [PATCH 2/3] gates: INTERPLANE-PACKAGE packages with a scratch CARGO_HOME (the judge's is read-only) With --offline the operator run of bd09ebc5 failed verifying interplane-crossaxis: cargo unpacks the just-packaged interplane-core from its temporary registry into $CARGO_HOME/registry/src, and on the judge's read-only home it fails with 'no hash listed for interplane-core v0.3.0' (reproduced with CARGO_HOME=/var/lib/aien-run/cargo). Package with a scratch home in the step's temp dir: index copied, .crate cache and unpacked sources linked read-only, registry/src writable. Passes with the judge's home and with a normal one. --- tests/gates/run.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/gates/run.sh b/tests/gates/run.sh index 384ccdd..2d882bc 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -80,7 +80,20 @@ case "$step" in cd rust # The Spark judge has no network (2026-10-19: index.crates.io did not resolve), so package # from the local registry cache, like every other gate here. - cargo package --workspace --locked --offline + # Its CARGO_HOME is read-only. Verifying a crate that depends on another workspace crate + # unpacks that crate from cargo's temporary registry into $CARGO_HOME/registry/src, and on a + # read-only home cargo fails with "no hash listed for interplane-core". So package with a + # scratch CARGO_HOME: a copy of the index, the real .crate cache and unpacked sources linked + # read-only, and a writable registry/src for the workspace crates. + real_home="${CARGO_HOME:-$HOME/.cargo}" + pkg_home="$tmp/cargo-home" + mkdir -p "$pkg_home/registry/src" "$pkg_home/registry/cache" + if [ -d "$real_home/registry/index" ]; then cp -R "$real_home/registry/index" "$pkg_home/registry/index"; chmod -R u+w "$pkg_home/registry/index"; fi + for d in "$real_home"/registry/cache/* "$real_home"/registry/src/*; do + [ -d "$d" ] && ln -s "$d" "$pkg_home/registry/$(basename "$(dirname "$d")")/$(basename "$d")" + done + [ -d "$real_home/git" ] && ln -s "$real_home/git" "$pkg_home/git" + CARGO_HOME="$pkg_home" cargo package --workspace --locked --offline ;; negative-controls) # trust corpus and protocol digests match conformance/TRUST-DIGEST.txt From 09c59a799135081814c1a71e7590526985ac2846 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 19 Oct 2026 08:51:19 -0500 Subject: [PATCH 3/3] gates: INTERPLANE-ADAPTER-AIEN survives libsqlite3-sys read-only leftovers libsqlite3-sys copies its bundled bindings from the read-only registry, so OUT_DIR/bindgen.rs stays mode 0444 in the judge's shared target dir and the next run of its build script fails with 'Could not copy bindings to output directory: Permission denied' (operator run of 657081c4). Make such leftovers writable before building. Red/green on the Spark with the judge's CARGO_HOME: forced rerun fails without this, passes with it. --- tests/gates/run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/gates/run.sh b/tests/gates/run.sh index 2d882bc..6f17cdc 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -147,6 +147,14 @@ case "$step" in obs aegis_runtime_pin "\"$AEGIS_RUNTIME_REV\"" obs aien_protocols_pin "\"$AIEN_PROTOCOLS_REV\"" cd "$tmp/interplane/adapters/aien" + # libsqlite3-sys (via aegis-runtime) copies its bundled bindings from the registry, which is + # read-only on the Spark judge, so OUT_DIR/bindgen.rs is left mode 0444 in the shared target + # dir. When the build script runs again it cannot overwrite that file ("Could not copy + # bindings to output directory: Permission denied", operator run of 657081c4, 2026-10-19). + # Make such leftovers writable first; the build script then rewrites them. + if [ -d "$TARGET" ]; then + find "$TARGET" -path '*/build/libsqlite3-sys-*/out/*' -type f ! -perm -u+w -exec chmod u+w {} + 2>/dev/null || true + fi cargo fmt --all --check cargo clippy --all-targets -- -D warnings cargo test