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 / docs / plans / 0.3-TRUST-PLAN.md

322 lines · 23955 bytes Raw Blame History Source

INTERPLANE 0.3 "Trust": plan

Status: plan, 2026-10-04. Docs only. Nothing below is implemented by the PR that adds this file. The gates are pre-registered separately in bench/PROTOCOL-0.3.md and are not restated here. STATUS.md remains the only place that says what is implemented.

Governing rule (README.md:5): models express intent, runtimes retain authority. 0.3 makes the line between content, model intent and runtime authority checkable: every model-visible input says what it is and how far it is trusted, every injection attempt in a fixed corpus is shown not to cause an effect, and approval and denial behave the same in both SDKs and both adapters.

Scope of the claim, fixed now: trust labels preserve meaning; they do not prove that a model ignores injected text. 0.3 claims runtime-layer properties only. Model behaviour under injection is measured and reported, never used as evidence that the boundary holds.

Inputs to this plan: ROADMAP.md (0.3 row), docs/REPORT-0.1.md, docs/REPORT-0.2.md, spec/, both SDKs, both adapters, docs/audits/aien-authority-reaudit-2026-10-04.md, docs/external/ (Jan #8975, NightDriver 565 and 666, ecosystem triage), and section 19 (IP-C) of the AIEN programming plan of 2026-10-04 (operator document, not in this repository).

1. What exists today (main 678c06c)

Line numbers are at 678c06c unless another commit is named.

Vocabulary and wire

Behaviour

Adapters

2. Gaps (each one is closed by a named cut in section 4)

#GapEvidenceCut
G1Trust vocabulary disagrees with itself. CROSSVEIL.md:26 names a default untrusted_tool_content, which is not an enum value; CROSSVEIL.md:48-49 and CORE.md:100-101 say tool_result + unknown. CROSSVEIL.md:26 and VERSIONING.md:8 mention origin/Origin, which no schema defines.citedP1
G2Rust and Python treat an unrecognized content_kind string differently: Rust maps it to unknown (pipeline.rs:686), Python to tool_result (crossveil.py:190). Read from source; no fixture covers it yet.citedP1
G3Odysseus result_integrity can be system (authority.py:294 comment), which is not a TrustLevel; the pipeline then folds it to external_untrusted (crossveil.py:193-194). Fail closed, but the meaning is lost.citedP1
G4Provenance exists only on executed results. System prompt, user request, workspace files, memory, documents, skills, tool descriptions and external-provider output that the host puts into context have no record at all.schemas aboveP2, P3
G5The text the model actually sees carries no provenance: serialize_result renders data or error only (Rust crates/interplane-lenshift/src/lib.rs:179-191; Python lenshift/_common.py:93-103). Trust is on the wire, not in the rendered message.citedstated as a limit; framing deferred (section 6)
G6The runtime cannot see what the model had been exposed to when it asked. CallContext has trace_id, message_id, parent_id, model, session only (crates/interplane-crossveil/src/lib.rs:15-22). Odysseus gets exposure only if the caller passes trust/prior_trust by hand (authority.py:332-345).citedP3, E1, E2
G7AIEN's authority input has no exposure field: AuthorityContext { scope, descriptor, live_catalog_digest } (sovereign-core 6554aac crates/aien-mcp/src/authority.rs:45-49). The AIEN adapter labels every success workspace_content (adapters/aien/src/lib.rs:700-717).citedE3, E4
G8Rust and Python disagree on approval continuation: Rust accepts any non-empty approval_id (lifecycle.rs:115-121, and Lifecycle stores no minted id, :62-65); Python requires the minted id and a new decision object (core.py:924-926). No fixture reaches the second decision, so lockstep never caught it.citedA1
G9No host-controlled continuation API in the generic pipeline. Public entry points are new, admit_value, admit_envelope, run_turn (pipeline.rs:152, :214, :253, :522). Correlation, expiry, argument binding, cancellation, replay and restart semantics are unspecified. AIEN tests call decide directly, outside the pipeline (approval.rs:31-36).citedA1, A2
G10Odysseus approvals are minted as handles and never consumed.REPORT-0.1.md:86A4
G11No adversarial corpus beyond cases 18, 21, 22, 23, and no negative control proving the suite can fail.CORE.md:220-247I1 to I4
G12AIEN grant spent at mint even when the provider fails afterwards; recoverability of that outcome is untested.REPORT-0.2.md:90-91A3

3. Wire-format decision (made now)

All 0.3 additions are optional fields on the wire (a MINOR change, VERSIONING.md:7) and required by the 0.3 conformance gates. No new payload.kind is added, because an unknown kind is rejected by older receivers (VERSIONING.md:18). No new TrustLevel value is added (that is MAJOR, VERSIONING.md:9). The 25 existing fixtures must keep their expected outcomes unchanged (VERSIONING.md:19-20); new checks live in new fixtures or in new optional expected blocks.

Defined in P1 and P2 (names fixed now so the protocol can refer to them):

4. Lanes and cuts

Each cut is one PR. "Lockstep" means the Rust and Python changes land in the same PR and the cross-language verdict comparison in CI (.github/workflows/ci.yml:68-80) stays byte-identical. Owner types: spec (normative text and schemas), SDK (Rust + Python lockstep), adapter (one host adapter, its pinned host checkout), host (a change in a host repository), taskmaster (runs, report, status). Red before green: every cut that fixes behaviour first lands a failing fixture or test in the same PR history.

Lane P: provenance (schema, SDKs, conformance)

P1. Reconcile the trust vocabulary. (spec + SDK + adapter (Odysseus); first cut of 0.3, no dependencies)

P2. InputRecord and Exposure types. (spec + SDK; depends on P1)

P3. Pipeline input ledger and exposure. (SDK; depends on P2)

P4. Source-class coverage fixtures. (SDK + spec; depends on P3)

Lane I: injection corpus (conformance)

I1. Corpus format, scripted obedient model, negative-control harness. (spec + SDK; depends on P3)

I2. Content-borne cases (categories C01 to C05). (SDK; depends on I1)

I3. Authority-claim cases (C06 to C09, C11). (SDK; depends on I1, A2 for C09)

I4. Identity, catalog and fault cases (C12, C13). (SDK; depends on I1)

C10 (approval manipulation) is supplied by lane A and counted in the corpus.

Lane E: runtime enforcement (adapters)

E1. Reference exposure policy in the mock runtime. (spec + SDK; depends on P3)

E2. Odysseus adapter consumes pipeline exposure. (adapter; depends on P3, E1)

E3. AIEN authority takes exposure. (host: aien-sovereign-core; independent of this repo)

E4. AIEN adapter re-pin and honest labels. (adapter; depends on E3, P3)

E5 (optional, separate). Narrow exported SafetyEngine host API. (host: aien-sovereign-core)

Lane A: approval and denial correctness

A1. Approval continuation contract, and the Rust fix. (spec + SDK; depends on P1)

A2. Continuation entry point in both SDKs. (SDK; depends on A1)

A3. AIEN grants through the continuation API. (adapter; depends on A2)

A4. Odysseus approvals. (adapter; depends on A2)

Lane R: report

R1. REPORT-0.3. (taskmaster; depends on all cuts above that are merged)

Order: P1 -> P2 -> P3 -> (P4, I1, E1, A1 in parallel) -> (I2, I3, I4, E2, A2) -> (A3, A4) -> E4 after E3 lands -> R1. E3 and E5 run in sovereign-core on their own schedule. 17 required cuts (P1-P4, I1-I4, E1-E4, A1-A4, R1), one optional (E5).

5. 0.3 acceptance (maps to the protocol gates)

  1. Model content cannot forge approval (gate A, categories C07, C08, C10).
  2. Mismatch, expiry, reuse and stale scope all refuse (gate A).
  3. A legitimate approval resumes through the supported integration (gate A, A01 on both SDKs and AIEN; Odysseus resumes or fails closed).
  4. Both SDKs have identical trust semantics (gate X: byte-identical verdicts on every fixture).
  5. No effect executes from an untrusted-origin instruction (gate E, 0 tolerated).
  6. Every model-visible input in conformance carries the required provenance (gate P).
  7. The suite can fail: every negative-control variant fails it (gate N).

6. Explicitly OUT of 0.3