Loops HouseBylaw

NEAR HACKATHON
Links
Team
1 member- MUOwner
Musa Ali
Overview
AI agents that pay need keys, and one prompt injection or bug can empty everything the key controls. Guardrails inside the agent do not help, because a hijacked agent bypasses them.
Bylaw keeps the money in a NEAR vault contract. The agent only asks the vault to pay. The vault enforces the owner's per-payment cap, daily cap, destination allowlist, per-agent pause and a global kill switch on-chain, and records every allowed and denied decision in a hash chain.
For cross-chain payments, a separate guardian account checks a NEAR Intents (1Click) quote against the route the owner stored and approves one single-use payment; the vault wraps NEAR and sends it to the deposit address in one batch. The agent, the guardian and a pause-only key each use function-call keys limited to named methods.
Evidence: one real 0.1 NEAR to USDC swap on Base through the vault (1Click status SUCCESS); a mainnet vault with allowed and denied payments, a kill switch and a decision chain check; a public Arena on testnet where anyone tries to talk the agent into paying the wrong account (over 40 attempts, 0 funds lost at the time of writing); 148 contract tests and 768 agent tests.
Code and proofs: github.com/MusaAis/leash (docs/mainnet-proof.md, docs/tracks.md). Demo: https://leash-arena.taila4b466.ts.net:8443 https://leash-landing-tau.vercel.app. Built at NEAR HACKATHON.