Verifiable-reward RL environments and evals for scientific domains, starting with HLA/immunogenetics
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add verifiable-science-envs -- python -m -e{
"mcpServers": {
"verifiable-science-envs": {
"command": "python",
"args": ["-m", "sci_envs.service.edge_export"]
}
}
}MCP Servers overview
# verifiable-science-envs
**Deterministic, executable-oracle RL environments and evaluation suites for clinical genomics — starting with HLA/immunogenetics.**
Every answer is computed from the pinned IPD-IMGT/HLA release's own files. No human labels, no frequency data, no licensed tables — so the grader is auditable line-by-line, the sealed split regenerates on every release, and a model cannot have memorized the post-cutoff tasks.
## The benchmarks
| | Tasks | What it tests | Results |
|---|---:|---|---|
| **HLA-Bench-A** | 550 | Nomenclature: truncation, expression suffixes, G/P groups, serology, rename history, null-allele and near-miss traps | [`bench/HLA-Bench-A.md`](bench/HLA-Bench-A.md) |
| **HLA-Bench-C** | 205 | Donor–recipient matching: 6/6–12/12 frameworks, antigen vs allele level, hidden nulls, GvH/HvG direction, unresolvable typing | [`bench/HLA-Bench-C.md`](bench/HLA-Bench-C.md) |
*Working on this repo? Read [`CLAUDE.md`](CLAUDE.md) first: a push to `main` deploys
production, and the project's status, decisions and runbook live in the private
portfolio hub rather than here.*
Headline findings so far: every model family tested (Claude, Qwen, Mistral, Llama, Phi, Gemma) scores **0% on 2-field ambiguity expansion** — the core clinical trap; on matching, the naive string baseline falls from 28% (family A) to **0%**, and open models reach 0–14% because they count matched loci instead of chromosomes. Full tables with Wilson CIs on the bench pages; current state in the bench pages below.
## HLA-Verify — the graders as an API
The same engine as a verification service (no LLM, no storage): `POST /v1/verify` checks every allele-shaped token in free text against the pinned release (fabricated / deleted-with-successor / legacy / valid, with G groups and flags); `POST /v1/normalize` fixes typing reports; `GET /v1/allele/<name>` returns the facts; `POST /v1/match` scores a donor–recipient pair under the published rules R1–R6.
**Hosted, live: [api.hlaverify.com](https://api.hlaverify.com/docs)** (also `https://hlaverify.com/v1/…`). Open for evaluation at 60 requests/minute per IP; keyed access for labs, LIMS vendors and agent platforms (hello@hlaverify.com).
```bash
curl -s https://api.hlaverify.com/v1/verify -H 'content-type: application/json' \
-d '{"text": "A*0101, B*15:504:01, DQB1*05:03:26:99"}'
```
The hosted API is a Cloudflare Worker (`edge/`) that looks names up in tables exported from the pinned release by this repository's Python engine (`python -m sci_envs.service.edge_export`); a golden test (`edge/test/`) proves the Worker's output is byte-identical to the Python service on thousands of generated inputs. Self-hosted Python service:
```bash
pip install -e ".[service]" && uvicorn sci_envs.service.app:app
```
Live demo (runs entirely in your browser — typing data never leaves your machine): **[hlaverify.com/demo](https://hlaverify.com/demo)** · mirrored on Hugging Face: [Spaces/jason-brelsford/hla-verify](https://huggingface.co/spaces/jason-brelsford/hla-verify)
## For AI agents: MCP server
Any MCP-capable agent can add HLA-Verify as a tool server and verify HLA
content before presenting it (`verify_text`, `normalize_allele`, `allele_info`,
`match_score`, `check_typing`, `donor_compat`, `validate_gl_string`, `about`) —
as a remote server, or self-hosted over stdio (every tool except `allele_info`).
The remote server speaks MCP 2026-07-28 (`server/discover`) and the legacy
`initialize` handshake.
Remote (Streamable HTTP, JSON-RPC 2.0, stateless — nothing to install):
```json
{"mcpServers": {"hla-verify": {"url": "https://api.hlaverify.com/mcp"}}}
```
Add `"headers": {"Authorization": "Bearer YOUR_KEY"}` for a keyed tier; anonymous
calls share the free tier's 60 req/min. Works in Claude Desktop, claude.ai
connectors, Cursor, and any other MCP-capable client.
Local (stdio):
```bash
pip install -e ".[mcp]"
python -m sci_envs.mcp_server # stdio MCP server
```
Client config: `{"command": "python", "args": ["-m", "sci_envs.mcp_server"]}`.
Also see [`skills/hla-verify/`](skills/hla-verify/) (importable Claude skill) and
[hlaverify.com/llms.txt](https://hlaverify.com/llms.txt).
## Run the benchmark
```bash
pip install -e ".[dev]"
pytest -q # first run fetches ~33 MB of reference data
hla-bench generate # family A (or --family c); sealed split stays local
hla-bench run baseline-naive-string --suite runs/hla-bench-a --split dev
hla-bench run ollama/qwen2.5:7b --suite runs/hla-bench-a --split dev
hla-bench run anthropic/claude-sonnet-4-6 --suite runs/hla-bench-a --split all
hla-bench report --suite runs/hla-bench-a --out bench/HLA-Bench-A.md
```
Local models run free via Ollama; Anthropic/OpenAI/Gemini clients are included (keys via a gitignored `.env`). Raw responses and per-task scores never leave the machine; only aggregates and a stratified ≤3-per-subtype wrong-answer sample are committed.
## Layout
```
sci_envs/
reference/imgt.py # pinned IPD-IMGT/HLA loader: fetch → md5-verify → query
families/nomenclature/ # family A: generators, grader, normalizer
families/matching/ # family C: rules engine (R1–R6, documented for lab audit)
harness/ # runners, model clients, report
adapters/ # verifiers (Prime Intellect) + Inspect AI exports
service/ # HLA-Verify API: FastAPI service + edge table exporter (PolyForm-NC)
edge/ # HLA-Verify API on Cloudflare Workers + golden test vs the Python oracle (PolyForm-NC)
environments/hla_nomenclature/ # pip-installable verifiers environment
harbor/ # Terminal-Bench-style task
docs/ # task + grader specs (families A, B, C)
```
## Data strategy & partners
Every graded answer is computed from public, versioned data — the pinned IPD-IMGT/HLA release, synthetic Mendelian truth, and open population resources — so anyone can regenerate the suites and audit every score. Restricted registry data stays with its licensed holders: our environments run on *their* machines. **We are seeking registry, lab, and model-developer partners** — hello@hlaverify.com.
## Licence
Open core: benchmark, generators, graders, harness, and adapters are **Apache-2.0** (LICENSE). The HLA-Verify service (`sci_envs/service/`, `edge/`) is **PolyForm Noncommercial 1.0.0** — free for research and evaluation; commercial use requires a licence from Brelsford Software LLC (hello@hlaverify.com). Reference data are fetched at runtime from IPD-IMGT/HLA under CC-BY-ND (Barker DJ et al., *NAR* 2025) and never redistributed.
Scope: human clinical-genomics informatics only. No sequences, no pathogens, no wet-lab protocols.
What people ask about verifiable-science-envs
What is jasonbrelsford/verifiable-science-envs?
+
jasonbrelsford/verifiable-science-envs is mcp servers for the Claude AI ecosystem. Verifiable-reward RL environments and evals for scientific domains, starting with HLA/immunogenetics It has 0 GitHub stars and its last recorded update is dated 2026-09-16.
How do I install verifiable-science-envs?
+
You can install verifiable-science-envs by cloning the repository (https://github.com/jasonbrelsford/verifiable-science-envs) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is jasonbrelsford/verifiable-science-envs safe to use?
+
Our security agent has analyzed jasonbrelsford/verifiable-science-envs and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains jasonbrelsford/verifiable-science-envs?
+
jasonbrelsford/verifiable-science-envs is maintained by jasonbrelsford. The last recorded GitHub activity is dated 2026-09-16, with 0 open issues.
Are there alternatives to verifiable-science-envs?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy verifiable-science-envs to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/jasonbrelsford-verifiable-science-envs)<a href="https://claudewave.com/repo/jasonbrelsford-verifiable-science-envs"><img src="https://claudewave.com/api/badge/jasonbrelsford-verifiable-science-envs" alt="Featured on ClaudeWave: jasonbrelsford/verifiable-science-envs" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ
The fastest path to AI-powered full stack observability, even for lean teams.