Loops HouseAgSurance - Insurance for AI agents

NEAR HACKATHON
Links
Team
1 member- YOOwner
Yohanes Vito
Overview
When you give an AI agent a wallet, who pays if money leaves the account in a transfer you never authorized? We built AgSurance so agent owners can get reimbursed for covered losses. In the ACL 2024 InjecAgent benchmark, indirect prompt injections succeeded in 24% of tests against a ReAct-prompted GPT-4 agent. When agents can move money, manipulated instructions can put the funds their owners entrusted to them at risk.
On NEAR testnet, owners fund a wallet for their agent, set spending rules, and buy coverage. If a completed transfer breaks those rules and causes a loss while the policy is active, the owner can file a claim.
When the owner connects an agent, the agent gets its own key. We use NEAR’s built-in Function-Call Keys to let the agent request payments, renew coverage, and file claims on its own. NEAR limits the key to those actions. The wallet checks the owner’s spending rules before it sends a payment.
A contract sets aside funds before coverage starts. Reviewers use a final NEAR receipt to confirm the transfer. After two of three reviewers approve the same evidence, the reserve contract pays the account the owner registered for recovery.
In our demo, the agent pays an approved supplier and the reserve pays 0.25 NEAR for a separate simulated loss. In another run, the owner raised the limit from 0.18 to 0.42 NEAR after a simulated loss. The contract paid 0.18 NEAR because that limit was in force when the funds left. Anyone can see the order of events and the payout in the NEAR receipts.