Agent treasury and wallet holds $0, every bill priced on-chain, idle float earns until spent.
An AI agent with a funded wallet has a worst case equal to its balance. Give it a spending limit and the worst case is the limit. Neither asks the question an overcharge actually fails: is this a fair price?
Float holds the budget in a vault instead. The agent's own wallet holds zero
permanently, with a test asserting it before and after every payment the agent
causes. Each request names the printId of the compute price it was quoted
against. The vault recomputes the fair total itself, refuses anything above a
band, pulls the exact shortfall out of a real yield venue, and pays the
seller — in one transaction.
1 · It prices the purchase. A seller quoting 3× is refused on chain, in
English, with the fair counter-price attached. Transaction 0xb746116a…, block
70931213: Denied, code 10, reason "quote exceeds ACR fair band", quote
3150000 against fair 1050000.
2 · It funds just in time. Transaction 0x364723c6…, block 70931234. Log 30
is Pulled(530250, 530250) from the Morpho Vault V2 position; log 32 transfers
1055250 USDC to the seller. The figures differ because the vault pulled the
shortfall, not the payment — the rest was already in the buffer. That $0.53 was
earning yield in the previous block. Arc serves no debug_traceTransaction, so
log order is the proof, which means anyone with an ordinary node can check it
rather than only someone with an archive node.
3 · What it cannot authorise, it parks. Over the per-request threshold a
request is not refused — a checkpoint opens on chain and waits for a verified
human's single-use EIP-712 signature, gated by World ID. The token is
validated against a fixed ladder of nine named refusals, and we report the
first rung that failed rather than the last, because a stale auth_time and an
unverified issuer are different problems and "verification failed" cannot tell a
person whether to retry or stop. Denial, expiry and a failed verification are
each recorded on chain: a refusal is evidence, not silence. An approval widens
the band; it never removes it. A person can authorise paying more than usual.
Nobody — including the approver — can authorise paying an unpriced amount to an
unapproved seller.
Idle float sits in two tiers: a live Morpho Vault V2, and a USYC reserve sleeve
for Circle's tokenised treasury fund. That sleeve is real, written against the
Teller's verified ABI, and runs on Arc Testnet against a stand-in fund we deployed
and named SimUsycTeller so the explorer says so — because Circle's allowlist is
a 24-to-48-hour support ticket we could not clear during the event. We hold no
USYC, the production reserve slot is deliberately address(0), and the acceptance
suite reports that on every run rather than letting the claim drift.
Live on Arc Testnet (chain 5042002), every contract verified on Blockscout. 335 contract tests, 41 unit tests, and 15 acceptance checks that run against the live chain and print what they observed rather than a tick.
Honest limits. Prices are published per-provider list prices, not executed
fills — what the band constrains is what the vault will pay. The confidence
interval is a provider spread, not a forecast error bound. Float adds no yield of
its own; it shows accrued value, never a projected APY. requirePolicyCheckpoint
is false on this chain, so the human-approval and guest-enrolment paths are
not exercised on Arc Testnet — they are covered by 80 contract tests and a
ten-leg local-chain walk, and the World submission says which chain it shows. And
one finding from our own audit, disclosed rather than buried: the executor can
resolve an open checkpoint, including writing EXPIRED over a signature a human
already gave. It is unrepaired.
Contracts. Solidity 0.8.24, Foundry. FloatVault is the treasury: a
twelve-rung refusal ladder (D_PAUSED=1 through D_DAILY_CAP=12, each a named
code in an event rather than a revert), EIP-712 checkpoint approvals, and an
ISleeve interface — depositIdle / withdrawExact / valueUsdc — so the yield
venue is swappable without touching the treasury. The single unit conversion
fairUsdc6 = priceWad * units / 1e12 appears exactly once and has a test pinning
it, because getting it wrong makes the fair band un-fireable while looking fully
implemented.
Off-chain. TypeScript with viem 2.55 drives the keeper, the two demo agents,
the policy compiler and a 15-check acceptance suite (node:test under tsx). The
dashboard is Next.js 16 / React 19 reading the chain directly through viem and
SWR — no server between the page and Arc — with the money path rendered in
three.js. A FastAPI + web3.py service holds the World ID gate. An MCP server
(acr-mcp, published to npm) exposes the tools to any agent host.
Why Arc. USDC is the native gas token, so the treasury, the gas and the payment are one asset — a forecast denominated in dollars is simultaneously a forecast of gas. Arc Studio compiled the treasury policy from an English sentence into JSON, audited the vault, and wrote two of the three dashboard pages. Its output is checked, not trusted: our own validator refuses an invalid config before a transaction is built — exactly the assurance Studio itself flagged when it said, unprompted, "I didn't run it through a schema validator, but I checked it by eye."
Partner technology that actually changed the design. Morpho Vault V2 on Arc is
the working yield venue, and it is permissionless — all four transfer gates are
the zero address — which is what lets a contract hold shares, and is why the
just-in-time pull is one Solidity call instead of two transactions narrated as
one. An Eco Sauce compiled program asks that venue whether it could deliver a
given shortfall before anything is signed, with its Pot deployed on Arc (667,003
gas, verified). Pyth appears
as a negative result: deployed but dormant on Arc Testnet, every feed reverting
PriceFeedNotFound(), which argues for a pushed print better than any benchmark
comparison could.
Circle's USYC — the reserve tier, and what it cost to build honestly. Idle
float has two tiers and the second is Circle's tokenised treasury fund.
UsycSleeve implements the same three-verb ISleeve interface as the Morpho
one, so the treasury gained a T-bill position without a line of it changing. Two
design decisions fell out of reading the Teller's verified ABI instead of
assuming one — Blockscout had not resolved the EIP-1967 proxy, so the
implementation came from storage slot 0x3608…2bbc → 0x238dc235…adf6, 60
functions, and the verbs turned out to be deposit / redeem / previewDeposit
/ previewRedeem, not the buy() / sell() our own earlier notes had recorded.
First, no price oracle: the Teller previews its own redemption net of its own
fee, so the price comes from the counterparty that will honour it, and an oracle
would only add a trusted third party and a staleness window to a number already
published. Second, sizing by preview rather than by dividing through a NAV —
the redemption scales the share balance against the previewed value of the whole
position, rounded the way that cannot refuse a correct payment. Replacing that
with naive division fails two tests, one of them a real vault payment.
It runs against a stand-in fund, because Circle's allowlist is a support ticket
with a 24-to-48-hour turnaround we could not clear during the event. SimUsyc
and SimUsycTeller live in src/sim/ rather than test/ precisely because they
leave the machine: a deployed contract shows its name on the explorer, and a
MockUsycTeller sitting on a public chain would be the dishonest label. The
sleeve in front of them is the real UsycSleeve (0x6D2A34ed…972E), unchanged,
with a real round trip on Arc Testnet — park 1 USDC, pull 0.5, valueUsdc
reading 0 → 999999 → 499997. When the allowlist lands, one constructor argument
changes and nothing else does. The production vault's reserve slot stays
address(0) meanwhile, and acceptance check T15 asserts that on every run, so the
claim cannot quietly drift into "we hold USYC".
World ID — the human leg of the same product. The escalation path is gated by
World ID Agent Pass over an OIDC device flow. A parked payment names its own
request hash, a human authenticates freshly, and a FastAPI service validates the
token against a fixed ladder of nine named refusals — malformed_token,
bad_signature, wrong_issuer, wrong_audience, expired,
assurance_not_accepted, amr_not_accepted, auth_time_outside_window,
not_the_enrolled_treasurer. The nine are pinned by a test rather than by prose:
test_every_named_reason_is_reachable asserts set-equality between that tuple and
the reasons nine fixtures actually produce, so the count cannot drift away from
the sentence without a red test. The enrolled person is pinned on chain as
keccak256("acr.treasurer::" + iss + 0x1f + sub) — one-shot, so a treasury names
its treasurer exactly once.
The detail that justified building a ladder rather than a boolean: our live token
came back with amr = ["pop","user","mfa"] — the passkey shape, which World's
own docs say does not assert a fresh World proof — while acr claimed orb. The
spend cleared, correctly, because orb assurance is what that path asks for. The
same token is refused for a policy change, which requires face and forbids
mfa. One token that can move money and cannot change the rules. The capability
split is deliberate too: the terminal holds the signing key and cannot move money,
the press holds the registrar key and cannot mint a request, so neither half can
issue a budget alone.
The hacky parts worth naming.
debug_traceTransaction, so just-in-time funding is proven by
log order within one transaction. A weaker tool giving a stronger result: an
ordinary node can verify it.0x3600…0000 is precompile-backed, so a forge script that moves
it dies in simulation with StackUnderflow and seeding has to go through
cast. The same transfer emits two Transfer events — 2e18 from the
precompile and 2e6 from the ERC-20 view — one ledger with two decimals, visible
on chain.max* function by design, so the
obvious maxWithdraw sizing reports an empty sleeve forever. valueUsdc
converts the share balance instead. Shares are 18 decimals against 6-decimal
USDC, so convertToAssets must be fed shares and never an asset amount.maxDeposit = 5,723,443 for an address whose
deposits revert NotPermissioned(). The obvious eligibility check is a lie;
the honest probe is a staticcall of deposit itself, and the revert selector
lives three levels down viem's cause chain on .data, not in .message. Our
stand-in Teller reproduces that non-zero maxDeposit on purpose — a double
that returned 0 when un-permissioned would quietly teach the wrong eligibility
check, which is the single mistake this fixture exists to make unrepeatable.printId is an incrementing id, not a timestamp, because two prints written in
one block share a timestamp — which keeps "stale print" and "print rotated"
separately enforceable rather than collapsing into one ambiguous refusal.
