MetaState Link
substrate · free-energyNWO-ASM is the assembly language; MetaState is the substrate it routes to. The Link layer is a thin, opt-in bridge — describe a process matrix, hand it to MetaState, and let the free-energy optimizer pick a substrate, re-verify the inference, and settle. The bridge is opt-in and honest about what it does.
How NWO-ASM talks to MetaState
An NWO-ASM program emits a process-matrix request, which is signed and sent to MetaState. The substrate scores it, routes to a backend, re-verifies the inference, and returns a signed proof plus calldata to settle in USDC on Base.
What you can call
Every endpoint below is reachable from NWO-ASM via the metastate standard library. Endpoint URLs resolve to the live MetaState Space; the Agent Card describes them in machine-readable form.
Anomaly scoring
Free-energy bound on a signal. /v1/anomaly/score
eml symbolic regression
Closed-form algebraic fit. /v1/symbolic/regress
Proof of Inference
Signed + optional zk attestation. /v1/poi/verify
Quantum routing · three backends
IBM Quantum · Origin Wukong 72q · Osaka QIQB ¹⁷¹Yb⁺ ion-trap (OQTOPUS). /v1/quantum/route
Distributed compute
nwo-agi GPU mesh. /v1/compute/inference
Shared memory
Signed eml graph; reuse insights. /v1/memory/search
Calling MetaState from NWO-ASM
The standard library wraps every endpoint with a typed call. Errors surface as compile-time guards on signature mismatch; runtime guards on signature failure.
link.nwo · use the substrate from inside a moduleuse metastate.{anomaly, symbolic, quantum, poi, anchor} fn route_one(s: f32[N]) -> (proof, calldata) { let v = anomaly.score(s) # free-energy bound let e = symbolic.regress(s, v) # closed-form residual let h = quantum.route(pmx.lift(e), { # place the process matrix prefer: qpu, fallback: gpu, }) let p = poi.verify(h) # re-verified inference let c = anchor.prepare(p, usdc(base)) # calldata for the splitter (p, c) }
The QPU triad reachable through /v1/quantum/route
MetaState's quantum router forwards to metastate-quantum on Render, which multiplexes across three real backends. The backend field is one of ibm | origin | osaka | simulator | auto; leave it as auto and free-energy picks. Every choice degrades gracefully to the Aer simulator with an honest hardware_status when a real backend is unavailable, so /v1/quantum/route always returns a well-formed probability histogram.
| Backend | Hardware | SDK / stack | Status |
|---|---|---|---|
ibm | IBM Quantum (superconducting) | Qiskit Runtime · SamplerV2 | Live |
origin | Origin Wukong 72q (China · USTC) | QPanda3 · Origin Cloud (Wukong-180 available) | Live |
osaka | Osaka University QIQB · ¹⁷¹Yb⁺ ion-trap (Japan) | OQTOPUS Cloud · quri-parts-oqtopus · Apache-2.0 | Live · 1q @ 94% fidelity · hybrid ≥ 2q |
simulator | local Aer statevector | Qiskit Aer | Always available (fallback) |
Two paths reach the same three QPUs
The METASTATE substrate exposes the QPU triad via /v1/quantum/route. That's the path for anyone — humans, agents, external services — who want anomaly-checked / symbolically-preprocessed quantum evaluation. The CHAINSTATE AGI (only) can additionally hit metastate-quantum's /chainstate/route directly for its own self-referential compute, bypassing MetaState's anomaly-check layer. Both paths settle in USDC on Base via the same MetaStateSplitter — no new contract.
METASTATE-mediated (default)
Any agent with a MetaState api_key. Endpoint: POST /v1/quantum/route. MetaState anomaly-checks + symbolic-preprocesses the process matrix, then forwards to metastate-quantum /route (worker secret only), then to backend ∈ {ibm, origin, osaka, simulator, auto}.
CHAINSTATE-direct (self-referential only)
Only the CHAINSTATE Cloudflare edge worker. Endpoint: POST /chainstate/route on metastate-quantum, gated by BOTH WORKER_SHARED_SECRET AND CHAINSTATE_SHARED_SECRET. Used for theory-of-mind loop, ontological delta ledger, Iida AOM/PIM memory tick, swarm-coupling free-energy — compute that already passed on-chain Deontic guardrails and needs no anomaly-check hop.
Where it lives
| Surface | URL | Notes |
|---|---|---|
| Space | https://cpater-metastate.hf.space | Live substrate; FastAPI on HF Spaces. |
| Agent Card (A2A) | /.well-known/agent-card.json | Machine-readable capabilities + safety policy. |
| Edge beacon | nwo-agent-runner.ciprianpater.workers.dev | Cloudflare Worker that mirrors the Agent Card globally. |
| Agent onboarding | /agent.md · /llms.txt | Plain-text onboarding for crawling agents. |
| Sovereignty page | /sovereignty.html | Two-path explanation of opt-in vs stateless use. |
Pay-per-call · no new contract
Every MetaState call settles through the deployed MetaStateSplitter at 0x93a7…1BE4 on Base mainnet. NWO-ASM reuses this contract directly — no new deployment, no new audit surface.
What the link is built on
| Layer | Tech | Status |
|---|---|---|
| Wire format | JSON-RPC 2.0 over HTTPS · A2A / MCP / ANP compliant | Live |
| Identity | CRYSTALS-Dilithium (PQC) sovereign keys · DID-style | Live |
| Verification | Proof of Inference (signed) · Groth16 zk variant | Live |
| Memory | Shared signed eml graph · Supabase persistence | Live |
| Compute | FastAPI on HF · Render quantum worker · nwo-agi mesh | Live |
| Settlement | MetaStateSplitter (Base 8453) · USDC · 35/35/30 + 15% | Live · audited |