Loops HouseLeash

NEAR HACKATHON
Team
1 member- FEOwner
Felix Idowu
Overview
AI agents that hold money can be drained by a bug or a prompt injection, and a check inside the agent's own code is bypassed once the agent is compromised. Leash is a three-layer spending guard on NEAR. (1) A counterparty checker scores each receiver (account exists, account age, recent contract code change, paid community reports, past payments) and returns allow, warn or block. The agent wrapper refuses to sign on block, and treats warn as a refusal when no human is present. (2) A guard contract (near-sdk-js, testnet) holds the funds and enforces per-transaction and rolling 24h caps, an allowlist, an owner blocklist and a community blocklist where each report needs evidence and a 0.1 NEAR fee. Every decision is logged on-chain. (3) The agent account holds only a function-call access key limited to the contract's pay method, so it cannot transfer NEAR itself. The demo runs 5 attacks against live testnet, all stopped, with transaction links in the README. Limits: testnet only, transaction count is not collected, and an attacker with funds can still file paid reports until the owner dismisses them.