About
DoNotRugMe is a permission layer that lets a user delegate scoped, revocable spending authority to an AI agent — enforced on-chain, not by trust. The name says the guarantee: the agent literally cannot rug you.
THE PROBLEM
AI agents are increasingly asked to move money — pay for compute, rebalance, buy inference, settle invoices. Today you have two bad options: hand the agent a raw private key (it can drain everything, forever), or keep a human in the loop on every action (defeats the point of an agent). There is no native way to say "you may spend up to X of token Y per day, only to these targets, until Friday, and I can cut you off instantly."
WHAT WE BUILT
The user controls a passkey smart account (ERC-4337, EntryPoint v0.7, WebAuthn P-256 keys — no seed phrase, unlock with Face ID / Touch ID). Instead of sharing keys, they sign a permission grant that defines: • a token whitelist + allowed function selectors per target • a per-period spend allowance (rolling window, tracked on-chain) • a validity window [start, end] • an owner-only kill switch (block / unblock any time) • optionally: a per-call TEE attestation requirement
The full permission record is stored on 0G Storage; its locator (merkle root) is pinned on-chain via the AgentPermissionManager. The agent holds its OWN key (a plain EOA) — it never touches the user's account.
HOW A TRANSACTION FLOWS
At runtime the agent: (1) finds its grant from PermissionApproved logs, (2) resolves the 0G Storage root via getLocator, (3) downloads and merkle-verifies the record, (4) checks getHash(record) == on-chain hash && isApproved, then (5) calls executeBatch on the manager. The manager RE-CHECKS every rule per call and reverts on violation:
- over allowance → ExceededSpendLimit(requested, remaining)
- non-whitelisted fn → UnauthorizedCall(target, selector)
- agent blocked → AgentBlocked(agentId)
- outside window → grant inactive
The kill switch is a single owner tx, effective immediately — the agent can hammer, every attempt reverts until unblock. Nothing is trusted client-side; the contract is the enforcer.
ASK-FOR-APPROVAL
Over-cap calls aren't silently dropped. The agent files them to a relay as approval requests the owner reviews in a dashboard and signs off with their passkey — the relay holds NO authority, the owner's account executes. So the agent runs autonomously inside its limits and only escalates to a human when it wants more than it was granted.
VERIFIABLE AGENT IDENTITY
AgenticID is a standalone ERC-721 identity/pubkey registry: tokenId == uint256(delegateAddress), and agentIdOf(tokenId) is exactly the value passed as Permission.agentId. This ties every grant to a portable, on-chain agent identity.
TEE-GATED ACTIONS
A call can require a TEE attestation: an 0G Compute model signs a response bound to the exact calldata digest; TeeAttestationChecker verifies the 0G TeeML signature on-chain before the transfer is permitted. Proven end-to-end live with a real qwen2.5-omni provider.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






