Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-protocols-mv/blob/main/specs/aienet/P0_INTEROP_PROFILE.md # aien-protocols-mv Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-protocols-mv / specs / aienet / P0_INTEROP_PROFILE.md` 145 lines ยท 12026 bytes Raw Blame History Rendered 1 # Aienet-0: Verifiable Agent Compute Exchange (draft interoperability profile) 2 3 Status: DRAFT v0.1, 2026-10-27. Design and conformance target only. NETWORK_NOT_RUN. 4 License: Community Specification License 1.0, subject to repository licensing. 5 Tracking: [architecture #311](https://github.com/aien-dev/aien-architecture-mv/issues/311), [typed microjob #50](https://github.com/aien-dev/aien-protocols-mv/issues/50), [Core escrow #738](https://github.com/aien-dev/aien-sovereign-core-mv/issues/738), [Open Humanity #32](https://github.com/aien-dev/open-humanity/issues/32). 6 7 ## The proposition 8 9 Independent, explicitly enrolled agents offer bounded computation, accept a typed job, return independently checkable evidence, and receive a transferred, pre-funded **TUR test-credit** payment. The goal is an interoperable verifiable-compute layer, not another general messaging standard, wallet, blockchain, or unconstrained execution environment. 10 11 The existing A2A agent interoperability standard and x402 HTTP payment standard are possible **edge adapters**. They are not dependencies of this v0. They do not automatically make my scientific Turing measurement fungible with money. Reference protocols: https://a2a-protocol.org/ and https://www.x402.org/. 12 13 ## Existing owners: no duplicate implementation 14 15 | Function | Authority | Initial v0 source | 16 | --- | --- | --- | 17 | Work, capability and result schema | aien-protocols | MJB1/MJR1, draft PR #53, `specs/microjob/SPEC.md` | 18 | Cryptographic identity, private transport, consent | Open Humanity | `crates/oh-core/src/transport.rs`, `oh-core` signed receipts | 19 | Scientific gain and evaluation | Omega / independent evaluator / Open Humanity | Frozen Turing measurement profile, explicitly named baseline and heldout split | 20 | Spendable TUR balances, escrow and refund | Sovereign Core | Existing service-credit authority, extension tracked by Core #734/#738 | 21 | Pure computation and verification | Omega | Seeded handwritten `.om` and qualified CPU/GB10 backend | 22 | Physical resource admission | FORGE / device owner | Explicit bounded lease, no inference-server or GPU bypass | 23 24 A valid MJB1 is a proposal, **not an authorization**. Network peers cannot expand its capability or privacy scope. A result does not authorize itself. No new wire grammar becomes authoritative until the existing protocol owner accepts it. 25 26 ## First four peers 27 28 The four roles can initially run as isolated local identities on one host: 29 1. Spark AIEN requester: requests one typed, pure computation. 30 2. Pi-class CPU provider: offers a bounded deterministic arithmetic or compiler-check operation. 31 3. iMac-class verifier: independently recomputes or checks the result. 32 4. Volunteer observer/alternate provider: operates under a separate explicit identity. 33 34 Those labels are role names, not declarations of active physical peers. Each peer has an owner-approved public key, permitted compute offer, expiry, endpoint and disable flag in a **signed, static manifest**. Never auto-enroll, discover via scanning, propagate code, collect credentials, or run arbitrary remote shell commands. Owner withdrawal stops new jobs, then drains already-admitted work within the agreed bound. 35 36 ## Minimum exchange (logical operations, NOT a new binary wire encoding) 37 38 `OFFER` binds an owner's signed key, capability, permitted job classes, resource limits and expiry. 39 40 `REQUEST` binds the canonical MJB1 document digest, logical job ID, idempotency key, requester identity and privacy scope. 41 42 `QUOTE` binds that job ID, provider identity, maximum work and expiration, pre-funded max TUR cost, independent verifier and refund rules. Changing any of these fields requires a new quote. 43 44 `ACCEPT` is valid only after Core successfully reserves the quote's maximum and both endpoints accept the frozen capabilities. 45 46 `RESULT` binds the MJR1 result digest, observed resource use, exact code/profile identity and provider signature. 47 48 `VERIFY` binds the result digest to an independently checked verdict. A proof of execution alone is not scientific novelty. 49 50 `SETTLE` is requested only by the authoritative Core ledger after verification. It debits escrow once, pays the provider and verifier, and refunds surplus. A transport replay or reconnect must never create another settlement. `CANCEL/LEAVE` uses bounded drain and idempotent refund or reconcile-first semantics. 51 52 All records require fixed upper length bounds, a protocol version, domain-separated identity, expiry, accepted peer scope, replay/idempotency identity and refusal of unrecognized fields. Bind them to the established transport and MJB1 owners; do not implement another signing scheme here. 53 54 ## Two different TUR quantities 55 56 1. **Scientific T** is a profile-bound measure of independently checked, complexity-adjusted explanatory compression gain. It is nonspendable evidence. Different profiles cannot be silently mixed. 57 2. **TUR service credit** is a fixed-point, policy-governed accounting denomination used for compute jobs. It is not money, a tokenized asset or an automatic right to payment in v0. 58 59 Ordinary compute jobs transfer already-escrowed TUR credits. A qualified scientific contribution may receive a separate payment **only from a prefunded capped research pool** under a published policy. Models never mint credit from self-evaluation, raw token count, claimed cleverness, duplicated training samples or forged receipts. 60 61 One conservation fixture (integer units): 62 - Opening requester/provider/verifier/observer: 100 / 0 / 0 / 0. 63 - Reserve 40 from requester: spendable requester 60, escrow 40. 64 - On verified completion: provider 27, verifier 3, requester refund 10. 65 - Closing balances: requester/provider/verifier/observer = 70 / 27 / 3 / 0; escrow = 0; total = 100. 66 - Bad logical job ID, duplicate settlement, excessive payout or insufficient balance must refuse without changing state. 67 68 ### Authenticated local ledger adapter 69 70 `scripts/aienet0/settle-run.sh` is host-test orchestration for Core 71 [#794](https://github.com/aien-dev/aien-sovereign-core-mv/pull/794), not a production 72 signer, Core RPC, new network format or wallet. It restores the archived `.at-run` 73 adapter without changing [the immutable historical baseline](BASELINE.md). 74 MJB1, MJR1, AN0B, AN0V and this draft's status are unchanged. 75 76 Provision `AUTHORITY` outside the runner: the exact no-LF `genesis tur-ledger-2` 77 config specified by Core's `om/tur-ledger/README.md`. Supply separate tmpfs 78 `ISSUER_KEY` and `VERIFIER_KEY` P-256 PEM test keys matching its public-key pins, 79 plus the existing carrier environment documented in the script. These are 80 external test-signing oracles, never keys in the ledger or repository. 81 OpenSSL 3.0.13 signs the canonical test records; Omega alone verifies admission. 82 A production signer, vault integration and native constant-time Omega signing 83 replacement are not implemented or qualified by this adapter. 84 85 For this fixed conservation fixture, `QUOTE` contains exactly 86 `quote tur-ledger-2 requester provider verifier 40 27 3 10` with no trailing LF. 87 Its SHA-256 is the authority config's policy pin and the reserve's quote pin. 88 The three owner/node pins hash the raw public submitter, volunteer transport 89 and AN0V verifier keys, respectively, not the private scalars or textual hex. 90 The runner checks those bindings and both authority public keys before funding. 91 92 Every prefund, reserve and refund receives an issuer authorization. Before 93 both settlement authorizations, the runner rechecks the actual signed bundle, 94 MJR1 and AN0V through `aienet0-run check`, requires its exact dag/result match, 95 recomputes the MJR1 hash and compares the reserved bundle bytes. It signs the 96 complete payout plus SHA-256 of the signed AN0B bundle and AN0V bytes, bound to 97 the reservation authorization digest. A repeated settle must leave the journal 98 unchanged. `tampered-receipt` and `tampered-attestation` must be refused by the 99 real artifact verifier and refunded, not merely rejected by a hash-shape check. 100 101 Run with fresh output directories: 102 103 ```sh 104 bash scripts/aienet0/settle-run.sh FRESH_OUTPUT honest 105 bash scripts/aienet0/settle-run.sh FRESH_OUTPUT tampered-receipt 106 bash scripts/aienet0/settle-run.sh FRESH_OUTPUT tampered-attestation 107 ``` 108 109 New local receipts live in `evidence/aienet0-ledger-auth-`20261028`/receipt.txt`. 110 They are HOST_TESTED only: distinct test keys on one machine are not independent 111 operators, and a local CLI retry is not an interrupted-RPC qualification. 112 113 The runner arms reconciliation before attempting reserve. On an ambiguous failed 114 reserve/settle response or a trapped interruption it queries the native journal, 115 refunds only an actually open reservation, and reports the exact job/journal. 116 Already-settled jobs are not refunded. If the journal or signer remains unavailable, 117 it fails with `RECOVERY REQUIRED` rather than claiming escrow was closed. 118 Untrappable process loss still requires operator reconciliation using the retained 119 reservation-intent transcript; this is not an autonomous durable recovery service. 120 121 `bash scripts/aienet0/settle-check.sh FRESH_EVIDENCE` provisions disposable tmpfs 122 test keys and checks honest/forged artifacts, false `VERIFIED` stdout, reserve 123 failure before/after write, settle failure before/after write, and persistent 124 write failure with explicit operator recovery. It requires the carrier environment 125 above plus `CARRIER_SOURCE_SHA` and `CARRIER_PROTOCOLS_SHA`; these record provenance, 126 not a new wire or signing authority. Two mutants must fail the native-state 127 assertions: removing exit reconciliation, and bypassing actual artifact admission. 128 Infrastructure failure alone does not count as a killed mutant. Final integrated 129 receipts and exact pins are in 130 `evidence/aienet0-ledger-auth-audit-final-`20261028`/receipt.txt`; 131 the separately named old-pin controls are not final carrier integration evidence. 132 133 ## Prove before making a public claim 134 135 **P0 HOST:** four distinct local identities, one valid signed work offer, one bounded 10+ node MJB1 objective, a provider result, a separate verifier result, and one durable/once-only settlement. Missing signer/unknown wire/version, duplicate/expired/reordered message, unauthorized effect, cross-tenant request, bad computation, invalid fee, forged T profile, two concurrent reservations, restart at each transaction boundary and replay must each fail as intended. A fixture that merely hardcodes a successful arithmetic balance is NOT this gate. 136 137 **P1 PHYSICAL:** two separately owned or independently administered physical computers exchange one actual authorized job and check each other's authenticated identity. The existing live Spark 35B loopback server and all GPU locks remain untouched. Evidence includes exact source, compiler, protocol, target and machine identities, external verifier and raw latency/cost measures. No public listener, model checkpoint transfer or private trace sharing. 138 139 **P2 FEDERATED:** four independent physical peers, redundant routing between consenting nodes, direct completion after bootstrap is offline, owner-controlled discovery/revocation and cross-process crash-safe reconciliation. This gate is NOT_RUN until observed. 140 141 ## Publication and compatibility boundary 142 143 Publish protocol drafts, source, fixed public test vectors, evidence and failure cases. Invite compatible independently implemented clients only after at least two runtimes demonstrate interoperability; do not advertise formal Internet standardization or network-wide currency acceptance before evidence. Operators retain control of their machines, data, identities and credit budgets. No internet-scale launch, real-money tokens, speculative conversion rate, auto-deployment or self-replicating agent network is authorized by this draft. 144 145 This file asserts a narrow **public technical direction**: trustworthy, cross-hardware, proof-carrying compute exchanges with auditable resource settlement. It intentionally makes no claim of exclusive rights, a functioning public network or an independently qualified implementation.