aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / CHANGELOG.md
| 1 | # Changelog |
| 2 | |
| 3 | All notable changes to the versioned specification surface are recorded here. |
| 4 | Reference implementation changes in `crates/` follow the same entries unless |
| 5 | noted. Dates are UTC. Versions follow semantic versioning as defined in |
| 6 | VERSIONING.md. |
| 7 | |
| 8 | ## [Unreleased] |
| 9 | |
| 10 | ### Draft: bounded latent CONTENT profile (NL-3, #69) |
| 11 | |
| 12 | - Add opt-in LTP0 `latent_payload.v0` to the existing draft typed-microjob |
| 13 | CONTENT operand surface (#50/#54, source PR #53). No MJB1/MJR1 bytes or |
| 14 | enums change. Exact big-endian tensor/identity/quantization/privacy/replay |
| 15 | framing has a handwritten seeded Omega reference validator, independently |
| 16 | encoded synthetic fixtures and native guard/checksum mutation controls. |
| 17 | - Production document/receipt admission, durable replay reservation, |
| 18 | revocation lookup and execution remain caller obligations, NOT_RUN here. |
| 19 | This is a draft contract, not frozen interoperability, learned-model |
| 20 | performance, hardware qualification or deployment. |
| 21 | |
| 22 | ### Security: Aienet-0 audit repairs (2026-10-28) |
| 23 | |
| 24 | - `aien-microjob` 0.2.0 closes A6/A7/A8: stored countersignatures must |
| 25 | bind the rebuilt commitment in both AN0V and MJR1; admission refuses |
| 26 | insufficient matmul fuel and expired nodes, including `DagRun` admission. |
| 27 | MJB1, MJR1, AN0B and AN0V wire bytes and versions are unchanged. |
| 28 | - A15 is a security API cutover: `DagRun::log` and `restore` now exchange |
| 29 | ordered receiver-local `LedgerEvent::Receipt` and `LedgerEvent::Cancelled` |
| 30 | values, preserving cancellation across restart. Receipt replay and repeated |
| 31 | cancellation remain idempotent; restoration rejects a new receipt after |
| 32 | cancellation. Migrate every persistence caller to store both event kinds |
| 33 | atomically in its own durable storage, bound to the accepted document. |
| 34 | No stable serialization is defined by this Rust enum. Historical |
| 35 | receipt-only logs do not establish cancellation history: do not silently |
| 36 | wrap them as receipt events and resume. Migration requires independently |
| 37 | trusted receiver state establishing cancellation status. The security |
| 38 | exception removes the receipt-only API without a compatibility fallback. |
| 39 | - A4/A5: `parity.sh` refuses failed builds, missing tools and malformed or |
| 40 | empty oracle output with exit 2; exit 1 denotes a behavioral mismatch. |
| 41 | `mutants.sh` requires the pinned Omega prerequisites, establishes baseline |
| 42 | parity, and never counts invalid setup/output as a killed Omega mutant. |
| 43 | `specs/aienet/jobpath/check-harness.sh` injects deterministic runner faults. |
| 44 | Historical evidence under `evidence/aienet0-20261028` is unchanged and is |
| 45 | not a receipt for these repairs. |
| 46 | |
| 47 | ### Aienet-0 authenticated ledger test adapter |
| 48 | |
| 49 | - Restore the archived settlement runner as `scripts/aienet0/settle-run.sh` and |
| 50 | migrate it to Core's `tur-ledger-2` CLI: pinned authority configuration, |
| 51 | issuer-signed funding/reservation/refund and issuer-plus-verifier settlement. |
| 52 | Recheck the actual signed bundle, MJR1 and AN0V before signing the complete |
| 53 | quote-bound payout. Honest completion settles once; forged receipt or mutated |
| 54 | AN0V refunds. Evidence is local host testing, not Core RPC or independent |
| 55 | machine qualification. The historical baseline and wire formats are unchanged. |
| 56 | - Reconcile ambiguous reserve/settle failures against native journal state, |
| 57 | refund only open reservations, and expose exact operator recovery instructions |
| 58 | if I/O/signing remains unavailable. Add failure-injection controls and guard |
| 59 | mutants; re-run actual artifact admission against the 0.2.0 carrier dependency. |
| 60 | |
| 61 | ### Security: approved framed digest cutover (SECNET-02, 2026-10-26) |
| 62 | |
| 63 | - `SourceGrant` signs a domain-separated v2 transcript with u64 little-endian |
| 64 | byte lengths for source URI, SPDX license and issuer, and a one-byte |
| 65 | expiration presence tag. The former concatenation allowed a valid signed |
| 66 | `LicenseRef-MIT` grant to be presented as `MIT` by moving `LicenseRef-` |
| 67 | into the URI without changing the signed bytes. Legacy signatures are |
| 68 | refused, not tried as a fallback. Migration: authorized issuers must |
| 69 | reissue grants, and active provenance consumers must adopt the new commit |
| 70 | together. Archived consumers are not silently reactivated. |
| 71 | - The adjacent plan, evaluator outcome and base evaluation receipt digests |
| 72 | likewise gain distinct domain tags, lengths, option tags and list counts. |
| 73 | Base receipt signing and verification refuse protocol versions 1 and 2. |
| 74 | AEI1 verification also requires version 3; its low-level signer can construct |
| 75 | negative-control legacy versions, but those are never accepted. Migration: |
| 76 | active `spark-rsi` consumers must re-evaluate plans and outcomes or treat old |
| 77 | digest references as untrusted. Existing signed receipts, including AEI1 |
| 78 | version 2, need reissuance after evaluation; |
| 79 | digest-keyed caches, logs and stored references need an explicit mapping |
| 80 | or invalidation. Preserve historical receipts and label them as legacy |
| 81 | rather than rewriting them. No legacy acceptance switch is supplied. |
| 82 | - Drake approved the breaking contract and coordinated consumer cutover on |
| 83 | 2026-10-26. `CONSUMERS.md` records the active consumer audit and adoption PRs. |
| 84 | Historical evidence is retained without byte changes and explicitly |
| 85 | superseded where a new fixture replaces an old one. No `v0.2.0` tag is |
| 86 | created here; a minor release remains a separate action. |
| 87 | |
| 88 | ### Specifications |
| 89 | |
| 90 | - `specs/microjob` and `crates/aien-microjob` (SI-MICROFORGE C1, |
| 91 | aien-protocols-mv#50): MJB1 Draft v0.1, the typed bounded microjob DAG |
| 92 | (192-byte header, 448-byte nodes, at most 64 nodes): token profiles ZERO, |
| 93 | 64/16, 128/32, 256/64, 512/128 with explicit `MJB_NEEDS_EXPANSION` instead |
| 94 | of truncation, time/fuel/memory/work caps and header budgets, a required |
| 95 | verifier, retry and cancel classes, typed operand references (Cortex, |
| 96 | World, content, capsule, experience), effect ceiling bound to the original |
| 97 | approval, acyclicity and generation checks, and a canonical Kahn order. |
| 98 | MJR1 receipt (404 bytes, P-256 signed) and the `DagRun` ledger: input |
| 99 | binding, double-commit, retry, cancel and restart-by-replay rules. C |
| 100 | checker `tools/mjb_verify.c` with 104 vectors and 58 mutants, all killed; |
| 101 | the Rust crate gives the same verdict on every vector and re-encodes every |
| 102 | accepted document byte for byte. |
| 103 | - `specs/discovery-capsule` and `crates/aien-discovery-capsule` (SI GENESIS |
| 104 | C2, aien-protocols-mv#51): DCP1 family Draft v0.1: `DiscoveryCapsuleV1`, |
| 105 | `OwnerConsentV1`, `OwnerRetractionV1` (no erasure claim allowed), |
| 106 | `RetractionAckV1` and `ExperienceLineageV1`. Distinct DISCOVER, READ, |
| 107 | REDISTRIBUTE and TRAIN bits, PRIVATE by default, closed license registry, |
| 108 | capsule never self-authorizes. Recipient rules: owner retraction chain |
| 109 | (replay, conflict, custodian), use checks for serving, training and |
| 110 | republication, execution admission only on the recipient's own verdict and |
| 111 | grant, honest PENDING / ACKNOWLEDGED / UNREACHABLE delivery status, and |
| 112 | lineage withdrawal with affected-descendant marking. C checker |
| 113 | `tools/dcp_verify.c` with 96 vectors and 62 mutants, all killed. |
| 114 | - `crates/aien-provenance`: `p256_compressed_key`, `p256_sign_low_s` and |
| 115 | `p256_verify_low_s` for the fixed-width records above (low-S only). |
| 116 | - `specs/osh-platform`: OSH Platform ABI v1 DRAFT revision 2, still not |
| 117 | frozen and still `abi_version` 1 (aien-protocols-mv#43). New |
| 118 | `STREAM_TASK.md` makes streams and tasks precise: platform call frame and |
| 119 | draft op ids, handle check order, byte-stream semantics, capability domain |
| 120 | check order, task binding, cancellation, launch and partial launch, |
| 121 | `OUTCOME_UNKNOWN`, receipt pins, and nine open freeze items. |
| 122 | Incompatible draft change: `STREAM_DUP(src_stream, dst_fd)` is replaced by |
| 123 | the capability form `STREAM_DUP(src_stream, rights, target)`. |
| 124 | `AUDIT_STREAM_TASK.md` compares the draft with Omega's Linux host adapter |
| 125 | and the AIENOS native pipe. Adds 37 shared stream and task vectors |
| 126 | (`vectors/s*.vec`, `vectors/t*.vec`), the C reference model |
| 127 | `tools/osh_sv_ref.c`, `tools/check-stream-vectors.sh` and |
| 128 | `tools/mutate-stream-ref.sh` (22 checks, 22 mutants killed). The 20 |
| 129 | shell-core vectors are unchanged. |
| 130 | - `specs/pi-spark-task`: PST1 Draft v0.3 (C6, aien-protocols-mv#33): tool-call |
| 131 | tasks (section 11). Two Pi types, `tool_call_request` (15, a 36-byte head: |
| 132 | INTERPLANE request digest and length) and `tool_call_chunk` (16, the |
| 133 | INTERPLANE canonical request bytes in 800-byte pieces, nothing added); the |
| 134 | receiver joins the chunks, checks the digest and refuses on mismatch; an |
| 135 | ordinary task never carries a tool-call payload; approval stays with the |
| 136 | Spark approval desk and AIENOS authority. Five new codes. One canonical |
| 137 | request from interplane-core at interplane-mv `83df0f0` |
| 138 | (`tools/interplane-request`), 7 new single-message vectors and 9 new |
| 139 | recorded sessions; 32 checks, 32 mutants killed. `crates/aien-pi-spark-task` |
| 140 | reads the head and joins and checks the chunks (`ToolCall`, `TaskBody`); its |
| 141 | new test reads the same tool vectors byte for byte. |
| 142 | - `specs/pi-spark-task`: PST1 Draft v0.2 (C5, aien-protocols-mv#32): session |
| 143 | rules (section 10): who may send which type, the allowed sequence for one |
| 144 | task, the check order inside a session, and a recording container for test |
| 145 | vectors; nine new codes. `pst_verify` gains `--session` and |
| 146 | `--session-fuzz`; 19 recorded sessions in `vectors/sessions/`; 26 checks, |
| 147 | 26 mutants killed. |
| 148 | - `crates/aien-pi-spark-task` (C4, aien-protocols-mv#31): Rust reader and |
| 149 | writer for the PST1 fixed header, no `unsafe`, no JSON, fixed bounds. Its |
| 150 | test walks `specs/pi-spark-task/vectors/expected.txt` and requires the same |
| 151 | verdict line as the C checker and byte-identical re-encoding. |
| 152 | - `specs/pi-spark-task`: PST1 Draft v0.1 (C3, aien-protocols-mv#30): a 4-byte |
| 153 | `PST1` magic now opens the header (`reserved1` shrank to 1 byte and |
| 154 | `reserved2` was removed, so the header stays 224 bytes; fields after `type` |
| 155 | moved by 4), a fixed check order (section 4.1), and two codes |
| 156 | (`PST_BAD_MAGIC`, `PST_NO_OBJECTIVE`). Version 0 is refused as |
| 157 | `PST_DOWNGRADE`. Adds the C reference checker and encoder |
| 158 | `tools/pst_verify.c` (C99, libc only, no heap), 23 header vectors with |
| 159 | `vectors/expected.txt`, `tools/check-vectors.sh` and |
| 160 | `tools/mutate-verifier.sh` (15 checks, 15 mutants killed). |
| 161 | - `specs/pi-spark-task`: PST1 Draft v0, the Pi-Spark task message for |
| 162 | ALLEN Pi/Spark lane C1 (aien-protocols-mv#28): inventory of reused formats, |
| 163 | layering over M6-A and M6-B, 224-byte big-endian header, 14 message types, |
| 164 | size and refusal rules, the limits of exactly once, and a no-permission |
| 165 | clause. No code and no vectors yet (C3). |
| 166 | - `specs/osh-platform`: OSH Platform ABI v1 DRAFT (not frozen) for the |
| 167 | Omega-native shell of aien-architecture#158: step and status protocol, |
| 168 | request record, platform operations, authority and interrupted-effect |
| 169 | rules, and 20 conformance vectors. First implementation: omega `src/osh` |
| 170 | (omega#337, #339, #340); its deltas (refusals 246 to 250, the 239 list, |
| 171 | host cells `S_NOSKIP` and `S_EOI`, the variable-answer sentinel) are folded in. |
| 172 | - `specs/osc-unit-artifact`: OSC Unit Artifact v1 DRAFT, frozen pending ADR reconciliation (2026-10-08), the signed |
| 173 | container in which an OSC-compiled Omega unit (A64 code plus canonical IR) is |
| 174 | admitted and launched by AIENOS or the host adapter. Named refusal codes, |
| 175 | launch result shape, bounded exact-match entry names, instruction-subset code scan, 47 refusal and 5 acceptance container vectors plus lookup, loader-state and launch-argument scenarios, shell generator and |
| 176 | shell reference checker. No loader implements it yet. |
| 177 | - `specs/crumb-visible`: Crumb Reader Contract 1.0.0 for the CRB1 visible |
| 178 | record (wire schema 1), numbered refusal codes, check order, determinism |
| 179 | rule, and a shared conformance corpus (122 family vectors, 5 edge |
| 180 | positives, 44 refusals) with a shell generator. Extracted from the running |
| 181 | Rust reference; no new format features. |
| 182 | - `specs/execution-transcript`: TRN1 contract 0.2.0. Adds wire schema 3 |
| 183 | with record types 17 CAUSE, 18 RECEIPT_BIND, 19 RUN_LINK and 21 RESOURCE |
| 184 | (32-byte cause id); type 20 TRAIN_DISPATCH reserved without a layout. |
| 185 | Schema 1 files and every 0.1.0 vector keep their outcomes; schema 2 stays |
| 186 | unassigned. Reference verifier accepts schemas 1 and 3; 0.2 goldens, |
| 187 | forged histories, 23 refusal vectors and a join expectation list |
| 188 | (`vectors/join.txt`). Sources: aien-architecture causal-id-join-v0 |
| 189 | (fa46a26) and resource-contract-v0 (ddc17b7). |
| 190 | - `specs/verified-crumb`: Verified Crumb V1 (VC1) contract 0.1.0, new. Canonical |
| 191 | byte encoding of VerifiedCrumbV1 (big-endian, domain tag |
| 192 | `AIEN_VERIFIED_CRUMB_V1`, sorted unique lists, no padding), VC id = SHA-256 |
| 193 | of the canonical bytes, resolve rule (lock, semantic id, store, identity, |
| 194 | receipt, transitive closure, refuse on any failure), 9 resolve refusal codes |
| 195 | plus 13 format refusal codes and the VC1 addition `VERIFIER_TOO_OLD`, the omega-dev (tainted) and omega-build |
| 196 | (verified only) domains, and the `omega.lock` text format. Receipt id binds |
| 197 | to the aien-proof BLAKE3 id. 17 golden vectors (4 accept, 13 refuse), a C |
| 198 | checker (`tools/vc1-check.c`), and `tools/check-golden.sh` with 3 vector |
| 199 | mutants and 9 checker mutants. No consumer pins it yet. Open design items |
| 200 | are listed in SPEC.md sections 4 and 11 (`digest_kind` byte, 0x01 source / 0x02 IR, is part of the encoding). |
| 201 | Contract 0.2.0 (VC1-RECONCILE): SPEC section 6.2 fixes one meaning per declaration code. |
| 202 | `UNDECLARED_IMPORT` is only "the program uses something its dependency list |
| 203 | does not declare" (ARCH-0029 code 7); a lock line, manifest entry or |
| 204 | `dependencies[]` entry with no import behind it is `UNVERIFIED_DEPENDENCY`; |
| 205 | an import with no lock line is `DEPENDENCY_NOT_PINNED`. SPEC step 8 now also |
| 206 | refuses a `dependencies[]` entry the stored source does not import. No byte |
| 207 | layout, id or golden vector changes. Migration: omega `omega_resolve.c` used |
| 208 | `UNDECLARED_IMPORT` for a lock line with no import and must move to |
| 209 | `UNVERIFIED_DEPENDENCY`; aien-closure already agrees. |
| 210 | - `specs/evidence-receipt`: partial extraction of aien-proof EvidenceReceiptV1 |
| 211 | (`SUBSET.md`): only the identity derivation and fields VC1 binds to, |
| 212 | pinned to aien-sovereign-core `40dd373`. Full extraction is owed. |
| 213 | |
| 214 | ## [v0.1.0] - 2026-09-23 |
| 215 | |
| 216 | First versioned snapshot. No compatibility commitments predate this tag. |
| 217 | |
| 218 | ### Specifications |
| 219 | |
| 220 | - Agent state, evaluation, and inference specs as present in `specs/`. |
| 221 | - Community Specification License 1.0 (`LICENSE-SPEC`). |
| 222 | |
| 223 | ### Reference crates |
| 224 | |
| 225 | - Nine crates at `0.1.0`: protocol types, action protocol, agent state ABI, |
| 226 | evaluation protocol, event protocol, inference client, inference protocol, |
| 227 | probe, provenance. Apache-2.0 (`LICENSE-CODE`). |
| 228 | |
| 229 | ### Known consumers at this tag |
| 230 | |
| 231 | Recorded in CONSUMERS.md. Consumers pin this version until a newer tag and |
| 232 | migration notes exist. |