Delivery Record Verify¶
Validate one or more Delivery Records against the canonical schema and the threshold rule. Read-only — it never writes or modifies records. Use it for ad-hoc reviewer checks and as a CI lint.
delivery-record-verify¶
Usage¶
/delivery-record-verify docs/delivery-records/PR-456-breadcrumb.md
/delivery-record-verify # auto-detect docs/delivery-records/*.md
/delivery-record-verify --strict # treat threshold warnings as failures
What it checks¶
- Parses the YAML front-matter; a missing or malformed
predicate_typefails as "not a Delivery Record." - Resolves the schema version from
predicate_type(the trailingv<n>). - Validates required fields, enums, and the per-
activity_typerequiredcheckskeys againstschema.json. - Applies the threshold rule: a
failcheck needs a## Waiverheading; ann/acheck needs a one-line justification near the top of the body. Warnings by default; failures under--strict.
Report¶
✓passing record✗hard validation failure (with field/location)⚠soft threshold warning- Summary:
<n> records · <m> passing · <k> failing
Exit codes: 0 all valid, 1 failure (or warning under --strict), 2
environment/usage error.
CI integration¶
Other projects can enforce that every PR ships a valid Delivery Record by adding the bundled wrapper to CI. This is not enabled in cms-cultivator's own CI — it is a tool other projects opt into.
The wrapper calls scripts/delivery_record_verify.py, which requires python3
with pyyaml and jsonschema.
Related skills¶
/delivery-record— write a record (this skill validates what that one produces).