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 / bench / PROTOCOL-0.4.md

211 lines · 14538 bytes Raw Blame History Source

INTERPLANE 0.4 Execution: pre-registered protocol

Status: pre-registered 2026-11-09, before any 0.4 code exists and before any run. Thresholds in sections 5 and 6 are fixed by the commit that adds this file. Changing anything below after the qualifying run has started invalidates that run. Every change is listed in section 10 with its date and reason. The plan that builds what this protocol tests is docs/plans/0.4-EXECUTION-PLAN.md; names used here (receipt, journal, binding, cancel_request, deliver_result, receipt_for, unresolved, late_result) are PROPOSED there in sections 3 and 4. Where a decision in that plan's section 3 changes a name or a binding, the gate keeps its threshold and the change is recorded in section 10 before the freeze.

1. Question and claim

Claim under test (ROADMAP 0.4): INTERPLANE runs an exchange over more than one round without losing the boundary. It counts as supported only if every gate in section 5 holds on the systems in section 2, for the commit and pins named in the run manifest.

The claim covers transport and streaming semantics, cancellation and continuation correctness, retry idempotence and receipt durability, on the runtime layer only. It does not cover model behaviour or performance. A receipt is a record and never authority: no gate passes by reading a receipt as a grant.

2. Systems under test

IdSystemPins
T1Rust reference pipeline + normative mock runtime, in processcommit under test
TBT1 with every envelope and event carried through the chosen binding (plan cut T1, S1)commit under test
T4AIEN adapter (Rust)aien-sovereign-core as in adapters/aien/PINS at the commit under test, recorded in the manifest
TVindependent verifier of the event grammar and the receipt journal (plan decision 5, option b)only if Drake chose it; otherwise absent and section 5 gate V does not apply

T1 and TB run every case. T4 runs every case whose capability class exists in its catalog; its subset list is computed and frozen with the corpus (section 8). A case in T4's subset that T4 cannot run is a FAIL for T4, never a skip. There is no second SDK language: Python was removed on 2026-10-15 (CHANGELOG.md:9 at 6aa1eec9, the entry "Removed the Python SDK") and the repository compares Rust output with the recorded reference (AGENTS.md:73).

3. Corpus

All 0.4 cases live under conformance/execution/ (plan cut N1), so the frozen 0.3 corpus and conformance/TRUST-DIGEST.txt do not move. Minimum counts are fixed now.

3.1 Ordering corpus (gate O)

3.2 Behaviour cases

GroupCasesMinimum
C cancellationC01 cancel while REQUIRES_APPROVAL (0.3 A09 behaviour kept); C02 cancel after MAPPED, before decide returns; C03 cancel after AUTHORIZED, before execute; C04 cancel of a terminal request (refused, no change); C05 double cancel; C06 cancel on a closed trace and on an unknown request; C07 cancel while EXECUTING on a held mock capability; C08 result delivered after acknowledged cancel (late); C09 late result naming another request; C10 cancel then continuation of the same request; C11 model content that asks for cancel or claims a cancel happened (text, arguments, extensions); C12 cancel between started receipt and execute12
K continuationK01 continuation without the minted approval_id, in process; K02 same through the binding; K03 approval_id taken from model content; K04 journal mode: continuation after restart with the minted id runs once; K05 journal mode: second continuation after restart returns the same receipt, runs nothing; K06 in-memory mode: continuation after restart refused (0.3 A12 unchanged); K07 journal removed between runs: refused; K08 approval expired across restart (host clock); K09 catalog changed across restart9
R retryR01 retry after success returns the existing receipt; R02 retry after failure returns the failure receipt; R03 retry while the first attempt is executing; R04 retry with changed arguments under the same request_id; R05 replayed envelope still replayed_message (fixture 17 unchanged); R06 reused request_id still duplicate_request_id (fixture 16 unchanged); R07 crash after started, before outcome: unresolved, never re-run; R08 runtime reports unknown outcome: unresolved8
D durabilityD01 receipt read back byte-identical after a clean restart; D02 final record truncated at every byte offset (offset sweep over the full record length); D03 one bit flipped in each field of a record; D04 a middle record removed; D05 two records swapped; D06 journal of another trace namespace substituted; D07 durable write of started fails (injected): execute not called; D08 process killed by SIGKILL at journal append points, at least 50 seeded kill points8 groups
T transportT01 every envelope of the 0.3 corpus and of the 0.4 corpus through the binding; T02 unknown top-level fields and extensions keys preserved; T03 frame larger than the bound; T04 truncated frame; T05 two envelopes in one frame; T06 empty frame; T07 non-JCS bytes on input (re-serialized form must not be accepted as the original digest); T08 event stream cut mid-event and mid-call8

T4's subset is computed from these groups by the existing subset rule; at minimum it holds C01, C03, C07, C08, K01, K06, R01, R03, R07, R08, D01, D07.

4. Definitions

5. Gates (decided now)

0.4 passes only if every gate holds.

O: ordering and seq.

C: cancellation (hard invariant, 0 tolerated).

K: continuation.

R: retry idempotence (hard invariant, 0 tolerated).

D: receipt durability.

T: transport identity.

V: independent reading (only if TV exists). TV's verdict on every O case and every D journal equals T1's.

N: negative controls (the suite must be able to fail). See section 6. If N does not hold the run is INVALID, not a pass.

L: live leg (reported, not gated). See section 7.

Acceptance mapping

Multi-round execution without losing the boundary: O, C, K, R, D, T together. Cancellation never leads to an effect: C1, C2. Continuation still needs runtime authority: K1. Retries never run an effect twice: R1, R3. Receipts survive and are never repaired: D1 to D4. Transport changes no byte: T1, T2.

6. Negative controls

Deliberately broken variants, built only into the conformance runner behind the existing test-only feature, never into the pipeline libraries. Names W1 to W11 avoid the 0.3 V1 to V8.

VariantDefectMust fail at least
W1grammar checker accepts every sequenceO2
W2emitter reuses a seq after a refusalO3
W3execute still called after an acknowledged cancelC1 (C03, C07, C12)
W4late result rendered to the modelC2 (C08)
W5journal-mode continuation skips the approval_id checkK1 (K01, K03)
W6retry of a finished request re-executesR1, R2 (R01, R03)
W7journal open truncates a torn tail and continuesD2 (D02, D08)
W8journal verifier skips digest and chain checksD2 (D03, D04, D05)
W9receipt written after execute instead of beforeR3 (R07), D4 (D07)
W10binding re-serializes envelopes without JCST1, T2
W11binding drops unknown fieldsT1 (T02)

N holds iff (a) each variant fails every gate check listed for it, (b) the union of variant failures touches all six gates O, C, K, R, D, T, and (c) the unmodified build passes every case the variants fail. Otherwise the run is INVALID.

7. Live leg (reported, not gated)

8. Freezing

  1. The corpus is frozen by conformance/EXECUTION-DIGEST.txt: corpus_digest (sha256 over the sha256sum lines of every file under conformance/execution/ in LC_ALL=C path order), grammar_sha256 (the grammar table), negative_controls_sha256, protocol_sha256 (this file) and the T4 subset list. conformance/TRUST-DIGEST.txt stays the 0.3 freeze and is not recomputed over the new root.
  2. Before the first qualifying run the digests and the run manifest (commit, pins, toolchain, filesystem and kernel for D08, backend for L) are committed to main. A run whose recorded digests differ does not count.
  3. Development runs may happen before or after the freeze. After the freeze no case is dropped, edited or re-judged because of a result.

9. Reproduction and raw evidence

10. Change log