Inspiration
If a group lets an agent manage pooled money, who sets its limits—and whose capital takes the first loss? Boats answers both questions before the voyage starts: the contract defines trading authority, and the captain posts a stake.
In I-HITL’s controlled payment experiment, 9 of 10 tested models raised their own spending limit in at least one of 20 runs per model. That result belongs to this setup; it motivates limits enforced outside the model. Research paper, October 2026
What it does
A boat is a USDC vault with a fixed voyage. A captain, human or AI, trades pooled crew deposits subject to an immutable mandate:
- Restricted trading authority. Swaps go through the boat's fixed adapter, use listed assets and respect each asset's maximum portfolio weight. The captain has no arbitrary transfer path for crew deposits.
- First-loss capital. The captain's stake absorbs losses before crew principal. The performance fee applies only to crew profit. Captains can claim their remaining stake and vested fee; crew can withdraw their own share after settlement.
- Public settlement. Anyone can call
checkVoyage()when NAV crosses a stop loss or take profit, or the end date passes, thenreturnToPort()to settle in USDC. These functions require transactions; a threshold is not a guaranteed execution price or time.
For $10,000 crew principal and $1,000 captain stake, an exit exactly 10% below starting NAV leaves $9,900 for the crew: a 1% crew loss before exit costs. Gaps, delays, oracle failure and liquidity can make losses larger.
Current deployment on Arc testnet
The current deployment includes public and invitation-gated boats. For an invite-only boat, the captain can invite crew while boarding is open; an uninvited address cannot board. The current Westerly demo is public.
- BoatFactory: 0x115e0bebcce14481f2c4b00aac533e15efddb2fb
- PriceOracle: 0x712f8c439e455e928b2f84c6f389d77e93c980f0
- SwapAdapter: 0xd1a6b1a5ccc3b5470a5a41595a186f885ea9464f
- Westerly: 0x6f762E474d9aA387631f2F32013B8bDb6d0A66e5
The deployment manifest lists every current boat and token. The historical transaction proofs below belong to the previous deployment, whose contracts remain on Arc testnet.
Historical proof on Arc testnet
- Gemini-driven decision: the bundled captain recorded event
FED261211, outcome “Hike 25bps”, probability 91%, its reason and fetch timestamp in a successful swap's calldata. The memo-bearing swap moved about $0.55; an earlier trade moved $5.50. Swap + memo · Earlier swap - Rejected trade: a swap attempting to exceed the Bitcoin weight cap reverted. The verification command replays it at the preceding block to check the specific rejection reason. Reverted swap
- Complete voyage: in a controlled testnet scenario, we manually increased the mock Bitcoin oracle price. A public call triggered take profit, the vault returned to USDC, and the crew received 2.197402 test USDC for a 2 USDC deposit: +9.8701% after the captain fee. This demonstrates settlement, not real investment performance. Take profit · Return · Crew withdrawal
npm run verify:proof checks transaction targets, methods, receipts, the decision memo, the historical rejected trade and crew payout. It requires neither a private key nor a new transaction.
Live agent fleet (Arc testnet)
13 independent AI agents (Grok bots) use Boats on Arc testnet:
- 3 AI captains: Harbor (conservative, 5% stop loss), Trade Wind (balanced, 10%), and Storm (aggressive, 20%). Each captain's workflow includes first-loss staking and one deliberate out-of-mandate attempt to test contract enforcement.
- 10 AI crew: each claims testnet USDC, checks risk, and boards 1–2 boats.
Follow action updates and Arcscan transaction links in the Live fleet log.
Demo boat Westerly: 0x6f76…66e5.
How we built it
- Contracts: Solidity and Foundry:
Boat,BoatFactory,PriceOracle,SwapAdapter. 23 Foundry tests, including five invariants, cover mandate restrictions, invitation-gated boarding and first-loss settlement. - SDK: TypeScript and viem for reads, trade pre-checks, loss estimates, scores, calldata and keepers.
- Agent interface: a stdio MCP server with 14 tools, three discoverable resources and a review prompt. Structured JSON, AGENTS.md, llms.txt and a public agent.json connect claims to evidence. Agents can discover boats, inspect limits, plan trades, read Gemini odds and receive unsigned calls without supplying a key. Signed steps are simulated; partial failures return sent hashes for safe recovery.
- Captain lifecycle: agents can create a boat, post a stake while boarding stays open, wait for crew, then sail. Requests to sail without crew or stake fail before any calls are returned.
- Gemini integration: public Prediction Markets REST data drives an explicit threshold rule. Missing, ambiguous, closed, invalid or stale fetched snapshots cause the captain to hold. It requires a two-sided quote no wider than five probability percentage points. Normal swaps carry a configurable slippage floor, 1% by default. The bundled captain is a deterministic rule-based agent, with no embedded LLM. External LLM agents can operate through MCP.
- Audit trail: decision memos are appended to swap calldata and decoded with
decodeSwapMemo(). They prove what the captain recorded; they are not cryptographically authenticated Gemini attestations. - App: Next.js PWA with Circle Modular Wallets passkey and paymaster integration. Production passkey onboarding has been verified. Sponsored boarding remains unverified.
- Keeper: GitHub Actions schedules the authenticated keeper webhook every 10 minutes. Runs can be delayed; settlement requires available prices, liquidity and gas.
- Arc: contracts and evidence are on Arc testnet, chain 5042002. USDC is used for deposits and gas. EURC, USYC and cirBTC are testnet mocks.
- CI: Foundry, SDK, captain, MCP, app and local-chain end-to-end checks. MCP protocol tests exercise discovery and unsigned planning through the real stdio transport.
These are parts of one flow: Gemini informs the decision, the captain proposes it, Arc enforces the mandate and pays out, and MCP lets another agent use the same protocol. npm run verify:agent reproduces eight synthetic decision and refusal scenarios offline, without a key. It uses the production parser and rules; it is a behavioral check, not a performance backtest. The historical swap memo predates the new quote-quality gate.
Challenges we ran into
- The demo needs funded liquidity and prices. We use a team-funded, oracle-priced adapter and team-posted prices, with clearly labelled mock assets. This is not a production DEX or a live USYC yield strategy.
- A stop threshold is not a guaranteed loss bound. Settlement depends on a caller, transaction inclusion, oracle availability, liquidity and exit costs.
- Agent plans can become stale. We expose skipped checks, simulate signed steps and preserve hashes after partial execution instead of inviting blind retries.
- First-loss protection changes as more crew joins. The SDK recalculates the threshold-loss estimate for each proposed deposit.
Accomplishments that we're proud of
A deployed mandate-based vault, first-loss settlement, a Gemini-informed trading decision recorded on chain, a reverted out-of-mandate trade and a reproducible full voyage. The same SDK supports the app, captain, keeper and external AI agents.
What we learned
A useful agent interface needs clear permissions, actionable failures and inspectable results. Financial safety also requires honest limits: an on-chain trading mandate does not remove oracle, liquidity, contract or liveness risk.
What's next
Decentralized price feeds, production liquidity, independent security review, refunds for boats that never sail, fee clawbacks and a captain history derived from on-chain results. Production legal requirements would need assessment before handling real users' funds.
Honest notes
Testnet prototype, unaudited. Prices and adapter liquidity are controlled by the team. The factory is permissionless; the app, keeper and MCP filter for the official oracle, adapter and USDC. Existing boats have immutable oracle/router addresses. Crew in a boat that never sails currently cannot withdraw; a refund path is future work. The seaworthiness score is a heuristic, not a safety certification.
Built With
- arc
- circle
- foundry
- gemini-prediction-markets
- github-actions
- next.js
- node.js
- playwright
- react
- solidity
- tailwindcss
- typescript
- usdc
- viem