interplane.Get Omega
Read in your language

aien-protocols-mv

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

Brought by drakestapleton

branch main Branches Tags History

aien-protocols-mv

6d71e81 L180 review fixes (verdict l180-batch1): keep dated history as written; name-check: exact ADR 0038 path, length-matched backtick runs, digit labels documented, pin by pointer U1Branches committed 2026-11-17
.aien/
.github/
crates/
docs/
evidence/
scripts/
specs/
tests/
.crumb981
.gitignore51
AGENTS.md6958
ANTI_ENCLOSURE.md1329
AUDIT_SCOPE.md6166
CHANGELOG.md14924
CONSUMERS.md4417
Cargo.lock48182
Cargo.toml1092
GOVERNANCE.md836
LICENSE11358
LICENSE-CODE11358
LICENSE-SPEC16225
NOTICE1343
NOTICES.md438
README.md14113
SCOPE.md577
SECURITY.md2534
TRADEMARKS.md406
VERSIONING.md1152

README.md

aien-protocols

This repository holds the written contracts that the parts of AIEN agree on: the byte formats and rules for agent state, inference requests, evaluation, evidence receipts, crumbs, execution transcripts, compiled Omega units, the Omega shell boundary and the task messages between a Raspberry Pi and the DGX Spark. Each contract is a specification in specs/, often with test vectors (fixed input files with the verdict a reader must give) and a small C checker that proves the vectors match the text. Next to the specifications sit reference Rust crates in crates/. The repository holds contracts only, never private implementations.

Part of Sovereign Intelligence (SI). The old umbrella name "Aienix" is retired. sovereign-intelligence is the integration, release and install center, and the place where the signed Spark test runs. AienOS is only the OS layer. See aien-architecture ADR 0045.

Status 2026-10-19: research-grade, pre-alpha. One specification is frozen (osc-unit-artifact v1, 2026-10-08), one is marked stable (crumb-visible), the rest are drafts. No protocol here is claimed as qualified on hardware. The status of the whole system is owned by aien-architecture-mv, in CURRENT_EXECUTION_PLAN.md.

Specifications

The status column quotes the Status line at the top of each specification on main.

SpecificationWhat it definesStatusChecked in this repo by
agent-statePortable agent state snapshotDraftnothing yet
inferenceInference requests and responsesDraftnothing yet
evaluationEvaluator interface and verdict identity domainsDraftRust tests in aien-evaluation-protocol
evidenceAdaptive Evidence Interface (AEI1) requirementsDraft for freeze, 2026-10-11Rust tests in aien-evaluation-protocol (the AEI1 receipt)
evidence-receiptThe parts of the evidence receipt that VC1 binds toPartial extraction, 2026-10-02; full extraction is owednothing yet
verified-crumbVerified Crumb V1 (VC1) byte encoding and resolve ruleDraft v0, 2026-10-02tools/check-golden.sh (C checker, 17 golden vectors)
crumb-visibleReader contract for the CRB1 visible crumb recordStablevector generator only (tools/make-vectors.sh)
execution-transcriptTRN1 execution transcript, contract 0.2.0Draft v0, 2026-10-01; not yet produced by any runtimetools/check-corpus.sh (C verifier, see tools/README.md)
osc-unit-artifactSigned container for a compiled Omega unitv1 FROZEN, 2026-10-08tools/check-vectors.sh (see vectors/README.md)
osh-platformBoundary between the Omega shell core and its platformv1 DRAFT, not frozenvector generator only (see vectors/README.md)
pi-spark-taskPST1, the task message between a Pi and the SparkDraft v0.1, 2026-10-16; not yet produced or read by any runtimetools/check-vectors.sh (C checker, 23 header vectors) and the Rust crate aien-pi-spark-task
latent-payloadOpt-in bounded LTP0 tensor CONTENT profile of draft MJB1, no new task/receipt/capability protocolDraft v0; runtime integration NOT_RUNSeeded handwritten Omega validator, fixed synthetic vectors and native mutation controls, run by sh specs/latent-payload/run-native.sh OMEGA_SRC (omega-mv at the sources.json revision); see results.json
microjobMJB1 typed bounded microjob DAG (token profiles 64/16 to 512/128 or zero-neural, resource caps, required verifier, retry and cancel) and the MJR1 receiptDraft v0.1, 2026-10-24; not yet produced or read by any runtimetools/check-vectors.sh (C checker, 104 document vectors, 58 mutants) and the Rust crate aien-microjob (vectors plus receipt-ledger tests)
discovery-capsuleDCP1 family: Discovery Capsule, owner consent, signed retraction, retraction ack and experience lineageDraft v0.1, 2026-10-24; not yet produced or read by any runtimetools/check-vectors.sh (C checker, 96 record vectors, 62 mutants) and the Rust crate aien-discovery-capsule (vectors plus two-owner lifecycle tests)

