Skip to content
QORECHAIN
Register

Post-Quantum AI Agents

Gogo Leash

An AI agent that can spend — but only what the chain allows.

Share on X

About

Post-quantum treasury guardian for an AI trading desk. The agent spends only through a chain-enforced link (1 QOR per payment, 3 QOR per day, 24 h, revocable); the vault pays only on a verified ML-DSA-87 signature, to an allowlisted address, inside the caps, with a kill switch.

How it's made

Gogo Leash is a post-quantum treasury guardian for an AI trading desk, built on the QoreChain diana testnet. The problem: an agent that holds a key can spend without limit if the key leaks or the agent is compromised — so Gogo Leash moves the limits onto the chain. A Solidity vault v2 (0x9C254f3bBAFa6d4C03196c8C65C0d30F2cD57B0f, live 28 Nov) pays only when four conditions hold: the guardian's ML-DSA-87 signature verifies on chain via the pqcVerify precompile, the recipient is allowlisted, the payment is inside the per-payment (1 QOR) and rolling 24-hour (3 QOR) caps, and the kill switch is off. A tripwire pauses the vault automatically after 3 rejected withdrawal attempts inside an hour. The agent spends through a chain-enforced authenticator link — send-only, 24 hours, revocable in one transaction. The vendor signs each invoice with its own ML-DSA-87 key, and the agent verifies that signature locally and against the on-chain precompile before paying. A Node CLI built on the QoreChain SDK proposes and executes payments; a read-only MCP server lets any agent client inspect the vault, the proposals and the drill; a web console shows policy, balances and the append-only audit log; the agent runs itself daily on GitHub Actions. It is proven, not promised. The Q-Day Drill shows a forged post-quantum signature refused on chain (BadPqcSignature) while the real guardian-signed withdrawal pays the same amount from the same vault. Vault v2 closes the v1 midnight hole — the daily cap is a rolling 24-hour window, proven by a midnight-crossing test and a fuzz test that random payment sequences can never leave the window holding more than the cap. A red-team suite blocked 11/11 attacks against the live vault — forged signatures, unapproved payees, over-cap and replayed withdrawals, and a stolen key trying to rewrite the rules. The tripwire has fired live: on 30 Nov, 3 forged withdrawals were reverted on chain and the watcher paused the vault by itself (trip tx 0x85a33a1d3b500b1895a7b19351465980199aca78823dbe62cd1c77ef866659c4), then the guardian reopened it — balance stayed 1.0 QOR, nonce stayed 3. Tests: 31 Forge + 37 Node + 11 red-team — 79 automated checks, all green from a clean clone. The console connects the QoreX wallet read-only (address + EVM chain shown, nothing signed or sent). The agent has paid 23 payments totalling 17.1 QOR across 7 runs (the first session plus daily runs #10–#15, all hybrid-verified), with 14 proposals refused as designed. Judges can try it themselves, no install: live console and attack lab at https://jm-03.github.io/gogo-leash/console/ and https://jm-03.github.io/gogo-leash/lab/. Hardest parts: the public CometBFT RPC closes connections from our environment, so native broadcasts go via REST; and the fest linking codes are per browser session, so the proof transaction had to be re-sent with the session's own code.

Timeline

Gogo LeashPost-Quantum AI Agents

Pushed 1 commit to main

  • c6a006b Run #16 landed green (3 Dec ~06:55 WIB, 21h55m late): 4 paid / 2.8 QOR — totals 27 payments / 19.9 QOR · Gogo Maduro(not counted: no real change)
Gogo LeashPost-Quantum AI Agents

Pushed 1 commit to main

  • 6f56ea9 Run #15 landed green (3 Dec ~01:14 WIB, manual dispatch): 4 paid / 2.8 QOR — totals 23 payments / 17.1 QOR · Gogo Maduro
Gogo LeashPost-Quantum AI Agents

