Invariant checks for a loaded Compose tree.
Compose
Errors are collected rather than returned on first failure so the CLI can pretty-print the full list.