{"data":{"kind":"file","path":"README.md","version_id":"o0c14hjm3938xvkkeldrzzdt","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":1645,"modified_at":"2026-11-27T07:05:16.237000","content_hash":"907ad5d13969f4c93a9330ef699ece4128daab48f0457a343a500ac284cbdd95"},"entries":[],"content":"# `quant-risk-mcp-env` — Verifiers v1 Stateful Multi-Turn MCP Toolset RL Environment\n\nA **100% deterministic, zero-LLM-judge multi-turn agentic RL environment** built natively on **Prime Intellect `verifiers.v1` (`Toolset` + `State` + `Taskset`)**.\n\n## Why Multi-Turn Tool Use Is Mandatory (Zero Prompt Leakage)\nNone 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`:\n1. `get_weather_and_uma()` — inspect intraday airport METAR floor, 212-member ensemble, L2 book, and UMA dispute flag.\n2. `inspect_defi_pools()` — inspect candidate stablecoin lending pools to filter out junior-tranche (`STUSDS`-style), illiquid (`<$50M`), and frozen (`>92%` utilization) traps.\n3. `get_eu_power_curve()` — inspect the 24-hour `DE-LU` wind/solar forecast price curve.\n4. `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`.\n\n## Deterministic Verifiable Reward (`[0.0, 1.0]`)\n- **35% Weather Post-Only & UMA Circuit Breaker** (`0.0` if crossing spread or trading during UMA dispute)\n- **35% Senior-Only DeFi Credit-Risk Allocation** (`0.0` if selecting ANY non-compliant/junior/frozen pool)\n- **30% Exact Bellman-DP 4 MWh BESS Arbitrage Capture** (`0.0` on any physical SoC constraint violation)\n\n```python\nfrom quant_risk_mcp_env import QuantRiskMCPTaskset, QuantRiskMCPConfig\n\ntaskset = QuantRiskMCPTaskset(QuantRiskMCPConfig(num_examples=48, seed=2026))\n```\n","encoding":"utf-8","truncated":false,"total_bytes":1645},"status":null}