Skip to content
QORECHAIN
Register

Post-Quantum AI Agents

Steward

An AI clerk pays vendor invoices on QoreChain and cannot be talked into paying anyone else.

Share on X

About

Teams want an AI agent to handle accounts payable, but an agent that holds a wallet key can be prompt-injected into draining it. In Steward, a real LLM reads each invoice and proposes pay, queue, skip or flag. It is allowed to be wrong. A deterministic policy checks every proposal; QoreChain's smart-account spending rule lets the agent key call only PayGate.pay or PayGate.queue; and PayGate pays only a vendor's registered payout, only with that vendor's fresh ML-DSA-87 invoice signature, within caps. On Diana testnet a fooled model's payment to an attacker was refused on chain and moved 0 fUSD, while Claude Opus 5.5 and NVIDIA Nemotron each planned and paid a real invoice. Post-quantum signatures mean a forged invoice or owner approval stays invalid after classical keys break. Attack the real clerk yourself, no wallet: https://steward-amber.vercel.app/jailbreak (Nemotron and LFM free, Claude Opus 5.5 under a daily cap).

How it's made

Agent. agent/planner.ts sends each invoice (marked untrusted) to an LLM through a decide_invoice tool; src/ts/policy.ts then clamps the proposal deterministically, and a model can only make it more cautious. Every decision goes into a hash-chained, ML-DSA-signed receipt naming the planner model. Contract. PayGate holds fUSD and checks token, amount, approved vendor, registered payout, unused invoice ID, the vendor's ML-DSA-87 signature (pqcVerify 0x…0a01 against pqcKeyStatus 0x…0a02, via VendorSig/PqAuth from haven-pq-kit), then caps. Over-cap invoices queue until the owner approves with ML-DSA-87; registry changes wait a timelock, pause is immediate. QoreChain pieces. The agent key is linked with a spending rule (1 uqor, 0 denoms, only pay/queue); direct fUSD.transfer and bank send were refused. On 24 November the agent registered its own key with proof of possession and opened its own scoped window, and the chain enforced target, value, count and duration. Owner actions run in windows scoped to PayGate (hybrid ML-DSA-87). The mandate is signed with QoreSign and sealed with QoreSeal to the agent's ML-KEM-1024 key. MCP powers npm run evidence; QoreScan powers npm run cbom:check. Web. /jailbreak runs the real model, the policy on live state and an eth_call of PayGate; /gate verifies a payment's signature live. Testing. 71 Foundry, 84 TypeScript; npm run evidence 46 passed, 0 failed. Limits. A stolen vendor key can bill to its own payout up to the caps until paused; /jailbreak simulates and broadcasts nothing. README: "Judge it in 5 minutes", "Where the PQC checks are (for jurors)", "Credits". Contracts (qorechain-diana): PayGate 0xb0c44d0a628c4593314a5c3c113d27f2d1842a05 · agent account qor1nsu8dusrx4fd22f7dm72mlkc00lt0e477k0fel (own ML-DSA-87 key and scoped window). Attack the real AI: https://steward-amber.vercel.app/jailbreak · every key transaction with explorer links: https://github.com/datharnu/steward#proof-table

Timeline

StewardPost-Quantum AI Agents

Newly verified on chain: MCP server or qore CLI, QoreScan

StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • fb0dc77 Shorter README with a 2-minute check; evidence moved to docs/EVIDENCE.md · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • 7952a61 Centred README header with logo and Built on QoreChain badge; bring the summary up to the 30 Nov runs; no hard-coded Courier bundle expiry. · datharnu
StewardPost-Quantum AI Agents

Pushed 2 commits to main

  • 15b9ba2 Link the updated demo video with a live /jailbreak recording, and record the gate top-up. · datharnu
  • 494a01a Update the evidence count to 63 (gate top-up included). · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • 5998c0b Record a live Courier -> Steward payment and a second vendor. · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • 09b274f Refuse Courier invoices already paid through MemoPay or used in PayGate. · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • 9f68c3c Record in-block refusals inside the agent's own window, with hashes. · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • 979630d Add a proof table with full hashes and explorer links. · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • 79c47dc Expand the project page: rubric mapping, kit checklist and current evidence · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • e9dc50e Fix the evidence count in Run locally and add what each browser demo can't show · datharnu
StewardPost-Quantum AI Agents

First on-chain deployment detected on testnet.

StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • e0f8783 Record the agent's own scoped EVM window enforcing all four limits. · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • d994137 Map the README to the official judging rubric and add a Credits section. · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • f628a72 Rotate the FAQ icon, not its box, so the open item stays inside the page. · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • c1c4e6a Name the elements past the right edge when the overflow smoke test fails. · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • 0c55da8 Add /jailbreak: visitors attack the real AI clerk, and the policy and PayGate still refuse. · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • da69769 List the PQC call sites for jurors and note the shared deployer. · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • f6fc95a Give the demo video cover a centred play button · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • 59b5a38 Use the project screenshot as the demo video cover · datharnu
StewardPost-Quantum AI Agents

Pushed 1 commit to main

  • 90e9c80 Add the demo video to the README and project page · datharnu

Comments and questions

  • No comments yet.