
Post-Quantum AI Agents
Clawback
An AI agent that can only take permissions away.
About
On QoreChain, 136,523 AI-routed transactions were flagged 983 times — and 0 were rejected. Nobody acts on the flags. Clawback is the agent that does. The owner grants it exactly two permissions — GenericAuthorizations for MsgRevoke and MsgRevokeAllowance, expiring 2027-01-15T20:04:53Z — and nothing else: no spending, no signing, no key custody. Its watcher walks blocks, authz grants and feegrants, applies deterministic rules first, and revokes dangerous permissions with a hybrid-signed MsgExec{MsgRevoke}. The LLM only explains each decision in plain English; it never signs and never decides alone. Proven live on Diana: round 1 revoked tx 8EB60B65… (block 10978102, code 0) with the decision anchored in DecisionLog v1; round 2, the watcher scan itself revoked a stranger's planted 10 QOR grant (tx A153118C…, block 10982398, code 0) and the spend after the revoke was refused on chain ("authorization not found"). Production now anchors in DecisionLogV2 (0x53EBdEe08096D256ce37C62442fc35C976F68691, 16,492 bytes) with PQ-gated anchors — every decision ML-DSA-87-signed by the agent with a sequential nonce, which closes the v1 front-running hole. Latest live proof, 1 Dec 2026: the production agent revoked a planted lab grant 19 seconds after it appeared (revoke C239D373…, block 11101235, code 0). The agent identity is qor10f54qguz5q5gqs0pc9vylthmfn32rnpau7je5l, ML-DSA-87, proof of possession true, 2,592-byte public key. Tests: Foundry 61/61, watcher 98/98, frontend 142/142, Playwright 57/57. QCAI audits: 85/100 in Stage 1 and 85/100 in Stage 2, 0 real findings. Honest limits, stated on the site: Clawback covers authz grants and feegrants only — it cannot close an EVM window, remove an EIP-7702 delegation, or guarantee a revoke lands in the same block as the grant. The DecisionLog contract is public and the watcher is open source, so the check is the contract. The install is one grant, and it expires. There is no token, no DAO vote, no treasury: the agent can only take permissions away, and only the ones the owner pre-authorized.
How it's made
The watcher is the product. A TypeScript service (Node, @qorechain/sdk + @qorechain/qoresign) walks the chain and reads live state from REST — authz grants, feegrants, balances, block height — against its own database of what it saw last time. It scans with deterministic rules first: unknown-grantee, high-value-send, brand-new-grantee, fee-cap, and a self-contradiction test. Only if the rules need a tiebreaker does the LLM summarise the decision in plain English. The agent never signs anything it has not decided, and the LLM never signs at all. Every decision is ML-DSA-signed and anchored in DecisionLogV2 (Solidity, Diana, 0x53EBdEe08096D256ce37C62442fc35C976F68691, 16,492 bytes; v1, 0xdd957eBb73FDE0697b1fAad938b777A3dab56b90, is history only). The contract holds no funds and grants no permissions — it records the decision hash, the anchorer and the block, so anyone can check a decision existed at a given time. Anchors are PQ-gated: the agent's ML-DSA-87 signature plus a sequential nonce, which closes the front-running hole that v1 only mitigated with attribution. The agent is a real identity: qor10f54qguz5q5gqs0pc9vylthmfn32rnpau7je5l, ML-DSA-87, proof of possession true, 2,592-byte public key — granted exactly two permissions by the deployer (MsgRevoke + MsgRevokeAllowance, expiring 2027-01-15T20:04:53Z). The agent signs its own revokes with a hybrid transaction (ML-DSA-87 + ECDSA) — the chain verifies both. The watcher revokes only what the owner pre-authorized, with a safety cap on value and a cooldown after every revoke. It can never create a grant, spend, or sign anything else. The web dashboard (React + Vite) shows live grants with their real expiries (timestamped "as of HH:MM" so a stale page is obvious), the decision log with its SHA-256 hashes, and the on-chain anchors. It does not pretend to be live when it is not: every live section says what it read and when, and the recorded snapshot is labelled as recorded. The Attack Lab (a separate page) plants a grant and lets a visitor watch it get revoked — the 1 Dec 2026 run took 19 seconds from grant to revoke (revoke C239D373…, block 11101235, code 0). Tests: Foundry 61/61, watcher 98/98, frontend 142/142, Playwright 57/57. QCAI audits: 85/100 in Stage 1 and 85/100 in Stage 2, 0 real findings.
Timeline
Pushed 8 commits to main
- 2a40baa verify-readme + README: assert the v2 proofs instead of v1 · goat-dev8
- 3fc1a7c Frontend: read DecisionLogV2 live (status, reputation, deadline) · goat-dev8
- ff12ad1 Watcher: production switch to DecisionLogV2 (PQ-gated anchors) · goat-dev8
- 45f2c8b Fix owner2 half-grant + 07:32 watcher staleness (EVIDENCE §16) · goat-dev8
- 3acce4c DecisionLogV2 Phase C DONE: settle anchor2, reputation 81 · goat-dev8
and 3 more commits
Comments and questions
- No comments yet.