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:
get_weather_and_uma()— inspect intraday airport METAR floor, 212-member ensemble, L2 book, and UMA dispute flag.inspect_defi_pools()— inspect candidate stablecoin lending pools to filter out junior-tranche (STUSDS-style), illiquid (<$50M), and frozen (>92%utilization) traps.get_eu_power_curve()— inspect the 24-hourDE-LUwind/solar forecast price curve.commit_desk_actions(...)— persist final Post-Only weather order, senior-only DeFi pool selection, and 24-step 4 MWh BESS dispatch schedule into rolloutQuantDeskState.
Deterministic Verifiable Reward ([0.0, 1.0])
- 35% Weather Post-Only & UMA Circuit Breaker (
0.0if crossing spread or trading during UMA dispute) - 35% Senior-Only DeFi Credit-Risk Allocation (
0.0if selecting ANY non-compliant/junior/frozen pool) - 30% Exact Bellman-DP 4 MWh BESS Arbitrage Capture (
0.0on any physical SoC constraint violation)
from quant_risk_mcp_env import QuantRiskMCPTaskset, QuantRiskMCPConfig
taskset = QuantRiskMCPTaskset(QuantRiskMCPConfig(num_examples=48, seed=2026))