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 / AGENTS.md

81 lines · 6958 bytes Raw Blame History Source

aien-protocols (the written contracts between the parts of AIEN)

Specifications for the byte formats and rules the parts of AienOS (the whole AIEN system) agree on: agent state, inference, evaluation, evidence receipts, crumbs, execution transcripts, compiled Omega units, the Omega shell platform boundary and the task messages between a Raspberry Pi and the DGX Spark. Each contract is a specification in specs/, often with test vectors and a small C checker that proves the vectors match the text. Reference Rust crates live in crates/. The repository holds contracts only, never private implementations.

Shared rules: read https://www.aienos.com/agents/RULES.md first. This file adds what is specific to this repository; where the two differ, this file wins here.

Scope

Installation

git clone https://github.com/aien-dev/aien-protocols-mv.git
cd aien-protocols-mv
cargo check --workspace --all-targets

The crates need a stable Rust toolchain (there is no rust-toolchain.toml). The spec checkers need only bash, coreutils and a C99 compiler (cc). No Python, no CUDA toolkit and no outside dependencies in the trusted base.

Configuration

Usage

# The Rust gates
cargo fmt --all -- --check
cargo check --workspace --all-targets
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace

# The spec checkers (each builds its C checker with cc and runs the vectors)
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/osh-platform/tools/check-stream-vectors.sh

# The LTP0 native suite (seeded Omega; needs an omega-mv checkout at the sources.json revision)
sh specs/latent-payload/run-native.sh /path/to/omega-mv

Every gate is also one step of tests/gates/run.sh <step>: fmt, check, clippy, test, zero-disk-secrets, anti-slop and c-vectors. c-vectors runs every specs/*/tools/check-*.sh and passes only when all of them pass, so a new checker named check-*.sh is picked up automatically. anti-slop fails on any em dash or en dash in crates/, docs/, README.md and ANTI_ENCLOSURE.md.

The make-*.sh scripts in specs/*/tools/ regenerate vectors. Run one only when the specification itself changes, and commit the regenerated vectors together with the text.

specs/latent-payload/run-native.sh is not part of c-vectors, because it needs an outside omega-mv checkout. It resolves this repository root from its own location, checks that every Omega input (seed/out/omc at the pinned sha256, the om2 conductor and its two SHA-256 constant fixtures, om/tls/sha2.om) exists and names any missing path, then creates the temporary root seed link that the unchanged conductor needs and removes it on exit. Without that link the conductor prints INVALID SHA-256 constant fixture unreadable or malformed and exits 3.

Conventions

Safety and approvals

Further reading