Skip to main content

rerunnable

Can someone else rerun this and get the same results?

rerunnable audits a scientific Python project from a git URL or a local path. It installs the project in a locked-down container, compares the declared dependencies with the imports, runs the tests and the commands the README documents, and runs them again to see whether the outputs change. Every finding cites the logged commands, exit codes and file hashes behind it, so you can check the evidence yourself.

A rerunnable run on a small project whose script draws random numbers without a seed. Each stage prints one line. The verdict is FAIL with one critical finding, output differs across runs, and one medium finding, unseeded random draws.

How it works

The audit runs six stages in a container: intake, environment, dependencies, tests, documented commands and determinism. Each stage logs its commands as evidence. Findings cite the evidence and decide the verdict. An optional model reads the docs for commands and tries repairs on a copy, but never sets the verdict.

The verdict comes from fixed rules over the findings:

verdict when
FAIL at least one critical finding
INCONCLUSIVE no critical finding, but something could not be checked (no tests, data that is not in the repo, a download the sandbox blocks)
PASS_WITH_WARNINGS findings, none critical
PASS no findings above info

A model is optional. Without one, the audit runs in baseline mode. With one, the model also finds commands described in prose, suggests causes for failures the rules cannot explain, and tries repairs on a throwaway copy. The model never decides the verdict: a command it finds still has to fail in the sandbox to count, and the report shows the baseline verdict next to the model run's. Details are in docs/how-it-works.md.

Install

You need Python 3.11 or newer and a running Docker (Docker Desktop, or Docker Engine on Linux).

pipx install rerunnable

or, with uv, uv tool install rerunnable. From source:

git clone https://github.com/FadeHack/rerunnable
cd rerunnable
uv tool install .

If the shell then cannot find rerunnable, run pipx ensurepath or uv tool update-shell and open a new terminal. To work on the code instead, see CONTRIBUTING.md.

Then check that everything is ready:

rerunnable doctor

doctor checks that Docker answers, that there is enough disk space, that the package index can be reached, and that the model endpoint answers if you configured one.

Audit a project

rerunnable run https://github.com/owner/project --ref v1.2.0

--ref takes a commit, tag or branch. Without it, the audit uses the default branch. A local path works too: rerunnable run ./my-project.

To try it, audit one of the small projects in fixtures/ from a clone of this repo. rerunnable run fixtures/rand-unseeded should end in FAIL with exit code 3, because its script draws random numbers without a seed. rerunnable run fixtures/clean should PASS.

The run writes a directory under runs/ with report.html, report.md and report.json, the evidence log, and every command's output. The terminal shows the verdict and the worst findings. The exit code tells scripts the result:

code meaning
0 PASS or PASS_WITH_WARNINGS
1 tool error, for example Docker not found
2 usage error
3 FAIL
4 INCONCLUSIVE

Other commands:

  • rerunnable report <run dir> writes the Markdown and HTML reports again from report.json.
  • rerunnable compare <run dir> [<other run dir>] shows what the model changed in one run, or the differences between two runs.
  • rerunnable run --help lists the limits you can change: memory, CPUs, time per command, the platform, and runs per command.

In the benchmark, the median audit took about 30 seconds without a model and under 4 minutes with one. A project's own test suite sets the upper end.

Use a model (optional)

Any endpoint that speaks the OpenAI chat completions API works, hosted or local. Bring your own key:

export RERUNNABLE_LLM_BASE_URL=https://your-provider/v1
export RERUNNABLE_LLM_API_KEY=...
export RERUNNABLE_LLM_MODEL=...

The same settings can go in a .env file in the directory you run from. The key is never logged, cached or written to a report. --no-llm turns the model off for one run.

Every model reply is cached, and the replies a run used are copied into llm/ in its run directory. --llm-cache runs/<run id>/llm --llm-offline replays the run from those replies without any endpoint; only RERUNNABLE_LLM_MODEL is needed. The model we use and its settings are in docs/llm.md.

What it finds

21 finding categories, from install_failed and undeclared_dependency to tests_fail_as_is, dependency_drift and nondeterministic_output. Each has a default severity and, for all but one, a small fixture project in fixtures/ that shows it. See docs/findings.md.

Benchmark

We audited 60 Python projects from papers in the Journal of Open Source Software, each at the release the paper reviewed. 36 failed, 11 passed with warnings, and 13 could not be fully checked. None passed without a warning. The most common reasons for FAIL were tests that fail as published (21) and installs that fail (8). The method, the full results and their limits are in docs/benchmark.md. rerunnable bench runs the same kind of study on your own list (benchmark/README.md).

The dataset, with every report and the model replies needed to rerun it offline, is on Zenodo: doi:10.5281/zenodo.24728197.

Docs

Citing

If you use rerunnable in research, please cite it. CITATION.cff has the details, and GitHub's "Cite this repository" button formats them. If you use the benchmark results, also cite the dataset (doi:10.5281/zenodo.24728197).

License

Apache-2.0. See LICENSE.

Metadata

Release files for rerunnable 1.0.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 rerunnable 1.0.0
File Size Uploaded Provenance Actions
rerunnable-1.0.0.tar.gz 137.4 kB With provenance Details for rerunnable-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rerunnable 1.0.0
File Interpreter ABI Platform Actions
rerunnable-1.0.0-py3-none-any.whl Python 3 none any Details for rerunnable-1.0.0-py3-none-any.whl

Total release size: 302.4 kB

Release files / rerunnable-1.0.0.tar.gz

Download URL rerunnable-1.0.0.tar.gz
Size 137.4 kB
Tags Source
SHA-256 checksum
How to use checksums
332f60b17c74a1f60f0f0a153677684d0984e0943a1c2f700ebd3c11c860c45b
BLAKE2b-256 checksum
How to use checksums
ad69e973507086b721ca5688ae781db6bc2214e12e614deec316d7c6aeb88a82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 1, 2026.

Transparency log

Release files / rerunnable-1.0.0-py3-none-any.whl

Download URL rerunnable-1.0.0-py3-none-any.whl
Size 165.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa7bd2913aa895c1391ff50ac14996ff58863ed7fd77d371bb01d5e17ea8a784
BLAKE2b-256 checksum
How to use checksums
4c123cd2b61ee0b9d7be0e96c9bc00a9737d85b5043836ad1f62c75606fe379e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 1, 2026.

Transparency log

Security for rerunnable 1.0.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 rerunnable-1.0.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 Dec 1, 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

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