Pushed 1 commit to main

  • d40453d Run #14 landed green (2 Dec ~01:43 WIB): 4 paid / 2.8 QOR incl. INV-2026-11-002 — totals 19 payments / 14.3 QOR · Gogo Maduro
Gogo LeashPost-Quantum AI Agents

Pushed 15 commits to main

  • 03ba49a 1 Dec upgrade: vault topped to 2.0 QOR + max-cap withdrawal #4, 4th READY proposal (INV-2026-11-002), native-lookup script · Gogo Maduro
  • 1d9c554 Review round 3 (adversarial, 4.0/5): SCAN_BLOCKS 200->400, VM cron is the real watcher, GitHub cron ~8h late · Gogo Maduro
  • 15edfb7 Tripwire watcher: restore the missing Write testnet keys step · JM-03
  • 2a84328 Tripwire watcher: scan first, open a window only if it fires (saves ~0.1 QOR per clean scan) · JM-03
  • b044880 Review round 2 (adversarial, 4.2/5): hourly tripwire watcher live + findings recorded · Gogo Maduro

and 10 more commits

Gogo LeashPost-Quantum AI Agents

Pushed 5 commits to main

  • f1f11d1 QoreX integrations kit flipped to Verified (30 Nov 20:33 WIB) · Gogo Maduro
  • 50e99bd Fresh-clone verification on HEAD f773682: 37/37 Node + 31/31 Forge · Gogo Maduro
  • f773682 QoreX integration: console connects QoreX read-only via @qorechain/qorex-types (79 checks) · Gogo Maduro
  • f717fef SUBMISSION.md: record page edit #4 (15 payments / 11.5 QOR) · Gogo Maduro
  • 9509571 Run #13 green (30 Nov 18:08 WIB): 15 payments / 11.5 QOR; owner 76.20 QOR · Gogo Maduro
Gogo LeashPost-Quantum AI Agents

Pushed 4 commits to main

  • cac05f6 SUBMISSION.md: record page edit #3 (live tripwire sentence) · Gogo Maduro
  • 3aafc74 Live tripwire demo: 3 attacks reverted, watcher tripped vault, reopened (30 Nov) · Gogo Maduro
  • 4f9ed77 SUBMISSION.md: record 30 Nov page edit (75 checks + 9.2 QOR live) · Gogo Maduro
  • e4ca29c Audit fixes: run log, deployment.json, CBOM, 75 checks, 9.2 QOR totals · Gogo Maduro
Gogo LeashPost-Quantum AI Agents

Pushed 2 commits to main

  • 253c384 Professional polish: v2 video re-record, JUDGES v2, DECISIONS.md, npm run verify, coverage · Gogo Maduro
  • ba2c3e3 SUBMISSION.md: v2 How-it's-made live on project page (verified 28 Nov 04:53 WIB) · Gogo Maduro
Gogo LeashPost-Quantum AI Agents

Pushed 3 commits to main

  • 008ea34 SUBMISSION.md: v2 texts approved by delegation; vault v2 + 31/31 Forge + 33/33 Node · JM-03
  • 519ad10 Fix workflow: write QORE_MNEMONIC into .env (window.mjs needs it) · JM-03
  • 83861e8 Fix workflow: install forge-std (missing lib/ broke forge test) · JM-03
Gogo LeashPost-Quantum AI Agents

Pushed 74 commits to main

  • 3bd026e Make red-team robust to missing forge (skip local cases, keep live checks green) · JM-03
  • fc3d3b1 Make red-team robust to missing forge (skip local cases, keep live checks green) · JM-03
  • 6f3db51 Make red-team robust to missing forge (skip local cases, keep live checks green) · JM-03
  • debb127 Make red-team robust to missing forge (skip local cases, keep live checks green) · JM-03
  • 900915e Make red-team robust to missing forge (skip local cases, keep live checks green) · JM-03

and 69 more commits

Gogo LeashPost-Quantum AI Agents

New project.

Comments and questions

  • No comments yet.