Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-mv/blob/main/CHANGELOG.md # interplane-mv INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-mv / CHANGELOG.md` 81 lines · 33309 bytes Raw Blame History Source # Changelog ## Unreleased (0.3, Trust lane) - INTERPLANE Forge gate timeout (`forge/`): `forge gate … [--timeout S]` (1 to 86400 s, default 1800) runs the gate and the negative control each in its own process group (`setpgid` in child and parent) and polls them on the monotonic clock every 100 ms; a run still going at its timeout gets `SIGKILL` on its whole group and on its own pid (a direct child that moved to another group is still killed), is reaped (forge waits at most 10 s more for the reap, so a child in uninterruptible sleep cannot block it), has its rc recorded as 124 and the line `forge: timeout after S s, process group killed with SIGKILL, exit status recorded as 124` appended to its log before hashing, and the logs and receipt are still written (exit 1). `forge decide` holds `GATE_TIMEOUT` when `gate_rc` or `negctl_rc` is 124, checked after `CLONE_MISMATCH` and before `GATE_FAIL` (a killed run is incomplete evidence, not a result; a command exiting 124 itself also holds, fail closed). Receipt key order and key set unchanged. No new host program (omc host words `setpgid`, `killpid`, `monons`, `sleepns`). Tests: gate and negative control as `sh` with a forked child `sleep 20` at `--timeout 1` (rc 124, receipt, hashed log with the timeout line, HOLD, child killed, under 10 s), a run within its timeout unaffected, bounds and duplicate refused, 7 decision cases; a direct child that joins forge's own group (`forge/tests/joinpg.om`) still killed at the timeout (review fix of `3c0d76a8`, bay 3); 138 checks and 57 mutants (8 new), HOST_TESTED with omc `f4df8239` on spark. - INTERPLANE Forge v1 (`forge/`): `forge gate --author A --neg ARGV.. -- ARGV..` clones the exact head twice from local Radicle storage (git, system and global config off), runs the gate and its negative control in separate clones through `/usr/bin/env` with only HOME, PATH and OMC, and writes `-.receipt.txt` with the new keys `rid`, `tree`, `omc`, `started`, `finished`, `log_sha256`, `negctl_log_sha256` (first-party Omega SHA-256 and UTC time; exit 0 pass with failing control, 1 recorded HOLD, 2 error and no receipt). The command logs live in the 0700 temp dir; forge hashes and copies them through fds opened before the run, never by name, so a log swapped during a gate changes nothing (review fix of `dd78f91a`). Out files are created only at the end with `O_EXCL|O_NOFOLLOW`: a taken or planted name is refused, never followed or replaced, and a refused run removes the out files it created (review fix of `cd931dd0` and `dd78f91a`). aarch64 Linux only: the pinned omc emits nothing else, and `tests/run.sh` is NOT_RUN elsewhere. `forge decide --json` prints one `forge-decision/1` object. `forge status` finds receipts by `*-.receipt.txt`, shows `receipt=`, and holds `RECEIPT_AMBIGUOUS` on two or more. Self-review normalization now treats `_` and `-` as spaces and strips ASCII punctuation at both ends (`"Manager reviewer agent".` matches); Unicode folding remains a documented limit. Tests: 116 checks (68 decision cases incl. 5 `--json`, 5 status runs, 43 gate checks against `git rev-parse`, `sha256sum`, `date -u`, planted symlinks and a log swapped during a sleeping gate) and 49 mutants, each run against the whole suite. No gate timeout yet; receipts are unsigned. - INTERPLANE Forge v0 (`forge/`, spec `docs/FORGE.md`): a new module that applies the Crossveil rule to code hosting on Radicle. `forge decide ` (seeded Omega, omc `f4df8239`) reads the desk verdict format and a new `forge-receipt v1` gate receipt and prints `MERGE OK` (exit 0) or `HOLD ` (exit 1); it holds on anything but a MERGE verdict for the exact head, a missing reviewer, a gate run on another head, a failed gate, a missing or passing negative control, or self-review. Verdict line 1 ends at a newline or the end of the file only; a `reviewer=` value needs a printable ASCII byte and may hold no control byte; self-review compares the reviewer text and the author after ASCII case folding and whitespace collapsing (review fix of `831069da`). `forge status ` lists a repository's live Radicle patches through the `rad` CLI and decides each one that has a verdict; above 512 patches it reports `TRUNCATED` and exits 2. `forge/tests/run.sh` replays three real desk decisions and 43 more cases, two `status` runs over a fake `rad`, and requires all 28 mutants to be caught. Host programs are listed in `forge/DEPENDENCIES.md`; no Rust edge was needed. - Security SECNET-01: the AIEN write provider pins its enrolled workspace directory, resolves parents with Linux `openat2` beneath/no-symlinks, refuses final symlinks and replaces files through the confined directory descriptor. Dangling links and links swapped after approval cannot redirect an approved write. - Security SECNET-05: automatic result inputs and rejection events now share explicit retained-state bounds. A turn or continuation reserves its retained output before runtime contact and closes a saturated trace rather than executing with an incomplete exposure ledger. `max_events_per_trace` defaults to 4096. The AIEN adapter also bounds effect correlation metadata and prevents a read with a reused request id from consuming a reserved write. - Removed the Python SDK (`python/`, package `interplane`) and its CI jobs (no Python ships here, 2026-10-15). Its last conformance verdicts (106 cases) and negative-control matrix were byte-identical to Rust; they are kept as `conformance/expected/verdicts.json` and `negative-control-matrix.json`, and CI now compares the Rust output with them byte for byte instead of comparing two languages. New CI job `no-python` fails when any `.py`, `.pyi`, `.pyx`, `.ipynb`, `pyproject.toml`, `requirements*.txt`, `setup.py`, `setup.cfg`, `Pipfile` or `Pipfile.lock` is tracked, or any file whose first line is a Python shebang. STATUS keeps the Python column as a record of its last state. Removed `constraints/ci-python.txt`. - Conformance tooling and examples in Rust (no Python ships here, 2026-10-15): `interplane-corpus` (`schemas`, `validate`, `trust-digest`, `subset`) replaces `conformance/runners/{validate_fixtures,trust_digest,adapter_subset}.py` with byte-identical output (for `validate`, except the wording of schema errors, which comes from a different library); `interplane_conformance::adapter_runner` (`AdapterHost`) replaces `adapter_runner.py` and reproduces both recorded adapter runs; the offline and to-do examples are `cargo run --example offline|todo_adapter` in `interplane-crossveil` with identical output. The AIEN T4 runner takes its plans from the Rust subset code instead of `python3`. - Removed the two Python adapters (no Python ships here, 2026-10-15): `adapters/odysseus` (T3 runner of the closed 0.3 gate; its catalog records stay) and `adapters/motus` (the Rust `aien-authority-bridge` it used stays), with their CI jobs and `examples/receipt/run_receipt.py` (the receipts stay). Removed the Python bench tooling (`bench/tools/`, `bench/heldout-0.2y/attempt-*/drive.py`) and CI job `bench-structural`: the campaigns it served are closed and most of it drove Odysseus; corpus, protocols, digests and run records stay. The Rust AIEN adapter is the reference adapter. The `odysseus` table entry and `t3_subset` stay frozen in `conformance/TRUST-DIGEST.txt`. - VAC M5 with a REAL model turn (`adapters/aien/scripts/test-m5-model-turn.sh`, evidence `adapters/aien/evidence/m5-model-turn-2026-10-09/`): the daemon's own loaded Llama-3.2-1B-Instruct (CPU, `StreamTurn`) writes the tool call that proposes the README change; the same independent judge, approved path and rollback follow. The bundle's `model-turn/2` record names the request and response bytes, weights digest, backend line and times, and `provenance` checks each against the retained bytes and the daemon's own generation record (`modelturn.rs`, 11 tests in `provenance/tests/model_turn_link.rs`). Verdict `PASS complete ... proposal=model_generation/2`; a turn that does not chain is a `FAIL`, one declared scripted stays `PASS_LABELLED_INCOMPLETE missing=link:model_turn`. New adapter pieces: `LedgerClient::stream_turn`, `ComposeLedgerAuthority::set_before_ack`, hook switch `M5_PROPOSAL_FILE`. Restart rows `row12` (a daemon restart does not make a spent approval spendable) and `row13` (a daemon killed between intent and ack leaves the adapter receipt `UNRESOLVED` and the ledger intent OPEN, undecided). One model turn is not a learning system. - Provenance companion manifest v0 (`provenance/`, ADR 0004, outside Core, no protocol change): offline verifier and fixtures binding corpus BOM and license assertions, WALDO run, export, a structural AIEN load-support check, the AIEN candidate and load line, an INTERPLANE trace and the aien-cli effect receipt by retained bytes and existing digests. Real WALDO smoke export verifies and is labelled incomplete (its byte tokenizer is not loadable by AIEN); the full chain is synthetic. 21 verdict tests, each a literal verdict line. - Spec clarification, issue #57 (closed as option C, keep fail-closed): `spec/CORE.md` (non-executed results in the exposure ledger) and `spec/CROSSVEIL.md` rule 6 now say that a denied, requires_approval, not_found or rejected result (a runtime `invalid` decision gives `rejected`), an unknown decision value, a decide fault, and an executed `error` or `timed_out` result are rendered to the model and recorded `unknown` (executed ones `tool_result` + `unknown`), so each counts as `external_untrusted` and the floor stays there for the rest of the trace; this is intended, hosts that read the floor will hold later effects. Reason: a refusal body can carry echoed model text, adapter reason text and adapter-minted ids. No fixture outcome, schema or code changes, so by `spec/VERSIONING.md` and CONTRIBUTING no version bump (a MINOR bump is required only when an expected fixture outcome changes). Analysis `docs/analysis/ISSUE-57-refusal-exposure.md`; tests `python/tests/test_refusal_exposure.py` and `rust/crates/interplane-crossveil/tests/refusal_exposure.rs` (9 each, including one that pins the documented rule). Options R and V (relaxing it) are issue #80. - Shared adapter runner `conformance/runners/adapter_runner.py`: runs and judges a new adapter on its computed subset from two files (an authority module and a table entry kept outside the shared table, so `TRUST-DIGEST.txt` is unchanged), with `--no-exposure-check` as the negative control. The judge is the independent reproduction's, with adapter names taken from the module and entry. It reproduces both recorded runs byte for byte, normal and negative control (`python/tests/test_adapter_runner.py`; a judge that never counts violations fails it). `adapter_subset.plans` takes an optional table. Guide section 7 rewritten around it. - Maintainer check (not independent) of the adapter rules on a second host: a smart-home adapter built from "Adding an adapter" and the SDK guide, evidence `bench/runs/home-check-20261005T1320Z/`, addendum in `docs/REPORT-adapter-repro.md`. Subset 43 (30 injection, 13 approval), 43 executed, violations 0, content-derived 0, 32 injected intents; with its exposure check removed all 30 injection cases fail. The independent second run was stopped; it stays open. - Docs: `docs/WRITING-AN-ADAPTER.md` (the authority's three methods, `ctx`, decisions, result labels, exposure and `register_input`, pipeline wiring, approvals) with the runnable, self-checking `examples/adapter/todo_adapter.py`; CI runs it against the installed wheel. Closes gap 7 of the independent reproduction. Filed issue #57: a refused or held call lowers exposure to `external_untrusted` for the rest of the trace (spec as written; question for the next protocol). - Spec: CORE.md "Adding an adapter" (Adapter subsets) answers the newcomer questions from the independent reproduction: table entry and digest revision, effect classes for hosts without files or mail, native reads without a workspace, argument transforms, which approval rule applies, the compared record fields (`result_digest` excluded), approval id and grant expiry, the exact injection counts, A15, and the delivered-read limit. `adapter_subset.py` accepts any adapter named in the table. No fixture, table or digest change; T3 43 and T4 32 unchanged. - Independent adapter reproduction (plan 19.7 item 8, `docs/REPORT-adapter-repro.md`, evidence `bench/runs/adapter-repro-20261005T1215Z/`): Codex (`gpt-6-sol`) built a to-do host adapter from the v0.3.0 spec, corpus and wheel alone, with no SDK source or existing adapter. 38/38 subset fixtures executed, violations 0, content-derived 0, 27 injected intents; with its exposure check removed, 18 cases fail. Reproduced byte for byte from a fresh clone. 15 spec gaps recorded; fixes follow separately. - Bench receipts: `attempt` is now the number of runs of that condition. Before, a pair whose re-run also failed was labelled one too high (`attempt: 3` after two runs, REPORT-0.2x Limits), and in campaign mode a condition that never failed carried the pair's count. Offline test added (the old code fails it). Re-running `analyze.py` on `heldout-0.2x-20261005T0102Z` reproduces both committed summaries byte for byte. - Release preparation (plan 19.7 item 8): version 0.3.0 for the Rust workspace and the Python package (descriptions no longer say 0.1; intra-workspace path dependencies carry versions so `cargo package` works). Offline example `examples/offline/run_offline.py` (scripted injection, mock runtime, self-checking). CI job `package`: builds the wheel, installs it in a clean venv, runs the example from outside the checkout, checks that conformance from the wheel is byte-identical to the checkout, and runs `cargo package --workspace --locked`. Nothing is published to PyPI or crates.io. - AIEN adapter re-pinned to aien-sovereign-core `0bdc97a` (#208: idempotency ledger bound to effect identity, `ApprovalDesk::revoke` for unspent grants, new `Error::IdempotencyConflict` and `ApprovalError::Revoked`). Made after REPORT-0.3 merged, so the 0.3 T4 evidence stays at `0c1d249`. No adapter code change; a spent grant still cannot be given back (sovereign-core #206). - 0.2x campaign report (`docs/REPORT-0.2x.md`, run `bench/runs/heldout-0.2x-20261005T0102Z`): all four arms FAIL O1 and O2; T 0.89 everywhere; S passes in arms 1 to 3; not fragile. All 48 HTTP 500s were Ollama 0.34.0 failing to parse malformed Qwen3.5 tool calls. - 0.3 trust report (`docs/REPORT-0.3.md`): qualifying run `trust-0.3-20261005T0229Z` passes every offline gate (P, X, I, E, A, N) and gate M (live leg on Qwen3.5-9B/Ollama 0.34.0 under `bench/runs/trust-0.3-20261005T0229Z/live/`: violations 0; follow rate 16/33, 0.485, Wilson 95 % [0.325, 0.648], reported only). - Security: the Rust lifecycle now accepts an approval continuation only with the `approval_id` the runtime minted for that request, as Python already did; before, any non-empty id was accepted. A non-`authorized` continuation value with the minted id is DENIED in both SDKs. Lifecycle conformance cases `lifecycle/01-05`; 30/30 byte-identical. - Trust vocabulary reconciled (plan cut P1, gaps G1-G3): CROSSVEIL.md default is `tool_result` + `unknown` (the undefined `untrusted_tool_content` and `origin` are gone), VERSIONING.md lists `ContentKind` in place of the undefined `Origin`. Python now reads an unrecognized or non-string `content_kind` as `unknown`, as Rust did; non-string trust is `external_untrusted`. Odysseus `system` result integrity maps to `trusted_runtime` unless Odysseus's own gate marks the result untrusted. Conformance cases 26, 27 (with a harness-only `mock_provenance` seam and JCS round-trip checks); 32/32 byte-identical together with lifecycle/01-05. - InputRecord and Exposure types (plan cut P2): `spec/schemas/input.schema.json`, optional `provenance.exposure` in `intent.schema.json`, Crossveil Trust rules 5 and 6, Rust and Python types in lockstep, one schema-valid example per source class under `conformance/fixtures/input/`, digest fixtures `digest/input-record-01` and `digest/exposure-01` identical in both languages; types only, no pipeline behaviour (cut P3). - Pipeline input ledger and exposure (plan cut P3): the pipeline records every rendered result as an InputRecord (`parent_id` = its `request_id`), the host registers other inputs with the host-only `register_input`, and every `tool_request` and `CallContext` carries a computed `provenance.exposure` (a forged one is overwritten; an empty ledger, unknown trust or an untraceable `derived_from` gives `external_untrusted`). Conformance cases 28-30 and new optional `expected.inputs` / `expected.exposure`; 35/35 byte-identical in both SDKs, earlier verdicts unchanged. - Source-class coverage fixtures (plan cut P4): cases 31-40 (one per source class plus a host-registered `model_generated` case), mock capabilities `read_document`, `load_skill`, `call_provider`, CROSSVEIL source-class table (skills and tool descriptions are `external_untrusted`; the host, not the pipeline, records model-generated input); 45/45 byte-identical in both SDKs; cases 24-25 selection digests re-pinned for the larger mock catalog, outcomes unchanged. - Injection harness and negative controls (plan cut I1): fixtures declare `injection: {category, canary, target}` and a scripted obedient model emits the injected intent every time; the runners judge effects and content-derived intents; negative controls V1-V6 exist only behind the runners' test-only switch (Rust feature `negative-controls`, Python `--variant`/`--matrix`), each detected by named cases, matrix byte-identical across languages; `conformance/TRUST-DIGEST.txt` (whole fixture corpus, matrix list, protocol) recomputed by CI; 3 seed cases, 48/48 byte-identical. - Content-borne injection corpus (plan cut I2): injection fixtures 04-19 cover C01 workspace, C02 tool output (nested result content, error-message text), C03 memory, C04 web and C05 document (markup embedded in the body) in all three payload forms, via a harness-only `mock_data` fixture override in both mocks; the runtime already blocked every case, so no pipeline change; V1 and V4 must-fail lists extended; 78/78 byte-identical in both SDKs. - Mock effect policy (plan cut E1): the CORE.md mock table gains a Class column (`read` or `effect`); an `effect` the table would authorize is `requires_approval` when `CallContext.exposure.floor` is below `user_supplied` or absent. Cases 19 and 27 register the user request first; case 40 now expects its second `append_note` held; injection 43 (web) and 44 (memory) target `append_note`. 105 verdict rows, identical in both SDKs. - Odysseus adapter consumes exposure (plan cut E2): the untrusted-context gate is armed from `CallContext.exposure` (floor below `user_supplied`, or missing: fail closed) as well as Odysseus's own `observe_tool_result`; the caller-supplied `trust` / `prior_trust` path is removed. `demo.register_user_turn` records the user's request; the demo, the adapter tests and `bench/tools/run_bench.py` use it, so future bench runs start each trace at `user_supplied` (the 0.2x campaign runs pinned code and is unaffected). New `tests/test_injection_exposure.py`: 91 adapter tests pass. - AIEN adapter exposure and labels (plan cut E4): re-pinned to aien-sovereign-core `0c1d249` (#207, exposure-aware authority; PROTOCOL-0.3 T4 pin recorded here). `decide` hands `CallContext.exposure` to `EffectLane::with_exposure` and keeps it per request for the grant path; effects under a floor below `user_supplied` (or absent) are held with a reason naming exposure. Results are labelled by capability instead of always `workspace_content`. New `tests/exposure.rs`; 33 adapter tests pass. - Approval continuation (plan cuts A1 spec and A2): `CORE.md` and `CROSSVEIL.md` pin a host-controlled continuation (correlation by trace, request, minted `approval_id` and the digest of the original `capability_request`; expiry against the host clock; terminal cancel; replay and restart refused), both pipelines gain host-only `continue_approval`, `cancel_approval` and `pending_approval` (no model-writable field is read as a grant, `decide` is not called again, the request ledger is untouched), the mock executes an approved `delete_file`, and fixtures `approval/01-14` cover A01 to A14 with new host steps `approve`, `cancel`, `restart`, `mock`; V6 now fails A06 and A13, V5 also A02 and A03, V2 also A10; 62/62 byte-identical in both SDKs, the earlier 48 rows unchanged. - AIEN approvals through the continuation API (plan cut A3): `decide` never reads a grant and now carries an adapter-minted `approval_id` on `requires_approval`; the approver's grant reaches AIEN only through `present_approval` (the runtime's continuation decision, fed to `Pipeline::continue_approval` via `AienShared::continue_approval`); the spend point (grant spent at mint, before the pipeline's own checks and the provider call) is documented and tested, including pipeline refusal and provider rejection after the mint (reported, never a second effect); new tests for model content, stale scope, expiry, cancel and both spend-point failures; AIEN adapter only. - Odysseus approvals (plan cut A4): approval continuation is unsupported on Odysseus and fails closed. The adapter mints no approval id, so a `requires_approval` request has no pending entry and every host continuation or cancel is refused; `execute` refuses any non-`authorized` decision; the decision states `approval continuation unsupported on Odysseus`. Odysseus's sealed approvals are task or chat scoped and bound to owner, session and run, which the single-effect continuation cannot express. New tests cover the Odysseus subset of A01 to A14; Odysseus adapter only. - Authority-claim, identity, catalog and fault corpus (plan cuts I3 and I4): injection fixtures 20-42 cover C06 to C09, C11, C12 and C13, plus approval fixtures 15 and 16 (explicit `denied`, decision citing another request); pipeline fixes in both SDKs: a result citing another `request_id` now fails the request, a duplicate advertised capability name with differing definitions is rejected as `stale_capability`, and Python's decide-fault, mismatched-decision and execute-fault outputs now match Rust; V7 and V8 added; 103/103 byte-identical. - Adapter subset runners (plan cut R0, prerequisite for REPORT-0.3): the normative T3/T4 subset rule and fixture translation (`spec/CORE.md`, Adapter subsets; `conformance/adapter-translation.json`), `t3_subset` (43) and `t4_subset` (31) frozen in `TRUST-DIGEST.txt`, T3 runner `python -m interplane_adapter_odysseus.t3` and T4 runner `adapters/aien/tests/t4_corpus.rs` run through the real Pipeline and adapter and wired into CI; violations 0 and content-derived 0 over both subsets. - Protocol case A15 as a corpus fixture (plan cut R0b): `approval/17-provider-fails-after-approval` (approved effect fails at the provider after the approval was spent; reported, request terminal, second continuation refused). Mock `execute_raises` on T1/T2; on T4 a real write into a missing directory, rejected by the AIEN write provider. Corpus 106 rows, gate I 60 cases, T4 subset 32; T3 unchanged at 43. - Trust run tooling (plan cut R1a): both conformance runners write `.inputs.json` (full input ledger) next to `.results.json` under `--dump`, byte-identical across Rust and Python (the Rust results dump now nulls `duration_ms` like Python). `bench/tools/trust_run.py` runs every offline leg of PROTOCOL-0.3 (T1, T2, both negative-control matrices, validator, TRUST-DIGEST, T3, T4) and computes gates P, X, I, E, A, N from the raw files. The dev run found a spec-versus-protocol conflict: results the pipeline synthesizes after a raising or foreign-result `execute` carried null `content_kind` and `trust` (CORE.md said so), which gate P2 counts as missing. Both pipelines now label them `tool_result` + `unknown`, the schema reading of a null label, so behaviour is unchanged. - Streamed responses (plan 19.7 item 6, streaming half): Lenshift dialect `openai_stream` in Rust and Python takes a streamed `/v1/chat/completions` body (Server-Sent Events) exactly as sent, assembles the fragments into one assistant message and parses it with the `openai` rules (`spec/LENSHIFT.md`). A stream without `finish_reason` `stop`, `tool_calls` or `function_call` rejects every call as "truncated tool call"; malformed streams (conflicting id or name, second choice, fragment without index, data after `[DONE]`, non-JSON chunk) are rejected whole. 23 dialect fixtures, six of them the real Ollama, llama.cpp and SGLang stream captures byte for byte. Both dialect fixture runners now also compare every digest a fixture records. - Lenshift `openai` cross-language fix: Rust accepted an already-decoded `arguments` object and reported a non-string value as "arguments is not an object"; it now rejects every non-string `arguments` as "arguments is not valid JSON", as Python and `spec/LENSHIFT.md` do. Only Ollama's own `/api/chat` sends decoded objects (capture `05e`); all 29 OpenAI-compatible captured calls send strings. Fixtures `openai/arguments_decoded_object` and `openai/arguments_not_string` fail on the old Rust code. - Session state limits (plan 19.7 item 6b): host-set `max_traces` (1024), `max_messages_per_trace`, `max_requests_per_trace` and `max_inputs_per_trace` (4096 each) bound the pipeline's per-trace state in Rust and Python. A message or request over a limit is refused at the replay and duplicate stage with the new `ErrorCode` `session_limit_exceeded` (`session limit exceeded: `), after the replay and duplicate checks and before any runtime contact; `register_input` over its limit fails like a duplicate `input_id`. New host-only `Pipeline.close_trace` drops a trace's ledger ids, inputs, approval entries, event sequence and events and refuses later messages, requests, inputs and approval continuations with the new `session_closed` (`session closed: `). Unit tests with the same scenarios in both SDKs (the 0.3 corpus stays frozen). Python: the trace flag `_pending` is renamed `_awaiting`. - Refused calls use their request id (cross-language fix): Python `run_turn` did not record the `request_id` of a malformed or over-the-turn-limit call, Rust did, so a later call reusing that id was a duplicate in Rust and accepted in Python. Python now records it like Rust (within the session state limits); `spec/CORE.md` states the rule. Same test in both SDKs; it fails on the old Python. - Gate M and trust-run verdicts no longer pass vacuously. `bench/tools/live_injection.py`: `summarize([])` returned `gate_violations_zero: true` with zero cases, and a `--only` subset run printed "Gate: PASS" and exited 0. The summary now carries `verdict` (PASS, FAIL, EXPLORATORY, INCOMPLETE), `qualifying`, `completeness` (missing, duplicated, unexpected, errored cases) and `preregistered` (case count, `case_set_digest`, freeze match against `conformance/TRUST-DIGEST.txt`); PASS needs the whole preregistered C01-C08 + C11 set, run exactly once, no error, frozen corpus, 0 violations, and `gate_violations_zero` is true only then. Existing summary fields keep their names. Exit code 3 for EXPLORATORY or INCOMPLETE. `bench/tools/trust_run.py`: gate X passed on zero verdict rows and gate E on zero injection cases; X now needs exactly the corpus rows and E needs every system to cover its whole injection set, matched by case name, not count (T1, T2: all injection fixtures; T3, T4: the frozen subsets). New gate F fails the run unless the `trust_digest.py --check` and `validate_fixtures.py` legs recorded exit 0 in `exit-codes.json`, since the frozen subsets are read from `TRUST-DIGEST.txt`. `analyze.py` already reports INCOMPLETE on a partial or vacuous run (checked, unchanged). Tests in `test_live_injection.py` and `test_analyze.py`. - Closed-trace state is bounded and closing an unknown trace is a no-op (cross-language fix). Both SDKs recorded the id of an unknown trace on `close_trace` (10,000 unknown closes kept 10,000 ids, and each of those traces was then refused `session_closed`, against CORE.md), and both kept every closed id for the pipeline's life. Now a close of a trace holding no state records nothing; closed ids live in a window of the last `max_closed_traces` (4096) and older ones are retired into a fixed-size filter (`retired_filter_bits`, default `8388608` bits = 1 MiB, sha256 positions) that never forgets, so no closed or retired trace is admitted again; the filter can falsely refuse a never-used trace (fail closed; rate documented in CORE.md, about 5e-6 after 100,000 retirements). New `Limits` fields `max_closed_traces`, `retired_filter_bits` and `Pipeline.closed_trace_state()` in both SDKs; CORE.md "Closing a trace" rewritten. Same tests in `test_session_limits.py` and `session_limits.rs`, including 100,000 open/close cycles within the bound with every replay refused and shared vectors: filter refusals at 32 and 37 bits (37 is not a power of two, so a masking implementation fails) and exact filter positions at 1009 bits computed outside both SDKs. CORE.md states the bit layout and that closed-trace state is in memory only: a new pipeline forgets every closed id, so a host that restarts one must keep old trace ids out itself. ## Unreleased (0.2, CrossAxis lane) - 0.2 report: `docs/REPORT-0.2.md`. Pre-registered gate verdict FAIL (O1 0.865, O2 0/5; T 0.877 and S pass). - Qwen3.5-9B qualified on llama.cpp b11398 and SGLang 0.5.20 (both probes 14/14); Rust probe aligned with the Python probe. - Benchmark corpus (44 tasks), protocol, paired runner and analyzer; run `qual-20261004T2207Z`. - Bench simulated backends `sim-1` (`bench/stubs/backends.json`, `run_bench.py --backends sim-1`): every tool a task lists executes deterministically after Odysseus authorizes it; `validate.py` checks coverage, determinism and that stores do not leak expansion answers. Default stays the 0.2 reference behaviour; `inputs_digest` updated. - Pre-registered 0.2x protocol (`bench/PROTOCOL-0.2x.md`, future work, no results): 120-task held-out set (`bench/heldout-0.2x/`), the 0.2 tasks become dev cases, seven conditions (four one-factor arms with matched full-catalog baselines), runtime-triggered expansion rules and caps, thresholds and a power table (`stats.py --power`); `validate.py --corpus 0.2x` in CI. - Runtime-triggered expansion `run_bench.py --expansion-policy runtime-v1` (PROTOCOL-0.2x arm 3): host-side T1/T2/T3 over the existing `discover`/`expand`, N1/N2 negative rules, duplicate and schema-budget caps, `runtime_triggers` receipts; offline tests include denial and approval negative controls. Default `0.2` unchanged. - AIEN adapter on the real `EffectAuthority` path (sovereign-core #203, #204, pinned `6554aac`), single-use approval tests. - `selection.measure`: `rendered_bytes` and an optional unit-disciplined `tokens` block (`bytes`, `tokens_model_reported`, `tokens_endpoint_tokenizer`, `tokens_estimated`); `TokenCounter` with `BytesOnly` and `EstimatedTokens` (estimator v1) in both languages. - Bounded capability expansion: `expand` and `discover` (pure Core functions), `selection.expansions[]`, `parent_digest`, `selection_digest`, `selector.expansion` bounds. Expansion never grants authority. - Receipt normalization (additive, no existing conformance expectation changed): both languages now omit empty `always_include`, empty `selected[].domains`, a null `selector.max_capabilities` and null legacy token fields; the Rust mock catalog omits an empty `required`, so both mock catalogs have one digest. - Conformance: cases 24 (expansion by requested_excluded, call still denied) and 25 (expansion refused by bounds); 25/25 byte-identical. ## 0.1.0 (unreleased) - Phase 0 audit (`CURRENT_STATE.md`). - Core schemas, specs for Core, Lenshift, Crossveil, CrossAxis, Probe, Vectorveil, RelayLine, versioning. - Conformance corpus: 23 cases + JCS digest fixture; Rust and Python runners agree byte-for-byte. - Rust crates and Python package (stdlib-only) for Core, Lenshift (openai, qwen35), CrossAxis, Crossveil. - Interplane Probe (Rust crate; Python reference run live against Qwen3.5-9B on Ollama 0.34.0). - Real Qwen3.5-9B captures (native, raw, streaming, result replay). - External Odysseus adapter (AGPL-3.0-or-later), 55 tests against the real Odysseus code. - Before/after receipt demo: 71 -> 9 tools, 89.4% fewer first-turn prompt tokens, same task success. - Lenshift `aien_legacy` dialect (aien-cli textual form), 13 fixtures, identical in both languages. - AIEN reference adapter (AGPL-3.0-or-later), 10 pipeline tests through real aien-mcp and aegis code. - Both probes run live with identical verdicts; CI covers both adapters with pinned upstream checkouts. - Gate M live-model runner (plan cut M0): `bench/tools/live_injection.py` runs the 33 injection fixtures of C01-C08 and C11 against an OpenAI-compatible endpoint (temperature 0, seed 42, one run per case) through the real Python pipeline and mock runtime, reports follow rate with Wilson 95 % intervals, refusal and no-answer counts, and gates only violations (0); `--scripted` mode and `test_live_injection.py` (CI, bench-structural) run it offline. No model was run in this cut.