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 / README.md

216 lines · 13340 bytes Raw Blame History Rendered
1# INTERPLANE
2
3**INTERPLANE is an open interoperability protocol between AI models and agent runtimes.**
4
5> Models express intent. Runtimes retain authority. INTERPLANE defines the boundary between them.
6
7This repository holds the protocol (normative text and JSON Schemas), the Rust reference
8implementation, the conformance fixtures, the AIEN reference adapter, and the benchmark and
9qualification records behind every published result. A model's output is parsed into tool
10requests; the runtime decides each request with its own policy; INTERPLANE carries the request and
11the decision across the boundary and refuses to upgrade a decision. Website:
12[interplane.io](https://interplane.io) (its source is
13[aien-dev/interplane.io](https://github.com/aien-dev/interplane.io)).
14
15## Human-Directed Agentic Engineering
16
17Development follows Human-Directed Agentic Engineering (HDAE): humans define goals,
18architecture, constraints, acceptance criteria, and stopping points; agents implement,
19execute checks, diagnose failures, and revise within those boundaries. Human review
20retains responsibility for claims, acceptance, and release decisions. This development
21method does not alter the protocol boundary: runtimes retain execution authority.
22
23For the documented method and a systems-software case study, see Gregory M. Kurtzer,
24[*Ginux: Building an Independent Kernel That Runs Linux Userspace through
25Human-Directed Agentic Engineering* (2026)](https://doi.org/10.5281/zenodo.23682548).
26
27
28```
29Model side: Qwen3.5 Ajax (when published) other local or hosted models
30 \ | /
31 ----- INTERPLANE -----
32 / | \
33Runtime side: AIEN other runtimes
34```
35
36INTERPLANE belongs to neither side. AIEN is the reference runtime (Odysseus was the first, through an
37adapter removed on 2026-10-15; see "Removed adapters" below); Qwen3.5 is the first qualified model
38dialect. Each runtime keeps its own tools, policy, approvals, memory and execution. INTERPLANE only
39standardizes what crosses between them and makes it measurable.
40
41## Where it fits in AIEN
42
43INTERPLANE is an attachment of [Sovereign Intelligence (SI)](https://github.com/aien-dev/sovereign-intelligence).
44It lives in its own repository. SI's repository index lists it under "Design, protocols and proof"
45([ADR 0045](https://github.com/aien-dev/aien-architecture-mv/blob/f13c6238e585b284a87e7f5b227f7f8a1bc6bef7/docs/adr/0045-aienix-retired-sovereign-intelligence-center.md)).
46Related repositories:
47
48- [aien-dev/aien-sovereign-core-mv](https://github.com/aien-dev/aien-sovereign-core-mv): the AIEN
49 host runtime. `adapters/aien` pins its `aien-capability` and `aien-mcp` crates. Its `aien-test`
50 tool is the Spark judge that tests every pull request here.
51- [aien-dev/aegis-runtime-mv](https://github.com/aien-dev/aegis-runtime-mv) and
52 [aien-dev/aien-protocols-mv](https://github.com/aien-dev/aien-protocols-mv): sibling checkouts the
53 AIEN adapter builds against, pinned in `adapters/aien/PINS`.
54- [aien-dev/aien-architecture-mv](https://github.com/aien-dev/aien-architecture-mv): AIEN's
55 canonical architecture and decision records.
56- [aien-dev/aien-receipts](https://github.com/aien-dev/aien-receipts): the signed test bundles the
57 Spark publishes for this repository, under `interplane/<commit>/bundle.json`.
58
59The additive [hardware intent domain](omega/hardware/README.md) has a runnable
60seed-built Omega mapper for a narrow standards fixture. It preserves runtime
61authority. Production Aienux integration is pending and physical boards are
62NOT_TESTED; see [coverage and limits](docs/hardware/COVERAGE.md).
63
64## Status (2026-10-19)
65
66- Version 0.3.0 (the Rust workspace version in `rust/Cargo.toml`). Pre-1.0.
67- 0.1 (Reality Layer) is the base. 0.2 (Capability) is closed with its pre-registered gate failed
68 and the failure published (`docs/REPORT-0.2.md`). 0.3 (Trust) is closed with its gate passed
69 (`docs/REPORT-0.3.md`). 0.4 and 0.5 are planned, not built (`ROADMAP.md`).
70- 2026-10-15: the Python SDK, the Python adapters and the Python bench tools were removed; the
71 conformance tools and examples moved to Rust (PRs #106, #107, #108).
72- 2026-10-16: the repository joined the Spark verification pipeline (PR #109), and the DGX Spark
73 became the only test judge. On 2026-10-18 the hosted test workflows were removed (PRs #112, #113;
74 see `docs/PIPELINE.md`).
75- Open tracking issues: #101 (INTERPLANE against the native Aienux authority) and #80 (a protocol
76 revision candidate on refusal text).
77
78[`STATUS.md`](STATUS.md) is the only place that says what is implemented, tested, conformant or
79qualified. Nothing elsewhere in this repository claims more than `STATUS.md` does.
80
81## Try it offline (no model, no GPU, no network)
82
83```
84cd rust && cargo run -q -p interplane-crossveil --example offline
85```
86
87A scripted model fetches a web page that carries an injected instruction, then "obeys" it by
88asking to send an email, write a file and append a note. The reference pipeline with its mock
89runtime denies the email and the write, holds the note for a person's approval (untrusted content
90is in view) and executes none of them. The example checks this and exits 1 on any difference. The
91Spark gate `INTERPLANE-RUST` runs it (see "Build and test").
92
93To connect your own program, see [`docs/WRITING-AN-ADAPTER.md`](docs/WRITING-AN-ADAPTER.md) and its
94runnable example `rust/crates/interplane-crossveil/examples/todo_adapter.rs` (run it from `rust/`
95with `cargo run -q -p interplane-crossveil --example todo_adapter`): a to-do list host with its own
96policy, an approval a person grants and one they decline.
97
98## What is in the repository (version 0.3.0)
99
100| Module | What it is | Status |
101|---|---|---|
102| **Core** | normative JSON Schemas (2020-12) for envelope, intent, capability, decision, result, event, catalog, selection, input record, probe report; versioning and error codes | see `STATUS.md` |
103| **Lenshift** | model dialect parsers and result renderers: `openai`, `openai_stream`, `qwen35`, `aien_legacy`; `ajax` reserved | see `STATUS.md` |
104| **Crossveil** | the authority-boundary contract: two runtime callbacks, a lifecycle with fail-closed invariants, trust classes | see `STATUS.md` |
105| **CrossAxis** | explicit, versioned capability mapping; a deterministic domain selector with a before/after receipt; bounded expansion | see `STATUS.md` |
106| **Interplane Probe** | measured capability qualification of an OpenAI-compatible endpoint | see `STATUS.md` |
107| **Conformance** | 106 conformance cases plus 56 dialect fixtures; the Rust runner must reproduce the recorded verdicts byte for byte | see `STATUS.md` |
108| Vectorveil | the envelope and canonical JSON; no transport framework | envelope only |
109| RelayLine | the event vocabulary for multi-round exchanges | contract only |
110| **Forge** (v0) | the merge decision for code on Radicle: `forge decide` turns a review verdict and a gate receipt for one exact patch head into MERGE or HOLD; seeded Omega (`docs/FORGE.md`) | see `STATUS.md` |
111
112The counts 106 and 56 are what `interplane-conformance` and `interplane-corpus validate` report on
113main (see "Build and test").
114
115## Layout
116
117```
118spec/ normative Markdown + spec/schemas/*.schema.json
119rust/ Cargo workspace: interplane-core, -lenshift, -crossaxis, -crossveil, -conformance, -probe
120dialects/ per-dialect fixtures (fixtures/) and recorded provider streams (replay/)
121conformance/ canonical fixtures, recorded verdicts (expected/), trust corpus freeze
122adapters/ aien/ reference adapter (depends on its host; Core never does); odysseus/ keeps catalog records only
123examples/ receipt/ (before/after receipt); the offline and to-do examples are in rust/crates/interplane-crossveil/examples/
124bench/ CrossAxis benchmark corpora, pre-registered protocols (0.2, 0.2x, 0.3), published runs (records only)
125qualification/ real-model probe captures, evidence and reports
126provenance/ companion manifest verifier, outside Core (ADR 0004)
127forge/ INTERPLANE Forge v0 in seeded Omega (forge.om), its tests and host dependencies (docs/FORGE.md)
128docs/ reports (REPORT-*.md), PIPELINE.md, WRITING-AN-ADAPTER.md, plans, analysis
129docs/adr/ decisions
130tests/gates/ the Spark test gates and their one entry point, run.sh
131.aien/ Spark pipeline settings: gates that always run, the bundle verification key
132STATUS.md what is implemented, tested, conformant or qualified
133ROADMAP.md the layers and where each stands
134CHANGELOG.md changes by version
135CURRENT_STATE.md what the host projects' live code actually contained when this started
136```
137
138## Build and test
139
140You need the Rust toolchain named in `rust-toolchain.toml` (1.99.0); `rustup` picks it up
141automatically. From the repository root:
142
143```
144cd rust
145cargo test --all
146cargo run -q -p interplane-conformance --bin interplane-conformance -- ../conformance/fixtures --out /tmp/verdicts.json
147cmp /tmp/verdicts.json ../conformance/expected/verdicts.json
148cargo run -q -p interplane-conformance --bin interplane-corpus -- validate
149```
150
151The `cmp` line prints nothing when the verdicts match the recorded reference byte for byte.
152
153Every pull request is tested on the DGX Spark, not on GitHub (see `docs/PIPELINE.md`). Each gate
154is a file in `tests/gates/` and runs `tests/gates/run.sh <step>`; you can run a step yourself the
155same way:
156
157| Gate | Step | What it checks |
158|---|---|---|
159| `INTERPLANE-NO-PYTHON` | `no-python` | no Python file is tracked; runs on every change (`.aien/always`) |
160| `INTERPLANE-SCHEMAS-AND-FIXTURES` | `schemas-and-fixtures` | schema self-check, then every fixture against the schemas |
161| `INTERPLANE-RUST` | `rust` | fmt, clippy, all tests, both offline examples, the 106 verdicts equal `conformance/expected/verdicts.json` |
162| `INTERPLANE-PACKAGE` | `package` | every crate packages and builds from its `.crate` file |
163| `INTERPLANE-NEGATIVE-CONTROLS` | `negative-controls` | trust corpus digests, deliberately broken variants are detected, matrix equals the recorded one |
164| `INTERPLANE-PROVENANCE` | `provenance` | the provenance verifier's tests and its six fixture verdicts |
165| `INTERPLANE-ADAPTER-AIEN` | `adapter-aien` | the AIEN adapter and its T4 subset; needs the sibling checkouts `../aegis-runtime` and `../aien-protocols` |
166
167For example, `tests/gates/run.sh no-python` prints `AIEN-OBS python_files_found false` and exits 0.
168
169## Where the evidence lives
170
171- `STATUS.md`: the state of every component, with the fixture or run that backs it.
172- `docs/REPORT-*.md`: the published reports for 0.1, 0.2, 0.2x, 0.3 and the adapter reproduction.
173- `bench/runs/`: the recorded benchmark and trust-gate runs.
174- `qualification/`: real-model probe captures and reports (Qwen3.5-9B on Ollama, llama.cpp and SGLang).
175- `adapters/aien/evidence/`: recorded runs of the AIEN adapter against a live AIEN daemon.
176- [aien-dev/aien-receipts](https://github.com/aien-dev/aien-receipts/tree/main/interplane): the
177 signed Spark test bundle for each tested commit.
178
179## Removed adapters
180
181Two Python adapters were removed on 2026-10-15 under the project rule that no Python ships here:
182
183- `adapters/odysseus`: ran the Odysseus agent runtime as an INTERPLANE authority. It was the T3 runner
184 of the closed 0.3 trust gate and the runtime of the 0.2 and 0.2x bench campaigns. Odysseus is a
185 Python program, so the adapter could not move to Rust; its catalog records stay in
186 `adapters/odysseus/` because the bench corpus and recorded runs cite them.
187- `adapters/motus`: let a Lithos AI Motus agent (a Python framework) send its tool calls through
188 INTERPLANE, using the AIEN authority through the `aien-authority-bridge` binary, which stays in
189 `adapters/aien`.
190
191The Rust AIEN adapter (`adapters/aien`) is the reference adapter. Both removed adapters remain in git
192history (present through commit `43ec8f8`).
193
194## Removed Python
195
196No Python ships in this repository (project rule, 2026-10-15); the `INTERPLANE-NO-PYTHON` gate fails
197if a Python file is tracked. The Python SDK (`python/`, package `interplane`) was a second
198implementation of every SDK module, kept byte-identical to Rust by the tests of that time. It was
199removed on 2026-10-15 and is in git history. Its last conformance verdicts and negative-control
200matrix were byte-identical to the Rust ones and are kept as `conformance/expected/`; the
201`INTERPLANE-RUST` and `INTERPLANE-NEGATIVE-CONTROLS` gates compare the Rust output against those
202files.
203
204## Security in one paragraph
205
206The model side is untrusted. Lenshift never executes. CrossAxis never grants. A valid envelope
207means "structurally understandable", never "authorized". A signature proves origin, never
208authority. The runtime makes every authorization decision through its own policy engine; INTERPLANE
209carries the decision and refuses to upgrade it. Denied never becomes authorized by retry.
210To report a vulnerability, see [`SECURITY.md`](SECURITY.md).
211
212## License
213
214Apache-2.0 for the protocol, schemas, fixtures and the Rust reference SDK (`LICENSE`).
215`adapters/aien` depends on AGPL host projects and is AGPL-3.0-or-later, with its own `LICENSE`, as
216are the Odysseus catalog records in `adapters/odysseus`; see `docs/adr/0002-licensing.md`.