INFERENCE-INIT-10: Catch drift after a document changes
What it demonstrates
Section titled “What it demonstrates”Mutating a doc so it stops conforming makes the same –check fail with exit 1, closing the scaffold-to-guardrail loop.
Builds on: INFERENCE-INIT-09: Guard the tree with –check
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.
# add a frontmatter key the strict contract never saw, then re-check# ./notes/today.md: + reviewer: alexmarkdown-contract init ./notes --check# check /abs/notes: 1 error finding(s) — drifted# exit 1 — CI fails the build until the doc or the contract is updatedSurfaces exercised
Section titled “Surfaces exercised”init --check drift pathrunCorpus error-level findings (strict frontmatter unknown-key)exit code 1 as CI signal