Validation quality
Prefer actual CLI entrypoints in CLAUDE.md — not illustrative Python stubs.
Natural invoke
- "Validate markdown under projects/templates/template_prose_project/manuscript/"
- "PDF has unresolved references — run validation"
- "Strict prerender before render"
Inputs to confirm
- Target — manuscript dir, PDF path, or
output/<project>/. - Project — from active_projects when path ambiguous.
Workflow
Source markdown —
infrastructure.validation.cli markdownand/orprerender.Citations —
infrastructure.reference.citation validateon.bib.Links —
infrastructure.validation.cli links --repo-root .PDF — after render:
cli pdf output/<project>/pdf/Integrity —
cli integrity output/<project>/Report — diagnostic codes from validation; path + fix per issue.
Deliverables
- Command list with exit codes
- Issue table: code | file | message | fix
Verification commands
uv run python -m infrastructure.validation.cli prerender projects/<project>/manuscript --repo-root .
uv run python -m infrastructure.validation.cli markdown projects/<project>/manuscript --repo-root . --strict
uv run python -m infrastructure.reference.citation validate projects/<project>/manuscript/references.bib
uv run python -m infrastructure.validation.cli links --repo-root .
uv run python -m infrastructure.validation.cli pdf --project <project> --repo-root .
uv run python -m infrastructure.validation.cli integrity output/<project>/
uv run python -m infrastructure.prose.cli report projects/<project>/manuscript
When NOT to use
- Failing pipeline stage triage → pipeline-debugging
- Claim-by-claim manuscript audit → manuscript-claim-verification