Reproducibility audit

From docxology/template · View interactive version

Reproducibility audit is an AI agent skill from the GitHub repository docxology/template. Deterministic reproducibility audit — fixed seeds, regenerate-from-clean, double-run diff before Zenodo/arXiv/release. USE WHEN outputs drift between runs, "worked on my machine", need regenerate-from-clean proof, or pre-release reproducibility check — even without naming docs/prompts.

How to use this skill

Skill file

Reproducibility audit

Complements manuscript-claim-verification (claim truth) by focusing on stability of artifacts.

Natural invoke

Inputs to confirm

Workflow

  1. Determinism — fixed RNG seeds, MPLBACKEND=Agg; no wall-clock/hostname/path leaks. List nondeterministic sources.
  1. Regenerate from clean — wipe working outputs, run core pipeline, regenerate manuscript variables. Capture exit status per stage.
  1. Diff — compare regenerated output/<name>/ and manuscript variables vs prose assertions. Hand-typed numbers not from generated variables are findings even if equal.
  1. Double-run stability — regenerate twice with clean tree between; any run-1 vs run-2 diff is hard failure.
  1. Fix — seed injection, variable-ize hard-typed numbers, remove timestamp leakage. Update projects/<n>/AGENTS.md and README.md with regeneration command. Never hand-edit output/.

Deliverables

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.