# Diagram Final Artifact Hygiene

Use this checklist before handing off a diagram as final.

## Keep In Final Delivery

- Accepted editable source: `.drawio`, `.mmd`, source `.svg`, or equivalent.
- Accepted rendered output: `.svg`, `.png`, `.pdf`, or the format requested by
  the user.
- Prompt master or final prompt when it adds reusable traceability.
- Final QA evidence: rendered screenshot, source comparison report for
  recreations, lint output, or visual review checklist.
- Short handoff note with accepted artifact paths and known residual risks.

## Archive Or Exclude

- Preview iterations such as `preview-v1.png`, `preview-v2.png`, failed renders,
  temporary exported images, and superseded SVGs.
- Incremental prompts that were consolidated into a prompt master.
- One-off visual correction notes that are not reusable rules.
- Source-specific PDF/page text that should not enter the reusable prompt bank.

## Archive Rules

- Keep audit-relevant iterations in workflow evidence, an explicit archive
  folder, or an ignored output path.
- Do not package or present archived iterations as final deliverables.
- If the user asks for traceability, link to the archive/evidence from the
  handoff instead of mixing intermediate artifacts into the final folder.
- If a prompt delta becomes reusable, rewrite it as a source-free rule before
  promoting it to the prompt bank.

## QA Checklist

- Final source and final render are geometrically equivalent.
- Final render passes whole-canvas visual review.
- Intermediate artifacts are removed from the final delivery path or clearly
  archived.
- Prompt bank candidates are source-free, reusable, and validated.
- Handoff lists only accepted artifact paths plus evidence paths.
