Skip to content
Docs: Automation

Automation: one command, locked and seeded

One command, locked versions, fetched inputs and recorded seeds: an area result beside the level, not a step toward L3.

Applies to: Self-check · RepoReady Platform

Last updated

On this page
The Automation result sits beside the level, which Materials, Workflow and Integrity decide.
Level relationshipArea result · one route to L2

Some findings here are Warnings: they point to an improvement and never change the level.

C1One command produces the results

What counts
What it flags
How to fix
Makefile
.PHONY: all data smoke
all: data results/table1.csv results/figure2.pdf

data:
	bash scripts/get_data.sh

results/table1.csv: data
	python -m analysis.table1 --out $@

results/figure2.pdf: results/table1.csv analysis/figure2.R
	Rscript analysis/figure2.R

smoke:
	python -m analysis.table1 --subsample 0.01 --out /tmp/table1_smoke.csv

C2The software environment is pinned

What counts
What it flags
How to fix
bash
# Python: lock every direct and indirect version in uv.lock
uv lock

# R: record the R version and every package version in renv.lock
Rscript -e 'renv::snapshot()'

C3Input retrieval is automated

What counts
What it flags
How to fix
bash
#!/usr/bin/env bash
# scripts/get_data.sh: fetch and verify every open input
set -euo pipefail
mkdir -p data/raw
curl -fL -o data/raw/counts.csv.gz \
  "https://zenodo.org/records/0000000/files/counts.csv.gz"
sha256sum -c data/checksums.sha256

C4Random seeds and variability are controlled

What counts
What it flags
How to fix
python
import argparse, random
import numpy as np
import torch

parser = argparse.ArgumentParser()
parser.add_argument("--seed", type=int, default=0)
args = parser.parse_args()

random.seed(args.seed)
np.random.seed(args.seed)
torch.manual_seed(args.seed)
torch.use_deterministic_algorithms(True)  # error on nondeterministic ops

G2Beside the level · Warnings onlyTests and notebooks

What counts
What it flags
How to fix

See where your project stands

Run the free self-check in your coding agent, or get a platform assessment through your institute, company or journal.

Back to top