Get your research artifact reviewer-ready before you submit: reproducibility audits, dynamic verify, auto-fix, an agent-ready fix plan, and an ACM/NeurIPS Artifact Appendix generator.
Project description
Research Repo Doctor
Get your research artifact reviewer-ready before you submit.
Research Repo Doctor (rrdoctor) is reproducibility infrastructure for research code: a
local-first CLI and GitHub Action that audits whether a repository is reproducible,
reviewable, citable, and release-ready, fixes the mechanical gaps, hands the rest to any
coding agent as a verifiable plan, and maps the result to the artifact checklists that have a
deadline attached — ACM Artifact Evaluation (Available / Functional / Reproduced) and the
NeurIPS reproducibility checklist.
The audit is deterministic and runs without an AI API key, network access, or hosted service. That same determinism makes it an honest grader: it can verify fixes made by a person or a coding agent.
audit ──▶ fix ──▶ plan ──▶ (your coding agent / you) ──▶ verify ──▶ PR
│ │ │ │
└ rrdoctor scan └ rrdoctor fix --write └ rrdoctor scan --baseline
└ rrdoctor plan (tool-agnostic work order) --fail-on-new error
# Run without installing:
uvx rrdoctor scan .
# Before a deadline: draft the Artifact Appendix + ACM/NeurIPS checklist mapping
uvx rrdoctor appendix . --profile acm
Keywords: research software, reproducibility, artifact evaluation, repository audit, auto-fix, coding agents, AGENTS.md, GitHub Action, notebooks, data availability, citation metadata.
Why this matters
Research code often lands on GitHub under deadline pressure. A reviewer or future lab member finds a promising repository and then loses hours because the environment is underspecified, data paths are local, notebooks contain stale outputs, dependencies are unpinned, or the citation is unclear.
Research Repo Doctor turns those recurring release blockers into deterministic checks with concrete remediation — and, where it is safe to do so, fixes them for you. It is built to sit in the ordinary maintenance path: run locally while preparing a release, then run automatically on pull requests through GitHub Actions.
What's new in 0.3.0
rrdoctor appendix— generates an ACM-style Artifact Appendix skeleton and maps findings to ACM badge tiers and the NeurIPS reproducibility checklist, so you can fill the artifact paperwork before a deadline.rrdoctor verify— an L1 (static) / L2 (environment build) / L3 (entrypoint run) reproducibility ladder. With--runit actually resolves dependencies (uv/pip/conda/Rscript) and executes a declared entrypoint under a timeout. Only use--runon repositories you trust.- Submission profiles —
acm,neurips,icml,ml-paper,fair4rs,joss, with tag-based inheritance from the base tiers. - Deeper static checks —
RRD034cross-checks imports against the dependency manifest (deptry-style);RRD054flags hardcoded GPU/CUDA assumptions without a documented requirement. - More ecosystems — dependency/runtime checks now understand R (
DESCRIPTION,renv.lock) and Julia (Project.toml) in addition to Python and JavaScript. rrdoctor mcp— an MCP server exposingscan/verify/appendixas tools for coding agents (pip install 'rrdoctor[mcp]').
What's new in 0.2.0
rrdoctor fix— deterministic, idempotent auto-fix for common gaps (governance docs, citation metadata, data/results provenance, changelog, ignore entries). Never overwrites.rrdoctor plan— a tool-agnostic fix plan you can hand to any coding agent; every task names the deterministic check that verifies it.- Baseline gating —
rrdoctor scan --baseline report.json --fail-on-new errorfails only on newly introduced findings, so large repos can adopt the audit incrementally. rrdoctor badge— a Shields.io endpoint or SVG reproducibility-score badge.- First-class PR automation — the Action posts a sticky PR comment, writes a job summary,
and can attach the fix plan, using only the built-in
GITHUB_TOKEN. - New rules — unpinned dependencies, committed notebook checkpoints, pre-commit config, and an AGENTS.md task guide for agent and human contributors.
Install
Run without installing:
uvx rrdoctor scan .
Alternative with pipx:
pipx run rrdoctor scan .
Traditional install:
pip install rrdoctor
rrdoctor scan .
Developer install from source:
git clone https://github.com/Tom409114/research-repo-doctor.git
cd research-repo-doctor
python -m pip install -e ".[dev]"
rrdoctor scan .
Quickstart
rrdoctor scan . # deterministic audit (Markdown report)
rrdoctor fix . --write # apply safe scaffolding for the easy gaps
rrdoctor plan . --output plan.md # tool-agnostic work order for the rest
rrdoctor scan . --format json --output baseline.json --fail-on none
rrdoctor scan . --baseline baseline.json --fail-on-new error # gate regressions
Stricter gate and report file:
rrdoctor scan . --profile strict --fail-on warning --output rrdoctor-report.md
Machine-readable and agent output:
rrdoctor scan . --format sarif --output rrdoctor.sarif --fail-on none
rrdoctor scan . --format agent --output fix-plan.md
Before a submission deadline:
rrdoctor appendix . --profile acm --output ARTIFACT_APPENDIX.md # appendix + checklist mapping
rrdoctor verify . --profile neurips # L1/L2/L3 ladder (static)
rrdoctor verify . --run --timeout 600 # actually build + run (trusted repos)
Submission profiles: acm, neurips, icml, ml-paper, fair4rs, joss (alongside the
general minimal/standard/strict/ml tiers). Dependency and runtime checks also understand
R (DESCRIPTION, renv.lock) and Julia (Project.toml), not just Python and JavaScript.
The audit → fix → verify loop
A deterministic checker is reproducible and trustworthy but cannot write prose or judge intent. A coding agent edits well but needs a precise specification and an objective definition of done. Research Repo Doctor gives you both:
- Audit —
rrdoctor scanproduces deterministic findings. - Fix the easy ones —
rrdoctor fix --writescaffolds governance docs, citation metadata, provenance notes, a changelog, and ignore entries (idempotent, never overwriting). - Plan the rest —
rrdoctor planemits a tool-agnostic work order. Paste it into the coding agent of your choice, attach it to an issue, or work it by hand. - Verify — re-run the audit against a baseline. Because verification is deterministic and key-free, it works as an honest grader for changes from any source.
See docs/agent-workflows.md and docs/autofix.md.
GitHub Action
Add one workflow to many repositories and get consistent reproducibility reports on pull requests and pushes. The Action requires no API key.
name: Reproducibility audit
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
rrdoctor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Tom409114/research-repo-doctor@v0.2.0
with:
profile: standard
fail-on: none
comment-pr: "true" # sticky PR comment with the report
step-summary: "true" # report in the job summary
plan: "true" # attach an agent-ready fix plan
For new-finding gating and a committed baseline, see docs/pull-request-automation.md.
Example output
Research Repo Doctor Summary
Profile: standard
Score: 76/100
Errors: 1
Warnings: 5
Rules evaluated: 32
How to fix first:
- RRD030 No dependency manifest found: Add pyproject.toml, requirements.txt, or another manifest.
- RRD040 Data availability documentation missing: Add DATA.md, docs/data.md, or a README section.
Worked examples live in examples/reports/, including a fix plan and a self-scan report.
Commands
| Command | Purpose |
|---|---|
rrdoctor scan |
Run the deterministic audit; supports --baseline and --fail-on-new. |
rrdoctor fix |
Apply safe, idempotent scaffolding for common gaps (--write to apply). |
rrdoctor plan |
Emit a tool-agnostic fix plan (Markdown or JSON). |
rrdoctor verify |
Reproducibility ladder L1/L2/L3; --run actually builds and executes. |
rrdoctor appendix |
Generate an ACM Artifact Appendix + ACM/NeurIPS checklist mapping. |
rrdoctor badge |
Emit a reproducibility-score badge (Shields.io endpoint or SVG). |
rrdoctor mcp |
Run the MCP server (scan/verify/appendix as agent tools). |
rrdoctor init |
Write a documented .rrdoctor.yml. |
rrdoctor list-rules |
List all registered rules. |
rrdoctor explain RRD0xx |
Explain a rule and how to remediate it. |
rrdoctor doctor |
Self-diagnostics. |
Rule categories
Documentation, environment, data, experiments, notebooks, citation, governance, testing, CI, security, release, and metadata. The full table is in docs/checks.md; auto-fixable rules are marked there.
Reproducibility stance
Research Repo Doctor does not claim to prove a paper is reproducible. It checks release hygiene that makes reproduction possible to attempt. Reports are heuristic and should be reviewed by maintainers. Generated fixes are starting points and contain placeholders to complete before release.
Philosophy
Deterministic first. The scanner is understandable, testable, and useful with no network access. The core scanner will not add network calls, require a hosted-service API key, or fabricate adoption metrics. AI is something you bring to act on the output — never a dependency of the audit itself, and never tied to a single tool.
Configuration
version: 1
profile: standard
paths:
exclude: [".git", ".venv", "node_modules", "__pycache__"]
thresholds:
large_file_mb: 50
large_notebook_output_kb: 1024
rules:
RRD032:
enabled: false
RRD042:
severity: warning
fail_on: error
Contributing
Contributions are welcome. Start with CONTRIBUTING.md and AGENTS.md, open a rule request or false-positive report, and include a minimal fixture when possible.
Security
Do not report suspected credential exposure in a public issue. See SECURITY.md.
Citation
Use the included CITATION.cff.
License
MIT. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rrdoctor-0.2.1.tar.gz.
File metadata
- Download URL: rrdoctor-0.2.1.tar.gz
- Upload date:
- Size: 84.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40ba1a3971199bb790a26786e6fc23367df9653dc766bd046b7509e1a0be59c8
|
|
| MD5 |
1ded65b09af4e39a5823235a10171408
|
|
| BLAKE2b-256 |
b1d9f7271befe8a0b01129d5e987987f744544b776be86a7f326b3b7ff7b32b1
|
Provenance
The following attestation bundles were made for rrdoctor-0.2.1.tar.gz:
Publisher:
release.yml on Tom409114/research-repo-doctor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rrdoctor-0.2.1.tar.gz -
Subject digest:
40ba1a3971199bb790a26786e6fc23367df9653dc766bd046b7509e1a0be59c8 - Sigstore transparency entry: 2011572028
- Sigstore integration time:
-
Permalink:
Tom409114/research-repo-doctor@2511604f650bfbfc68a5c59e89037aae74e56cd1 -
Branch / Tag:
- Owner: https://github.com/Tom409114
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2511604f650bfbfc68a5c59e89037aae74e56cd1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rrdoctor-0.2.1-py3-none-any.whl.
File metadata
- Download URL: rrdoctor-0.2.1-py3-none-any.whl
- Upload date:
- Size: 60.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00a36f716d686dbb605394dc715d04e0fce8c1cc434d402ee2cfb226f5d54496
|
|
| MD5 |
cdfa9a9511216f04f9b88834bd36cc18
|
|
| BLAKE2b-256 |
6f4cd2b51bc6fc7f5707553314196261fefc2f02d01246e1df4637f3036cbf0e
|
Provenance
The following attestation bundles were made for rrdoctor-0.2.1-py3-none-any.whl:
Publisher:
release.yml on Tom409114/research-repo-doctor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rrdoctor-0.2.1-py3-none-any.whl -
Subject digest:
00a36f716d686dbb605394dc715d04e0fce8c1cc434d402ee2cfb226f5d54496 - Sigstore transparency entry: 2011572159
- Sigstore integration time:
-
Permalink:
Tom409114/research-repo-doctor@2511604f650bfbfc68a5c59e89037aae74e56cd1 -
Branch / Tag:
- Owner: https://github.com/Tom409114
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2511604f650bfbfc68a5c59e89037aae74e56cd1 -
Trigger Event:
release
-
Statement type: