Skip to content

Results

pypi python license docs

Run it in your browser — every command on this page, in a live notebook at the bottom. No install.

Seal inputs, record outputs, and bind a paper’s claims to the runs behind them.

Part of reproducible-science alongside repro, citations and prereg — see the documentation.

pip install results-cli
results init
results seal prereg.md analysis.py data.csv --role input
results access "read zenodo metadata" --level "metadata only"
# run the computation, then record its outputs
results run output.json --run-id exp_001 --note "ICC analysis"
results claim "ICC = 0.42" --run-id exp_001 --confirmatory --location "Table 2"
results verify --files
chain intact: 5 events
access 1
claim 1
init 1
run 1
seal 1
file hashes:
ok prereg.md
ok analysis.py
ok data.csv
ok output.json
all checks passed.
Command What it does
results init Start tracking results here
results seal <file>... Hash inputs before a run
results access <note> Record a data-access event
results run <file>... Record outputs after a run; --holds says the outputs hold metadata or structure and no outcome
results label <run-id> Declare after the fact that a recorded run’s outputs hold no outcome
results retire <file>... --note TEXT Record that recorded paths are no longer part of the project, and why; --superseded-by NEWPATH names what replaces them
results claim <text> Bind a manuscript claim to a run
results review <file>... Record that someone examined these files, and what they found
results annotate <file>... Link these files to something outside the ledger; linked, not checked
results verify Check the ledger chain and every hash it names
results verify --json PATH Also write what it found to PATH as JSON: the chain’s status, the number of events, and each recorded file with its state
results timestamp Date the ledger’s head outside the repository, and check earlier dates

A number in a manuscript names a claim. The claim names a run. The run names its outputs. The outputs were hashed when they were recorded. The inputs were hashed before the run started.

manuscript → claim → run → output file → sha256
input files → sha256

results verify --files walks the whole thing and tells you what moved.

Some checks are done by reading: a person, or a model, compares a table with the file behind it. results review records that the reading happened, and of which bytes.

results review results/table3.csv paper/table3.pdf \
--scope "every cell of Table 3 against the regenerated file" \
--procedure "read the rendered page beside the csv" \
--verdict partial --reviewer "A. Reader" --model claude-opus-5-5 \
--note "30 cells agree at the certified revision; 4 differ"

Each file is recorded by its sha256, so the review is of those bytes and no others. results verify --files lists every review and marks a subject STALE once the file has changed, without failing: a reviewed file that then changes is the ordinary result of acting on a review. --scope, --procedure, --verdict and --reviewer are required, and the verdict is one of pass, fail, partial and uncertain.

The record is self-reported and unsigned. The ledger shows that the review was stated and when; nothing checks who stated it. --model is the identifier the caller gives. Inside Claude Code the command also records the harness, its version and the session identifier from the environment, which does not say which model ran, so a model reviewer passes --model.

Some of what a paper rests on lives outside the repository: a Weights & Biases artifact, a deposited dataset, an OSF node, a row in another group’s table. results annotate records that a file here corresponds to that outside thing.

results annotate checkpoints/model.pt \
--kind wandb:artifact --ref "lab/study/model:v3" \
--digest md5:0123456789abcdef0123456789abcdef \
--by "A. Reader" --note "the checkpoint behind Table 2"
results annotate results/table2.csv \
--kind doi:dataset --ref 10.5281/zenodo.1234567 --location "Table 2"

An annotation is a statement of a link and not a check: the tool fetches nothing and compares nothing, and the event carries the status linked, not checked. Each file is recorded by its sha256, so the link is stated of those bytes.

--kind and --ref are required. --kind is namespace:type in lowercase, such as wandb:artifact, doi:dataset, osf:node, url:page, zenodo:record or hf:dataset; any kind of that shape is accepted, and a malformed kind writes nothing. --ref is the artifact path, DOI, URL or identifier. --digest records the digest the outside system reports, as algorithm:hex. --by names who states the link, --note says anything else, and --location names where in the manuscript the linked number or sentence appears. No session information is recorded.

annotations (linked, not checked):
2026-10-11T16:54:21 wandb:artifact lab/study/model:v3 [A. Reader]
digest as stated: md5:0123456789abcdef0123456789abcdef
STALE checkpoints/model.pt
annotated 1b465fa6b6bcbc06…, now 7e4fa2eb8c7ac089…
2026-10-11T16:54:21 doi:dataset 10.5281/zenodo.1234567
appears in: Table 2
current results/table2.csv
1 annotated file(s) are no longer the bytes the link was stated of.

