interplane.Get Omega
Read in your language

aien-protocols-mv

Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem

Brought by drakestapleton

[SI GENESIS C2] Canonical discovery capsule, experience lineage and signed retraction envelopes

Open · #51 · open 2026-10-24 17:34 UTC

Imported from GitHub aien-dev/aien-protocols-mv#51, by drakestapleton

drakestapleton wrote on 2026-10-24 17:34 UTC

Deliverable

Define one portable, versioned cross-component wire/spec contract for proof-carrying reusable Discovery Capsules, owner-controlled disclosure scope and withdrawal propagation. Consume microjob #50 and stream ABI #43, si-genesis bootstrap #310, si-legacy bootstrap #312, Open Humanity #26/#27/#28, canonical Omega Cortex and existing signed-receipt owner. Do not design another cryptosystem, data store or public authority.

Protocol schema

  • DiscoveryCapsuleV1: typed .om claim/procedure or reference, exact ABI/compiler/source/executable/precision/hash, valid preconditions/shape, independent verifier and benchmark provenance, signed optional owner contribution consent, license, known counterexamples/failures, quality/utility/strict scientific-T verdict references, required recipient policy, validity/expiry and revocation chain head.
  • A capsule carries no implicit tool access, GPU code execution or proof simply by possessing a digest. Discoverability, reproducible correctness, source signature, consent to read, consent to redistribute and separate permission to train are distinct fields.
  • OwnerConsentV1 fields include provenance, owner pseudonymous key, exact recipient/destination, published fragment/hash, allowed purposes, retention end, successors/custodians only if explicitly declared, versioned consent/canonical payload digest and advance notice. Private is default; no upload of unsanitized Cortex.
  • OwnerRetractionV1 signed monotonic seq, scope (future availability / retrieval / training / republication), affected artifact lineage, effective time, independent recipient ACKs, pending/unreachable recipients, provenance digest, minimal privacy-safe tombstone. Explicit no guarantee of deleting disconnected third-party copies or already-trained models.
  • Versioned ExperienceLineageV1: content digest, origin/consent and influenced checkpoint/capsule references; protect against cross-dataset injection and revoked lineage reuse.

Acceptance

  • Canonical seeded .om values + serializer/golden byte vectors under current ABI owner, independent schema checker, version/size limit, replay, signature, ancestor cycle, duplicate and illegal permission amplification mutants.
  • Synthetic two-owner publishing→recipient audit→acknowledged revocation lifecycle; subsequent retrieval/training attempts refuse; old offline recipient shows PENDING, never fictitious universal-erased status.
  • Unknown license/scope/custodian and concurrent conflicting owner operations fail closed; private bytes never appear in receipts or public metadata.

Mandatory shared contract

Parent: https://github.com/aien-dev/aien-architecture-mv/issues/307. Read authoritative PLAN_AUTHORITY, current plan, doctrine/ADRs, AGENTS.md, directory .crumb, current source heads, branch claims, in-flight PRs and prerequisite issues before edits. This is a bounded component issue and not another master plan. Reuse authoritative Omega seeded handwritten .om, existing compiler, skill/Cortex single-writer, FORGE native physical realization, AEGIS authority, Spark independent judge and receipt signer; no new shadow compiler/trainer/scheduler/trusted ledger or Python/PyTorch/CUDA product fallback. Existing C/Rust is migration evidence, not new first-party final implementation. Unavailable .om capability is a concrete compiler-owner blocker. Do not stop/restart/expose live 35B private 18091, publish private data, swap weights, run unreserved GB10 tasks, or deploy a network as a side effect of issue creation. Separate source-only, host, independent silicon, and production readiness into PASS/FAIL/INCONCLUSIVE/NOT_RUN and pin receipts.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:15 UTC

Recovered GitHub comment. Original comment 6388019388

C2 Discovery Capsule ABI: HOST_TESTED (draft v0.1, no runtime consumer yet)

