Loops HouseFoundling

NEAR HACKATHON
Team
1 member- ZAOwner
Zaky Irsyad Rais
Overview
Foundling is a vault on NEAR mainnet where an AI agent trades USDC and wNEAR, while the contract, not the agent or its operator, decides how much it may risk and whether depositors can leave.
Problem: giving an AI agent money usually means giving it, or its operator, the keys. Depositors then have to trust a private key, an off-chain policy and a strategy nobody can check.
What we built: a vault contract whose account has no access keys. Every 30 minutes a keeper asks the vault to run a cycle, and the vault calls a strategy WASM inside a TEE on OutLayer. The strategy reads the NEAR price from two sources, asks a NEAR AI Cloud model how risky the market looks, and returns one decision: buy, sell or hold. The vault checks it against limits written into the contract (trade size, slippage, cooldown, exposure) and refuses anything over them. Redeem works at any time, also while trading is frozen. The strategy parameters were sealed in an OutLayer secret with only a salted hash on chain, then revealed on 2026-11-13, so anyone can replay every past decision. An open-source verifier checks each cycle: the commitment, the replay of the decision and the signature on the AI's answer. An Attack Lab runs 16 attacks against the vault in a local sandbox with mocks; all are refused or contained.
How NEAR fits in: the vault is a NEAR contract, function-call keys limit the keeper and the guardian to named methods, OutLayer runs the strategy in a TEE, NEAR AI Cloud gives the signed inference, and swaps run on Rhea. It has been live on mainnet since 2026-11-13 at https://foundling.xyz.
Not claimed: returns, a third-party audit, or a proven cross-chain deposit. The README lists what is not proven and what you still have to trust.