validate_manifest
Check a manifest JSON before geometry builds. Enforce structural and cross-reference rules, report problems, and fingerprint the contract for lockfile consistency.
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 |