Skip to content

EMBED-AND-CI-05: Fail CI on the exit code

Letting the CLI’s nonzero exit on error-level findings fail a CI job with no parsing.

Builds on: nothing — this is the first rung of Embed and Automate: the Runner Library and CI Gates.

The declarative YAML artifact, verbatim — no code required.

- name: Validate planning corpus
run: npx markdown-contract validate docs/planning
# exit 0 clean, 1 on any error-level finding (fails the step), 2 usage/config error
  • CLI validate
  • exit-code policy (0/1/2)
  • auto-discovered markdown-contract.yaml