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.4-EXECUTION-PLAN.md

523 lines · 35707 bytes Raw Blame History Source

INTERPLANE 0.4 "Execution": plan

Status: plan, 2026-11-09, docs only. Nothing below is implemented by the commit that adds this file, and nothing in it is implemented anywhere yet. Every 0.4 behaviour named here is PROPOSED. The gates are pre-registered separately in bench/PROTOCOL-0.4.md and are not restated here. STATUS.md remains the only place that says what is implemented (AGENTS.md:16). The plan waits for Drake's acceptance; on 2026-11-09 he decided that the Forge lane is built first, so no 0.4 cut starts before that acceptance and before the decisions in section 3 are made.

Governing rule (README.md:5): models express intent, runtimes retain authority. 0.4 keeps that line intact while an exchange runs over more than one round: events arrive in a checkable order, a cancelled request runs nothing more, a continuation still needs the authority the runtime minted, a retry never runs an effect twice, and the record of what ran survives the process that ran it.

Scope of the claim, fixed now: 0.4 claims transport and streaming semantics, cancellation and continuation correctness, retry idempotence and receipt durability, on the runtime layer only. It does not claim model behaviour, model quality or performance (latency, throughput, memory). Nothing in 0.4 lets INTERPLANE mint, cache, upgrade or extend authority (CURRENT_STATE.md:110-111, spec/CROSSVEIL.md:17-18): a receipt records what a runtime decided and did, and is never read as a grant.

Inputs to this plan: ROADMAP.md (0.4 row), STATUS.md, CURRENT_STATE.md section 5, spec/VECTORVEIL.md, spec/RELAYLINE.md, spec/CORE.md, spec/CROSSVEIL.md, spec/VERSIONING.md, spec/schemas/envelope.schema.json, spec/schemas/event.schema.json, docs/REPORT-0.3.md (Limits, Unproven, Next step), docs/plans/0.3-TRUST-PLAN.md section 6 (the named follow-up IP-D), docs/adr/0001 to 0004, the Rust crates under rust/crates/, the AIEN adapter under adapters/aien/, and provenance/BINDING.md.

1. What exists today (main 6aa1eec9)

Line numbers are at 6aa1eec9e91b23483d06c9da3677e88a462f54ed unless another commit is named. Statuses are those of STATUS.md; where this section says "code exists" it means IMPLEMENTED, not EXERCISED by a 0.4 gate.

Languages and the verdict rule

Envelope and transport (Vectorveil)

Events (RelayLine)

Lifecycle, cancellation and continuation

Execution

Replay, limits and close_trace

Receipts and provenance

AIEN adapter (the real EffectLane path)

Streams already parsed

What the design must respect (CURRENT_STATE.md section 5)

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

#GapEvidenceCut
G1Event order is prose, not a checkable grammar; no checker existsspec/RELAYLINE.md:6-8O1
G2Conformance never compares events; an order regression is invisiblespec/RELAYLINE.md:10-12; interplane-conformance/src/lib.rsO2
G3cancelled exists in the schema and type but is never emittedevent.schema.json:29; types.rs:99; emit sites in section 1C1
G4Cancel reaches only REQUIRES_APPROVAL; AUTHORIZED and EXECUTING cannot be cancelledlifecycle.rs:142-147; CORE.md:213-214C1, C2
G5execute is synchronous and inline, so in-flight work cannot be cancelled and a late result has no defined handlingrust/crates/interplane-crossveil/src/lib.rs:33-40; pipeline.rs:1007-1009C2
G6No receipt type in Core; ObservedRecord is a test record without identity of the decision, approval or event rangeCORE.md:539-548D1
G7Nothing INTERPLANE records survives a restart: events, ledger, pending table, closed idspipeline.rs:139, :147-149; ledger.rs:64-67; CORE.md:100D2, K1
G8A retry with the same request_id is refused (duplicate_request_id) and its outcome is lost to the host; there is no lookup of what already ranledger.rs:83-90; fixture 16Y1
G9An execution that started and never finished (crash, unknown provider outcome) has no INTERPLANE state; "unresolved result on unknown completion" is open from IP-D0.3-TRUST-PLAN.md:308-309; REPORT-0.3.md:137-138Y2
G10Continuation across processes is impossible by design (fail closed); 0.4 names it as a goalCORE.md:222-223; 0.3-TRUST-PLAN.md:306-307K1
G11No transport binding: envelopes and events cross only in process; no frame boundsVECTORVEIL.md:3-8T1, T2
G12Event stream is not transported; model deltas and partial calls stop at LenshiftRELAYLINE.md:12-14; pipeline.rs:1313S1
G13Session-limit scenarios have no fixturesSTATUS.md:56O2
G14AIEN Uncertain / ReconciliationRequired is untested and its receipt is held in memory only by the adapterREPORT-0.3.md:137-138; adapters/aien/src/lib.rs:152-153A1
G15The 0.3 freeze digests every file under conformance/fixtures, so new fixtures there would move the frozen 0.3 digestinterplane-conformance/src/trust_digest.rs:4-6; conformance/TRUST-DIGEST.txt:1-3N1

