Skip to content

add a public break-it page on local Anvil - #17

Open
o-mid wants to merge 1 commit into
mainfrom
feat/break-it-arena
Open

o-mid wants to merge 1 commit into
mainfrom
feat/break-it-arena

Conversation

@o-mid

@o-mid o-mid commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Problem

The console is the only way to try a payment, and it asks for an account. Policy already stops an infinite approve, a bad recipient, and an amount over the per-payment cap. It does not yet catch a lookalike address, a second payment that stays under that cap, the same invoice twice, or instructions stuffed into a memo or an earlier turn.

Solution

/break-it takes plain text and no login. The standing task is invoice 1042, 50 MOCK_USDC, to the vendor on Anvil. Policy now has checks for the cases above. An allow is broadcast on local Anvil. A block is labeled as a simulation and is not signed. The logged-in console still waits for Approve.

Boot refuses an EVM RPC or chain id other than local Anvil 31337, and a Solana RPC other than solana-test-validator. PLANNER=anthropic sits next to the OpenAI planner and throws if the key or the model is missing. The arena will not call a live model until both per-million prices are set, the daily cap is not spent, and the kill switch is off. Tests use the mock planner.

How to test

  • cd services/policy && go test ./...
  • cd services/api && npx tsc -p tsconfig.json --noEmit && npm test
  • cd apps/web && npx tsc -p tsconfig.json --noEmit
  • With Compose, Anvil, and the vault up, open /break-it. A blocked example should show the simulation label and no transaction. The clean example broadcasts only when Anvil answers chain id 31337.

Visitors submit plain text with no account. New policy checks cover a swapped or lookalike payee, a rolling spend window, a repeated invoice, and instructions hidden in a memo or an earlier turn. An allow is broadcast on local Anvil. A block is shown as a simulation and is not signed. PLANNER=anthropic fails closed without a key and a model.
@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
guardrail-agent Ready Ready Preview Nov 7, 2026 9:17am UTC

This branch was successfully deployed

1 active deployment
Preview — 2192e564 Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant