Record computational experiments and create machine-verifiable evidence for checking their results.
pip install sciproof==0.8.0
Record a computational experiment once, then let anyone check the evidence : are the files unchanged, and does re-running the command give the recorded results, exactly or within a tolerance you declared?
Status: 0.8.0. Small, local-first, offline, zero runtime dependencies. Listed in Awesome Reproducible Research . 🌐 Try it with zero install: Browser Evidence Verifier Playground (100% client-side Web Crypto SHA-256). 🤖 Connect AI Agents (MCP): Run sciproof mcp to stop Claude, Cursor, and coding agents from hallucinating benchmark numbers. See For Researchers for paper reproducibility, artifact evaluation, and LaTeX integration. ⭐ Contributors welcome! Pick an open good first issue ( /take to claim instantly), and consider dropping a Star on the repository to help other researchers and developers discover SciProof!
Status: 0.8.0. Small, local-first, offline, zero runtime dependencies. Listed in Awesome Reproducible Research . 🌐 Try it with zero install: Browser Evidence Verifier Playground (100% client-side Web Crypto SHA-256). 🤖 Connect AI Agents (MCP): Run sciproof mcp to stop Claude, Cursor, and coding agents from hallucinating benchmark numbers. See For Researchers for paper reproducibility, artifact evaluation, and LaTeX integration. ⭐ Contributors welcome! Pick an open good first issue ( /take to claim instantly), and consider dropping a Star on the repository to help other researchers and developers discover SciProof!
You have a script that produced a table or a figure. Months later, a reviewer, a collaborator or you yourself ask: which code and data made this, in which environment, and does it still come out the same? SciProof records the answer in a single JSON evidence manifest and can later verify it with an explicit verdict: PASS , FAIL or INCONCLUSIVE .
What it does and does not prove
Bitwise reproducibility across different hardware or platforms is not promised. Details in docs/CONCEPTS.md .
SciProof is a lightweight way to verify that a computational experiment's recorded files and supported outputs have not unexpectedly changed. Typical situations: ML experiment verification, regression testing for scientific software, numerical simulations, reproducing research results, data pipeline outputs and benchmark verification. Each one, with its limits, is described in docs/USE_CASES.md .
For Researchers & Paper Authors
If you publish computational papers (ML, bioinformatics, numerical modeling):
Zero code modifications: Run sciproof record -- python train.py — inputs, outputs and environment are captured automatically.
No manual copy-pasting into LaTeX: sciproof export --format latex -o values.tex writes numbers as \newcommand{\accuracy}{0.94} directly from verified outputs, preventing paper number drift ( details ).
Calibrated tolerances: sciproof calibrate measures numerical variance across runs and suggests realistic rtol / atol so floating-point noise never fails a reviewer check.
Artifact Evaluation badge: Add a reproducible evidence badge to your paper repository or provide one command ( sciproof verify --rerun ) for conference artifact reviewers.
From source (for development):
The repository contains a small deterministic experiment (a seeded Monte Carlo estimate of pi). Run everything below from the repository root, or run python examples/demo.py to see the whole story in a temporary directory.
1. Capture the experiment. Declare the files that matter; everything after -- is the command (it is not run through a shell):
2. Inspect the evidence. This never runs the recorded command:
3. Verify integrity (nothing is executed):
4. Verify by re-execution. Running the command is a deliberate act: it needs --rerun and either an interactive confirmation or --yes .
5. A modified output is detected:
Exit codes: 0 PASS, 1 FAIL, 2 INCONCLUSIVE, 3 usage error or invalid manifest. A missing input, a missing numeric snapshot, a command that cannot be started, a timeout or a declined rerun are INCONCLUSIVE , never PASS .
Every report says why the verdict was chosen ( basis ) and what was not checked. With --json it also carries the evidence behind each check (digests, tolerances, the exact differences). Details: docs/REPORT.md ; the exact numeric comparison rules: docs/COMPARISON.md .
A walkthrough with NumPy and pandas, including how to choose tolerances: docs/TUTORIAL_NUMPY_PANDAS.md .
From a standard-library script to CI with record, verify and calibrate: docs/TUTORIAL_RECORD.md .
Paths must be inside the current directory; the manifest is written there as NAME.sciproof.json . Numeric outputs are also copied to NAME.sciproof.d/ (needed to compare with a tolerance; keep it to the manifest).
Declared inputs must be read-only for the command; capture fails if the command changes one.
--input and --output accept a directory: every regular file below it is recorded, and a verification names the files that were added, removed or modified. Symbolic links inside are refused, empty directories are not recorded, and there is a limit of 10,000 files ( details ). --output-numeric takes single files only.
A command that exits with a nonzero status is still recorded (capture then exits with 1 unless --allow-nonzero ).
--json prints the verification report as a single JSON object (same exit codes), for CI and scripts. Prompts and errors go to stderr, so stdout stays valid JSON.
suggest-inputs runs a Python command once (it really runs, with side effects) and lists files it opened for reading that are not declared, so you can add them as --input . It only sees reads made by Python code; C extensions, other programs, network and environment variables are invisible, so an empty answer is not proof. If the hook never starts (the command is not Python, or Python ran with -I or -S ), it says so and exits with 2 instead of reporting "no undeclared files". Delete stale __pycache__ before a rerun: Python reuses a .pyc when the source's size and modification second are unchanged.
--strict-env makes a rerun INCONCLUSIVE (without executing) if Python version, platform or recorded package versions differ.
--format markdown prints the verification report as GitHub-flavoured Markdown for CI summaries ( sciproof verify ... --format markdown >> "$GITHUB_STEP_SUMMARY" ), including a table of numeric differences (recorded, found, absolute and relative difference, allowed).
diff compares two manifests and lists what changed between two recorded runs: command, environment and packages, Git state, inputs, outputs (numeric ones with the baseline tolerance) and exit code. It executes nothing. Exit status 0 if nothing differs, 1 otherwise ( details ).
--claim OUTPUT 'LOCATION OP VALUE' records a statement one value in a .json or .csv output ( '$.accuracy >= 0.9' , '$.loss ~= 0.25 atol=0.01' ) that verify checks on the recorded output and on every rerun. It shows that the value satisfies the comparison, nothing more ( details ).
--note TEXT stores free text with the run (why it was made); --record-hardware also records the CPU count, processor and NVIDIA GPUs (no host name, user name or serial numbers), and a rerun on different hardware says so.
sign and verify --allowed-signers FILE sign a manifest and check the signature with OpenSSH ( ssh-keygen -Y ); SciProof implements no cryptography and trusts only the file you name ( details ).
list shows the manifests in a directory, newest first; list --check verifies all of them (integrity only) and exits with the worst result. export writes a manifest as an unsigned in-toto Statement or as OpenLineage run events ( details ).
--policy FILE checks a TOML file of rules the evidence itself (not older than N days, clean Git tree, signed, at least one claim, no tolerance looser than a ceiling, rerun with --clean-env , ...); each rule is a check of the report, and an unmet requirement is INCONCLUSIVE , not a pass ( docs/POLICY.md ).
record captures a command without declaring any file: it runs it, detects the inputs (files Python read) and outputs (files created or changed), runs it again to see which outputs are stable, and prints the equivalent capture command ( details ).
calibrate runs the recorded command several times and measures how much the outputs vary: exact outputs must be identical, numeric ones get a suggested tolerance; it executes the command, so it asks for confirmation ( details ).
update captures the recorded experiment again with the declarations already in the manifest and shows what changed; it executes the recorded command, so it asks for confirmation ( details ).
In CI: --format junit for test viewers, and a GitHub Action ( uses: hayagrivai-labs/[email protected] ) that verifies a manifest, posts sticky PR ( -pr: true ), reports 0–100 audit scores ( audit: true ), and renders Mermaid pipeline DAGs ( details ).
Paper-to-Proof Linter ( sciproof check-paper paper.tex baseline.sciproof.json ): verifies numbers cited in LaTeX, Markdown, or Typst papers against verified outputs.
Reproducibility Audit & Live Machine Doctor: sciproof inspect --audit (0–100 readiness score) and --doctor (live Python/OS/package drift check with pip install fix).
Portable Evidence Bundles & Exporters: sciproof export --format bundle ( .bundle.zip ), model-card (HuggingFace), attestation-card , zenodo , cff , dockerfile , requirements , latex , typst , ro-crate , in-toto , dsse , openlineage .
Interactive Dashboards & Merkle Ledger: sciproof list -r --check --merkle --format html > dashboard.html and sciproof diff old.json new.json --format html > diff.html .
10-Second Setup & AI Agents: sciproof init scaffolds policy + CI workflow; sciproof mcp runs the read-only Model Context Protocol server over stdio.
--clean-env gives a rerun only a minimal environment ( PATH , temp directories and the numerics-related variables SciProof records) instead of all of yours, so a manifest from someone else cannot read your credentials from it. --pass-env NAME adds a variable. It limits environment variables only: the command can still read your files and use the network, so it is not a sandbox.
Python API: docs/PYTHON_API.md .
Manifest format: docs/MANIFEST.md .
Check your experiment evidence on every push. The action installs SciProof, verifies a manifest, writes the report to the job summary and fails the step unless the result is PASS .
Threat model and limitations
A manifest contains a command and must be treated as untrusted. inspect and plain verify never execute it; --rerun runs it with your permissions, unsandboxed . Only rerun manifests you trust, ideally in a disposable VM or container. See SECURITY.md .
Manifests can be signed with OpenSSH and checked against an explicit allowed-signers file; see docs/SIGNING.md . A signature shows that the holder of an allowed key vouched for those exact manifest bytes; it does not show that the experiment is correct, that it was run as described, when it was signed, or that the key and trust file were not compromised. Without a signature, hashes do not stop someone who can rewrite both the manifest and files from fabricating consistent evidence.
Only declared files are tracked. Undeclared inputs, network, time and system libraries are invisible. SciProof reports environment differences but does not recreate environments.
stdout/stderr and the command line are stored in the manifest; review them for secrets.
Numeric comparison supports .json , .csv and .tsv (standard library only) and .npy arrays and .npz archives ( pip install 'sciproof[numpy]' ; numeric, boolean and complex dtypes, never unpickled).
The environment is probed from the command's interpreter only if the command is a Python interpreter; otherwise the interpreter running SciProof is described (and the manifest says so).
Linux, Windows and macOS are tested in CI (Python 3.11-3.13).
The unit tests that check symlink escapes need symlink support (they run in Linux CI and are skipped where symlinks are unavailable).
Full analysis, with what could not be confirmed: docs/COMPETITIVE_ANALYSIS.md .
Roadmap (decided by feedback, not by speculation)
Nothing below is promised. Each item is only worth doing if real users ask for it:
Try it on real experiments of a few researchers; record what is awkward or missing.
Based on that: additional domain-specific numeric formats (such as HDF5 or Zarr) or export targets if researchers ask for them. Numeric comparison already supports .npz multi-array archives (see docs/COMPARISON.md ) and exports support RO-Crate JSON-LD (see docs/LIST_AND_EXPORT.md ). the manifest format .
Add trusted timestamping only if users need it. Signing is already supported, but it does not establish when a manifest was signed; see docs/SIGNING.md .
New here? The open issues are written for newcomers: each one has the problem, the files to touch and the acceptance criteria. Start with the good first issues , /take on one to claim it, or ask in Discussions . Nothing to install: open it in Codespaces . A map of the code is in docs/ARCHITECTURE.md .
See CONTRIBUTING.md . Quick checks: ruff check . , ruff format --check . , python -m pytest , python examples/demo.py .
Thank you to everyone who has contributed to SciProof!
MIT : short and permissive, so researchers and companies can use and embed it without legal review.
Release files for sciproof 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .
Source distribution (sdist)
Built distribution (wheel)
Total release size: 427.5 kB
Release files / sciproof-0.8.0.tar.gz
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 28, 2026.
Release files / sciproof-0.8.0-py3-none-any.whl
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 28, 2026.
Security for sciproof 0.8.0
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.
Both files in this release have been uploaded with provenance metadata.
Attestation for sciproof-0.8.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 28, 2026.
Attestation for sciproof-0.8.0-py3-none-any.whl
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 28, 2026.
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.
Release history Release notifications | RSS feed
Nov 28, 2026 2 release files Full provenance
Nov 21, 2026 2 release files Full provenance
Nov 5, 2026 2 release files Full provenance
Oct 30, 2026 2 release files Full provenance
Oct 26, 2026 2 release files Full provenance
Oct 26, 2026 2 release files Full provenance
Oct 23, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Oct 18, 2026 2 release files No provenance
Oct 18, 2026 2 release files No provenance
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
