spec check runs cross-repo integrity, coverage, and drift diagnostics. Error-severity diagnostics drive exit 1; warnings alone exit 0. --ci forces a cold rebuild (deletes the DB first — correctness never trusts a warm index).
With a git base ref, check also diffs the requirement set against that ref:
Code
Severity
Condition
REQUIREMENT_REMOVED
error
A requirement present at the base ref is gone with no approved supersession
UNAPPROVED_STATUS_FLIP
warning†
A flip to superseded/retired whose CODEOWNERS domain owner is absent from --approved-by — †error under --require-owner-approval
PARTIAL_PROPAGATION
error
Needs --baseand--results: a changed requirement where some bound tests pass and some fail — one site migrated, another still red
See also spec guard, the pre-commit loss gate that reports REQUIREMENT_REMOVED / IMPL_LOST / VERIFY_LOST / SPEC_FILE_DELETED against the working tree — Commands.