interplane.Get Omega
Read in your language

aien-receipts

Append-only AIEN verification receipts, indexed by repository and exact source commit. Read verdicts, signatures and retained logs before making a claim.

Brought by drakestapleton

branch main Branches Tags History

aien-receipts / AGENTS.md

66 lines · 6307 bytes Raw Blame History Source

aien-receipts (append-only shelf of signed AIEN verification bundles)

Data-only repository. When the Spark judge (the verification pipeline on the project's NVIDIA DGX Spark) checks a commit of an aien-dev repository, it signs the result and publishes it here as <repo>/<sha>/bundle.json. Consuming repositories verify a bundle with aien-test verify-bundle against the public key and gate list on their own base branch. Bundles have no code, no build and no workflow. The one exception is the org audit under audit/ (see below).

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-receipts.git
cd aien-receipts

Nothing to build. Reading bundles needs only Git and a JSON reader. Full signature verification needs the aien-test tool from aien-sovereign-core, built with Cargo; docs/verify-one-bundle.md gives the pinned commits and toolchain.

Usage

# Every bundle parses as JSON (633 at the time of writing)
python3 -c "import json,glob; fs=glob.glob('*/*/bundle.json'); [json.load(open(f)) for f in fs]; print(len(fs), 'ok')"

# Fingerprint of the bundle used in the walkthrough
sha256sum aien-architecture/1a3594340c70969c245554b07062efd8ead8a026/bundle.json
# expected: cac84aa17376d4349e13d16ba935e349a24db421eaf44cb2bb6be2be5263612a

# Replay the receipt index (needs GitHub access, Git and OpenSSL 3); last line is the result
python3 tools/replay_receipt.py replay --all
# expected last line: INDEX receipt_index.json v2: 16/16 entries reproduce as indexed rc=0
python3 -m unittest discover -s tests -v   # offline

A bundle's top-level fields are schema, repository, commit, executor, plan, checks, verdict, started_utc, finished_utc, tree_digest, graph_digest, receipt_id_scheme and signature. Each entry in checks carries check_id, gate, backend, exactness, required, status, verdict and receipt.

To verify a bundle, follow docs/verify-one-bundle.md: it clones the shelf, the source repository and the verifier at fixed commits, reads .aien/verify.pub and .aien/always from the base commit, and runs aien-test verify-bundle ... --pubkey verify.pub --require <gates>. Exit 0 is PASS, 1 a verified FAIL, 2 NOT_RUN or a usage error, 3 REJECTED. Never treat a nonzero exit as a pass. That recipe needs network access and Cargo; it has not been reproduced in the documentation review environment, as the document itself says.

Conventions

Safety and approvals

Further reading