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
aien-sovereign-core-mv / tests / turing-network / README.md
| 1 | # TUR-R0 native Omega conservation fixture |
| 2 | |
| 3 | Status: SOURCE_COMMITTED / OMEGA_COMPILE_NOT_RUN / PHYSICAL_NETWORK_NOT_RUN. |
| 4 | |
| 5 | This test-only program belongs to [Core #738](https://github.com/aien-dev/aien-sovereign-core-mv/issues/738) and the four-peer [Aienet-0 interoperability proposal](https://github.com/aien-dev/aien-protocols-mv/blob/feat/aienet0-foundation-20261027/specs/aienet/P0_INTEROP_PROFILE.md). It exercises deterministic **integer** accounting within one in-memory Omega process. It is an **independent arithmetic oracle for future Core escrow**, not a wallet, persistent ledger, authenticated transport, billed job or network deployment. |
| 6 | |
| 7 | File: `tests/turing-network/tur_r0_oracle.om` |
| 8 | |
| 9 | ## Exact host test |
| 10 | |
| 11 | Run from a clean checkout on **Linux AArch64**, with an independently pinned and rebuilt Omega compiler: |
| 12 | |
| 13 | ```sh |
| 14 | # 1. In your separately checked-out aien-dev/omega-mv worktree: |
| 15 | sh seed/omega-from-seed.sh |
| 16 | sha256sum seed/out/omc |
| 17 | OMC="$PWD/seed/out/omc" |
| 18 | |
| 19 | # 2. In this aien-sovereign-core-mv PR worktree: |
| 20 | mkdir -p build/turing-network |
| 21 | "$OMC" < tests/turing-network/tur_r0_oracle.om > build/turing-network/tur_r0_oracle |
| 22 | chmod 700 build/turing-network/tur_r0_oracle |
| 23 | sha256sum tests/turing-network/tur_r0_oracle.om build/turing-network/tur_r0_oracle |
| 24 | build/turing-network/tur_r0_oracle |
| 25 | # Expected stdout, exit 0: TUR_R0_ORACLE_PASS |
| 26 | ``` |
| 27 | |
| 28 | **Important:** the command comments are instructions, not proof that these steps were executed. In the current proposal session no AArch64 compiler binary or Spark execution environment was available; all host and chip execution remains NOT_RUN. Preserve stdout, stderr and status separately when reproducing. |
| 29 | |
| 30 | ## Expected in-memory transitions |
| 31 | |
| 32 | - Opening: requester=100, provider=0, verifier=0, observer=0, escrow=0. |
| 33 | - Refuse overdraft reservation of 101; reserve 40 against logical job 7; refuse a second reservation. |
| 34 | - Refuse settlement against wrong job 8; refuse a 41-unit payout from 40-unit escrow. |
| 35 | - Settle job 7 exactly once: provider 27, verifier 3, requester refund 10. |
| 36 | - Refuse identical settlement on replay. Final requester/provider/verifier/observer=70/27/3/0, escrow=0. |
| 37 | - Every assertion has its own nonzero exit code; only a complete pass prints the PASS marker. |
| 38 | |
| 39 | Independent **Wolfram Language** reference evaluated the same transitions, returning all expected boolean verdicts, final balances `{70,27,3,0}`, escrow zero, and conservation TRUE. That confirms the mathematical scenario, **not the Omega source executable**. |
| 40 | |
| 41 | To test a deliberately broken expected balance, alter only the assertion for the provider's final balance from `27` to `28` in a disposable copy, rebuild it, and require exit 14 (or report precise compiler failure). Never overwrite the original fixture. |
| 42 | |
| 43 | ## What remains before an economic or network claim |
| 44 | |
| 45 | 1. Integrate with **one real, durable authoritative Core fixed-point service-credit journal**, rather than promoting this in-memory reference into a new wallet. |
| 46 | 2. Bind ownership and payments to canonical MJB1/MJR1 job and independent verifier receipts, signed peer identities and a crash-safe idempotency key. |
| 47 | 3. Qualify each signature, concurrency, cancellation, restart boundary, corruption, overpayment and release/refund negative control. |
| 48 | 4. Connect to actual Open Humanity transport **only after** mutual opt-in and separated owners. Complete a two-physical-node work exchange before claiming network operation. |
| 49 | 5. Keep profile-bound scientific Turing information separate from pre-funded, spendable TUR test credits. This example issues no credit and has no monetary value. |
| 50 | |
| 51 | Do not send jobs to the live 35B server or acquire the GB10 for this CPU-only fixture. |
| 52 | |
| 53 | ## Spark run (2026-10-28, HOST_TESTED) |
| 54 | |
| 55 | `OMC=<seed-born omc> sh tests/turing-network/check.sh` on the DGX Spark (Linux AArch64), omc sha256 |
| 56 | `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f` (omega-mv e5b32567): oracle exit 0 with |
| 57 | `TUR_R0_ORACLE_PASS`; six mutants each fail with their intended code (provider assertion 14, overdraft guard 1, |
| 58 | single-reservation guard 6, job-id guard 7, replay guard 20, refund guard 8). |
| 59 | |
| 60 | The first run found that deleting the replay guard went unnoticed: after settlement the escrow is 0, so the replayed |
| 61 | 27-unit payout already failed the amount check. A zero-amount replay (`settle 7 0 0 0`) passes every amount check, so |
| 62 | the fixture now asserts it is refused (exit 20), and only the phase guard can catch it. |