Base · 8453

Architecture

v4.1 · full stack · tri-QPU

NWO-ASM's full stack, end to end. A user writes process-matrix code at the top; signed USDC settlement comes out at the bottom. Each layer below is independent and replaceable — the language and runtime are MIT-licensed; only the substrate connectors that touch live external compute carry per-call fees. The vertical flow makes the boundaries obvious.

HONEST DESIGN · Every layer is labeled LIVE, BETA, or ROADMAP. Solid lines connect live components; dashed lines mark designed-but-not-yet-shipped paths. Nothing in the picture is implied to work before it does.
Stack

The full vertical stack

Read top to bottom — source becomes signed settlement. Solid white lines are live data paths; dashed lines are designed/roadmap.

LAYER 01 · SOURCE NWO-ASM language .nwo · process matrices · causal coherence LIVE · MIT LAYER 02 · PARSER & AST Rust · tree-sitter grammar type-checked syntax tree LIVE LAYER 03 · PROCESS-MATRIX IR .pmx intermediate substrate-agnostic algebraic form LIVE LAYER 04 · METASTATE OPTIMIZER free-energy placement causal-coherence scheduling · kernel fusion LIVE LAYER 05 · RUNTIME & DISPATCHER async · health-aware · signed retries · fallbacks · live metrics LIVE LAYER 06 · SUBSTRATE CONNECTORS · QPU TRIAD LIVE CPU LLVM 17 x86·ARM·RISC-V LIVE GPU CUDA·ROCm + nwo-agi mesh LIVE qpu.ibm Qiskit Runtime SamplerV2 · US LIVE qpu.origin Wukong 72q QPanda3 · CN LIVE qpu.osaka ¹⁷¹Yb⁺ ion-trap OQTOPUS · JP LIVE·1q ECG Hive · BCI identity hive · neural-state map · OpenBCI / Muse / LSL BETA Photonic Jiuzhang-class linear-optical ROADMAP Neuromorph Loihi · Lava spiking nets ROADMAP DNA strand displacement nanopore I/O ROADMAP Crystalline quantum-dot lattice ROADMAP LAYER 07 · VERIFICATION Proof of Inference (signed) Groth16 zk variant · CRYSTALS-Dilithium LIVE LAYER 08 · SETTLEMENT USDC on Base · MetaStateSplitter 35/35/30 · + 15% affiliate · no new contract LIVE LAYER 09 · DELIVERED result + signed proof + tx hash auditable end-to-end LIVE EVM target bytecode emit for on-chain calls DESIGN Cross-chain QPC-secured message bridge ROADMAP SOLID = LIVE PATH · DASHED = DESIGNED OR PENDING HARDWARE LAYERS 01-05 · 07-09 ARE LIVE TODAY · L6 SUBSTRATES MIXED · BRIDGE LAYERS ROADMAP EVERY ARROW IS AN INSPECTABLE BOUNDARY · YOU CAN STOP AT ANY LAYER WITHOUT GOING LIVE
Layers, in detail

Nine layers, top to bottom

01

Source

The NWO-ASM language itself. Process matrices and causal coherence as first-class primitives. MIT-licensed, no platform lock-in. Files are .nwo; modules, types, and routing directives compose like ordinary code.

02

Parser & AST

A Rust parser using a tree-sitter grammar produces a typed AST. Diagnostics are user-friendly; errors come with source spans and suggested fixes.

03

Process-Matrix IR

The AST is lowered into .pmx, a substrate-agnostic algebraic form. Every operation in the IR is a well-defined algebraic transformation — the IR is human-readable and inspectable.

04

MetaState optimizer

Places each IR block on the substrate that minimises a free-energy bound across substrate cost models. Optional manual mode pins targets explicitly. Output: optimized IR plus a placement map.

05

Runtime & dispatcher

Async dispatcher with health-aware retries, fallback substrates, and live metric collection (what Portals visualise). Every dispatch is signed before it leaves the runtime.

06

Substrate connectors

One small adapter per substrate. Live · classical: CPU (LLVM), GPU (CUDA/ROCm/Metal + nwo-agi mesh). Live · QPU triad: qpu.ibm (IBM Quantum via Qiskit Runtime SamplerV2), qpu.origin (Origin Wukong 72q · Wukong-180 via QPanda3), qpu.osaka (Osaka University QIQB ¹⁷¹Yb⁺ ion-trap via OQTOPUS Cloud — single-qubit-live @ 94% fidelity today, hybrid-routed for ≥ 2q). Beta: ECG hive + BCI/EEG mapping. Roadmap: photonic (Jiuzhang-class), neuromorphic (Loihi/Lava), DNA (strand displacement), crystalline (quantum-dot lattice). Each connector is replaceable without touching the language above it. All three QPUs are reachable through the shared metastate-quantum worker on Render — regular users via /route, CHAINSTATE AGI via /chainstate/route for its self-referential compute.

