Artifact Contract Auditor
by @willoscar
Audit the workspace against the pipeline artifact contract (DONE outputs + pipeline target_artifacts). Writes `output/CONTRACT_REPORT.md`. **Trigger**: contr...
clawhub install artifact-contract-auditor๐ About This Skill
name: artifact-contract-auditor description: '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.' version: 0.1.0 metadata: openclaw: requires: anyBins: - python3 - python
Artifact Contract Auditor
Purpose: make each workspace auditable and shareable.
This skill checks two contracts:
1) Units contract: if a unit is marked DONE, its required outputs must exist.
2) Pipeline contract: the pipelineโs 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.
Inputs
UNITS.csvPIPELINE.lock.mdPIPELINE.lock.md (under pipelines/*.pipeline.md; reads YAML target_artifacts)Outputs
output/CONTRACT_REPORT.mdWorkflow (analysis-only)
1) Read UNITS.csv and validate DONE outputs
status=DONE, verify each required output exists.? are treated as optional and do not fail the contract.2) Read PIPELINE.lock.md and validate pipeline target artifacts
pipelines/*.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.3) Write output/CONTRACT_REPORT.md (always)
Status semantics
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.How to use this report (self-loop routing)
Script
Quick Start
python scripts/run.py --workspace workspaces/All Options
--workspace --unit-id (optional)--inputs (unused; runner compatibility)--outputs (unused; runner compatibility)--checkpoint (optional)Examples
python scripts/run.py --workspace workspaces/
๐ก Examples
python scripts/run.py --workspace workspaces/