The vector counts come from CHANGELOG.md. Where a contract has an implementation, it lives with its owner, not here. On 2026-10-19 the main branches showed these: omega keeps pinned copies of the VC1 golden vectors and the CRB1 vectors (tests/vcstore/golden/PIN, tests/crumbline/crb1/PIN) and runs the 20 OSH vectors in tests/osh/; aienos has an OSC unit admission check in C (native/kernel/artifact/osc_unit.c) with a copy of the osc-unit-artifact vectors. This repository does not run those tests.

Reference crates

All twelve crates are Apache-2.0 (from cargo metadata). They follow aien-architecture ADR 0024: Rust is scaffolding and Omega is the destination, so the specifications are the lasting part.

The purpose column is shortened from the description field in each crate's Cargo.toml.

CratePurpose
aien-protocol-typesIdentifiers, primitives and digests shared by the other crates
aien-agent-state-abiAgent state snapshot, transition events and lineage checks
aien-inference-protocolInference contract, including leased KV cache pinning and copy-on-write context branches
aien-inference-clientClient for the inference protocol
aien-action-protocolActions, capability grants and confinement authorization
aien-event-protocolEvent envelopes and streaming telemetry
aien-evaluation-protocolEvaluator interface, verifier attestations, evaluation receipts and the AEI1 receipt
aien-provenanceDigests, Merkle trees and signature checks
aien-probeProbe evaluation engine (see its README)
aien-pi-spark-taskReader and writer for the PST1 header; its test reads every PST1 vector
aien-microjobMJB1 microjob DAG reader, writer and checker, and the MJR1 receipt ledger; its test reads every MJB1 vector
aien-discovery-capsuleDCP1 family reader, P-256 signature checks and recipient rules (retraction chain, use checks, execution admission, lineage); its test reads every DCP1 vector

Who uses which crate is recorded in CONSUMERS.md.

Source grant signature transcript (draft for next minor release)

SourceGrant::compute_unsigned_digest hashes the following bytes in order with SHA-256: ASCII AIEN_SOURCE_GRANT_V2 plus a zero byte; 16 raw grant UUID bytes; the UTF-8 source_uri with its byte length as u64 little-endian; the UTF-8 license_spdx with the same length prefix; permission bits as u32 little-endian; the UTF-8 issuer with the same length prefix; one byte 0 for no expiration, or 1 followed by expires_at_epoch_sec as u64 little-endian. There is no normalization or padding. The P-256 signature continues to cover the 32-byte SHA-256 result, not the JSON representation. Legacy concatenated-field signatures are never tried by the verifier. Drake approved this breaking digest cutover on 2026-10-26. Adoption requires reissuing every previously signed grant; coordinated consumers and unchanged historical evidence are recorded in CONSUMERS.md and CHANGELOG.md.

Layout

specs/         Specifications (Community Specification License 1.0), one directory each,
               with tools/ (generators and C checkers) and vectors/ where they exist
