Skip to main content
Glama
DUP Policy Gate

DUP Policy Gate

by Gruver87

DUP Policy Gate

ci

Org: DUP Labs · Author: Uladzimir Dabranski
Version: 0.1.0 · Fail-closed spot-only policy before any order

Intent policy gate for agents that may spend money or change risk. Pattern is reusable beyond crypto (caps, market-mode blocks, audit JSONL). First stand: Market Radar spot-only.

Checks intents. Does not place orders. FUTURES_BLOCK always.
Live without KuCoin Spot keys in env → refuse (dry_run still allowed).

Beginner? → docs/START_HERE.md

Related

Role

dup-market-radar

Spot ops / trade API

dup-evidence-graph

ops_ready / soak honesty

dup-radar-news-mcp

Digests (no orders)

Quick demo

make demo
# or: bash scripts/demo.sh
# Windows: .\scripts\demo_policy.ps1

Related MCP server: trading-swarm-mcp

Install

python -m pip install -e ".[dev]"
make test   # or: .\scripts\test_all.ps1

CLI

python -m policy_gate status
python -m policy_gate evaluate --file intent.json --assume-keys no

Exit 0 = ALLOW · 1 = REFUSE.

MCP

See mcp.json — tools policy_status, policy_check_order, policy_check_json.

License

MIT — LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables deterministic policy enforcement for MCP and WebMCP tool calls, blocking boundary-crossing invocations and requiring exact human approval for consequential actions.
      MIT
    • F
      license
      A
      quality
      B
      maintenance
      Enables local auditing of trading strategies through MCP checkers for point-in-time data provenance, pre-trade order validation, and regime-fragility testing, while deferring promotion verdicts to a hosted service.
      18
      52 PyPI
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables policy-first trading safety checks by converting natural-language trading goals into visible decision packets, evaluating orders against guardrails, and staging bounded orders for Binance MCP confirmation without executing trades.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables validation of USDⓈ-M Futures trade intents by normalizing natural-language orders, fetching live Binance market and account state, applying deterministic risk rules, and producing tamper-evident preflight receipts before execution.
      MIT