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 / evidence / aienet0-ledger-auth-20261028 / receipt.txt

118 lines · 7296 bytes Raw Blame History
1AIENET-0 AUTHENTICATED LEDGER ADAPTER: HOST_TESTED ONLY
2
3Scope and source
4- Stacked on aien-protocols-mv #65, feat/aienet0-canonical-stack head
5 b9ecd445be4fed62b78fca1bac4864e0a8405e97. Tracking issue #66.
6- Native ledger: aien-sovereign-core-mv #794,
7 6a0bfc0bb0b08d6fa08bc8109536218f50dd8b2c.
8- Restored adapter source:
9 evidence/aienet0-20261028/settlement/settle-run.sh.at-run
10 SHA-256 fc2f07e12a973a4496cb3f8b24f3a0c7d4ff04232e5c8f74efd3680dee7a1ef9.
11 That archived source and all historical evidence remain byte-identical.
12- New adapter SHA-256:
13 6efb6a3d977b4f827d904a8813cf33928f410b58ad1730c05317027cb38acaf6.
14
15Executable pins observed for these runs
16- LEDGER=/tmp/ledger-auth-bin-final
17 d12d05cda56604410b8716602a7e3988a0e90901d28294f04f6ea7d8081f435c.
18 Native .om verification; compiler omega-mv
19 6999fa9e6dae4847c155ef4eacaece74f491d3ca seed/out/omc,
20 d6290c7663c2b4bafb59eb3fdf812476e977f4c144def71095c6248ef9b96b84.
21- RUN=/tmp/an0/open-humanity-ref/target/release/aienet0-run
22 df012edfe24f35e07af74341d88df6f916fa395153768024a2867b3052972a4b.
23- SERVE=/tmp/an0/open-humanity-ref/target/release/aienet0-serve
24 872d55c9ab6a7f3cb6d8641587d8cb40db330a6ecca71d8574b5dbfe2d63f844.
25- RECOMPUTE=/tmp/an0/bin/matmul_u32_recompute
26 d2cd7382e0dc64e49498ae3b1ceffc73f1ddcbd3ddcf93e6d607498ccd58ea12.
27 Existing carrier/recompute binaries were reused, not freshly rebuilt.
28 Carrier checkout HEAD observed: 946ea8b29aa77e2805b9618b1ec4a2220a7306ef.
29- OpenSSL 3.0.13 is a host test-signing/public-key oracle. Runtime verification
30 is the Omega EC unit in the pinned Core binary. No production signer,
31 wallet, vault integration or constant-time native Omega signer is added.
32 Existing shell/coreutils, xxd and OpenSSL orchestrate this bounded fixture;
33 a future first-party Omega signer/fixture replaces the external signing
34 oracle only when separately implemented and qualified. Existing Rust stays
35 in the existing carrier crate. No new Rust/C/Python implementation is added.
36
37Provisioning and invocation
38- Generate coordinator transport/submitter/AN0V verifier and worker
39 transport/executor test scalars with `openssl rand -hex -out FILE 32` in
40 a private /dev/shm directory. Read only their public identities with
41 `RUN keys --keys KEYS` and `SERVE keys --keys WKEYS`.
42- PINS contains volunteer.ed25519 and executor.p256; WPINS contains
43 coordinator.ed25519 and submitter.p256. Public values are in public-keys.txt.
44- Generate two distinct disposable authority keys using
45 `openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -out FILE`.
46 Pin their uncompressed SEC1 public keys in authority. Pin SHA-256 of raw
47 submitter, volunteer transport and AN0V verifier public bytes as the role
48 owner/node identities. policy pin is SHA-256 of quote's exact no-LF bytes.
49 authority, quote and each mode's journal/authority retain public config.
50- Set AUTHORITY, QUOTE, ISSUER_KEY and VERIFIER_KEY; existing carrier env is
51 RUN SERVE LISTEN CONNECT KEYS PINS RECOMPUTE RECOMPUTE_SHA256 WKEYS WPINS WSTATE.
52 LEDGER is the native binary above. LISTEN/CONNECT used fresh loopback ports,
53 WSTATE was fresh for each run. No public listener, GPU or live 18091 access.
54- From the repository root, with fresh E and the environment above:
55 sh scripts/aienet0/settle-run.sh "$E" honest
56 sh scripts/aienet0/settle-run.sh "$E" tampered-receipt
57 sh scripts/aienet0/settle-run.sh "$E" tampered-attestation
58 Each exited 0. *.stdout and each mode/transcript.txt record actual commands,
59 signatures and return statuses. Canonical *.authorization, public DER
60 signatures, AN0B/MJR1/AN0V artifacts and journals are retained. All private
61 fixture keys and ephemeral worker replay state were removed after the runs.
62
63Expected / observed
64- Honest: artifact-check exits 0 and prints CHECKED with the same job/result
65 digests. The complete payout, signed AN0B hash and AN0V hash are authorized
66 by both pinned keys. First settle succeeds, second is already-settled and
67 journal SHA-256 is unchanged. Audit passes; exactly one settle record;
68 requester/provider/verifier = 70/27/3. RESULT PASS honest.
69- Tampered receipt: the actual carrier exits 12, MJB_FORGED_RECEIPT. No settle
70 authorization is created; issuer-authorized refund succeeds. Audit passes;
71 no settle record; balances = 100/0/0. RESULT PASS tampered-receipt.
72- Tampered AN0V: mutate the first countersignature byte after the online run.
73 Actual `aienet0-run check` exits 14, AN0_BAD_COUNTERSIGN. No settle
74 authorization is created; signed refund succeeds. Audit passes; no settle
75 record; balances = 100/0/0. RESULT PASS tampered-attestation.
76
77Negative controls / before and after
78- Legacy archived adapter with the new ledger exits 1 at unsigned prefund:
79 ledger exits 16 authorization (legacy-adapter.stdout). The migrated honest
80 adapter exits 0 and settles exactly once with the same native ledger.
81- A temporary mutant of the migrated adapter replaces its artifact-admission
82 condition with `authorized=yes`. It runs the actual AN0V checker, ignores
83 its refusal, signs the mutated AN0V and wrongly settles 70/27/3. The same
84 tampered-attestation test exits 1: decision settled, want refunded
85 (no-artifact-check.stdout). With the admission guard present, that test
86 exits 0 and refunds 100/0/0. The mutant was removed after use.
87- Core #794 separately records unsigned/wrong-key/changed-amount/job/quote/
88 receipt/AN0V, owner spoof, concurrent debit, journal replay, legacy format,
89 deterministic post-fsync interruption and 200 random-delay crash checks,
90 plus ten killed mutants. Those are not reclassified as RPC qualification.
91- An initial fixture launch omitted WPINS/submitter.p256 and correctly
92 aborted/refunded without settling. The required public pin was provisioned;
93 fresh output/state were used for the three successful runs. No admission
94 gate or source was relaxed to address that provisioning error.
95
96Historical integrity / syntax
97- `sh -n scripts/aienet0/settle-run.sh` exits 0.
98- `sha256sum -c SHA256SUMS` exits 0 in each of:
99 evidence/aienet0-20261028
100 evidence/aienet0-20261028/settlement/honest
101 evidence/aienet0-20261028/settlement/tampered-receipt
102 Raw outputs: baseline*.checksums.out. No historical receipt was edited.
103- specs/aienet/BASELINE.md SHA-256 at the stacked base and after this work:
104 f8bb3982de507c52fe011a28320b45f1185a5ef029b3e69a9d9243fdfa6b65d7.
105- `crumb compile .` exits 0: 51 crumbs, generated data on demand.
106 `bash tests/gates/run.sh crumb-verify` exits 0, 51 crumbs current.
107 `bash tests/gates/run.sh zero-disk-secrets` exits 0, env_files_found false.
108 `bash tests/gates/run.sh anti-slop` exits 0, dash_hits 0.
109 Unrelated Rust and complete spec-vector suites were not rerun locally;
110 no Rust, wire format, gate or workflow was changed by this companion.
111
112Evidence limits
113Distinct local test keys are not independent physical operators. This is a
114loopback host fixture and local durable ledger CLI, not a public network,
115production payment authority, Core RPC, interrupted-RPC test or hardware
116qualification. Historical baseline qualifications are not retroactively
117upgraded. External config provisioning, filesystem control and rollback
118protection remain operator trust boundaries, as documented by Core #794.