A research package should let an authorized analyst reconstruct the reported result from identified inputs and analysis steps. A folder containing data and a chart is not enough if the chart depends on an undocumented filter, hidden worksheet or unavailable service.
State the reproduction boundary before distribution. Which result can another person rebuild, with which artifacts, environment and permissions? If some inputs are restricted, explain what review is possible instead of promising full public reproduction.
The Turing Way defines reproducible research around recreating work from the same data and code, while distinguishing replication and robustness. Use a declared meaning like that rather than treating every form of independent checking as interchangeable.
Inventory dependencies before packaging
List input files, source versions, code, configuration, environment, manual decisions and expected outputs. Include external lookups or credentials if they affect the analysis, while keeping secrets out of the distributed package.
The download identity review checks that files match approved artifacts. Reproduction asks a further question: do those artifacts generate the result the report describes?
A matching checksum establishes agreement with a reference, not that the analysis is scientifically appropriate. A successful run establishes a computational relationship, not that the sample represents a population.
Write an execution contract
The contract should identify the exact command, working directory, software version, dependencies, input identity, expected output and comparison rule. Name any random seed when randomness matters, but do not add one as a ritual to a deterministic calculation.
Specify whether outputs should match exactly or within a justified numerical tolerance. A tolerance is not permission to ignore changed row membership or a different denominator.
| Package item | Acceptance evidence |
|---|---|
| Data | Approved version, schema, access and checksum |
| Analysis | Complete filter and calculation steps |
| Environment | Named runtime and dependencies |
| Decisions | Recorded exclusions and manual classifications |
| Output | Expected counts, values and comparison rule |
| Limits | What restricted inputs prevent others from checking |
Keep the contract short enough for someone outside the original analysis to use without a private explanation.
For a file-based package, record character encoding, delimiter and the exact input path. Run from a clean directory with only the declared artifacts. A script that silently selects another local file can produce a plausible result while failing the contract; make the selected input and row counts visible in the receipt instead of relying on a successful exit code.
Run a tiny fictional reference analysis
The following Python example contains its complete invented input. It describes no real organization or research result. It requires only Python's standard library.
import csv
import io
DATA = """id,eligible,outcome
A,1,1
B,1,0
C,1,1
D,1,1
E,0,0
"""
rows = list(csv.DictReader(io.StringIO(DATA)))
assert len(rows) == 5
assert len({row["id"] for row in rows}) == 5
assert all(row["eligible"] in {"0", "1"} for row in rows)
eligible = [row for row in rows if row["eligible"] == "1"]
assert all(row["outcome"] in {"0", "1"} for row in eligible)
positive = sum(int(row["outcome"]) for row in eligible)
assert len(eligible) == 4
assert positive == 3
rate = positive / len(eligible)
assert rate == 0.75
print(f"positive={positive}; eligible={len(eligible)}; rate={rate:.2f}")The expected result is three positive outcomes among four eligible rows, or 75 percent. Row E remains in the source but outside the eligible analysis. A report saying three of five would not describe this contract.
For a real package, the input would normally be a separately identified permitted file. Keeping it inline here makes the miniature example inspectable without a download.
Include negative acceptance cases
Change E's eligibility from zero to one without changing the contract. The eligible-count assertion should fail rather than quietly produce a new 60 percent result under an old headline.
Remove C's outcome. The binary-value assertion should fail; missing is not zero. Add a duplicate identifier and the identity assertion should fail.
These failures test the declared fixture, not the validity of every possible research dataset. A legitimate new version may require a revised contract and expected result. Preserve the change rather than disabling assertions merely to make the run green.
Keep analysis correctness separate from reproducibility
A flawed formula can reproduce perfectly. A biased dataset can generate the same misleading result on every machine. Review measurement definitions, inclusion, arithmetic and inference separately.
The research table package preserves the dictionary and source rows. Add the execution contract so an analyst can trace how those rows become the published values.
Where a manual coding decision affects the result, provide the permitted decision record and rubric. A spreadsheet macro or undocumented analyst judgment should not remain a hidden dependency.
Handle restricted and changing inputs honestly
Do not publish personal or licensed data simply to make the package open. Use an authorized controlled review, approved synthetic fixture or aggregated substitute where appropriate, and explain what it can and cannot reproduce.
A synthetic fixture can test code behavior but cannot reproduce a confidential empirical finding. Keep those claims separate. Likewise, a live API response may change; freeze an authorized input snapshot or describe the dependency and observation time.
Do not claim a current external service will return the same data forever. Reproduction evidence belongs to a specified version and access context.
Release after an independent run
Ask a reviewer to start from the distributed instructions rather than the original author's working directory. Record the actual command, environment, output, differences and unresolved dependencies.
Use the number-check method to reproduce key values by a separate path where practical. Confirm the public chart and narrative use the same approved output.
Release when the package reconstructs the promised result within its stated boundary and the methodology has its own review. If a dependency is unavailable, narrow the reproduction statement or hold the package. Inspectable execution is valuable because it exposes the evidence chain, not because a successful script certifies the finding.
