artifact-contract-auditorlisted
Install: claude install-skill WILLOSCAR/research-units-pipeline-skills
# Artifact Contract Auditor
This Skill measures **coverage**: whether files promised by Units and the locked
Pipeline exist at the point they are required. It does not replace the deeper
Attempt, Manifest, Artifact-hash, and ledger checks in `pipeline.py audit`.
## Inputs
- `UNITS.csv`.
- `PIPELINE.lock.md`.
- The locked `pipelines/*.pipeline.md` target-Artifact contract.
## Outputs
- `output/CONTRACT_REPORT.md`.
## Steps
### 1. Resolve the active contracts
Read `PIPELINE.lock.md`, resolve the Pipeline inside this repository, and parse
`UNITS.csv`. Treat an invalid lock or malformed Unit table as a reportable
contract failure rather than guessing another Workflow.
Completion criterion: one Pipeline contract and one readable Unit table are
bound to the audit.
### 2. Check completed Unit outputs
For every `DONE` Unit, verify each required output exists. Outputs prefixed with
`?` are optional. A missing required output is Unit-level contract drift even
when the Pipeline is still running.
Completion criterion: every `DONE` Unit is classified as output-complete or is
listed with each missing required path.
### 3. Check final Pipeline targets when applicable
Determine whether all Units are terminal (`DONE` or `SKIP`). Only then require
every non-optional target Artifact declared by the Pipeline. During a partial
Run, report missing final targets as expected rather than failures.
Completion criterion: final-target completeness is evaluated against the
actual Run phase