Skip to content
QORECHAIN
Register

Post-Quantum AI Agents

Clawback

An AI agent that can only take permissions away.

Share on X

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

ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

ClawbackPost-Quantum AI Agents

Pushed 2 commits to main

  • ca34ae7 update playwright expiry expectations · goat-dev8
  • ad5d094 update readme · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • 55b47a4 README: video embed + scannable style + live numbers (2 Dec) · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • 8d5d853 Cover: refresh baked-in numbers to live values · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • 0f179b8 Postgres decision log (DATABASE_URL) + atomic state writes · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • 507e571 Docs: point Attack Lab live-site link back to main domain (clawback-qorechain) · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • c91a45f Docs: record 45-day Clawback re-grant (exp 2027-01-15, txs FAED6C62… / AF774E26…) · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • b48463a Walkthrough D3: correct install-card proof to deployer grants, fix account-desync + lost wallet responses · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • c7b8f13 Render: persistent disk for watcher state (F17) · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • f8479ba Watcher: grant-agent --days <n> (default 7) for long-expiry re-grants · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • 312677d Watcher: sign anchored decisions with @qorechain/qoresign pqSign; declare @qorechain/pqc test use · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • fc46f90 README: correct grant dates to live re-grant (new agent, exp 2026-12-07), v1/v2 pointer, outside-owner row (0/5 NONE YET) · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • 03ee8be JUDGES.md: fix walkthrough counts and install order (v6 judge D1-D2) · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • 2f1c675 JUDGES.md keyless walkthrough + README: KEM section, current test counts · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • be77123 CBOM: CycloneDX cryptography bill of materials (21 components) · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • aa69c26 MCP: verify tools read both anchor contracts (v1 + v2) · goat-dev8
ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • 7f959d8 Fix anchor drift class (judge v5c N5): live Proof log tail + live anchor count · goat-dev8
ClawbackPost-Quantum AI Agents

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

ClawbackPost-Quantum AI Agents

Pushed 1 commit to main

  • 9005759 Proof log: list all six v2 anchors (add heartbeat-4/5), match README · goat-dev8

Comments and questions

  • No comments yet.