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/patches/bc817b702173024e # 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 ## GitHub aien-dev/interplane-mv#18 (code only) closed derived `bc817b702173024e` #18 Imported from GitHub aien-dev/interplane-mv#18 (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 `542167d46557ae7b1f050b610e2970fafbea0aea` · Head `537bf4ba00c2031f12e6bff96d731654c1572123` greptile-apps[bot] reviewed (COMMENTED) on 2026-10-04 23:43 UTC `aien-dev` has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan . ### Apply it ``` git checkout -b patch-bc817b702173024e 542167d46557ae7b1f050b610e2970fafbea0aea curl -fsSL https://interplane.io/drakestapleton/interplane-mv/patches/bc817b702173024e.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 18 537bf4ba00c2031f12e6bff96d731654c1572123 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"interplane-mv","number":18,"url":"https://github.com/aien-dev/interplane-mv/pull/18","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:59Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8f7efb..6ea627f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,10 @@ jobs: schemas-and-fixtures: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: {python-version: "3.12"} - - run: pip install jsonschema + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: {python-version: "3.12.14"} + - run: pip install -c constraints/ci-python.txt jsonschema - name: schema self-check run: | python - <<'PY' @@ -24,10 +24,10 @@ jobs: bench-structural: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: {python-version: "3.12"} - - run: pip install jsonschema + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: {python-version: "3.12.14"} + - run: pip install -c constraints/ci-python.txt jsonschema - name: bench corpus structure, domain rule, coverage, digests (no model, no GPU) run: python bench/tools/validate.py --require-jsonschema - name: pre-registered statistics reproduce Newcombe 1998 Table III @@ -41,36 +41,36 @@ jobs: runs-on: ubuntu-latest defaults: {run: {working-directory: rust}} steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: {components: "rustfmt, clippy"} + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: dtolnay/rust-toolchain@89b12181fb390509a0842a86cc55eeb8eb928c1d # branch stable at pin time; version comes from toolchain: + with: {toolchain: "1.99.0", components: "rustfmt, clippy"} - run: cargo fmt --all --check - run: cargo clippy --all-targets --all-features -- -D warnings - run: cargo test --all - name: conformance (rust) run: cargo run -q -p interplane-conformance -- ../conformance/fixtures --out ../rust-verdicts.json - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: {name: rust-verdicts, path: rust-verdicts.json} python: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: {python-version: "3.12"} - - run: pip install pytest jsonschema pyflakes -e python + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: {python-version: "3.12.14"} + - run: pip install -c constraints/ci-python.txt pytest jsonschema pyflakes -e python - run: python -m pyflakes python/interplane python/tests - run: python -m pytest python/tests -q - name: conformance (python) run: python -m interplane.conformance conformance/fixtures --out py-verdicts.json - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: {name: py-verdicts, path: py-verdicts.json} cross-language: needs: [rust, python] runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with: {name: rust-verdicts} - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with: {name: py-verdicts} - name: verdicts must be identical run: | @@ -83,17 +83,13 @@ jobs: adapter-aien: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: {path: interplane} - - name: pinned AIEN sibling checkouts (aegis-runtime reaches ../aien-protocols by path) + - name: pinned AIEN sibling checkouts from adapters/aien/PINS (aegis-runtime reaches ../aien-protocols by path) run: | - mkdir -p interplane-audit - git clone -q https://github.com/aien-dev/aegis-runtime.git interplane-audit/aegis-runtime - git -C interplane-audit/aegis-runtime checkout -q f4e870953a466bb1cf68f1d88285929024cf1ba9 - git clone -q https://github.com/aien-dev/aien-protocols.git interplane-audit/aien-protocols - git -C interplane-audit/aien-protocols checkout -q 3a4cdbe8d360a2e1ddb3e8b108684048b9d4ba10 - - uses: dtolnay/rust-toolchain@stable - with: {components: "rustfmt, clippy"} + interplane/adapters/aien/setup-siblings.sh "$PWD" + - uses: dtolnay/rust-toolchain@89b12181fb390509a0842a86cc55eeb8eb928c1d # branch stable at pin time; version comes from toolchain: + with: {toolchain: "1.99.0", components: "rustfmt, clippy"} - run: cargo fmt --all --check working-directory: interplane/adapters/aien - run: cargo clippy --all-targets -- -D warnings @@ -103,14 +99,14 @@ jobs: adapter-odysseus: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: {python-version: "3.12"} + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: {python-version: "3.12.14"} - name: pinned Odysseus checkout (odysseus-dev/odysseus @ 2992bf6) run: | git clone -q https://github.com/odysseus-dev/odysseus.git ../odysseus git -C ../odysseus checkout -q 2992bf6 - pip install -q -r ../odysseus/requirements.txt pytest pyflakes + pip install -q -c $GITHUB_WORKSPACE/constraints/ci-python.txt -r ../odysseus/requirements.txt pytest pyflakes - run: python -m pyflakes adapters/odysseus - name: adapter tests against the real Odysseus code (no skips allowed) run: | diff --git a/.github/workflows/qualification.yml b/.github/workflows/qualification.yml index cb3e52e..3099db9 100644 --- a/.github/workflows/qualification.yml +++ b/.github/workflows/qualification.yml @@ -8,9 +8,10 @@ jobs: probe: runs-on: self-hosted steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: dtolnay/rust-toolchain@89b12181fb390509a0842a86cc55eeb8eb928c1d # branch stable at pin time; version comes from toolchain: + with: {toolchain: "1.99.0"} - run: cd rust && cargo run -q -p interplane-probe -- --endpoint "${{ inputs.endpoint }}" --model "${{ inputs.model }}" --out ../probe-report.json env: {INTERPLANE_PROBE_API_KEY: "${{ secrets.INTERPLANE_PROBE_API_KEY }}"} - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: {name: probe-report, path: probe-report.json} diff --git a/STATUS.md b/STATUS.md index a6b171e..fe093d8 100644 --- a/STATUS.md +++ b/STATUS.md @@ -17,6 +17,7 @@ byte-identical) · `qualified` (measured against a real model/backend). | CrossAxis measure units (bytes, tokens_model_reported, tokens_endpoint_tokenizer, tokens_estimated) | tested | tested | schema-validated (selection.schema.json) | not yet qualified: Core ships BytesOnly + EstimatedTokens (estimator v1); live counters belong to the bench runner | | CrossAxis expansion v1 (expand + discover, bounded) | conformant | conformant | cases 24, 25 | selections and digests byte-identical across languages; not yet qualified against a live model; never grants authority | | Crossveil pipeline + mock runtime | conformant | conformant | 25 cases | fails closed on adapter faults | +| Reproducibility pins | - | - | - | see docs/RUN-MANIFEST-COMMITS.md (toolchain, pip constraints, action SHAs, AIEN sibling pins) | | Conformance runner | implemented | implemented | 25/25 both (rerun 2026-10-04, verdicts byte-identical) | `--dump` writes canonical results per case | | Interplane Probe | qualified | qualified | - | both run live against Qwen3.5-9B/Ollama 0.34.0 with identical verdicts (reports under qualification/reports) | | AIEN adapter | tested (on the real EffectAuthority path, pinned sovereign-core 6554aac; was 10 pipeline tests in 0.1) | - | - | ADR 0003; real aien-mcp SpeculativeLane + aegis gate; aien-cli SafetyEngine not linkable (private); AGPL | diff --git a/adapters/aien/PINS b/adapters/aien/PINS new file mode 100644 index 0000000..887e3f6 --- /dev/null +++ b/adapters/aien/PINS @@ -0,0 +1,8 @@ +# Sibling checkouts the AIEN adapter needs. One source of truth: CI (.github/workflows/ci.yml, job +# adapter-aien) and local setup (README.md) both read this file. Format: KEY=value, no spaces. +AEGIS_RUNTIME_REPO=https://github.com/aien-dev/aegis-runtime.git +AEGIS_RUNTIME_REV=f4e870953a466bb1cf68f1d88285929024cf1ba9 +AIEN_PROTOCOLS_REPO=https://github.com/aien-dev/aien-protocols.git +AIEN_PROTOCOLS_REV=3a4cdbe8d360a2e1ddb3e8b108684048b9d4ba10 +# Pinned in Cargo.toml (git dependency); CI checks that Cargo.toml and this line agree. +SOVEREIGN_CORE_REV=6554aac7d81b04c91202e6bb0c90d258c8a07f04 diff --git a/adapters/aien/README.md b/adapters/aien/README.md index d6ac9ad..ece8799 100644 --- a/adapters/aien/README.md +++ b/adapters/aien/README.md @@ -22,12 +22,22 @@ checkout: ``` /interplane/adapters/aien (this crate) -/interplane-audit/aegis-runtime aien-dev/aegis-runtime @ f4e870953a466bb1cf68f1d88285929024cf1ba9 -/interplane-audit/aien-protocols aien-dev/aien-protocols @ 3a4cdbe8d360a2e1ddb3e8b108684048b9d4ba10 +/interplane-audit/aegis-runtime aien-dev/aegis-runtime @ AEGIS_RUNTIME_REV in PINS +/interplane-audit/aien-protocols aien-dev/aien-protocols @ AIEN_PROTOCOLS_REV in PINS ``` -CI recreates exactly that layout (`.github/workflows/ci.yml`, job `adapter-aien`). Without the -`aegis-gate` feature the crate still builds and every `decide()` is `denied` (fail closed). +All sibling pins live in one file, `PINS` (this directory). CI (`.github/workflows/ci.yml`, job `adapter-aien`) +and local setup both call `setup-siblings.sh`, which reads `PINS`, so they use the same commits: + +``` +cd /interplane +adapters/aien/setup-siblings.sh # clones/checks out ../interplane-audit/{aegis-runtime,aien-protocols} +cd adapters/aien && cargo test # toolchain is pinned by /rust-toolchain.toml (1.99.0) +``` + +The script also fails if the `aien-sovereign-core` rev in `Cargo.toml` differs from `SOVEREIGN_CORE_REV` in `PINS`. +To move a pin, change `PINS` (and `Cargo.toml` for sovereign-core) in the same PR. +Without the `aegis-gate` feature the crate still builds and every `decide()` is `denied` (fail closed). Building `aegis-runtime` writes `mojo/libaegis_simd.so` inside that checkout (its `build.rs`). ## Reused from AIEN (called for real) diff --git a/adapters/aien/setup-siblings.sh b/adapters/aien/setup-siblings.sh new file mode 100755 index 0000000..d67f56c --- /dev/null +++ b/adapters/aien/setup-siblings.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# Clone the pinned AIEN sibling checkouts next to the interplane checkout. Reads ./PINS. +# Usage: adapters/aien/setup-siblings.sh [parent-dir] (default: the parent of the interplane checkout) +set -euo pipefail +here="$(cd "$(dirname "$0")" && pwd)" +parent="${1:-$(cd "$here/../../.." && pwd)}" +# shellcheck source=PINS +. "$here/PINS" +dest="$parent/interplane-audit" +mkdir -p "$dest" +pin() { # name repo rev + [ -d "$dest/$1/.git" ] || git clone -q "$2" "$dest/$1" + git -C "$dest/$1" fetch -q origin "$3" 2>/dev/null || true + git -C "$dest/$1" checkout -q "$3" + echo "$1 @ $(git -C "$dest/$1" rev-parse HEAD)" +} +pin aegis-runtime "$AEGIS_RUNTIME_REPO" "$AEGIS_RUNTIME_REV" +pin aien-protocols "$AIEN_PROTOCOLS_REPO" "$AIEN_PROTOCOLS_REV" +# The Cargo.toml git revs must match PINS. +for crate in aien-capability aien-mcp; do + grep -q "^$crate = .*rev = \"$SOVEREIGN_CORE_REV\"" "$here/Cargo.toml" || { echo "Cargo.toml rev for $crate differs from PINS" >&2; exit 1; } +done diff --git a/constraints/ci-python.txt b/constraints/ci-python.txt new file mode 100644 index 0000000..ded7576 --- /dev/null +++ b/constraints/ci-python.txt @@ -0,0 +1,104 @@ +# Exact versions CI installs (pip -c). Resolved on CPython 3.12 from the Odysseus 2992bf6 requirements +# plus pytest, pyflakes, jsonschema. Regenerate deliberately; never loosen. +annotated-doc==0.0.5 +annotated-types==0.8.0 +anyio==4.15.1 +attrs==26.1.0 +bcrypt==5.0.0 +beautifulsoup4==4.15.0 +caldav==3.3.1 +certifi==2026.7.22 +cffi==2.1.1 +charset-normalizer==3.5.2 +chromadb-client==1.5.9 +click==8.5.0 +croniter==6.2.4 +cryptography==50.0.2 +defusedxml==0.7.1 +dnspython==2.8.0 +fastapi==0.142.2 +fastembed==0.8.1 +filelock==4.0.10 +flatbuffers==25.12.19 +fsspec==2026.9.0 +googleapis-common-protos==1.75.5 +grpcio==1.84.0 +h11==0.16.0 +hf-xet==1.6.0 +httpcore==1.0.9 +httpcore2==2.13.1 +httpx==0.28.1 +httpx-sse==0.4.3 +httpx2==2.13.1 +huggingface_hub==1.33.0 +icalendar==7.3.0 +icalendar-searcher==1.0.6 +idna==3.20 +iniconfig==2.3.0 +jh2==5.0.15 +jsonschema==4.26.0 +jsonschema-specifications==2025.9.1 +loguru==0.7.3 +lxml==6.1.3 +Markdown==3.11 +mcp==1.30.0 +mmh3==5.3.1 +nh3==0.3.7 +niquests==3.21.2 +numpy==2.5.3 +onnxruntime==1.30.0 +opentelemetry-api==1.45.0 +opentelemetry-exporter-otlp-common==0.66b0 +opentelemetry-exporter-otlp-proto-common==1.45.0 +opentelemetry-exporter-otlp-proto-grpc==1.45.0 +opentelemetry-proto==1.45.0 +opentelemetry-sdk==1.45.0 +opentelemetry-semantic-conventions==0.66b0 +orjson==3.12.0 +overrides==7.7.0 +packaging==26.3 +pillow==12.3.0 +pluggy==1.6.0 +protobuf==7.36.2 +psycopg2-binary==2.9.13 +py_rust_stemmers==0.1.8 +pybase64==1.5.1 +pycparser==3.0 +pydantic==2.13.5 +pydantic-settings==2.15.0 +pydantic_core==2.46.5 +pyflakes==4.0.2 +Pygments==2.21.0 +PyJWT==2.15.1 +PyOTP==2.10.0 +pypdf==6.19.0 +pytest==9.1.1 +pytest-asyncio==1.4.0 +python-dateutil==2.9.0.post0 +python-dotenv==1.2.4 +python-multipart==0.0.32 +PyYAML==6.0.3 +qh3==2.0.4 +qrcode==8.2 +recurring-ical-events==3.8.2 +referencing==0.37.0 +requests==2.34.2 +rpds-py==2026.9.1 +six==1.17.0 +soupsieve==2.10 +SQLAlchemy==2.1.3 +sse-starlette==3.5.0 +starlette==1.7.0 +tenacity==9.1.4 +tokenizers==0.23.2 +tqdm==4.70.1 +truststore==0.10.4 +typing-inspection==0.4.4 +typing_extensions==4.16.0 +tzdata==2026.5 +urllib3==2.8.0 +urllib3-future==2.25.902 +uvicorn==0.54.0 +wassima==2.1.4 +x-wr-timezone==2.0.1 +youtube-transcript-api==1.2.4 diff --git a/docs/RUN-MANIFEST-COMMITS.md b/docs/RUN-MANIFEST-COMMITS.md new file mode 100644 index 0000000..32db678 --- /dev/null +++ b/docs/RUN-MANIFEST-COMMITS.md @@ -0,0 +1,23 @@ +# Run manifests record pre-squash commits + +Bench run manifests store `interplane.commit`, the commit the runner was on when the run started. Pull requests here +are squash-merged, so that commit is a branch commit that is not an ancestor of `main`. Content can be compared +(`git diff
-- ` while the branch commit is still fetchable), but the manifest +commit id alone cannot be checked out from `main`. This file is append-only: add a row per run, never edit old rows, +and never edit files under `bench/runs//`. + +| Run | Manifest `interplane.commit` (pre-squash) | Squash-merged commit on `main` | PR | +|---|---|---|---| +| qual-20261004T2207Z | `661ea669e0e8742f5556251440cd4fc7c88e5bfe` | `2bad9ac` (`git log` of `bench/runs/qual-20261004T2207Z` shows it as the commit that added the run) | #11 | + +Source for the manifest value: `bench/runs/qual-20261004T2207Z/manifest.json`. Background: +`bench/runs/qual-20261004T2207Z-analysis/REPRODUCTION.md` section 4. + +## Toolchain and dependency pins (added with the pin lane) + +- Rust: `rust-toolchain.toml` (1.99.0, the compiler CI used on 2026-10-04); CI passes the same `toolchain:` value. +- Python CI packages: `constraints/ci-python.txt`, used with `pip install -c`. Python is `3.12.14`. +- GitHub Actions: pinned to full commit SHAs, tag in a comment. +- AIEN adapter siblings: `adapters/aien/PINS`, read by `adapters/aien/setup-siblings.sh`. +- Odysseus itself stays pinned at `2992bf6` in CI; its own `requirements.txt` is unversioned upstream, so + `constraints/ci-python.txt` fixes the versions it resolves to. diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..b9230c9 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,6 @@ +# Exact toolchain CI used for the 2026-10-04 qualification runs (rustc 1.99.0, b940084d7, 2026-09-28). +# Keep in step with `toolchain:` in .github/workflows/*.yml. Applies to rust/ and adapters/aien/. +[toolchain] +channel = "1.99.0" +components = ["clippy", "rustfmt"] +profile = "minimal" ```