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
- The Python SDK, its runners and the two Python adapters were removed on 2026-10-15
(
CHANGELOG.md:9-11,STATUS.md:7-8). No Python may be tracked (AGENTS.md:75). The Rust workspace is the only implementation. - The byte-identical verdict rule now compares the Rust output with the recorded reference, not two
languages: "The Rust conformance verdicts and the negative-control matrix must equal
conformance/expected/byte for byte" (AGENTS.md:73); the recorded 106 rows were the last output of both runners when they agreed (CHANGELOG.md:9,STATUS.md:38). The repository's own rule therefore does not require a second language. What a second implementation would add is open (decision 5, section 3). forge/is seeded Omega built with a pinnedomc(AGENTS.md:14); it is the only non-Rust first-party code in the tree.
Envelope and transport (Vectorveil)
- Vectorveil 0.1 is the envelope only; transport is in-process or ordinary request/response, with
no broker and no RPC framework (
spec/VECTORVEIL.md:3-5).signatureand remote transport bindings are reserved, and adding either must not change the envelope's required fields (spec/VECTORVEIL.md:7-8). - Envelope fields: required set at
spec/schemas/envelope.schema.json:7-15; "A repeated message_id is a replay" (:20-23);trace_idandparent_id(:24-38); eight payload kinds (:54-65); optionaldigest, SHA-256 of the RFC 8785 payload bytes (:95-105);signaturereserved, "proves origin, never authorization" (:106-113);extensions(:114-117). - Canonical JSON is JCS (
spec/CORE.md:355-359). Unknownpayload.kindis rejected (spec/VERSIONING.md:18); unknown top-level fields are preserved or ignored, never acted on (spec/VERSIONING.md:17).
Events (RelayLine)
- RelayLine 0.1 is the event contract only and "does not implement streaming"
(
spec/RELAYLINE.md:3-4). The legal order is informal: "Per trace,seqis monotonic" and one arrow chain per request (spec/RELAYLINE.md:6-8). Streaming, partial calls and cancellation are "documented inputs ... but not transported"; formalization waits for measured behaviour of the Odysseus SSE loop and the aegis-runtime gateway (spec/RELAYLINE.md:12-14). - Event schema: required
kind,event,seq(spec/schemas/event.schema.json:7-11); eleven event values includingcancelled(:18-30);seqinteger from 0, "Monotonic per trace." (:32-36); optionalrequest_id,turn,payload(:37-57); open to extra properties (:63). Rust typeEventatrust/crates/interplane-core/src/types.rs:552-564;cancelledis a variant (types.rs:99). - The pipeline appends events to an in-memory
Vec<Event>(pipeline.rs:139) with a per-trace counter (pipeline.rs:143).emitassigns contiguousseqper trace (pipeline.rs:604-606), never carries a payload (pipeline.rs:613) and drops events pastmax_events_per_trace(pipeline.rs:596-602). Paths here and below are underrust/crates/interplane-crossveil/src/. - Emit sites:
tool_request:758,tool_mapped:852,tool_decision:882,tool_execution_started:1006,continue:1303,reasoning_delta:1323,model_delta:1326,complete:1402, andtool_result/tool_errorthroughemit_outcome(:618-627). No code path emitscancelled. - The conformance runner compares observed records, not events:
rust/crates/interplane-conformance/src/lib.rsnever reads the event list, asspec/RELAYLINE.md:10-12states.
Lifecycle, cancellation and continuation
- States and transitions:
rust/crates/interplane-core/src/lifecycle.rs:7-18; terminal set:22-27(REQUIRES_APPROVAL is not terminal for the host); the lifecycle keeps the mintedapproval_id(:69, stored at:117-119) and accepts a continuation only with that id (:126-135). Lifecycle::cancelmoves only REQUIRES_APPROVAL to DENIED (lifecycle.rs:142-147); there is no cancel for AUTHORIZED or EXECUTING. The spec says the same: cancellation applies to a pending approval only (spec/CORE.md:213-214;spec/CROSSVEIL.md:47).- Host-only continuation API:
continue_approval(pipeline.rs:1091-1187),cancel_approval(:1191-1221),pending_approval(:1071), with the normative check order inspec/CORE.md:172-193. A continuation "never calls decide and never touches the request ledger" (pipeline.rs:1088-1090). - Pending entries live in a
HashMapin the pipeline instance; "a new pipeline starts empty" (pipeline.rs:147-149). After a restart every continuation is refused (spec/CORE.md:222-223,spec/CROSSVEIL.md:52-53). Conformance reaches that only through the fixture step{"restart": true}, which builds a fresh pipeline (spec/CORE.md:522-523).
Execution
RuntimeAuthorityis synchronous:decideandexecutereturn values directly (rust/crates/interplane-crossveil/src/lib.rs:29-42). The pipeline callsexecuteinline undercatch_unwind(pipeline.rs:1007-1009); a result naming another request is dropped (:1012-1029);timed_outis a status the runtime returns (:1050-1055), not a deadline the pipeline enforces. Nothing can interrupt work in flight.- The pipeline timestamp is a constant,
"2026-01-01T00:00:00Z"(pipeline.rs:336); approval expiry uses a host-suppliednow(spec/CORE.md:182-185). - Normative mock runtime:
spec/CORE.md:361-430;rust/crates/interplane-crossveil/src/mock.rscountsdecide_callsandexecute_calls(mock.rs:148-150) and returns a cannedtimed_outforslow_tool(mock.rs:376-381).
Replay, limits and close_trace
RequestLedgeris an in-memory map (rust/crates/interplane-core/src/ledger.rs:64-67); a repeatedmessage_idisreplayed_message(ledger.rs:74-81) and a repeatedrequest_idisduplicate_request_id(ledger.rs:83-90). Fixtures 16 and 17 pin both refusals.- Session limits (
ledger.rs:7-31, defaults:47-61; tablespec/CORE.md:47-53) and host-onlyclose_trace(pipeline.rs:470-498,spec/CORE.md:68-76) bound a long-lived host. The closed-id window "lives in the pipeline's memory only; it is not persisted" (spec/CORE.md:100).STATUS.md:56records the 16 scenarios as unit tests with "fixtures follow the next corpus revision". - Replay of a continuation is refused; "Host effect idempotency (a runtime's own receipt ledger) is
separate" (
spec/CORE.md:216-220,spec/CROSSVEIL.md:48-51).
Receipts and provenance
- Core has no receipt type.
ObservedRecordis deterministic and carries no timestamps (spec/CORE.md:539-548); it is a conformance record, not a durable receipt. - The provenance companion (outside Core, ADR 0004) defines two effect bindings: the strong
aien-ledger-slice/1built from records the AIEN daemon wrote, and the weakerrecord_effect_receipt/1that names no request or trace (provenance/BINDING.md:17-18).
AIEN adapter (the real EffectLane path)
- Pinned to sovereign-core
9b5e6e82(adapters/aien/PINS:8); status atSTATUS.md:40. - Effects run only behind
EffectLane::execute_effectwith anAuthorizedEffectthat AIEN minted (adapters/aien/src/lib.rs:3-7,:687-688,:954-958). The idempotency key is the request id, "so one logical request is one effect identity (and one ledger entry)" (lib.rs:303-304,:338). - Two-phase grant spend:
authorize_approvedreserves,execute_effectcommits; a refused continuation releases the grant; an unknown provider outcome leaves AIEN's ledgerUncertain(lib.rs:371-379). - A spent grant presented again for the same effect returns AIEN's existing receipt and runs
nothing (
lib.rs:415-437); the adapter holds that receipt in an in-memory map (lib.rs:152-153) andexecutehands it back instead of running (lib.rs:949-959). Correlation state is bounded at 4096 requests for the adapter's lifetime (lib.rs:53-54). - The ledger route sends approved writes through the AIEN daemon, which claims the request id,
approval id and approval key "durably (replay refused across restarts)"
(
adapters/aien/src/compose_ledger.rs:8-13); the write is temp file plussync_allplus rename (compose_ledger.rs:923-928). That durability is AIEN's, not INTERPLANE's.
Streams already parsed
- Lenshift
openai_streamassembles an SSE body into one message and rejects incomplete streams (rust/crates/interplane-lenshift/src/openai_stream.rs:56;STATUS.md:23, 23 fixtures, 6 real streams).LenshiftTurn.partialexists (rust/crates/interplane-lenshift/src/lib.rs:49); the pipeline copies it to the turn outcome (pipeline.rs:1313) and acts on nothing else. - So two items of the 0.3 follow-up IP-D (
docs/plans/0.3-TRUST-PLAN.md:306-309) are already covered for one dialect (assembly by call index, incomplete-call rejection) and one is covered by unit tests (session bounds,STATUS.md:56). Frame bounds on a transport and an unresolved result on unknown completion are open.
What the design must respect (CURRENT_STATE.md section 5)
- Neither runtime has a trace id; Vectorveil needs
trace_id,message_idandrequest_idand must accept runtime-local ids as extensions (CURRENT_STATE.md:105-106). - Results re-enter the model differently per runtime; RelayLine defines the result event and
Lenshift renders it per dialect (
CURRENT_STATE.md:107-109). - Nothing in INTERPLANE may mint authority (
CURRENT_STATE.md:110-111). - The Odysseus SSE loop named in
spec/RELAYLINE.md:13-14can no longer be measured here: the Odysseus adapter was removed (CHANGELOG.md:11). [INFERENCE] 0.4 has to formalize streaming from the recordedopenai_streamcaptures and the AIEN path instead, or re-acquire an Odysseus capture outside this repository (decision 2).
2. Gaps (each one is closed by a named cut in section 4)
| # | Gap | Evidence | Cut |
|---|---|---|---|
| G1 | Event order is prose, not a checkable grammar; no checker exists | spec/RELAYLINE.md:6-8 | O1 |
| G2 | Conformance never compares events; an order regression is invisible | spec/RELAYLINE.md:10-12; interplane-conformance/src/lib.rs | O2 |
| G3 | cancelled exists in the schema and type but is never emitted | event.schema.json:29; types.rs:99; emit sites in section 1 | C1 |
| G4 | Cancel reaches only REQUIRES_APPROVAL; AUTHORIZED and EXECUTING cannot be cancelled | lifecycle.rs:142-147; CORE.md:213-214 | C1, C2 |
| G5 | execute is synchronous and inline, so in-flight work cannot be cancelled and a late result has no defined handling | rust/crates/interplane-crossveil/src/lib.rs:33-40; pipeline.rs:1007-1009 | C2 |
| G6 | No receipt type in Core; ObservedRecord is a test record without identity of the decision, approval or event range | CORE.md:539-548 | D1 |
| G7 | Nothing INTERPLANE records survives a restart: events, ledger, pending table, closed ids | pipeline.rs:139, :147-149; ledger.rs:64-67; CORE.md:100 | D2, K1 |
| G8 | A 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 ran | ledger.rs:83-90; fixture 16 | Y1 |
| G9 | An execution that started and never finished (crash, unknown provider outcome) has no INTERPLANE state; "unresolved result on unknown completion" is open from IP-D | 0.3-TRUST-PLAN.md:308-309; REPORT-0.3.md:137-138 | Y2 |
| G10 | Continuation across processes is impossible by design (fail closed); 0.4 names it as a goal | CORE.md:222-223; 0.3-TRUST-PLAN.md:306-307 | K1 |
| G11 | No transport binding: envelopes and events cross only in process; no frame bounds | VECTORVEIL.md:3-8 | T1, T2 |
| G12 | Event stream is not transported; model deltas and partial calls stop at Lenshift | RELAYLINE.md:12-14; pipeline.rs:1313 | S1 |
| G13 | Session-limit scenarios have no fixtures | STATUS.md:56 | O2 |
| G14 | AIEN Uncertain / ReconciliationRequired is untested and its receipt is held in memory only by the adapter | REPORT-0.3.md:137-138; adapters/aien/src/lib.rs:152-153 | A1 |
| G15 | The 0.3 freeze digests every file under conformance/fixtures, so new fixtures there would move the frozen 0.3 digest | interplane-conformance/src/trust_digest.rs:4-6; conformance/TRUST-DIGEST.txt:1-3 | N1 |
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.
- (a) Bindings only: Vectorveil defines how the existing JCS envelope bytes are framed over a
carrier the host already has (in-process call, one byte-stream binding), plus frame bounds. No
broker, no RPC, no connection management, as in
spec/VECTORVEIL.md:4-5. - (b) A wire transport: INTERPLANE owns sessions, connection setup, flow control and reconnection.
- Recommendation: (a). It keeps
VECTORVEIL.md:7-8true (no new required field) and the transport gate (protocol gate T) can test byte identity directly. (b) puts a network stack in the claim without a runtime that asks for it [INFERENCE: neither runtime inCURRENT_STATE.mdsection 5 needs INTERPLANE to own connections].
Decision 2. RelayLine in 0.4: SSE, WebSocket, or in-process only.
- (a) In-process only, with a serialized event log (JCS, one event per line) as the conformance artefact.
- (b) In-process plus one SSE binding (
text/event-stream, one event perdata:frame). - (c) WebSocket.
- Recommendation: (b). Both real backends already stream SSE and the repository already parses it
with recorded captures (
STATUS.md:23); WebSocket adds framing and a bidirectional channel that no current runtime uses. If Drake wants Odysseus captures as the formalization source named inspec/RELAYLINE.md:13-14, that capture has to come from outside this repository (section 1).
Decision 3. Receipt integrity: signing, or a hash chain.
- (a) Hash chain: each receipt carries
prev_receipt_digest, the receipt digest is SHA-256 of its JCS form without that field, and a journal is valid only as an unbroken chain from its genesis record. Tamper-evident against edits, reordering and truncation in the middle; not origin proof. - (b) Signature (Ed25519 over the JCS form): origin proof, needs key custody, rotation and a verifier key path in every consumer.
- (c) Both.
- Recommendation: (a) for 0.4, with the envelope
signaturestill reserved (envelope.schema.json:106-113). A signature "proves origin, never authority" (AGENTS.md:82); 0.4's claim is durability and idempotence, which the chain covers. Signing becomes its own release with a key-custody decision.
Decision 4. Where a retry may re-execute and where it must replay a receipt.
- (a) Never re-execute: any retry of a
(trace_id, request_id)that has a receipt returns that receipt; one without a receipt is a new request and is decided afresh; one whose receipt isstartedwithout an outcome isunresolvedand is never run again by INTERPLANE. - (b) As (a), except a capability the runtime's catalog marks retry-safe (a read) may be re-run
under a new
request_idby the host. - Recommendation: (a) inside INTERPLANE, with (b) left to the host and runtime: re-running a read is a new request the runtime decides again, so it needs no INTERPLANE exception. INTERPLANE cannot know which effects are safe to repeat, and guessing would be authority.
Decision 5. Whether a second SDK language returns.
- The repository's rule does not require one: verdicts are compared with the recorded reference
(
AGENTS.md:73,CHANGELOG.md:9at6aa1eec9), and Python is barred (AGENTS.md:75). - The cost of no second language: every 0.4 fixture's expected verdict is produced by the Rust
runner alone, so the reference is self-recorded and the cross-implementation check that caught
two differences after 0.3 (
REPORT-0.3.md:145-148) is gone for new behaviour. - Options: (a) Rust only, expected verdicts reviewed by hand from the spec and pinned by
negative controls; (b) an independent verifier in seeded Omega for the two checkable artefacts
(event grammar, receipt journal), in the manner of
forge/(AGENTS.md:14); (c) a full second SDK. - Recommendation: (b). It restores an independent second reading where the 0.4 claim is new, without a second pipeline, and keeps first-party logic in seeded Omega. It sits behind the Forge lane Drake chose to build first.
Decision 6. Do pending approvals survive a restart in 0.4.
- Today a restart refuses every continuation (
spec/CORE.md:222-223, fixture A12 inbench/PROTOCOL-0.3.md). Changing that expected outcome is a protocol change (AGENTS.md:72,spec/VERSIONING.md:19-20). - (a) Keep it: only receipts are durable; a pending approval dies with the process.
- (b) Opt-in durable pending entries: a host that opens the pipeline over a journal can continue a pending request after restart with the same seven checks; the in-memory default and A12 stay as they are.
- Recommendation: (b). It answers "continuation across processes" (
0.3-TRUST-PLAN.md:306-307) without moving any 0.3 verdict.
Decision 7. How the runtime trait learns about cancellation and late results.
- (a) Split execution:
executemay return a pending handle; the host later delivers the result through a host-only call;cancelis a new optional trait method with a fail-closed default. - (b) Keep
executesynchronous; cancellation covers only the window beforeexecuteis called. - Recommendation: (a), because the 0.4 row names "cancellation" of running work and (b) cannot express a late result at all. It is an adapter-facing API change; the AIEN adapter (cut A1) and the mock change in the same PR series.
Decision 8. Implementation language of new 0.4 code (note added 2026-11-16).
- This plan was drafted on 2026-11-09. On 2026-11-13 Drake set the rule that new code is written
in Omega (
.om) and built with the newest Omega compiler build. The file layout in section 4 (the new modulerelay.rs, the new cratesinterplane-journalandinterplane-vectorveil) is the 2026-11-09 draft and predates that rule. - Which parts stay edits to the existing Rust workspace and which become new components in seeded Omega is for Drake to settle when he accepts this plan; no cut starts before that. The cuts in section 4 are not rewritten by this note.
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)
- Files:
spec/RELAYLINE.md(the informal chain at:6-8replaced by a transition table per request and the per-traceseqrule),spec/schemas/event.schema.json(descriptions only), new modulerust/crates/interplane-core/src/relay.rs(check(&[Event]) -> Result<(), Violation>),STATUS.md. - Invariant: one normative grammar; every event sequence the pipeline emits is accepted by it, and every sequence outside it is refused with a named violation (seq gap, seq repeat, seq decrease, event after a terminal, terminal twice, result without start, unknown request, cross-trace seq).
- Fixtures: the grammar table itself; the corpus is O2's.
- Red first: run the checker over the event lists of all 106 existing cases; every sequence it
refuses is recorded and resolved in the spec text, never by widening the checker silently
[INFERENCE: refusals are likely, for example
rejectemitstool_errorwith no precedingtool_request(pipeline.rs:630-640)]. - Acceptance:
cargo test -p interplane-core relay. - Negative control: variant W1 (checker accepts every sequence) must fail gate O.
O2. Event conformance and session-limit fixtures. (SDK; depends on O1)
- Files:
rust/crates/interplane-conformance/src/lib.rs(new optionalexpected.eventsblock; a case without it is unchanged),spec/CORE.mdfixture format section, new fixtures underconformance/execution/relay/andconformance/execution/limits/. - Invariant: for 0.4 cases the emitted event list (
event,seq,request_id,turn) is part of the verdict and must equal the recorded one byte for byte; the 106 existing rows stay identical. - Fixtures: the ordering corpus of protocol section 3 (legal and illegal sequences, checker-only
cases) and one fixture per session-limit scenario in
STATUS.md:56. - Acceptance: the verdict
cmpofAGENTS.md:44-45over both roots. - Negative control: W2 (emitter reuses a
seq).
Lane C: cancellation
C1. Host cancel for any non-terminal request, and the cancelled event. (spec + SDK)
- Files:
spec/CORE.md(Cancellation:213-214widened),spec/CROSSVEIL.md:47,lifecycle.rs(cancelfrom MAPPED, AUTHORIZED and REQUIRES_APPROVAL),pipeline.rs(cancel_request(trace_id, request_id), emitscancelled), result vocabulary (proposedresult.status = cancelledandErrorCode::Cancelled, both MINOR perspec/VERSIONING.md:8). - Invariant: after the host's cancel is acknowledged for a request that has not started,
executeis never called for it; the request is terminal;cancelledis its last event. A cancel of a terminal, unknown or closed request is refused and changes nothing. Cancel stays host-only; nothing in model output reaches it. - Fixtures:
conformance/execution/cancel/(protocol C01 to C06). - Acceptance:
cargo test -p interplane-crossveil canceland the verdictcmp. - Negative control: W3 (execute still called after acknowledged cancel).
C2. Split execution, cancel in flight, late results. (spec + SDK + mock; depends on C1 and decision 7)
- Files:
rust/crates/interplane-crossveil/src/lib.rs(RuntimeAuthority),pipeline.rs(execute_authorized:995-1067split;deliver_resulthost call),mock.rs(a held capability whose result the fixture delivers),spec/CORE.mdmock table. - Invariant: once a cancel is acknowledged, no effect starts for that request; a result delivered
after the acknowledgement is recorded as late (receipt outcome
late_result) and is never rendered to the model, never changes the terminal state and never triggers another call. Whether the runtime stopped the effect is the runtime's report, not INTERPLANE's claim. - Fixtures: protocol C07 to C12.
- Acceptance: as C1.
- Negative control: W4 (late result rendered to the model).
Lane D: durable receipts
D1. Execution receipt type. (spec + SDK; depends on O1 and decision 3)
- Files: new
spec/schemas/receipt.schema.json,spec/CORE.md(new section "Execution receipt"),rust/crates/interplane-core/src/types.rs. - Content (proposed):
receipt_version,trace_id,request_id,request_digest(the existingcapability_request_digest,pipeline.rs:76-78),decisionvalue and authority, mintedapproval_idor null,phase(startedoroutcome),result_digest(as inCORE.md:547-548),stage, first and lastseq,prev_receipt_digest,receipt_digest. - Invariant: a receipt is a record, never a grant; no code path reads a receipt into a decision. The digest is reproducible from the JCS bytes alone.
- Fixtures:
conformance/fixtures-style digest cases underconformance/execution/digest/. - Acceptance: schema self-check plus
interplane-corpus validateover the new root. - Negative control: W8 (verifier skips the digest check) must fail D03.
D2. Append-only receipt journal. (SDK; depends on D1)
- Files: new crate
rust/crates/interplane-journal/(outside Core: it does file I/O, and Core holds no host dependency,AGENTS.md:76). - Invariant: write-ahead order. The
startedreceipt is durable (written andfsynced) beforeexecuteis called; if it cannot be made durable,executeis not called. Each record is length framed and chained; on open, a torn or corrupt record is refused and the journal is reported unusable from that point, never truncated, rewritten or repaired. - Fixtures: protocol D01 to D08, including the offset sweep over a torn final record.
- Acceptance:
cargo test -p interplane-journal. - Negative controls: W7 (repairs a torn tail), W9 (writes the receipt after execute).
Lane Y: retries
Y1. Idempotent replay of a finished request. (spec + SDK; depends on D2 and decision 4)
- Files:
spec/CORE.md(Replay:216-220extended),pipeline.rs(host-onlyreceipt_for(trace_id, request_id)). - Invariant: a retry of a request that has an outcome receipt returns that receipt byte for byte
and calls neither
decidenorexecute. The protocol refusals stay: a replayed envelope is stillreplayed_messageand a reusedrequest_idis stillduplicate_request_id(fixtures 16 and 17 unchanged); the receipt is what the host reads to learn the outcome. - Fixtures: protocol R01 to R06.
- Negative control: W6 (retry re-executes).
Y2. Unresolved on unknown completion. (SDK; depends on Y1)
- Invariant: a
startedreceipt with no outcome after restart yieldsunresolved; INTERPLANE never runs it again, never reports it as success or failure, and hands reconciliation to the runtime (the AIEN analogue isUncertain,adapters/aien/src/lib.rs:377-378). - Fixtures: protocol R07, R08.
- Negative control: W9.
Lane K: continuation across processes
K1. Durable pending entries (opt-in). (spec + SDK; depends on D2 and decision 6)
- Files:
spec/CORE.md(Restart:222-223: in-memory default unchanged, journal mode added),pipeline.rs(pending table optionally journaled). - Invariant: in journal mode a continuation after restart passes exactly the seven checks of
spec/CORE.md:172-188against the journaled entry, with the host clock; without the mintedapproval_idit is refused; a second continuation after it resolved returns the same receipt and runs nothing. In-memory mode keeps A12. - Fixtures: protocol K01 to K09.
- Negative control: W5 (journal mode skips the
approval_idcheck).
Lane T: transport
T1. Vectorveil binding. (spec + SDK; depends on decision 1)
- Files:
spec/VECTORVEIL.md(binding section;:7updated), new craterust/crates/interplane-vectorveil/(in-process binding and one byte-stream binding with a frame bound). - Invariant: the bytes of every envelope after the binding equal its JCS bytes before it;
digestvalues are unchanged; unknown fields survive; an oversized, truncated or doubled frame is refused before parsing. - Fixtures: every envelope in the 0.3 corpus plus
conformance/execution/transport/. - Negative controls: W10 (re-serializes without JCS), W11 (drops unknown fields).
T2. Conformance over the binding. (SDK; depends on T1)
- Invariant: the verdict file produced through the binding equals
conformance/expected/verdicts.jsonbyte for byte, and the 0.4 verdicts equal their recorded file. - Acceptance: the verdict
cmp, once in process and once through the binding.
Lane S: streaming
S1. RelayLine event stream binding. (spec + SDK; depends on O2, T1 and decision 2)
- Files:
spec/RELAYLINE.md(:12-14replaced), stream writer and reader ininterplane-vectorveil. - Invariant: the event sequence a reader reassembles equals the in-process list byte for byte and
passes the O1 checker; a stream cut mid-event or mid-call yields an incomplete-stream error,
never a guessed call (as
openai_streamdoes today,STATUS.md:23). - Fixtures: protocol O-corpus streamed, plus cut-stream cases.
Lane A: AIEN adapter
A1. AIEN receipts, cancellation and unresolved outcomes. (adapter; depends on C2, Y2; re-pin)
- Files:
adapters/aien/src/lib.rs,adapters/aien/PINS,adapters/aien/tests/. - Invariant: an INTERPLANE receipt for an AIEN effect cites AIEN's own
EffectReceiptidentity (effect id, policy digest), never replaces it; AIEN'sUncertainmaps tounresolved; a cancel before AIEN commits releases the grant (as a refused continuation does,lib.rs:374-376). - Re-pin: the 0.3 report names sovereign-core
0bdc97a(#208, effect-bound idempotency ledger) as the next re-pin (REPORT-0.3.md:183-184); the current pin is9b5e6e82. Which pin 0.4 uses is recorded in the run manifest, not assumed here. - Fixtures: T4 subset of C, K, R, D (computed, as in 0.3).
- Acceptance:
tests/gates/run.sh adapter-aien. - Negative control: the T4 subset run with W3 and W6.
Lane N: freeze and negative controls
N1. Execution corpus root and freeze file. (SDK; with O2)
- Files:
conformance/execution/(new root),conformance/EXECUTION-DIGEST.txt, new module ininterplane-conformancebesidetrust_digest.rs.conformance/TRUST-DIGEST.txtand its corpus stay as frozen for 0.3. - Gate wiring: a new step in
tests/gates/run.shisBLOCKED_OPERATOR(AGENTS.md:85); the cut provides the command and asks the operator.
N2. Variants W1 to W11. (SDK; after each lane's cut)
- Built only into the conformance runner behind the existing test-only feature; pipeline
libraries never mention them (
AGENTS.md:76).
Lane R: report
R1. REPORT-0.4. (taskmaster; depends on every merged cut)
- Run the frozen suite in process and through the binding, the negative-control matrix and the
AIEN subset; run the live leg if a backend is available; write
docs/REPORT-0.4.mdwith every gate as pre-registered; updateSTATUS.md,ROADMAP.md,CHANGELOG.md. A failed gate is reported as FAIL with thresholds unchanged.
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
- Model behaviour, model quality and performance of any kind; the live leg reports, it does not qualify a model.
- Signatures on envelopes or receipts (unless decision 3 says otherwise), key custody, origin proof.
- A broker, an RPC framework, connection management or reconnection (unless decision 1 says otherwise); WebSocket (unless decision 2 says otherwise).
- Any change to how a runtime decides, grants or spends authority; INTERPLANE re-executing, retrying or reconciling an effect on its own.
- Distributed or replicated journals, multi-host failover, delegated authority across sub-agents.
- Durable storage of raw model output (
AGENTS.md:83): receipts carry digests. - Upstream changes in sovereign-core or aegis-runtime, beyond a re-pin recorded in the manifest.
- Odysseus: no adapter remains in this repository (
CHANGELOG.md:11at6aa1eec9). - The Forge lane, which Drake chose to build before any 0.4 cut.
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:
- Each gate of
bench/PROTOCOL-0.4.mdwith PASS, FAIL or INVALID, and the exact commit, pins and digests of the qualifying run; a failed gate stays failed. - The decisions of section 3 as Drake made them, with date, and which cuts they shaped.
- That INTERPLANE minted, upgraded or re-ran nothing: the count of
executecalls after an acknowledged cancel (0 required), of second executions of onerequest_id(0 required), of torn receipts accepted (0 required) and of continuations accepted without the minted id (0 required). - 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.
- 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.
- 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.
- 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.
- Status words kept apart: what is IMPLEMENTED, EXERCISED by a gate, QUALIFIED by the protocol,
MERGED and DEPLOYED, with
STATUS.mdupdated in the same PR.