from @unified-product-graph/cli · Read
upg verify
Structural validation. Exits 1 on violations for CI gates.
Usage
upg verify [options]Options
--file <path>- Path to .upg file
--no-orphans- Fail when orphan entities exist
--no-broken-chains- Fail when any chain is incomplete
--max-orphan-rate <n>- Maximum orphan rate, 0.0–1.0
--require-domains <list>- Comma-separated domains that must hold entities
--json- Machine-readable JSON output
Examples
Run structural validation against the graph
upg verifyOutput
✗ 2 violation(s) found: ✗ [no-broken-chains] Chain "persona → job": 4/5 connected ✗ [require-domains] Domain "growth" has no entities
Strict CI gate: no orphans beyond 10%
upg verify --no-orphans --max-orphan-rate 0.1Fail if these domains are empty
upg verify --require-domains discovery,delivery