{"data":{"kind":"file","path":"README.md","version_id":"f9trzqgsd43adpb0ffn5exu2","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":4261,"modified_at":"2026-11-25T04:27:01","content_hash":"17799af125f2194eb523977e9cd65aa3c71ec79b63b1d93ccd4b088d02abddb0"},"entries":[],"content":"# spanproof-cfr\n\nDeterministic regulatory verification environment: **325 MIT-licensed non-cloze items** drawn from U.S. federal regulations (public-domain works under `17 U.S.C. § 105`) across **9 CFR titles**: `10`, `14`, `15`, `17`, `21`, `22`, `47`, `48`, and `49 CFR`.\n\n- **Environment ID:** `spanproof-labs/spanproof-cfr`\n- **Type:** single-turn, `verifiers.SingleTurnEnv`\n- **Rewards:** rule-based, no LLM judge. Exact-decimal unit handling, comparator checks and pinned-citation grounding, about 2 ms per rollout.\n- **Anti-reward-hacking:** penalizes unit-scale spoofing (`mm` vs `in`), hedged answers (`yes or no`), `<think>` trace leakage and citation stuffing.\n- **Source and dataset:** [GitHub](https://github.com/spanproof-labs/spanproof-teaser) · [Hugging Face](https://huggingface.co/datasets/spanproof-labs/spanproof-cfr-bench) · [Live demo](https://spanproof.pages.dev)\n\n## Quickstart\n\n```bash\nprime env install spanproof-labs/spanproof-cfr\nprime eval run spanproof-cfr -m <model> -n 20\n```\n\n```python\nfrom spanproof_cfr import load_environment\n\nenv = load_environment()                   # all 325 items\ndfars = load_environment(domain=\"dfars\")   # 48 CFR only (48 items)\n```\n\nThe model is asked to reason in `<thought>...</thought>` and answer in `<answer>...</answer>` with the pinned CFR citation.\n\n## Environment arguments\n\n| Arg | Type | Default | Description |\n|---|---|---|---|\n| `domain` | str / int | `\"all\"` | CFR title or alias (table below) |\n| `split` | str | `\"public_mit_325\"` | Public MIT slice |\n| `citation_stripped` | bool | `false` | Use the question with its CFR citation removed, to test retrieval rather than copying |\n| `system_prompt` | str | built-in | Override the system prompt |\n\n## Metrics\n\n| Metric | Meaning |\n|---|---|\n| `reward` | `spanproof_reward`: correctness + citation grounding + format, minus anti-hack penalty, clipped to [-0.5, 1.0] |\n| `statutory_correctness` | 1.0 if the answer matches the regulation's value |\n| `citation_grounding` | 1.0 if the required CFR section is cited |\n| `anti_hack_penalty` | Negative penalty when a reward-hacking pattern is detected |\n\nThe scoring core (`SpanProofEnv`, `Rubric`) is pure Python stdlib and can be used without `verifiers` via `load_stdlib_environment()`.\n\n## Supported `domain` filters\n\n| `domain` / Alias | CFR Title | Agency / Domain | Items |\n|---|---|---|---:|\n| `\"all\"` | All 9 Titles | Full MIT public non-cloze slice | `325` |\n| `\"10\"` / `\"nrc\"` | `10 CFR` | Nuclear Regulatory Commission | `55` |\n| `\"14\"` / `\"faa\"` | `14 CFR` | Federal Aviation Administration | `55` |\n| `\"15\"` / `\"ear\"` | `15 CFR` | Export Administration Regulations (BIS) | `60` |\n| `\"17\"` / `\"sec\"` | `17 CFR` | Securities & Advisers (SEC) | `15` |\n| `\"21\"` / `\"fda\"` | `21 CFR` | Food, Drug & Medical Devices (FDA) | `15` |\n| `\"22\"` / `\"itar\"` | `22 CFR` | Defense Trade (ITAR) | `6` |\n| `\"47\"` / `\"tcpa\"` | `47 CFR` | Telecommunications & TCPA (FCC) | `15` |\n| `\"48\"` / `\"dfars\"` | `48 CFR` | Federal Acquisition (FAR / DFARS) | `48` |\n| `\"49\"` / `\"hazmat\"` | `49 CFR` | Hazardous Materials (PHMSA) | `56` |\n\n---\n\n## Commercial Tier A RLVR License (For AI Labs & Frontier Training)\n\nThis Hub package is the **325-item MIT public evaluation slice**. AI labs training production compliance, legal, or reasoning models can license the full commercial **Tier A RLVR** dataset and high-throughput verifier engine:\n\n- **Tier A Non-Cloze RLVR Bank:** **`15,530` non-cloze items (`58.64%` of `26,485` total active items)** across `11` CFR titles (`10, 14, 15, 17, 21, 22, 29, 40, 47, 48, 49 CFR`), with `0` cloze leakage and private holdout splits excluded from public release.\n- **CPU Verifier Throughput:** **`609.7 rollouts/sec`** single-node CPU throughput (`< 2 ms` per rollout, zero GPU or LLM-judge cost).\n- **Tamper-Evident Audit Receipts:** Keyed `HMAC-SHA-256` WORM audit ledger + COSO/ICFR/QMSR substantiation certificates + automated `pull_ecfr.py` XML drift monitoring.\n\n**Request a pilot or license:** [open a commercial pilot request](https://github.com/spanproof-labs/spanproof-teaser/issues/new?template=commercial_pilot_and_licensing.yml) with your organization, the product, and a way to reach you. The request is public; we reply within two business days.\n","encoding":"utf-8","truncated":false,"total_bytes":4261},"status":null}