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

branch main Branches Tags History

interplane-mv / AUDIT_SCOPE.md

151 lines · 8561 bytes Raw Blame History Rendered
1# Audit scope
2
3Written for an outside, independent security audit. Revision described:
4`1de1b0065b2e667d8d7a23ffc3d75aeb65bf864b` on `main`, 2026-10-26. Everything below is taken from
5the repository's own files at that revision; items marked NOT_RUN were not executed while writing
6this document.
7
8## What this repository is
9
10INTERPLANE is an open interoperability protocol between AI models and agent runtimes. Model output
11is parsed into tool requests, the runtime decides each request with its own policy, and INTERPLANE
12carries the request and the decision across the boundary and refuses to upgrade a decision. The
13repository holds normative Markdown and JSON Schemas (`spec/`), a Rust reference implementation
14(`rust/`), conformance fixtures with recorded verdicts, the AIEN reference adapter (AGPL-3.0-or-later,
15`adapters/aien/`), a provenance verifier (`provenance/`), and benchmark and qualification records.
16No Python ships. Status: version 0.3.0, pre-1.0; `STATUS.md` is the only place that states what is
17implemented, tested, conformant or qualified.
18
19## What to review, in priority order
20
211. `rust/crates/interplane-crossveil/`. The authority-boundary contract: two runtime callbacks, a
22 lifecycle with fail-closed invariants, trust classes, the input ledger and exposure, approval
23 continuation (only the runtime-minted `approval_id` for that request; expiry, cancel, replay and
24 restart refusals), and session limits (`tests/session_limits.rs`). Check that no path executes
25 without an explicit `authorized` decision.
262. `rust/crates/interplane-lenshift/`. Dialect parsers for untrusted model output (`openai`,
27 `openai_stream`, `qwen35`, `aien_legacy`). Check size limits, malformed input, incomplete SSE
28 streams (must be rejected), and unknown dialects.
293. `rust/crates/interplane-core/`. Schemas, types, validation, JCS canonical JSON, versioning,
30 duplicate request ids and replay detection.
314. `rust/crates/interplane-crossaxis/`. Capability mapping, stale-digest refusal, the domain
32 selector and bounded expansion. Check it never grants authority.
335. `adapters/aien/`. Reference adapter against the AIEN host: write sink confined with pinned
34 directory descriptors and atomic replacement (SECNET-01), bounded records and correlation state
35 (SECNET-05), approval tests in `adapters/aien/tests/approval.rs`.
366. `rust/crates/interplane-probe/`. Sends requests to a live OpenAI-compatible endpoint with
37 `INTERPLANE_PROBE_API_KEY` in a header only; check it never stores or prints the key.
387. `provenance/`. Companion manifest verifier outside Core (ADR 0004).
398. `.github/workflows/aien-verification.yml`. Runs on `pull_request` and push with
40 `permissions: contents: read`; takes trust anchors (`.aien/verify.pub`) from `origin/main`, not
41 from the head; builds only the pinned verifier tool (`aien-test` from aien-sovereign-core
42 `a51042b6...`; the crumb step is retired, DRA-97) outside the tree under test;
43 on `alpha/*` tags it fetches and verifies the signed Spark bundle. Actions are pinned by commit
44 sha. Check that candidate code cannot influence the verifier build or the trust anchors.
459. `.github/workflows/qualification.yml`. Manual `workflow_dispatch` only, runs on a self-hosted
46 runner with the `INTERPLANE_PROBE_API_KEY` secret; dispatch inputs are passed as environment
47 variables, not shell source. Check input handling and secret exposure.
4810. `tests/gates/run.sh` and `tests/gates/*.gate`. The Spark gate entry point.
49
50## Trust boundaries
51
52- Untrusted: the model side and everything it produces (dialect text, streams, tool requests);
53 content a model reads (web pages, documents, skills, tool descriptions are `external_untrusted`);
54 pull request content; workflow dispatch inputs.
55- Trusted: the host runtime's policy and its decisions; the Spark signing key whose public half is
56 `.aien/verify.pub` on `main`; the pinned toolchain (`rust-toolchain.toml`, Rust 1.99.0) and sibling
57 pins in `adapters/aien/PINS`.
58- Core has no execution authority and no host-project dependency (AGENTS.md).
59
60## Threat model summary
61
62- Assets: the runtime's authority over execution; approval correlation; secrets in requests;
63 integrity of recorded verdicts and published bundles.
64- Attackers considered: a hostile or prompt-injected model; injected instructions inside tool
65 results; replayed or forged messages and approval ids; malformed or oversized arguments; a
66 malicious pull request against CI.
67- Defended: fail closed on unknown decisions, versions and dialects, on oversized or malformed
68 arguments, duplicate request ids and replayed messages; never log secrets; never persist raw
69 model output by default; a valid envelope is never an authorization.
70- Not defended / explicitly out of scope: a host runtime's own policy errors; model correctness;
71 the 2026-10-26 SECNET hardening is described in `STATUS.md` as tested implementation changes, not
72 deployment or model/backend qualification; 0.4 and 0.5 are planned, not built.
73
74## Build from source at a pin
75
76`rust-toolchain.toml` pins Rust 1.99.0 with `clippy` and `rustfmt`. Gates also use `jq`.
77
78```sh
79git clone https://github.com/aien-dev/interplane-mv.git
80cd interplane-mv/rust
81cargo build
82```
83
84The AIEN adapter needs sibling checkouts at the commits in `adapters/aien/PINS` (aegis-runtime
85`f4e870953a466bb1cf68f1d88285929024cf1ba9`, aien-protocols
86`3a4cdbe8d360a2e1ddb3e8b108684048b9d4ba10`, sovereign-core `9b5e6e82359f4ad6b6f03042e83ef6411c5f15ce`);
87`adapters/aien/setup-siblings.sh [parent-dir]` clones them. Everything builds on a plain Linux host.
88
89## Run every test
90
91From `rust/`:
92
93```sh
94cargo test --all
95cargo run -q -p interplane-conformance --bin interplane-conformance -- ../conformance/fixtures --out /tmp/verdicts.json
96cmp /tmp/verdicts.json ../conformance/expected/verdicts.json
97cargo run -q -p interplane-conformance --bin interplane-corpus -- validate
98cargo run -q -p interplane-crossveil --example offline
99cargo run -q -p interplane-crossveil --example todo_adapter
100```
101
102From the repository root, the Spark gates:
103
104```sh
105tests/gates/run.sh no-python
106tests/gates/run.sh schemas-and-fixtures
107tests/gates/run.sh rust
108tests/gates/run.sh package
109tests/gates/run.sh negative-controls
110tests/gates/run.sh provenance
111tests/gates/run.sh adapter-aien
112```
113
114- The `cmp` prints nothing when the 106 verdicts match byte for byte.
115- `no-python` prints `AIEN-OBS python_files_found false` and exits 0.
116- `adapter-aien` needs `../aegis-runtime` and `../aien-protocols` beside the checkout.
117- The DGX Spark is the test judge (`docs/PIPELINE.md`); it runs these gates and signs a bundle.
118 GitHub checks are advisory. The signed bundle run is NOT_RUN on a plain host.
119- `interplane-probe` needs a live model endpoint and a key. NOT_RUN on a plain host.
120
121All of the above: NOT_RUN while writing this document.
122
123## Known limitations and NOT_RUN
124
125- Pre-1.0; Vectorveil is envelope only and RelayLine is contract only; Lenshift `ajax` is reserved.
126- The AIEN adapter is AGPL-3.0-or-later, links host crates, and its status is "tested" with verdict
127 `PASS_LABELLED_INCOMPLETE` for the fix-the-test slice (`STATUS.md`).
128- 0.2 closed with its pre-registered gate failed and published (`docs/REPORT-0.2.md`).
129- A head that changes `.aien/`, `tests/gates/` or `.github/workflows/` is `BLOCKED_OPERATOR`: the
130 Spark worker does not run it on its own; the operator runs it by hand.
131- The workflow's `REPO_SLUG` is `aien-dev/interplane` while this repository is
132 `aien-dev/interplane-mv`; whether GitHub redirects this for bundle verification is unknown from
133 the repository.
134
135## Dependencies and provenance
136
137- Lockfiles: `rust/Cargo.lock`, `adapters/aien/Cargo.lock`, `provenance/Cargo.lock`, plus two
138 fixture lockfiles. Reproducibility pins in `docs/RUN-MANIFEST-COMMITS.md`.
139- Licences: Apache-2.0 except `adapters/aien/` (AGPL-3.0-or-later, own `LICENSE`).
140- Recorded provider streams (Ollama, llama.cpp, SGLang) and Qwen3.5-9B captures are fixtures and
141 records; they do not ship.
142- External services: crates.io for Cargo; GitHub for sibling clones; a model endpoint only for the
143 probe. GitHub Actions used: `actions/checkout`, `actions/cache`, `actions/upload-artifact`,
144 `dtolnay/rust-toolchain`, all pinned by sha.
145
146## Evidence
147
148- `STATUS.md`, `docs/REPORT-*.md`, `bench/runs/`, `qualification/`, `adapters/aien/evidence/`. These
149 are records; AGENTS.md says do not rewrite them.
150- Signed Spark test bundles: `aien-dev/aien-receipts` at `interplane/<commit>/bundle.json`.
151 Receipts are append-only and never edited.