results verify lists every annotation. With --files each file is current, STALE once it has changed, or MISSING; without --files it is not checked. None of the three changes the exit code.

The access timeline is what makes the confirmatory/exploratory distinction verifiable.

Level Meaning
nothing seen No target data touched
metadata only Structure, region names, sample sizes — not outcomes
structure seen Data shape and distributions, not the target variable
outcomes seen The dependent variable was observed

An analysis registered after outcomes seen is retrospective.

Result Meaning
chain intact Every event’s prev_hash matches the line before it
CHAIN BROKEN The ledger was edited after it was written
ok File matches its recorded hash
RESEALED Recorded under more than one hash, and the file matches the latest record. Reported; passes
RERECORDED Recorded as an output by a later run under other bytes, with no input of the earlier run (a path sealed before it) sealed again between the two: an output changed and recorded again, or a re-run with no record of its inputs. Reported, and the path is still compared, so CHANGED shows beside it; a note, failing nothing
APPENDED A plan prereg freeze froze in place, which prereg check finds unchanged, and which differs from its latest seal only by entries prereg log appended and the **Log:** line it recounts. Passes
IGNORED One of the ledger’s own files (.results/, a lock sidecar), recorded by an earlier version. Not compared; passes
REVERTED Recorded under more than one hash, and the file matches an earlier record and not the latest. Fails
RETIRED Retired by results retire, and either gone or still holding bytes one of its records names. Shown with the note, and the replacement where one was named. Passes
REAPPEARED Retired, and the path holds bytes none of its records names, or a file where a directory was sealed or the reverse. Fails
CHANGED File was modified since it was recorded. Fails
MISSING File no longer exists. Fails
NOT A TREE, NOT A FILE Sealed as a directory and now a file, or the reverse. Fails
LEDGER HISTORY REWRITTEN A commit holds a version of the ledger, or of its anchor, that the ledger on disk does not extend: an event removed or changed and the chain recomputed. Fails
TIMESTAMP PROOF MISSING A commit added a proof under .results/timestamps/ that is not on disk. Reported; a note, failing nothing

results run warns when it records an output whose path a run already recorded under other bytes and no input of that run has been sealed since: a re-run reads its inputs, so seal them first. Sealing some other file, or an input again with the bytes it had, does not count. results run --strict refuses it. A limit: the inputs of a run are every path sealed before it, so resealing one of them that the run never read, with new bytes, clears RERECORDED. results reanchor, and results claim, refuse where a commit holds a longer ledger or anchor than the one on disk.

A ledger that is never committed, one a .gitignore keeps out of git, has no history to be checked against: it can be rewritten and anchored again, a forged freeze event included, and nothing here can tell. Commit the ledger; every check of the order of events rests on it.

results claim reads the run’s outputs as text and warns where a number the claim prints is held by none of them at the printed precision, with half-up or half-even rounding; a number printed with % or percent beside it is also held by a stored fraction or the reverse. --strict refuses the claim and writes nothing. The check is that some output holds the value, not that it is the value the sentence is about: a limit, since a number held under another key of the run’s outputs passes, and so does a claim reading the wrong field that happens to hold the same digits. A claim whose numbers are derived from the outputs, a mean of stored values for instance, says so with --derived "how": the note is recorded, shown by verify, and the numbers are not compared. Zero-width and other format characters are removed before numbers are read, with a warning. results verify counts such claims on one line (--explain lists them, and the JSON always does) and passes them; results verify --strict fails them. That is the one finding --strict adds: a number absent from outputs that are on disk as their run recorded them.

What the records cannot establish is a note, under --strict too, because a check that could not run is not a check that failed:

  • a claim whose run’s outputs a later run rewrote, or that changed, is unchecked, with what became of each output; one a later claim re-binds, on a run that rewrote its outputs or in the same words, is counted once as superseded;
  • a claim whose run’s every output was retired;
  • a RERECORDED output and a missing timestamp proof;
  • a ledger deleted and started again, said with its date and the kinds of event the earlier chain held. The earlier chain’s exposures still order a confirmatory claim after them;
  • a freeze whose commit a shallow clone does not hold, a freeze made with prereg freeze --force, and a frozen plan no longer on disk. A confirmatory claim fails only where its plan is on disk, or at its freeze commit in this clone, with other bytes than were frozen.

The records make drift visible to a reader with a clone. They do not resist an author who means to rewrite them: deleting the ledger and its history, or a freeze record and its plan, leaves a note and not a failure.

A tree a seal or a verify reads says which names its digest skipped: symlinks, which are not followed, and cache directories. Every .results/ ledger below the project’s own is verified after it, and the exit code covers them all.

