A PDF that says “code available on request” is a dead end for an independent project. Publish the working path from question to result, including the parts that did not behave as expected.

Make the README a control panel

A stranger should understand the claim, locate the result, and reproduce it without asking you for hidden instructions. Put the research question, main finding, limitations, data provenance, environment setup, and exact replication command at the top level.

Use a clean checkout to test the instructions yourself. Better still, ask someone uninvolved in the project to follow them while you remain silent. Every question they need to ask reveals missing documentation.

Use a boring, explicit structure

project/
├── README.md
├── protocol.md
├── LICENSE
├── environment.lock
├── data/
│   ├── README.md
│   └── checksums.txt
├── src/
├── tests/
├── analysis/
├── ai_documentation/
│   ├── ai_log.md
│   └── raw_outputs/
├── results/
└── report/

The exact layout can change. The principle should not: inputs, transformations, model assistance, and reported outputs must be distinguishable. Do not overwrite raw data or raw model responses with cleaned versions.

Pin the environment and test the path

Record dependency versions, operating system assumptions, hardware requirements, and relevant random seeds. A lockfile is useful; a container or hosted notebook can help when the environment is complex. Neither replaces a clean-run test.

Include automated tests for the transformations that carry scientific meaning: labels, unit conversions, exclusion rules, metric calculations, and dataset splits. A perfect reproduction of a leaky pipeline is only a perfectly reproduced error.

Document data provenance

For every input, record the original location, creator, license, access date, version, and checksum. If redistribution is not allowed, provide a script or precise instructions for obtaining the same input legally. If data must be transformed, keep the transformation in code rather than an undocumented manual step.

For human data, explain consent and privacy constraints and avoid releasing raw records that should not be public. Reproducibility never requires exposing people or violating an agreement.

Document AI at the output level

If model output appears directly or transformed in a finding, table, classification, or report, preserve the tool, provider, exact snapshot, prompts, inputs, parameters, raw response, edits, and validation. If a model only helped write code, the script itself is the auditable output, but an AI-use note in the README still helps readers understand the workflow.

Model aliases can change over time. Record the exact version available and the date. Do not fabricate missing details after the fact; label reconstructed or unavailable information honestly.

Attach every abstract number to evidence

Create a small table mapping each important claim or number to the script, input, output file, and validation that produces it. This prevents last-minute manual edits from separating the report from the analysis.

  • Claim: the exact sentence or reported value.
  • Evidence: source data and output artifact.
  • Code: script and command that generates it.
  • Validation: test, baseline, source check, or reviewer.

Publish the nulls and the limits

Keep failed conditions, negative results, and robustness checks visible. Label exploratory analyses as exploratory. Put material limitations next to the claims they constrain rather than hiding them in a final paragraph that contradicts the headline.

A small, bounded, reproducible null result contributes more than a sweeping claim that cannot survive a clean checkout. Your first independent paper does not need to change an entire field. It needs to make one piece of knowledge more reliable.

Archive a version

Use a repository for development and an archival service such as Zenodo for a versioned, citable release with a DOI. Link the exact release used in the report. If you update the work, publish a new version rather than silently changing the historical result.

The final test is simple: can a skeptical stranger obtain the package, run the analysis, inspect the model-assisted steps, and identify precisely where they disagree? If yes, you have done more than publish a claim. You have published science.

Start with the protocol ↗

References and further reading