Every time you execute a script through SciTrace, the run is written back into history as a [SciTrace:Run] commit — the exact command, its inputs, its outputs and its exit status, captured as machine-readable JSON. Your dataflow grows a structured, trustworthy record without you writing a line of documentation.
Re-run after recalibration [SciTrace:Run] compute_site_statistics.py --- SciTrace:Record-Begin --- { "scitrace_version": "1.0", "run_id": "b3e7f4a", "command": "python scripts/compute_site_statistics.py", "working_directory": "/data/river-water-quality", "status": "success", "exit_code": 0, "start_time": "2026-05-26T17:52:00Z", "end_time": "2026-05-26T17:55:12Z", "duration_sec": 192, "inputs": ["raw_data/site_B_midstream.csv"], "outputs": ["plots/pH_by_site.png", "results/site_statistics.json"], "resources": { "cpu_peak_percent": 62.3, "cpu_user_sec": 38.1, "memory_peak_mb": 256.8, "memory_avg_mb": 189.4, "disk_io_mb": 42.6 } } --- SciTrace:Record-End ---
A run record is a normal commit with a structured block embedded in its message, bracketed by --- SciTrace:Record-Begin --- and --- SciTrace:Record-End ---. Because it lives in the repository's history, the provenance is durable, diff-able, and impossible to silently desync from the data it describes.
[SciTrace:Run] commit, it offers to re-execute that exact run.