willoscar/artifact-contract-auditor
Audit one research Workspace for declared Unit outputs and Pipeline target Artifacts, writing `output/CONTRACT_REPORT.md`; use for mid-Run coverage snapshots or final delivery completeness, not deep provenance integrity.
npx skills add https://github.com/WILLOSCAR/research-units-pipeline-skills --skill 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.
UNITS.csv.PIPELINE.lock.md.pipelines/*.pipeline.md target-Artifact contract.output/CONTRACT_REPORT.md.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.
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.
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, not merely file absence.
Always write output/CONTRACT_REPORT.md with one status:
PASS: terminal Run, complete Unit outputs, complete Pipeline targets.OK: partial Run, consistent completed Unit outputs.FAIL: missing output from a DONE Unit, or missing final target from aterminal Run.
Completion criterion: the report names the evaluated Pipeline, Run phase,
status, and every blocking missing path.
For missing Unit outputs, reopen or rerun the owning Unit through the Pipeline
adapter. For missing final targets, identify the owning Unit or Skill. When
file coverage passes, use scripts/pipeline.py audit for provenance integrity.
Completion criterion: every FAIL item has an owner and repair route; a PASS
claim is explicitly limited to declared file coverage.
UNITS.csv is the only source for Unit output obligations.Decisions, Failures, and Evaluation consistency.
uv run python .codex/skills/artifact-contract-auditor/scripts/run.py \
--workspace workspaces/<name>
--workspace <path>: Workspace to audit.--unit-id <U###>, --inputs, --outputs, --checkpoint: optionalPipeline-runner compatibility arguments.
Inspect the interface:
uv run python .codex/skills/artifact-contract-auditor/scripts/run.py --help
Run the deeper provenance audit after coverage passes:
uv run python scripts/pipeline.py audit --workspace workspaces/<name>
The audit may create or replace output/CONTRACT_REPORT.md. It must not edit
research content, Unit statuses, checkpoint approvals, or source Artifacts.
Take willoscar/artifact-contract-auditor from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.