REAL-WORLD-SCHEMAS-04: Validate one ADR from the CLI
What it demonstrates
Section titled “What it demonstrates”Running a single contract over one document and reading the exit code.
Builds on: REAL-WORLD-SCHEMAS-03: Typed table inside Consequences
How it’s done
Section titled “How it’s done”A terminal session: the command as you’d run it, followed by the output it prints; trailing comments note the exit status.
markdown-contract validate docs/adr/0007-use-postgres.md \ --contract contracts/adr.contract.yaml --format human# exit 0 = clean · 1 = error-level findings · 2 = usage/config error# findings are deterministically ordered by line, then col, then planeSurfaces exercised
Section titled “Surfaces exercised”CLI validate <path> --contract (config-less binding) --format humanexit 0 clean / 1 error-level findings / 2 usage/config