Explore the research collection
1 entry · Follow this search
- Tool
rl-env-use: RL Environments for Any Domain from Real Web-Mined Cases
An open-source tool that builds an RL environment / eval for a skill in any domain from real cases mined from the live web. Input is one line ("predict whether a completed trial met its primary endpoint from its registered protocol; ClinicalTrials.gov"); a planner writes a spec (skill, sources, conventions, outcome-blind sampling rule), then mining rounds loop mine → write → verify → frontier panel → harden → verify → panel until the task target, the budget, or two rounds with no new tasks. A case = the materials the model reads (a trial protocol, a 10-Q) plus its true outcome, published elsewhere or later; Browser Use agents mine both. Gold answers are computed by code from expressions over numbers in the materials; mined outcome facts must be quote-verified (the agent must surface the source quote). A frontier panel (Opus 5.5, GPT Astra, Gemini) measures difficulty — all-pass tasks are rewritten harder on the same case, up to two levels — and tasks are rejected for leaked answers, memorized outcomes (closed-book memory check), or ambiguous prompts. Grading is programmatic (number / date / set / exact / contains / probability), self-tested against null, foreign, and perturbed golds. The artifact is one folder, envs/<name>/: spec.json, kb.json (materials + quote-verified outcome facts + missions), tasks.jsonl (every drafted task with gold and checks; only passing tasks are served), audit.json, reviews.jsonl (human verdicts and gold fixes), and climb-<model>/ prompt versions. `export` writes the dataset for an RL trainer; `from rl_env_use import Env` serves it in code (reset, reward). Built directly on Anthropic's "Automating eval design and hillclimbing" workflow (Lance Martin, claude.dev, 28 Sep 2026; the claude-api skill's build-eval → hillclimb method) with one change: real web-mined cases instead of synthetic ones. The hillclimb loop edits a model's SYSTEM PROMPT (the model is fixed), split by case, with A/A noise floors — edits are kept only on a paired case-bootstrap test gain. Verification comparison (first-party; also shipped as a `compare` command that reruns mining with vanilla Claude Code — WebSearch + WebFetch, same model and instructions — through the same synth + verify pipeline): 8 clinical-trial-result missions, Claude Code verified 0 of 86 facts vs Browser Use 17 verified / 4 complete cases; a same-model rerun, 0 of 43 vs 3 verified / 2 complete; 8 human-genetic-variant missions (UniProt, gnomAD, GTEx), 6 of 82 vs 40 verified. Shipped example envs/trial-forecast: 35 forecasts from 29 ClinicalTrials.gov trials whose results were posted since July 2026, after the models' training data; built for $72 ($17 of it Browser Use). A prompt-climbed open Qwen 3.6 35B-A3B goes 0.53 → 0.78 on held-out tasks it never trained on (score = 1 − Brier; +0.25, 95% CI +0.07 to +0.45), level with Opus 5.5 (0.77) and below GPT-6 Astra (0.81); the climb kept 1 of 12 proposed edits (base-rate priors per question type). The README is explicit that most of the gain is calibration: always answering 50% scores 0.75, so the base model's 0.53 sat below the constant baseline because it answered 0 or 1. Maturity: repo created the day of the announcement (2026-10-21), 10 commits, 43 stars, no releases; Python 3.11+, optional Node 18+ for HTML reports; offline pytest suite included. Human review is built into the step-by-step mode (three sign-offs: cases, tasks/grading, pilot cost); an autonomous mode is the default.