A path is meant to be sealed once, and a new version is a new file, so RESEALED stays in the report although it does not fail. APPENDED reads the sealed bytes from the repository’s history, since the ledger holds only their hash; where no commit holds them, the plan is CHANGED. Whether the two versions differ only in what prereg log writes is decided by prereg.inplace.entries_appended, the rule prereg check applies. A plan frozen whole never changes and keeps its log beside it.

A path that leaves the project, because it was deleted, moved or folded into another file, is MISSING until it is retired:

results retire results/old_table.csv --note "merged into table2.csv" --superseded-by results/table2.csv

The seals and runs that recorded the path stay in the ledger; retire appends an event naming the paths, the note and, with --superseded-by, the replacement, with the digest it holds now where the ledger records the replacement too. It refuses a path no seal or run recorded, a path already retired, an empty note, and a replacement that does not exist, and writes nothing. A seal or a run of the path after its retirement makes it part of the project again, so the latest event decides. A retired path that comes back holding new bytes fails as REAPPEARED, because the ledger says nothing about what is there.

results seal and results run refuse the ledger’s own files, and a directory holding .results/: each changes with every event, so a seal of one is out of date at the next command.

With --json PATH, each recorded file is {"path", "state"}, with state one of ok, resealed, rerecorded, appended, ignored, retired, reverted, reappeared, changed, missing, not a tree and not a file; rerecorded carries runs, the two run ids. resealed and reverted also carry hashes, the number of distinct hashes recorded for the path, and reverted carries matches, the position of the one the file holds, counted from 1 in the order recorded; appended carries entries, the log entries added since the seal; ignored carries note; retired and reappeared carry note, and superseded_by where a replacement was named; retired carries present: true where the file is still on disk. The top-level exit is the command’s exit code, so a reader that does not know a state can still tell whether the run passed.

Append-only JSONL in .results/ledger.jsonl. Each line is hash-chained to the previous — editing or inserting a line breaks the chain. git diff shows what changed; results verify checks whether it should have.

results init writes a .results/.gitignore that ignores only the lock files, so the ledger and its anchor are committed with the project. A ledger on one disk is a record nobody else can check. What is committed is public with the repository, so a run’s note is written as a commit message would be.

Two branches that both append to the ledger cannot be merged by taking one side’s file: the other side’s events are then missing, and verify reports the history as rewritten. Merge both sides’ events.

The chain catches a line edited by hand. It cannot catch the ledger and its anchor rewritten together, because whoever can write one can write the other. results timestamp sends the head to the OpenTimestamps calendars, which commit it into a Bitcoin block within a few hours, and keeps the proof under .results/timestamps/. Each line names the hash of the one before it, so a proof of the head dates every earlier event too.

events 1–153 existed by Bitcoin block 915004, 2026-10-03 16:12 UTC

results verify reads the proofs with no network. A proof whose head no longer matches the chain at its length means the ledger was rewritten after it was stamped:

TIMESTAMP CONTRADICTS THE CHAIN — the ledger was rewritten after it was stamped
000153-3f9c2a1b7d4e5f60.ots dates event 153 as 3f9c2a1b7d4e5f60…, and the ledger's event 153 is 81d0…

plugin/ is a Claude Code plugin. Three surfaces, because each catches a different failure: the hook catches what the model does not think to do, the skill catches what you did not know to ask for, and the command is there for when you want the answer now.

surface fires
hook when a number enters a manuscript that no recorded claim names
skill when Claude judges the situation calls for sealing inputs, recording outputs, binding a paper’s claims to runs
command when you type /results-check

Why the hook. The address is on screen while the sentence is being written and gone immediately afterward. A number recovered later has to be matched by its digits, and a value reported to two or three significant figures matches something in an artifact of any size.

It reports and never blocks, and stays silent in a project with no .results/ ledger.

/plugin marketplace add elliottower/reproducible-science
/plugin install results@reproducible-science

The plugin ships instructions and hooks, not binaries, so install the tool as well:

uv tool install results-cli # or: pip install results-cli

All four tools in one plugin, with every hook, skill and command:

/plugin install reproducible-science@reproducible-science

MIT licensed.

results installs and runs on its own, is not deprecated, and is not going to be. reproducible-science depends on it, so repro results ... runs this same command with the same arguments and the same exit code. That is a spelling, not a feature.

What only exists in the umbrella is repro verify, which checks a project’s claims and runs every tool the project uses in one pass, with one report and one exit code, and names the tools the project does not use rather than counting them as passing. If a project only records runs, use this command directly.

Runs here, in this tab. Nothing is installed and nothing is uploaded.