Branch feat/si-microjob-capsule-abi, commit 33e28b9 (shared with #50; base 3e6efc4, merges cleanly with main 8ee94ed). No PR opened.

Files

  • specs/discovery-capsule/SPEC.md: five records, big-endian, fixed width, P-256 low-S signature, identity = SHA-256 of the bytes before the signature:
    • DiscoveryCapsuleV1 DCP1, 676 B: meaning digest, source/compiler/executable/ABI/precision, preconditions and shape, independent verifier, evidence, failure count and digest, utility and scientific-T verdict refs (zero = NOT_RUN), capability request, owner key, closed license registry, share scope, DISCOVER/READ/REDISTRIBUTE/TRAIN as separate bits, consent ref, revocation seq and head, parent, MJB1 microjob ref, signature.
    • OwnerConsentV1 DCC1, 388 B.
    • OwnerRetractionV1 DCR1, 284 B: scope FUTURE_AVAILABILITY/RETRIEVAL/TRAINING/REPUBLICATION; any erasure_claim is refused.
    • RetractionAckV1 DCA1, 148 B: ENFORCED or ENFORCED_WITH_RETAINED.
    • ExperienceLineageV1 DCL1, 588 B.
  • specs/discovery-capsule/tools/dcp_verify.c, check-vectors.sh, mutate-verifier.sh, vectors/ (96 vectors).
  • crates/aien-discovery-capsule: decode, open_* (static rules plus signature, giving a Verified<T>), and recipient::{OwnerChain, check_use, admit_execution, RetractionTracker, LineageIndex}.

A capsule never self-authorizes. It has no approval field. admit_execution needs a passing verdict from the recipient's own verifier for that exact capsule digest and platform (an owner-key verdict gives DCP_SELF_AUTHORIZED) and a recipient grant that covers required_capabilities. Edited, stale, retracted, expired and unverified capsules are refused.

Tests run (host, no GPU)

  • bash specs/discovery-capsule/tools/check-vectors.sh: DCP1_CONFORMANCE impl=c pass=96 fail=0, same under ASan/UBSan, DCP1_VERIFIER_MUTANTS total=62 killed=62 survived=0.
  • cargo test -p aien-discovery-capsule: 14 passed, 0 failed. Rust and C agree on all 96 vectors and accepted records round-trip.
  • Two-owner lifecycle (two_owner_publish_audit_revoke_lifecycle):
    1. A publishes a NAMED capsule to R1 and R2; B publishes a PUBLIC one.
    2. R1 audits A's capsule and admits it for execution.
    3. A retracts (RETRIEVAL|TRAINING) and R1 acknowledges.
    4. R1's later serve and train attempts get DCP_REVOKED. B's capsule is unaffected.
    5. The offline R2 stays PENDING, then UNREACHABLE, and is never shown as acknowledged or erased. A newer A capsule is DCP_STALE at R2 until R2 syncs.
  • Other mutants and tests: replay (idempotent), conflicting same-seq retraction, gap and fork (DCP_CONFLICT), undeclared custodian (DCP_UNKNOWN_CUSTODIAN), declared custodian accepted, edited capsule and consent (DCP_BAD_SIGNATURE), permission amplification against the consent and against the parent, unknown license/scope/version (fail closed), PRIVATE default, consent/owner mismatch, expiry, lineage duplicate, cross-dataset injection, ancestor cycle, unknown parent, and TRAINING withdrawal of a lineage root, which blocks descendants and marks the influenced checkpoints and capsules as affected. A test also asserts that private trace bytes never appear in any record; only their digest does.
  • Full repo gates: all exit 0 (88 workspace tests passed; PROTO_C_VECTORS PASS found=7 failed=0; crumb verify OK). Record sizes and offsets checked with the Wolfram evaluator.

Remaining / NOT_RUN

  • This repository has no .om sources; the seeded .om values in Omega are NOT_RUN.
  • The Open Humanity receiver (OH #33/#34, peer OpenHumanityRevoke) mirrors these field names with a provisional encoding and has not adopted the bytes yet.
  • No real two-machine run: the two owners are synthetic keys in one process.
  • The Spark judge has not run this branch, and there is no signed receipt.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:22 UTC

Recovered GitHub comment. Original comment 6647499702

Sweep verification (P-DRA-9), origin/main e1ac336b, host aarch64, no GPU. Not closing.

Re-run on main:

  • bash specs/discovery-capsule/tools/check-vectors.sh → DCP1_VECTORS_REGEN identical, DCP1_CONFORMANCE impl=c pass=96 fail=0, same under ASan/UBSan, DCP1_VERIFIER_MUTANTS total=62 killed=62 survived=0, DCP1_VECTORS_PASS.
  • cargo test -p aien-discovery-capsule → tests/lifecycle.rs 13 passed (incl. two_owner_publish_audit_revoke_lifecycle), vectors 1 passed; 0 failed.

Met: five record schemas, golden byte vectors, independent C checker, version/size limits, replay, signature, ancestor cycle, duplicate and amplification mutants, two-owner lifecycle with PENDING offline recipient, fail-closed unknown license/scope/custodian and conflicting ops, private-bytes test.

Unmet: "Canonical seeded .om values": no .om under specs/discovery-capsule/. Also #53 asked for independent review before merge and merged with only the bot review.

Gate: Drake decision on whether the C+Rust reference satisfies "seeded .om values" or an .om DCP1 codec is required here.

Sign in to comment