Skip to content
QORECHAIN
Register

Post-Quantum AI Agents

QoreAgent

A post-quantum Layer 2 for AI agents: sandboxed agents, a keyless gateway and micropayments that settle to QoreChain.

Share on X

About

QoreAgent pairs an application-specific optimistic rollup, built with QoreChain's RDK, with a sandboxed execution layer for AI agents. Each task runs in its own sandbox with outbound network blocked by default and no host access. Every external call goes through a gateway that checks the user's signed permissions, keeps provider credentials out of reach and meters usage. Those metered charges become agent-to-agent micropayments on the L2. They're batched and settled on the QoreChain L1 with ML-DSA post-quantum signatures, and a watchtower can challenge any invalid batch. Identity, capability registries and spending policies stay on L1. Even a prompt-injected agent can't leak secrets, reach unapproved services or spend past its budget. Demo app, Qorax Liquidity Guardian: three agents guard a vault on the qorechain-diana testnet. A watcher buys ML-DSA-87-signed oracle ticks over x402, paid on the L2; an analyst scores risk in a sandbox with no network; an executor rebalances only through the vault, which enforces the user's signed mandate on chain (one pool, per-trade and per-day caps, slippage against the post-quantum oracle, a cash-out floor, a data budget and an expiry). Agent Studio builds new tools the same way: registry search, generated code, static checks, quarantine tests with no network and no secrets, owner review, an ML-DSA-87 provider signature, then publication in CapabilityRegistry, where every call is paid over x402. Live at https://qorax.aloysjehwin.com

How it's made

Architecture - Solidity contracts on qorechain-diana (Hardhat). AgentRollup v2 is the QoreAgent L2's settlement contract: batches of ML-DSA-87-signed cumulative vouchers posted as calldata, one-step fraud proofs that re-check signatures with the pqcVerify precompile, and Merkle withdrawals after a 600 s challenge window. AgentVault and AgentVaultFactory hold the user's mandate and enforce it on every trade (a refusal such as OverPerTxCap happens on chain). QoreOracle verifies ML-DSA-87-signed price reports on chain before a trade. Also TaskEscrow, AgentRegistry, CapabilityRegistry, PolicyManager and ReceiptRegistry (ERC-8004-style identity and capability manifests with x402 terms), and DeliverableRegistry/Data (sealed reports minted as ERC-721). - TypeScript monorepo: the gateway (x402 pay-per-call on L1 with qorechain-exact and on the rollup with qorechain-l2; signed-permission checks; provider credentials stay server-side), the L2 sequencer and watchtower, the Guardian agents (watcher, analyst, executor), Agent Studio (tool generation, static checks, quarantine tests in Vercel Sandbox or Docker, owner review, provider signature, on-chain publish), an MCP server, Qore Sentinel (an independent monitor that re-verifies every receipt) and a React console. Hosted as one Vercel function; locally each role is its own process with its own key. Kits and network features @qorechain/sdk for hybrid ML-DSA-87 accounts, key registration with proof of possession, scoped EVM windows and smart-account spending links; @qorechain/evm; @qorechain/qoresign for QoreX/QoreSign signatures; @qorechain/qoreseal (ML-KEM-1024 + X25519) for sealed reports; @qorechain/rdk for x/rdk reads and the watchtower's audits. Registering a rollup in x/rdk needs about 11,000 QOR on testnet, so settlement runs through AgentRollup on QoreChain's EVM. QoreX connects through EIP-6963. What was hard Fitting ML-DSA-87 into fraud proofs and settlement (about 258k gas per pqcVerify), keeping one sequencer consistent across serverless instances (it rebuilds from L1 calldata on a cold start), chain specifics (gas billed at 50% of the limit or more, eth_getLogs only in chunks of 10,000 blocks), and running generated code with no network and no secrets. Evidence on testnet A full Guardian session on 2 December: 105 oracle ticks, 210 L2 payments settled in 7 batches (about 1/16 the cost of an L1 escrow charge), 2 rebalances, and a sealed report minted as token #4. 632 automated tests. Development with Claude is documented in AI_USAGE.md.

Timeline

QoreAgentPost-Quantum AI Agents

Pushed 15 commits to main

  • 3e7a462 Update README with additional commands and credits · clatsonhacks(not counted: no real change)
  • 32a8f3e Fix formatting issues in README.md · clatsonhacks(not counted: no real change)
  • 89d221d QoreAgent L2: read history from L1 before answering on a cold instance · AloysJehwin
  • 288eb85 Agent Studio in the Guard section; hosted x402 for Studio tools · AloysJehwin
  • f05c68d Studio: Agent Factory as a node graph; live-site fixes · AloysJehwin

and 10 more commits

QoreAgentPost-Quantum AI Agents

Pushed 2 commits to main

  • a3efab1 README: QoreAgent intro with the live, video and project links · AloysJehwin
  • 8103cab Merge remote-tracking branch 'origin/main' · AloysJehwin(not counted: no real change)
QoreAgentPost-Quantum AI Agents

Submission ready: QoreAgent, a post-quantum Layer 2 for AI agents, is live at https://qorax.aloysjehwin.com. Demo (2:55): https://youtu.be/Eiquv77IoZk Today on qorechain-diana: - Live Guardian sessions: ML-DSA-87-signed oracle ticks paid over x402 on the QoreAgent L2, L2 batches posted to L1 (up to #21), and the vault refusing an over-cap trade on chain (OverPerTxCap). - Agent Studio published gen.pricing-compare 1.0.3: generated, tested in quarantine, approved, signed with ML-DSA-87, published on chain and sold per call over x402. - Custom domain and fixes for L2 receipts after a cold start. Code: https://github.com/AloysJehwin/qorax

QoreAgentPost-Quantum AI Agents

New project.

Comments and questions

  • No comments yet.