coinbase / coinbase/agentkit

WISHLIST: pre-execution governance gate action (advisory verdict before order placement)

Open
#1,348 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.3k
Forks
815
Avg merge
13h 31m
Merged PRs (30d)
2

Description

The WISHLIST covers DeFi actions, NFT, cross-chain, social — but nothing in the governance / pre-execution verification lane. Suggesting it here since it's a natural complement to the trading and DeFi actions already listed.

## The gap

An agent executing a Uniswap swap or DeFi action via AgentKit has no standard way to get an independent, account-aware verdict on whether that specific action is sound *before* it fires. Each action currently self-validates (parameter bounds, wallet balance) but has no cross-action capital-scale awareness.

## What the action would look like

```python
# pseudocode — advisory, never blocks
verdict = agentkit.review(
artifact_type="onchain_action", # or "trade", "transfer", etc.
artifact={"action": "uniswap_swap", "amount_usd": 5000, "token_in": "ETH", "token_out": "USDC"},
account_context={"equity_usd": wallet.balance_usd, "open_positions": ...}
)
# verdict.verdict in {"approve", "approve_with_concerns", "reject"}
# verdict.proof — signed, recomputable, attached to the action's audit trail
if verdict.verdict == "reject":
log_and_hold() # advisory — agent decides whether to proceed
```

## Reference implementation

`invinoveritas /review` does this today — MCP-native, x402/USDC on Base (same rail as AgentKit), advisory+fail-open. Live dogfood: a Hyperliquid trading bot passes every entry through `/review` before placement. Community example with AlgoVaultLabs (ERC-8004 verified): https://github.com/AlgoVaultLabs/crypto-quant-signal-mcp/pull/28

MCP: `https://api.babyblueviper.com/mcp` → `tools/call` → `review`
Docs: https://api.babyblueviper.com/docs

Happy to contribute this as an actual AgentKit action if it fits the roadmap.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.