Reproducibility audit
Complements manuscript-claim-verification (claim truth) by focusing on stability of artifacts.
Natural invoke
- "Prove template_code_project is reproducible before Zenodo"
- "Numbers in the PDF don't match after a clean rebuild"
- "Double-run the pipeline and diff outputs"
Inputs to confirm
- Project — from
docs/_generated/active_projects.md.
Workflow
Determinism — fixed RNG seeds,
MPLBACKEND=Agg; no wall-clock/hostname/path leaks. List nondeterministic sources.Regenerate from clean — wipe working outputs, run core pipeline, regenerate manuscript variables. Capture exit status per stage.
Diff — compare regenerated
output/<name>/and manuscript variables vs prose assertions. Hand-typed numbers not from generated variables are findings even if equal.Double-run stability — regenerate twice with clean tree between; any run-1 vs run-2 diff is hard failure.
Fix — seed injection, variable-ize hard-typed numbers, remove timestamp leakage. Update
projects/<n>/AGENTS.mdand README.md with regeneration command. Never hand-editoutput/.
Deliverables
- Drift table: artifact | committed | regenerated | action.
- Commands + raw output; no invented coverage numbers.
Verification commands
uv sync
uv run python scripts/runner/execute_pipeline.py --project <project> --mode core
uv run python projects/<project>/scripts/z_generate_manuscript_variables.py
git stash --include-untracked -- output/<project> 2>/dev/null || true
uv run python scripts/runner/execute_pipeline.py --project <project> --mode core
git status --porcelain output/<project>
uv run python scripts/pipeline/stage_01_test.py --project <project>
uv run python -m infrastructure.validation.cli prerender projects/<project>/manuscript --repo-root .
uv run python -m infrastructure.validation.cli pdf --project <project> --repo-root .
uv run python -m infrastructure.validation.cli integrity output/<project>/
When NOT to use
- Stage fails during regeneration → pipeline-debugging
- Per-sentence claim audit → manuscript-claim-verification