interplane.Get Omega
Read in your language

interplane-mv

INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.

Brought by drakestapleton

INTERPLANE-PACKAGE and -ADAPTER-AIEN pass on the Spark judge (offline, read-only cargo home)

merged 47141af3033ff0dc #115 · opened 2026-10-19 13:20 UTC · closed 2026-10-19 14:02 UTC · merged 2026-10-19 14:02 UTC

Imported from GitHub aien-dev/interplane-mv#115, by drakestapleton

Labels: ready-to-merge

Base 12b59dc96294b9d1a305c06d8cae461fa602fae4 · Head 09c59a799135081814c1a71e7590526985ac2846

Merged on GitHub as 43fc97c8bcc9fcf47aa3998efdc20f1ad5f960e2; reachable from main ec91e9c2cc64c4885e93fbcbf8c0b657e16cb17a (observed 2026-11-18T16:39:55Z)

drakestapleton wrote on 2026-10-19 13:20 UTC

Makes the INTERPLANE-PACKAGE and INTERPLANE-ADAPTER-AIEN gates pass on the Spark judge. All three causes are in the judge environment, none in the PRs that hit them (#111 at bb6e8579, #114 at 1d62139a):

  1. No network (PACKAGE). cargo package --workspace --locked updates the crates.io index first; on the judge it failed with Could not resolve host: index.crates.io. Fix: --offline, so it packages from the local registry cache like every other gate.
  2. Read-only CARGO_HOME (PACKAGE). With --offline, verifying interplane-crossaxis unpacks the just-packaged interplane-core from cargo's temporary registry into $CARGO_HOME/registry/src; on the judge's read-only home that fails with no hash listed for interplane-core v0.3.0 (operator run of bd09ebc5; reproduced with CARGO_HOME=/var/lib/aien-run/cargo). Fix: package with a scratch CARGO_HOME inside the step's temp dir (index copied, .crate cache and unpacked sources linked read-only, registry/src writable).
  3. Read-only leftover in the shared target dir (ADAPTER-AIEN). libsqlite3-sys copies its bundled bindings from the read-only registry, so OUT_DIR/bindgen.rs is left mode 0444; the next time its build script runs it cannot overwrite the file (Could not copy bindings to output directory: Permission denied, operator run of 657081c4). Fix: before building, make such leftovers under the target dir writable; the build script then rewrites them.

The checks themselves are unchanged: every crate still packages and builds from its .crate alone, and the adapter still runs fmt, clippy, its tests and the T4 subset.

Checked on the Spark with the judge's read-only CARGO_HOME/RUSTUP_HOME, offline:

  • tests/gates/run.sh package: exit 0 (was no hash listed); also exit 0 with a normal home.
  • tests/gates/run.sh adapter-aien, clean build: exit 0. Then with the libsqlite3-sys build script forced to run again: without the fix it fails with Permission denied (red), with the fix exit 0 (green).

This changes tests/gates/, so it is a pipeline configuration change (rule A4): the desk runs the operator judge on the exact head and merges on PASS.

Apply it

git checkout -b patch-47141af3033ff0dc 12b59dc96294b9d1a305c06d8cae461fa602fae4
curl -fsSL https://interplane.io/drakestapleton/interplane-mv/patches/47141af3033ff0dc.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/interplane-mv
115
09c59a799135081814c1a71e7590526985ac2846
{"kind":"github-import","owner":"aien-dev","repo":"interplane-mv","number":115,"url":"https://github.com/aien-dev/interplane-mv/pull/115","export_sha256":"1ec417040cc256f3c2557ecba4484ab281d4f04c2eac3b43533501432bbe4d5b","imported_utc":"2026-11-18T16:39:55Z"}

Changes

diff --git a/tests/gates/run.sh b/tests/gates/run.sh
index 2b61611..6f17cdc 100755
--- a/tests/gates/run.sh
+++ b/tests/gates/run.sh
@@ -78,7 +78,22 @@ 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.
+    # 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
@@ -132,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