Publication audit workflow
Use the deterministic infrastructure gate first:
uv run python -m infrastructure.validation.cli publication-audit \
--project templates/template_code_project --strict --rendered --format markdown
Then run the project’s tests, methods plan, prerender gate, render, output
validation, no-mock inventory, and clean double-run comparison. Treat only
stable validator failures as blocking. Preserve review_required findings for
human assessment of scientific scope, unsupported generalization, prose, and
visual quality.
Required evidence
- real tests and zero prohibited mock frameworks;
- source-backed claim ledger and evidence registry;
- methods-to-stage-to-artifact mapping with definitions of done;
- figure registry with labels, captions, provenance, and existing files;
- generated artifact manifest and validation report;
- clean rendered PDF/HTML/slides where supported;
- second-run comparison with no unexplained differences.
Never hand-edit generated output. Correct the source producer or manuscript source and regenerate the affected artifacts.