3. Design decisions that need Drake

Each decision is open. The recommendation is the plan's default if Drake accepts it unchanged; the cuts in section 4 name the decision they depend on. None of these widens authority: every option below keeps decide and execute in the runtime.

Decision 1. Vectorveil: a wire transport, or bindings only.

Decision 2. RelayLine in 0.4: SSE, WebSocket, or in-process only.

Decision 3. Receipt integrity: signing, or a hash chain.

Decision 4. Where a retry may re-execute and where it must replay a receipt.

Decision 5. Whether a second SDK language returns.

Decision 6. Do pending approvals survive a restart in 0.4.

Decision 7. How the runtime trait learns about cancellation and late results.

Decision 8. Implementation language of new 0.4 code (note added 2026-11-16).

4. Lanes and cuts

Each cut is one PR. Owner types: spec (normative text and schemas), SDK (Rust crates and conformance runner), adapter (the AIEN adapter at its pins), host (a change in a host repository), taskmaster (runs, report, status). Red before green: a cut that adds behaviour first lands a failing fixture or test. Every cut keeps the 106 recorded verdicts byte-identical (AGENTS.md:73); new 0.4 fixtures live under a new root (cut N1). A change to tests/gates/ or .github/workflows/ is BLOCKED_OPERATOR (AGENTS.md:85) and is listed per cut, not made by it.

Acceptance commands below assume the repository root; cargo commands run from rust/.

Lane O: ordering

O1. RelayLine grammar and checker. (spec + SDK; first cut, no decision blocks it)

O2. Event conformance and session-limit fixtures. (SDK; depends on O1)

Lane C: cancellation

C1. Host cancel for any non-terminal request, and the cancelled event. (spec + SDK)

C2. Split execution, cancel in flight, late results. (spec + SDK + mock; depends on C1 and decision 7)

Lane D: durable receipts

D1. Execution receipt type. (spec + SDK; depends on O1 and decision 3)

D2. Append-only receipt journal. (SDK; depends on D1)

Lane Y: retries

Y1. Idempotent replay of a finished request. (spec + SDK; depends on D2 and decision 4)

Y2. Unresolved on unknown completion. (SDK; depends on Y1)

Lane K: continuation across processes

K1. Durable pending entries (opt-in). (spec + SDK; depends on D2 and decision 6)

Lane T: transport

T1. Vectorveil binding. (spec + SDK; depends on decision 1)

T2. Conformance over the binding. (SDK; depends on T1)

Lane S: streaming

S1. RelayLine event stream binding. (spec + SDK; depends on O2, T1 and decision 2)

Lane A: AIEN adapter

A1. AIEN receipts, cancellation and unresolved outcomes. (adapter; depends on C2, Y2; re-pin)

Lane N: freeze and negative controls

N1. Execution corpus root and freeze file. (SDK; with O2)

N2. Variants W1 to W11. (SDK; after each lane's cut)

Lane R: report

R1. REPORT-0.4. (taskmaster; depends on every merged cut)

Order: O1 -> (O2 + N1) -> C1 -> D1 -> D2 -> (C2, Y1, K1 in parallel) -> Y2 -> T1 -> (T2, S1) -> A1 -> N2 completes -> R1. Decisions gate their cuts: 1 before T1, 2 before S1, 3 before D1, 4 before Y1, 5 before N2 completes (an Omega verifier would join there), 6 before K1, 7 before C2. 15 cuts (O1, O2, C1, C2, D1, D2, Y1, Y2, K1, T1, T2, S1, A1, N1, N2) plus R1.

5. Out of scope for 0.4

6. What the 0.4 report will have to say

docs/REPORT-0.4.md follows docs/REPORT-0.3.md (Observed, Changed, Proven, Failed, Unproven, gate table, architectural impact, next step) and must state at least:

  1. Each gate of bench/PROTOCOL-0.4.md with PASS, FAIL or INVALID, and the exact commit, pins and digests of the qualifying run; a failed gate stays failed.
  2. The decisions of section 3 as Drake made them, with date, and which cuts they shaped.
  3. That INTERPLANE minted, upgraded or re-ran nothing: the count of execute calls after an acknowledged cancel (0 required), of second executions of one request_id (0 required), of torn receipts accepted (0 required) and of continuations accepted without the minted id (0 required).
  4. What durability means at the tested level: which failures were injected (truncation offsets, bit flips, process kill points), on which filesystem, and that power loss was not tested if it was not.
  5. That cancellation of work in flight is cooperative: INTERPLANE guarantees it acts on nothing after the acknowledgement; whether a runtime stopped an effect is reported per runtime.
  6. Whether the second-reading check of decision 5 ran, and on what; if Rust is the only implementation, that the 0.4 expected verdicts are self-recorded and what pins them.
  7. The live leg as reported, never as evidence that the boundary holds, with its model, backend, case count and intervals; if no backend was available, that the claim is limited to the scripted and mock systems.
  8. Status words kept apart: what is IMPLEMENTED, EXERCISED by a gate, QUALIFIED by the protocol, MERGED and DEPLOYED, with STATUS.md updated in the same PR.