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/interplane-mv/blob/main/bench/runs/offline-integration-20261005T1338Z/run.sh # interplane-mv INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-mv / bench / runs / offline-integration-20261005T1338Z / run.sh` 51 lines ยท 5028 bytes Raw Blame History 1 #!/usr/bin/env bash 2 # Offline INTERPLANE checks, mirroring .github/workflows/ci.yml at the checked-out commit. No model, no GPU. 3 WT=$HOME/workspace/cand2-campaign/wt-ip-offline 4 OUT=$HOME/workspace/evidence-out/IP-OFFLINE-`3fa8ee0` 5 SC=$HOME/workspace/evidence-out/ip-scratch # scratch: venvs, siblings, tmp (not published) 6 mkdir -p "$SC" "$OUT/logs"; cd "$WT" || exit 1 7 step() { # name, working-dir (relative to WT), command... 8 local n=$1 d=$2; shift 2 9 ~/.local/bin/quietlock check >/dev/null 2>&1 || { echo "HOLD before $n"; exit 75; } 10 local s e rc; s=$(date -u +%FT%TZ) 11 ( cd "$WT/$d" && bash -c "$*" ) > "$OUT/logs/$n.log" 2>&1; rc=$? 12 e=$(date -u +%FT%TZ) 13 printf '%s\t%s\t%s\t%s\t%s\n' "$n" "$rc" "$s" "$e" "$*" >> "$OUT/steps.tsv" 14 echo "$n rc=$rc" 15 } 16 V=$SC/venv 17 python3 -m venv $V >/dev/null 2>&1 18 PY="$V/bin/python"; export PATH="$V/bin:$PATH" 19 step py-pytest . "$PY -m pytest python/tests -q" 20 step py-conformance . "$PY -m interplane.conformance conformance/fixtures --out $OUT/py-verdicts.json" 21 step cross-language . "$PY - <<'PYX' 22 import json,sys 23 r=json.load(open('$OUT/rust-verdicts.json')); p=json.load(open('$OUT/py-verdicts.json')) 24 bad=[c for c in sorted(set(r)|set(p)) if json.dumps(r.get(c),sort_keys=True)!=json.dumps(p.get(c),sort_keys=True)] 25 print('cases:',len(r),'mismatches:',bad); sys.exit(1 if bad or len(r)!=106 else 0) 26 PYX" 27 step trust-digest . "$PY conformance/runners/trust_digest.py --check" 28 step negctl-not-in-pipeline . "! grep -rIl -E 'negctl|negative-controls|NEGCTL' rust/crates/interplane-core rust/crates/interplane-crossveil rust/crates/interplane-crossaxis rust/crates/interplane-lenshift python/interplane/core.py python/interplane/crossveil.py python/interplane/crossaxis.py python/interplane/lenshift" 29 step default-build-refuses-variant rust "cargo build -q -p interplane-conformance && ! grep -q NEGCTL_BUILT_IN target/debug/interplane-conformance && { rc=0; target/debug/interplane-conformance ../conformance/fixtures --out /dev/null --variant V4 || rc=\$?; test \"\$rc\" = 2; }" 30 step negctl-matrix . "(cd rust && cargo run -q -p interplane-conformance --features negative-controls -- ../conformance/fixtures --matrix $OUT/rust-matrix.json) && $PY -m interplane.conformance conformance/fixtures --matrix $OUT/py-matrix.json && cmp $OUT/rust-matrix.json $OUT/py-matrix.json" 31 # package job 32 step pkg-wheel . "rm -rf $SC/dist && $V/bin/pip wheel -q --no-deps -w $SC/dist ./python" 33 step pkg-venv-examples . "rm -rf $SC/v && python3 -m venv $SC/v && $SC/v/bin/pip install -q $SC/dist/interplane-*.whl && cd $SC && INTERPLANE_REQUIRE_INSTALLED=1 $SC/v/bin/python $WT/examples/offline/run_offline.py && INTERPLANE_REQUIRE_INSTALLED=1 $SC/v/bin/python $WT/examples/adapter/todo_adapter.py" 34 step pkg-wheel-vs-checkout . "(cd $SC && $SC/v/bin/interplane-conformance $WT/conformance/fixtures --out $SC/wheel-verdicts.json) && PYTHONPATH=python $PY -m interplane.conformance $WT/conformance/fixtures --out $SC/checkout-verdicts.json && cmp $SC/wheel-verdicts.json $SC/checkout-verdicts.json" 35 step pkg-adapter-runner . "H=$WT/bench/runs/home-check-20261005T1320Z; rm -rf $SC/home && mkdir $SC/home && cp \$H/authority.py \$H/table-entry.json $SC/home/ && printf 'from authority import RUNTIME, POLICY, make_pipeline, HomeAuthority\n\n\ndef make_authority(**kw):\n return HomeAuthority(**kw)\n' > $SC/home/shim.py && cd $SC && R=\"$SC/v/bin/python $WT/conformance/runners/adapter_runner.py --module home/shim.py --entry home/table-entry.json\" && \$R --out home/verdicts.json && cmp home/verdicts.json \$H/verdicts.json && { if \$R --no-exposure-check --out home/negctl.json; then echo negctl-passed; exit 1; fi; cmp home/negctl.json \$H/verdicts-negctl.json; }" 36 step pkg-cargo-package rust "cargo package --workspace --locked" 37 # adapter-aien 38 step aien-siblings . "adapters/aien/setup-siblings.sh $HOME/workspace/cand2-campaign" 39 step aien-fmt adapters/aien "cargo fmt --all --check" 40 step aien-clippy adapters/aien "cargo clippy --all-targets -- -D warnings" 41 step aien-test adapters/aien "cargo test" 42 step aien-t4 adapters/aien "T4_OUT=$OUT/t4-verdicts.json cargo test --test t4_corpus -- --nocapture" 43 44 # adapter-odysseus 45 OD=$HOME/workspace/cand2-campaign/odysseus-pin 46 step odys-clone . "[ -d $OD/.git ] || git clone -q https://github.com/odysseus-dev/odysseus.git $OD; git -C $OD checkout -q `2992bf6` && git -C $OD rev-parse HEAD" 47 step odys-pip . "$V/bin/pip install -q -c constraints/ci-python.txt -r $OD/requirements.txt pytest pyflakes" 48 step odys-pyflakes . "$PY -m pyflakes adapters/odysseus" 49 step odys-pytest adapters/odysseus "ODYSSEUS_SRC=$OD PYTHONPATH=$WT/python:. PYTHONDONTWRITEBYTECODE=1 $PY -m pytest tests -q -p no:cacheprovider -rs | tee $OUT/odys-pytest.log; ! grep -q skipped $OUT/odys-pytest.log" 50 step odys-t3 . "ODYSSEUS_SRC=$OD PYTHONPATH=$WT/python:adapters/odysseus PYTHONDONTWRITEBYTECODE=1 $PY -m interplane_adapter_odysseus.t3 --out $OUT/t3-verdicts.json" 51 step bench-runner-offline . "ODYSSEUS_SRC=$OD PYTHONDONTWRITEBYTECODE=1 $PY bench/tools/test_runner_offline.py"