items_validate
Validate an items.json registry by checking schema stamp, item record shape, unique part numbers, and reserved rev/lifecycle fields. Returns ok and problem list.
Instructions
Validate an items.json registry (the PLM item/document/file split, #140 C1). Checks the schema stamp ("ankusdrive.items/1"), each item record's shape, that part numbers are unique, and the held reserved rev/lifecycle fields. An item is the logical part (part_number + rev + lifecycle + metadata), distinct from its file artifact(s); part numbers are non-significant + sequential, with meaning in queryable metadata.
registry: path to the items.json sidecar.
Returns {ok, problems, schema, count} — ok is True iff problems is empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| registry | Yes |