Loops HouseAllowance

NEAR HACKATHON
Links
Team
1 member- RIOwner
Ritesh Kumar
Overview
Allowance is an AI agent's NEAR wallet with the spending rules enforced on-chain.
Problem: an AI agent that pays for things needs a wallet. With a normal key, one prompt injection in an invoice, email or web page can empty it. Telling the model "only pay approved vendors" is just a prompt, and prompts get overridden.
Product: the agent holds one NEAR function-call key that can call exactly one method, agent_spend, on its own account. A contract on that account decides every payment. To an approved payee under the per-payment and 24-hour limits, it is sent. Anything else is held until the owner approves or rejects it with Face ID or a fingerprint. There is no full-access key on the wallet, and no server holds a key that can move its money.
How NEAR fits in: function-call access keys mean NEAR itself rejects any other use of the agent's key (transfers, other contracts, adding keys) before contract code runs. The owner's WebAuthn passkey signature is verified inside the contract with NEAR's native env::p256_verify. The agent runs on NEAR AI Cloud.
Proof: a public arena (allowance-agent.vercel.app/arena) where anyone can email a funded agent and try to talk it into paying them. No wallet needed. A jailbroken model gets fooled, and the contract still holds the payment. The repo has 34 contract tests, three attack scripts with logs, and "do X, see Y" steps to check the key permissions and policy on testnet yourself.
Runs on NEAR testnet.