Exit 2 when the verdict meets the threshold, 0 otherwise — the check
pattern (commands/explain/README.md → Surface).
Note what --fail-on error does NOT fail on: an ambiguous/unknown
statement is a warning by construction, so a script that is merely unreadable
without a schema still exits 0. That is the whole reason the two verdicts
are separate — a resolution is not a severity.
Exit
2when the verdict meets the threshold,0otherwise — thecheckpattern (commands/explain/README.md→ Surface).Note what
--fail-on errordoes NOT fail on: anambiguous/unknownstatement is a warning by construction, so a script that is merely unreadable without a schema still exits0. That is the whole reason the two verdicts are separate — a resolution is not a severity.