0

Quant Risk MCP Env

Fresh

Verifiers v1 stateful multi-turn MCP Toolset RL environment for autonomous quantitative risk management across prediction markets (METAR/UMA), DeFi...

Type
RL Env
Publisher
Primew
Runtime
tool-use
License
mit
Size
v0.1.0
Published
Nov 2026
Updated
Nov 2026

Cite

Notes

Only stored in your browser.

quant-risk-mcp-env — Verifiers v1 Stateful Multi-Turn MCP Toolset RL Environment

A 100% deterministic, zero-LLM-judge multi-turn agentic RL environment built natively on Prime Intellect verifiers.v1 (Toolset + State + Taskset).

Why Multi-Turn Tool Use Is Mandatory (Zero Prompt Leakage)

None of the hidden risk flags (uma_disputed, tranche == "JUNIOR", utilization_pct > 92%, or 24-hour EPEX power curves) appear in the initial prompt. The agent must invoke 4 stateful MCP tools via QuantDeskToolset:

  1. get_weather_and_uma() — inspect intraday airport METAR floor, 212-member ensemble, L2 book, and UMA dispute flag.
  2. inspect_defi_pools() — inspect candidate stablecoin lending pools to filter out junior-tranche (STUSDS-style), illiquid (<$50M), and frozen (>92% utilization) traps.
  3. get_eu_power_curve() — inspect the 24-hour DE-LU wind/solar forecast price curve.
  4. commit_desk_actions(...) — persist final Post-Only weather order, senior-only DeFi pool selection, and 24-step 4 MWh BESS dispatch schedule into rollout QuantDeskState.

Deterministic Verifiable Reward ([0.0, 1.0])

  • 35% Weather Post-Only & UMA Circuit Breaker (0.0 if crossing spread or trading during UMA dispute)
  • 35% Senior-Only DeFi Credit-Risk Allocation (0.0 if selecting ANY non-compliant/junior/frozen pool)
  • 30% Exact Bellman-DP 4 MWh BESS Arbitrage Capture (0.0 on any physical SoC constraint violation)
from quant_risk_mcp_env import QuantRiskMCPTaskset, QuantRiskMCPConfig

taskset = QuantRiskMCPTaskset(QuantRiskMCPConfig(num_examples=48, seed=2026))