Validate Manifest
validate_manifestValidate a manifest's structure and cross-references to catch malformed contracts before building, ensuring every component, instance, and reference is valid. Returns problems, schema, and hash.
Instructions
Validate a manifest WITHOUT building it (the cheap front door, RFC §11.7).
Structural + cross-reference checks a JSON shape can't enforce: every component
has exactly one of file/manifest/library; a library carries a tool; every
instance references a known component; every mate/check references a known
instance; a present schema is the known version ("ankusdrive.manifest/1").
manifest: path to the manifest JSON.
Returns {ok, problems, schema, manifest_hash} — ok is True iff problems is empty; manifest_hash fingerprints the contract content (what the lockfile records so a stale contract is detectable). Run this before merge_assembly to reject a malformed contract before any geometry is built.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| manifest | Yes |