Pre-trade token risk checks: an AI agent buys x402 checks on Hedera within a World ID mandate.
Kakashi checks a token before you trade it. Hedera tokens can carry issuer keys that freeze, wipe or pause balances or mint more supply, and they can carry hidden transfer fees. Most traders never check. An agent with a wallet could check for them, but it would spend whatever a prompt, a bug or a merchant talks it into, with no human sign-off and no receipts.
You ask a question like "Should I put 2,000 USDC into 0.0.731861?". Kakashi turns it into the risks that matter, collects x402 quotes from four paid check sellers (KeyScan, HolderMap, TreasuryWatch and an adversarial InsiderAlpha), and lets sealed AI on 0G decide which checks the trade size justifies. It pays for them in USDC on Hedera and answers BUY, CAUTION or AVOID, citing a receipt for every purchase. Anything it did not check is listed as unknown.
It only ever spends inside a mandate that a World ID-verified human approved: a total budget, a per-payment cap, an auto-approve cap, allowed merchants, a purchase limit and an expiry. Any check above the auto-approve cap needs a fresh World ID approval bound to that one purchase. The model only proposes. Plain code decides. A separate process signs. Every decision and payment can be proven on HashScan and in a hash-chained audit trail on the Hedera Consensus Service.
Kakashi is a TypeScript (strict) pnpm monorepo on Node.js 22: a React 18 + Vite + Tailwind CSS 4 frontend, an Express 5 server that streams each run to the UI over server-sent events, four x402 check-seller merchants, and a separate signer process. State lives in SQLite (better-sqlite3) with append-only migrations and atomic budget reservations. zod validates every boundary, including all model output.
0G: plan, decide and synthesize run as sealed TEE inference on the 0G Router (OpenAI-compatible, private trust mode, verify_tee), with structured output and versioned prompts. Every decision carries a 0G trace ID. An eval scores 0G against a cheapest-first rule, which buys KeyScan every time and misses whales and treasury dumps.
World: World ID Agent Pass over the OIDC device flow activates each mandate. The server verifies ID tokens with jose (JWKS, issuer, audience, fresh auth_time). Step-up approvals are single use and bound to one purchase hash.
Hedera: the merchants answer with x402 v2 402 quotes (@x402/core, @x402/hedera) and settle in USDC on Hedera testnet through @hiero-ledger/sdk. The checks read real token data from the Hedera mainnet mirror node. Payments are reconciled against the mirror node, so a lost response is recovered instead of paid twice. Audit events are hash-chained and anchored to a Hedera Consensus Service topic.
The hacky part: the model only proposes. Quotes are screened by 12 plain-code policy rules before the AI sees them, two-phase isolation stops prompt injection from merchant data, and an isolated signer pays only against a permit the policy engine issued.

