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 / provenance / README.md

128 lines · 11780 bytes Raw Blame History Source

Provenance companion manifest v0 (schema 0)

NOT A MASTER PLAN. The smallest offline-checkable bridge from training-data evidence to a runtime effect. Outside INTERPLANE Core (ADR 0004): Core does not read or depend on it. Provenance is evidence, never authority: nothing here decides, grants or authorizes anything.

COMPANION.json sits beside retained, immutable records and names them by path, raw-byte SHA-256 and size. It reuses identities the records already carry; it mints no ids.

LinkRecordsIdentity reusedChecked
corpus + license assertionswaldo_run_bom (corpus BOM embedded)WALDO corpus_bom_sha256WALDO digest of the embedded corpus_bom; corpus_license_assertions equals its licenses keys (restated, never judged)
training plan / runwaldo_plan, waldo_run_bom, waldo_run, waldo_preflight, waldo_model_bom, run_weightsWALDO plan_sha256 / model id, runs[].bom_sha256, RUN.json bom_sha256, preflight raw SHA-256every pin; run complete and not simulated; current_run_id; backend equals execution.backend
export (a conversion is its own record)release_bom, export_weights, export_config, export_tokenizer, export_chat_template or explicit nullWALDO release BOM source_bom_sha256, artifacts[]source pin, run and model id, every exported file; Hugging Face: safetensors tensor data equals the run's pinned weights
load supportexport_config, export_tokenizernone (a check result)LlamaForCausalLM + Hugging Face tokenizer.json with config.vocab_size = tokenizer size; computed result must equal load_support.declared
AIEN candidate + loaded modelcandidate_manifest, aien_load_logCandidateManifestV1 id, [executables], [model]; aien-cli daemon line model_sha256= / tokenizer_sha256=all equal the exported bytes; refused unless load support is supported_structural
INTERPLANE traceinterplane_trace (array of envelopes)trace_id, request_idevery envelope passes interplane_core::validate_envelope_value; same trace; request and its result present
effectledger_claim, ledger_committed, ledger_grant, ledger_intent, ledger_ack, daemon_run (strong, aien-ledger-slice/1) or effect_receipt (weaker, record_effect_receipt/1)the daemon-written ledger records; or aien-cli record_effect_receipt v1see BINDING.md: request, trace, approval key recomputed, path and bytes, replay claim, grant, intent, ack, daemon process; the weaker receipt binds tool and digests only and is labelled weak

WALDO record digests are SHA-256 of Go json.Marshal; the files are json.MarshalIndent of the same value, so the verifier strips insignificant whitespace from the retained bytes and hashes that (src/gojson.rs). Checked on the real fixture: run BOM, model BOM, plan and embedded corpus BOM all reproduce WALDO's own pins.

Completeness and missing lineage

Every link is an object or an explicit null; a record may be "retained": false (it keeps its sha256 and, for WALDO JSON, waldo_sha256, so the pins that cite it are still checked). completeness.state is complete only when nothing is missing; otherwise incomplete with missing listing exactly the link:<name> and record:<name> entries that are absent. A model with no training evidence uses lineage: {"kind": "unknown_pretraining", "origin": {...}}; it may not carry WALDO records. Nothing is filled in to make a chain look whole.

Verdicts (one line, fixed check order, first failure wins)

PASS complete (only when no link is missing) | PASS_LABELLED_INCOMPLETE missing=<sorted,comma,list> | FAIL <code>: <detail>. Codes: missing_companion, unparseable_companion, unsupported_companion, malformed_companion, missing_record, missing_record_entry, size_mismatch (partial or truncated write), digest_mismatch, unlabelled_missing, completeness_mismatch, unparseable_record, binding_mismatch, run_not_complete, lineage_conflict, conversion_mismatch, incompatible, load_support_mismatch, load_unsupported, invalid_envelope, not_in_trace, synthetic_complete, canonicalization_mismatch, unsupported_binding, and for the fix-the-test slice (BINDING.md): test_run_missing, test_run_mismatch, unsupported_test_run, source_pin_mismatch, native_claim_contradicted; and for effects the ledger does not show as landed (BINDING.md "Recovery outcomes"): effect_not_done, effect_unresolved, effect_interrupted, test_run_on_unlanded_effect.

A complete verdict whose AIEN link names no frozen candidate manifest (candidate_id: null) ends with candidate=none. Reading is strict: every JSON input (the manifest, each record, the JSON inside a ledger note) is exactly one value with no repeated object key at any depth, and a repeated key in a candidate manifest is refused, so two readers can never see different values in the same bytes. A record path that passes through a symlink is refused. In the trace, a request has one tool_request, at most one requires_approval result, then at most one final result (spec/CORE.md lifecycle). A manifest whose fixture.class is anything but real (test material) is never PASS complete; every other check still runs on it. The label is in-band: a manifest with the fixture object deleted cannot be recognised as test material, so complete still rests on every link being verified from retained bytes (the synthetic generator writes only scripted_turn or the weak receipt, which can never be complete).

cargo run -q -- verify fixtures/synthetic-full-chain     # PASS_LABELLED_INCOMPLETE missing=link:model_turn effect=aien-ledger-slice/1:strong proposal=scripted_turn
cargo run -q -- verify fixtures/real-waldo-aien-chain    # PASS complete effect=aien-ledger-slice/1:strong proposal=model_generation/2 candidate=none
cargo run -q -- verify fixtures/synthetic-weak-receipt   # PASS_LABELLED_INCOMPLETE missing=link:model_turn effect=record_effect_receipt/1:weak
cargo run -q -- verify fixtures/real-waldo-smoke         # PASS_LABELLED_INCOMPLETE missing=link:aien,link:effect,link:interplane
cargo run -q -- verify fixtures/real-waldo-tokenizer-json  # PASS_LABELLED_INCOMPLETE missing=link:effect,link:interplane

seal writes a new COMPANION.json from a skeleton and refuses to overwrite one: a sealed record is never rewritten to match a new result.

Fixtures

Limits