Skip to main content

English | 日本語 | 中文 | Español | Français | हिन्दी | Italiano | Português (BR)

reasoning-dataset-lab

CI PyPI MIT License Landing page

A map-first lab for datasets of puzzles, quizzes and verification items, where code proves the answer key before any model words the item. rdlab is the command line. It plans a dataset as a pre-registered map, builds items whose keys are constructed and proven, asks a local model only to put them into words, and records the provenance of every item.

A key that a model chose is an opinion. A key that code built from a hidden state, and proved by a solver, is a fact about the item. rdlab is built so the key never depends on a judge.

Install

pip install reasoning-dataset-lab

Python 3.13 or newer (3.15 is the main target; CI tests 3.13, 3.14 and 3.15). It depends on aspire-si-gates and role-set.

What you can do without any model

rdlab map check examples/t10-pilot-a.map.yaml
rdlab project fingerprint . --map examples/t10-pilot-a.map.yaml
rdlab --help
  • rdlab map check validates a dataset map (its axes, every cell's target against the generator's capacity, share floors and ceilings, variety bounds, acceptance criteria) and prints the map's canonical SHA-256. Exit 0 is a valid map. Exit 1 is a refusal, as a {code, message, hint} JSON object on stderr. Exit 2 is a usage or file error.
  • rdlab project fingerprint hashes the five project files, the map and canon/ in a fixed order, so a build can say exactly what it was built from.
  • rdlab models lists the models a Pilot B build pins, and rdlab variety computes the deterministic variety report for a build.

What needs a GPU and local models

rdlab pilot-b builds the Pilot B critic test set: triads of supported, unsupported and cannot-tell claims made from typed fact tables. It runs real local models through Ollama on loopback (a writer and two blind readers from different families), needs a GPU, and needs a licence registry file that says each model may be used for evaluation. It never pulls a model for you and never calls a cloud endpoint. The full flags, the memory plan and the num_predict settings are in the handbook.

The judge bake-off

Which local model should judge a claim? rdlab answers it the same way it builds keys: by construction, with the answers sealed until the judging is over.

rdlab bakeoff-part --output-dir <dir> ...      # build a sealed test part from certified value sets
rdlab bakeoff-probe --part-dir <dir> ...       # fail the part if its answers can be guessed from surface features
rdlab bakeoff-judge --part-dir <dir> ...       # run one judge without opening the sealed keys
rdlab bakeoff-judge-score --judge-dir <dir>    # only now join the judge's rows with the keys

Winner selection follows the pre-registration exactly, with no lenient fallbacks. scripts/colab/launch_judges.sh runs the five judges on your own Google Colab account, each in its own hash-locked environment, under a spending cap read from the window's own live Colab rate. Each paid window is bound to its part's own files and checks every boot input before it spends, and the lock-check runs as two windows, each judge in its own environment. Splitting a counted run across several cards is built but has not completed a real run yet.

No shell trap can catch SIGKILL (kill -9): if the launcher itself receives SIGKILL after colab new assigns a VM and before colab stop completes, its EXIT trap never runs and it leaves an open Colab session that only the background session watcher (when it survives) or a manual colab sessions check (colab stop -s <session>) stops.

The map-first principle

  1. Prove first, word second. Code constructs a formal state and proves the key before a model writes any prose. A kind of item that cannot be proved by construction is marked judged and enters only through a multi-family unanimity gate.
  2. Pre-registered cells and capacity. map.yaml declares every intended cell, its target, the generator's capacity for it, share floors and ceilings, and the variety bounds, before any item exists. A cell the generator cannot yet build stays in the map with capacity: 0 and a stated reason, so a coverage gap is visible and the map is never shrunk to hide it.
  3. One fingerprint. A project binds five files, the map and its canon, and a deterministic hash says which.

What has been measured

The generator's value sets (the lists a claim's values are swapped within) are certified before use. In the v3 run, 44 of 50 sets certified, against 26 before the sets were repaired. Here "certified" means two blind readers from different families called every ordered pair a contradiction, and an independent blind key had already agreed. It is evidence, not proof: model readers were part of it. The wording of a rendered item can still differ from its key, and a person's hand-read is the check for that. Nothing rdlab writes is training data until a person has checked it. The run and its files are in certification/v3.

Security and data

  • Reads: the map, project files and canon you point it at.
  • Writes: the output directory you give it.
  • Network: the rdlab command reaches only Ollama on loopback (127.0.0.1), and only for pilot-b and models --verify-live. Anything else is refused. No telemetry.
  • Opt-in Colab: scripts/colab/ uploads the items and judges you point it at to your own Colab account and downloads the results. The answer keys never leave your machine; scoring runs locally.
  • Permissions: none beyond those files and that local port.

Report a vulnerability privately; see SECURITY.md.

Status

Version 0.7.0. It is alpha: interfaces and data shapes can change without notice. 1,890 tests pass (5 skipped); CI holds coverage at 90% or more.

License

MIT, © mcp-tool-shop. See LICENSE.


Built by MCP Tool Shop

Metadata

Release files for reasoning-dataset-lab 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reasoning-dataset-lab 0.7.0
File Size Uploaded Provenance Actions
reasoning_dataset_lab-0.7.0.tar.gz 1.9 MB With provenance Details for reasoning_dataset_lab-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reasoning-dataset-lab 0.7.0
File Interpreter ABI Platform Actions
reasoning_dataset_lab-0.7.0-py3-none-any.whl Python 3 none any Details for reasoning_dataset_lab-0.7.0-py3-none-any.whl

Total release size: 2.3 MB

Release files / reasoning_dataset_lab-0.7.0.tar.gz

Download URL reasoning_dataset_lab-0.7.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
8596b34978596cc471ef960463bfc6c886c795b0ab5da792251a85baa3768ada
BLAKE2b-256 checksum
How to use checksums
8a22bc360179989fd05e6ee610690eb36e28b4489ce028554c8517db65fec8c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / reasoning_dataset_lab-0.7.0-py3-none-any.whl

Download URL reasoning_dataset_lab-0.7.0-py3-none-any.whl
Size 398.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
061f0146f61490389be9bb37c1a15d2013b1068dd8b0fae1f6bf7b913371435d
BLAKE2b-256 checksum
How to use checksums
9768c81a7ce4dc4aa5e4cc4b76a42944a66345bdf57ebe612d5c968b975ff0d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for reasoning-dataset-lab 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for reasoning_dataset_lab-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page