Audit the workspace against the pipeline artifact contract (DONE outputs + pipeline target_artifacts). Writes `output/CONTRACT_REPORT.md`. **Trigger**: contract audit, artifact contract, missing artifacts, target_artifacts, CONTRACT_REPORT. **Use when**: you want an auditable PASS/FAIL view of whether a workspace is complete and self-contained (end of run or before sharing). **Skip if**: you are still intentionally mid-run and don’t care about completeness yet (but it’s still useful as a snapshot). **Network**: none. **Guardrail**: analysis-only; do not edit content artifacts; only write the report.
Purpose: make each workspace auditable and shareable.
This skill checks two contracts:
DONE, its required outputs must exist.target_artifacts (from the pipeline spec referenced by PIPELINE.lock.md) should exist for a complete run.It always writes a report so workspaces can serve as regression baselines.
UNITS.csvPIPELINE.lock.mdPIPELINE.lock.md (under pipelines/*.pipeline.md; reads YAML target_artifacts)output/CONTRACT_REPORT.mdUNITS.csv and validate DONE outputsstatus=DONE? are treated as optional and do not fail the contract.PIPELINE.lock.md and validate pipeline target artifactspipelines/*.pipeline.md and load target_artifacts from its YAML front matter.target_artifacts from its YAML front matter.DONE/SKIP), verify each required target_artifacts file exists.output/CONTRACT_REPORT.md (always)PASS: pipeline complete (all units DONE/SKIP) AND all required target artifacts exist AND no DONE unit is missing required outputs.OK: pipeline incomplete (still running) BUT DONE unit outputs are consistent; missing targets are expected.FAIL: at least one DONE unit is missing required outputs OR pipeline is complete but required target artifacts are missing.python .codex/skills/artifact-contract-auditor/scripts/run.py --workspace workspaces/<ws>--workspace <dir>--unit-id <U###> (optional)--inputs <semicolon-separated> (unused; runner compatibility)--outputs <semicolon-separated> (unused; runner compatibility)--checkpoint <C#> (optional)python .codex/skills/artifact-contract-auditor/scripts/run.py --workspace workspaces/<ws>