Loops HouseSvalin

NEAR HACKATHON
Links
Team
1 member- FAOwner
Fariz/The Noob
Overview
AI agents can pay on their own now, but the tests I have seen, mine included, show them getting tricked into paying. So I stopped trying to make the agent smarter and took the money away from it.
Svalin Guard is a vault contract on NEAR that holds the agent's money. The agent only gets a key that can ask for a payment. The vault pays, holds it for me to approve, or refuses. It refuses look-alike accounts and holds anything that looks off: a higher price than last time, a new payee for the same service, the same charge twice. A new NEAR payee is checked in a TEE through OutLayer first. It pays on Solana through Chain Signatures, so there is no Solana key to steal. It only buys a token whose grade comes with a proof, and three fakes in an hour freeze it.
Before the hackathon, Svalin was a read-only API that tells an agent how risky a wallet is. During it, I added what the vault needs: an A to F grade for every NEAR token with a price, from the money in its pools, sealed on NEAR every day so any contract can check a grade with a Merkle proof. When I recorded, 5,016 tokens were graded, and only 82 survived a $1,000 sale. I also added the look-alike check and what a wallet would really get if sold today. Agents pay $0.002 per call in USDC over x402, on NEAR or Solana.
To test it, I gave a model on NEAR AI Cloud (z-ai/glm-5.3-flash, attested) a vault and sent it to a seller I built to cheat. It fell for 6 of 9 tricks and tried to pay 1.50 USDC. The vault stopped 1.25: it held a 10x price, refused a look-alike account, a poisoned Solana address, and a forged grade, then froze itself. 0.10 still got through on a trick no vault can catch. Each decision is a testnet transaction in the README.
Other tests agree: in BlockRun's Agent Money Benchmark, 9 of 12 models paid a cheating seller, and in a Cornell Tech and Yale study, 9 of 10 raised their own spending cap.
Testnet only. Two tags in the README split the earlier API from the hackathon work.