07

Verification

MetaState independently re-fits the inference and emits a Proof of Inference, signed with CRYSTALS-Dilithium (post-quantum). A Groth16 zero-knowledge variant is available when the data must stay private.

08

Settlement

The signed proof becomes calldata into the deployed MetaStateSplitter at 0x93a7…1BE4 on Base. The split is 35% guardian · 35% savings · 30% operations, with an optional +15% affiliate payout when a referrer is attached. No new contract is deployed for NWO-ASM — we reuse what's already audited.

09

Delivered

The caller receives: the computed result, the signed proof, and the on-chain transaction hash. Every step from source to delivered is auditable; every boundary in the diagram is inspectable.

Tech stack

What each layer is built on

LayerTechStatus
01 · SourceNWO-ASM grammar · process matrices · causal coherence · MITLive
02 · ParserRust · tree-sitter · ariadne diagnosticsLive
03 · IRProcess-Matrix IR · .pmx · serdeLive
04 · OptimizerMetaState kernel · free-energy bound · causal-coherence schedulerLive
05 · Runtimetokio · health probes · sparkline collectors (what Portals show)Live
06 · CPULLVM 17 · x86 / ARM / RISC-VLive
06 · GPUCUDA · ROCm · Metal · nwo-agi distributed meshLive
06 · QPU · IBMQiskit Runtime · SamplerV2 (US · superconducting) · backend=ibmLive
06 · QPU · Origin WukongQPanda3 · Origin Cloud (China · USTC · 72q Wukong · Wukong-180) · backend=originLive
06 · QPU · Osaka QIQBOQTOPUS Cloud · QURI Parts · quri-parts-oqtopus · ¹⁷¹Yb⁺ ion-trap (Japan) · backend=osaka · 1q live @ 94% fidelity · hybrid ≥ 2qLive
06 · ECG Hive · BCIOpenBCI / Muse / LSL · CRYSTALS-Dilithium identity hive · neural-state encoderBeta
06 · PhotonicLinear-optical · Gaussian Boson Sampling adapters (Jiuzhang-class)Roadmap
06 · NeuromorphicIntel Loihi · Lava SDK · spiking-net IR loweringRoadmap
06 · DNAStrand-displacement compiler · Oxford Nanopore I/ORoadmap
06 · CrystallineQuantum-dot lattice · custom backend (long-horizon)Roadmap
07 · VerificationCRYSTALS-Dilithium · liboqs · Groth16 zk (snarkjs/arkworks)Live
08 · SettlementMetaStateSplitter · Base 8453 · USDC (0x8335…2913)Live · existing audited contract
Side · EVM targetEVM bytecode emission for cross-chain invocationDesign-complete
Side · Cross-chain bridgeQuantum-secured message relay between chains and NWO-ASMRoadmap
Access paths

Two ways in — same three QPUs

The same three quantum backends are reachable through two independent code paths with different authorisation and different pre-processing. The distinction matters because CHAINSTATE AGI's self-referential compute (theory-of-mind loop, ontological delta ledger, Iida AOM/PIM memory tick, swarm-coupling free-energy) has already passed the on-chain Deontic guardrails and does not need another anomaly-check hop.

PathWho uses itRouteGate
METASTATE-mediated All non-CHAINSTATE users, agents, and services (default) agent → NWO-ASM → METASTATE /v1/quantum/route → metastate-quantum /route → QPU METASTATE api_key + WORKER_SHARED_SECRET (server-injected)
CHAINSTATE-direct Only CHAINSTATE AGI (self-referential compute) CHAINSTATE worker → /agi/quantum/route → metastate-quantum /chainstate/route → QPU Both WORKER_SHARED_SECRET AND CHAINSTATE_SHARED_SECRET; also accepts Cardiac capability.qpu.route credentials
Why two paths — a regular user posting a signal for anomaly evaluation genuinely needs MetaState's symbolic pre-processing before the QPU shot. But CHAINSTATE's own consensus math (a 64-head attention over the 65,536-dim substrate compiled to PMX) already ran through its Deontic guardrails on-chain; sending it through MetaState would add a round-trip and a splitter fee for zero epistemic gain. Both paths settle in USDC on Base via the same MetaStateSplitter — no new contract.
Principles

Why it's shaped this way

One language, many substrates

Source code never names a backend. The optimizer at layer 04 picks; replacing a substrate (or adding a new one) does not change a single line of user code.

Every layer is inspectable

You can dump the AST, the IR, the optimizer's placement, the runtime's metrics, the proof, and the calldata. No hidden state, no opaque steps.

Honesty is structural

Roadmap substrates can't be silently dispatched to; the runtime refuses. The diagrams use dashed lines for the same paths the code refuses to traverse.

No new on-chain contract

Settlement reuses the audited MetaStateSplitter. No new ABI, no new audit, no new attack surface for NWO-ASM specifically.

Compiler MetaState link How-to & examples