crates/        Reference Rust crates (Apache-2.0)
tests/gates/   Gate manifests and run.sh, the entry point the Spark judge runs
.aien/         Spark judge settings: always-run gates and the bundle public key
docs/          PIPELINE.md, how a pull request is tested and merged

Governance and policy files: GOVERNANCE.md, SCOPE.md, VERSIONING.md, CHANGELOG.md, CONSUMERS.md, ANTI_ENCLOSURE.md, NOTICES.md, TRADEMARKS.md.

Rule of direction

Protocols point inward to nothing. Implementations point downward to protocols. They never point sideways at each other: any deployment needing two implementations in one process is composed from above.

How this fits with the other repositories

Standing rules

Language rule: Rust is scaffolding, Omega is the destination, and C or assembly stay only where hardware, boot, ABI or measurement justifies them (ADR 0024, which supersedes the old "C is the target, no new Rust" rule). No Python, no CUDA toolkit, no systemd, no outside dependencies in the trusted base.

Build and test

The reference crates need a Rust toolchain. These are the commands the gates run:

cargo fmt --all -- --check
cargo check --workspace --all-targets
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace

The spec checkers need only bash, coreutils and a C99 compiler:

bash specs/verified-crumb/tools/check-golden.sh
bash specs/osc-unit-artifact/tools/check-vectors.sh
bash specs/execution-transcript/tools/check-corpus.sh
bash specs/pi-spark-task/tools/check-vectors.sh
bash specs/microjob/tools/check-vectors.sh
bash specs/discovery-capsule/tools/check-vectors.sh

tests/gates/run.sh <step> runs one gate step by name. The steps are fmt, check, clippy, test, zero-disk-secrets, anti-slop and c-vectors. The c-vectors step runs every specs/*/tools/check-*.sh (the checkers above) and passes only when all of them pass. The anti-slop step fails on any em dash or en dash in crates/, docs/, README.md and ANTI_ENCLOSURE.md.

On 2026-10-19 all of the commands above passed on the Spark on main at fb5fca9, and crumb verify . printed OK: 41 crumbs current.

Testing and evidence

The DGX Spark is the only test judge for pull requests (aien-architecture ADR 0033; the Spark judge started on 2026-10-16, PR #25). On 2026-10-18 the hosted test workflow ci.yml was deleted (PR #42). The one workflow left, .github/workflows/aien-verification.yml, does not build or test the code: it checks the result the Spark signed. On 2026-10-19 docs/PIPELINE.md was updated to match (PR #45), and the .crumb files stopped storing generated data; the crumb tool computes it on demand (PR #44).

  • The Spark runs the gates in tests/gates/ that a change touches, plus the gates listed in .aien/always (PROTO-ZERO-DISK-SECRETS, PROTO-ANTI-SLOP), and posts the commit status "AIEN Verification (Spark)".
  • The signed results are published in aien-receipts/aien-protocols, one directory per commit.
  • docs/PIPELINE.md explains the flow and the merge rules.

Open work

These issues and pull requests were open on 2026-10-19:

  • Issue #27 tracks the whole Pi and Spark protocol lane. Its next parts are session rules (issue #32, pull request #38) and tool-call tasks (issue #33, pull request #41).
  • Issue #43: freeze the OSH stream and task ABI vectors.

Contributing

Open a pull request against main with the commands you ran and their output. Specification changes follow GOVERNANCE.md and VERSIONING.md. A pull request merges only after the Spark judge passes it and a maintainer adds the ready-to-merge label. Contact: aien@aienos.com.

Licensing

Specifications: Community Specification License 1.0. Code and crates: Apache License 2.0 (Apache-2.0). Anti-enclosure commitments: ANTI_ENCLOSURE.md.

Human-Directed Agentic Engineering

Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions. This describes the development method, not a change to runtime autonomy or historical evidence.

For the documented method and a systems-software case study, see Gregory M. Kurtzer (2026), *Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering*, technical report, v1, Zenodo, https://doi.org/10.5281/zenodo.23682548.