Source Baseline Guide¶
Guide Maps¶
graph LR
family["Reproducible Research"]
program["Deep Dive Snakemake"]
guide["Capstone docs"]
section["SOURCE_BASELINE_GUIDE"]
page["Source Baseline Guide"]
proof["Release route"]
family --> program --> guide --> section --> page
page -.checks against.-> proof
flowchart LR
question["Need a clean learner or review bundle"] --> clean["Remove local-only state"]
clean --> check["Prove the source baseline is clean"]
check --> bundle["Build the tracked-source archive"]
bundle --> review["Inspect the archive instead of trusting the working tree"]
Use this guide when you need a source artifact that reflects the tracked Snakemake capstone rather than whatever execution residue is lying around in the working tree.
What this guide is protecting¶
This capstone intentionally produces local state while you work:
.snakemake/contains Snakemake runtime metadata and cachespublish/,results/,logs/, andbenchmarks/are execution outputs and evidence.pytest_cache/,.ruff_cache/, and__pycache__/are tool residuedag.pngandrulegraph.pngare local render outputs, not source
Those surfaces are useful for execution and review. They are not part of the clean source baseline another learner should receive first.
Source baseline workflow¶
Run these commands from the capstone directory:
The intent of each step is different:
make source-baseline-cleanremoves local-only state that should never shipmake source-baseline-checkproves the tree is free of the known contamination pathsmake source-bundlewrites a tracked-source archive built fromgit ls-files, so the result depends on tracked repository state instead of local junk
What the source bundle includes¶
The source bundle includes tracked capstone files such as:
- capstone docs and review guides
- the
Snakefile, workflow rules, modules, and scripts - config and profile files
- tests and committed fixture data
What the source bundle excludes¶
The source bundle excludes:
- workflow execution outputs
- Snakemake runtime state and caches
- tool caches and bytecode
- any other untracked or ignored working-tree files
Best companion files¶
README.mdFILE_API.mdWORKFLOW_STAGE_GUIDE.mdREVIEW_ROUTE_GUIDE.md