Skip to content

Governed agentic trading on Robinhood - #117

Merged
mizuki0x merged 1 commit into
mainfrom
feat/robinhood
Aug 1, 2026
Merged

Governed agentic trading on Robinhood#117
mizuki0x merged 1 commit into
mainfrom
feat/robinhood

Conversation

@mizuki0x

Copy link
Copy Markdown
Contributor

Adds a trust and governance layer for agent trading on Robinhood: a policy gate in front of every order, a signed on-chain receipt for each decision (placed or blocked), and portable trading reputation. Built on Robinhood's public Crypto Trading API (Ed25519), plus a Guard MCP proxy for the hosted agentic endpoint.

What's here

  • agent-os/crates/covenant-robinhood — Ed25519 request signer, a read/order REST client over a swappable transport, the TradingPolicy gate (per-order/daily caps, allow/deny universe, sides, order types, rate, cooldown, daily-loss stop, human-approval threshold), GovernedTrader (price → authorize → execute/block/approve, emitting a signed TradeReceipt for every decision), a trading reputation signal, and a mock/replay harness. 28 unit tests.
  • covenantd wiringrobinhood.* tools (account, holdings, quote, estimated_price, place_order, cancel_order, receipts, reputation) behind the existing capability gate. The trading key never enters the daemon: signing is delegated to an env_clear() covenant-robinhood-signer sidecar (same isolation as the metaplex/x402 signers). Every decision is anchored on-chain through the metaplex signer, with an optional Telegram approval gate.
  • services/robinhood-mcp-bridge — exposes the governed tools over MCP.
  • services/robinhood-guard-proxy — a self-contained MCP-to-MCP proxy in front of agent.robinhood.com/mcp/trading: reads pass through, order tools run the local policy first (fail-closed), decisions are signed. Published as @covenant-org/robinhood-guard-proxy.
  • services/x402-seller-base — two paid endpoints: POST /x402/robinhood/governed-order and GET /x402/proof/:agent/trading.

Status

Interface-complete and unit-tested; covenantd builds against current main. The live legs (Robinhood crypto-REST reads, and the proxy's Robinhood upstream tool names + auth passthrough) are env-gated and need a US Robinhood agentic account to validate end-to-end. The governed-trading demo runs dry-run against a mock with real on-chain-anchored receipts (cargo run -p covenant-robinhood --example anchored_demo).

Enable via COVENANT_ROBINHOOD_{SIGNER_BIN,API_KEY,KEYPAIR,ATTESTOR_KEYPAIR,POLICY} (plus TELEGRAM_TOKEN/CHAT_ID for approvals). Not a broker, adviser, or custodian: infrastructure the operator runs on their own account with their own key.

@mizuki0x
mizuki0x merged commit 2a1ae4a into main Aug 1, 2026
9 checks passed
@mizuki0x
mizuki0x deleted the feat/robinhood branch August 1, 2026 19:38
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.

2 participants