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-sovereign-core-mv/blob/main/evidence/aienet0-tur-ledger-20261027/audit-v2-notes.txt # aien-sovereign-core-mv AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination. 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-sovereign-core-mv / evidence / aienet0-tur-ledger-20261027 / audit-v2-notes.txt` 108 lines ยท 7720 bytes Raw Blame History 1 HOST_TESTED: Core #794 independent-audit fixes (2026-10-28). 2 No Core RPC, GPU access, physical power loss, deployment or economic qualification is claimed. 3 Original v1 receipts, authentication receipts and the earlier capacity receipts are unchanged. 4 5 Pins 6 ---- 7 Compiler source: omega-mv `6999fa9e6dae4847c155ef4eacaece74f491d3ca`. 8 omc SHA256: `d6290c7663c2b4bafb59eb3fdf812476e977f4c144def71095c6248ef9b96b84`. 9 Final native source: `8e16f25dd7be21d9dea94252b4ad0ab3b30ac107e4445ed81224d29982e1aadd`. 10 Final native binary: `0338edb18a1fba9ecd7fa8ae294045184bfeb2e72530340017ce719acc682768`. 11 Final gate: `8f96325dc3db714edf6837d4c78fb3e8ccc27dcc8e7a56798a5079fa152b2c21`. 12 SHA and EC unit pins are printed in audit-v2-check.out. 13 Before-audit source: `f47d8c6374f5e8a49068cc5372e97582e3eb81e87c5e53a661ea62ebb4279713`. 14 The byte-identical frozen source is audit-v2-before.om.at-run. This before specimen already 15 has the authorization and capacity corrections, isolating the added audit regressions. 16 The source/gate called final in capacity-v2-notes.txt are final for that earlier capacity run, 17 not the later audit run. Its evidence remains historical; the pins above are the later ones. 18 19 Regression commands and observations 20 ----------------------------------- 21 Working directory: the Core checkout. OMC below is /tmp/ledger-auth-omega/seed/out/omc. 22 23 OMC="$OMC" TUR_LEDGER_AUDIT_SOURCE=/tmp/ledger-auth-audit-before.om bash om/tur-ledger/check.sh 24 exit 1; audit-v2-before-final.out. The frozen temp source is the archived before specimen above. 25 OMC="$OMC" TUR_LEDGER_AUDIT_SOURCE=om/tur-ledger/tur-ledger.om bash om/tur-ledger/check.sh 26 exit 0; audit-v2-after.out, all audit regression assertions PASS. 27 OMC="$OMC" CRASH_N=200 MUTANT_CRASH_N=0 TUR_LEDGER_OUT=/tmp/ledger-auth-audit-bin bash om/tur-ledger/check.sh 28 exit 0; audit-v2-check.out: SUITE PASS, all 17 mutants killed, TUR_LEDGER gate: PASS. 29 30 These are the regression entry points; the archived sources and printed hashes make the 31 before/after reproducible without retaining any ephemeral private signing key. OpenSSL 32 3.0.13 is the independent signing oracle; verification and ledger transitions are native Omega. 33 The targeted runs use fresh randomized test signatures, so byte sizes can differ across runs. 34 35 A1: failed fsync followed by an unsynchronized duplicate acknowledgement 36 --------------------------------------------------------------------- 37 Before: first injected fsync EIO returned 3 but left the prefund record in the journal; 38 the second injected invocation returned 0/dup. All four mutation duplicates returned 0 39 without any journal fsync. The same audit assertions fail against the archived before source. 40 After: each of two injected fsync failures returns 3, emits no acknowledgement, and restores 41 exact original bytes and size; audit finds no torn tail. The clean retry actually writes, 42 fsyncs and acknowledges prefunded. For prefund/reserve/settle/refund duplicates, injected 43 fsync EIO returns 3 without output or journal mutation; clean retry synchronizes the actual 44 journal fd before stdout. The test resolves that fd from strace openat output, so a directory 45 fsync cannot accidentally satisfy this assertion. Directory durability is also required. 46 The append's rollback is best-effort: if rollback itself fails, no success is acknowledged; 47 a later valid retry must still cross a fresh journal and directory durability barrier. 48 Mutants no-sync-rollback and no-duplicate-sync are both killed. Existing no-fsync is killed too. 49 50 A2: capacity can trap existing escrow 51 ------------------------------------ 52 Before and the first fixed run are preserved in capacity-v2-* and their SHA256 manifest. 53 The production fixture has 65,536 occupied slots and valid signatures. Before, both settle 54 and refund returned 14. Fixed, new allocating operations refuse cleanly while existing 55 settle/refund succeed. The final audit source also passes the ten-slot CLI boundary tests; 56 capacity-lockup and no-slot-preflight mutants die. audit-v2-full-capacity.results.tsv and 57 .out separately record a replay of the same production fixture with the final binary above. 58 See capacity-v2-notes.txt for the public gzip fixture and exact four signed CLI vectors. 59 60 A3: issuer/verifier authorization 61 -------------------------------- 62 The original unsigned prefund reproducer and authentication-v2 controls are preserved in 63 auth-v2-*. The final gate still refuses unsigned calls (2), wrong keys or changed canonical 64 fields (16), invalid/unsigned complete replay records (5), old journals (5), and config/policy 65 changes (5). Honest issuer+verifier settlement pays exactly once. Issuer-only settlement, 66 issuer substitution for the verifier, altered job/amount/receipt/quote/attestation/job-envelope 67 hashes are refused. Native no-issuer-signature, no-verifier-signature and no-owner-pins mutants 68 die. This does not claim the ledger parses artifacts: protocols #67 is the bounded signer 69 adapter that checks actual bytes/signatures before authorizing them. 70 71 A10: newline-terminated corrupt last record must not be rolled back 72 ---------------------------------------------------------------- 73 Before: after an acknowledged settlement, changing its amount in the complete final line 74 made audit, refund and show succeed instead of refusing; the old tail-recovery rule discarded 75 that acknowledged line. After: all three return 5 and preserve identical corrupted bytes. 76 A separate control changes only its final chain hash, keeping the signed body valid: it too 77 returns 5 unchanged. Restoring the trusted good fixture shows the original settled 27/3/10. 78 Only unterminated tails recover; the existing cut/unclosed-tail tests still pass. Mutant 79 terminated-tail-recovery dies; the independent signed-tail hash assertion kills no-hash-chain. 80 81 A11: whitespace argv must not be silently re-split 82 ------------------------------------------------ 83 Before: separately signed canonical records passed as a fused PID/account argument, a fused 84 command/PID argument, or fused account arguments were accepted (0). After: each returns 2 85 before dispatch and leaves the journal unchanged. lbarg rejects ASCII whitespace/control 86 bytes within every actual argv element before joining fields. The argv-whitespace mutant dies. 87 88 A12: already-reserved is not a terminal-phase acknowledgement 89 ---------------------------------------------------------- 90 Before: replaying the identical signed reservation after either settlement or refund returned 91 0/already-reserved. After: the same open-job retry still returns 0/already-reserved; the two 92 terminal-phase retries return 10 and leave the journal unchanged. This regression has an 93 independent fresh fixture, so the whitespace tests cannot contaminate its outcome. 94 The reserve-closed-phase mutant dies. 95 96 Crash controls and limits 97 ------------------------- 98 The final run killed 200 actual processes; all 200 kills happened before a new durable record 99 (durable-before-kill 0). Each kill was followed by audit and signed retry, and final balances 100 matched the control: 100 settled jobs, open 0, prefunded/balances `1000000`, escrow 0. Different 101 randomized signatures mean independent journal byte hashes need not match. Do not call these 102 200 post-fsync kills. The separate deterministic strace SIGKILL occurs after successful fsync 103 and before stdout, then requires an already-settled retry with no second payment. 104 No interrupted-RPC or physical power-failure qualification is inferred from local CLI tests. 105 106 Mounted Omega tool use is separately recorded in audit-v2-omega-tools.txt. That server's older 107 pin is not silently substituted for the actual newer compiler/gate pins above. Application 108 README/evidence were updated; no language/compiler/shared-harness example or ownership changed.