Skip to content

REAL-WORLD-SCHEMAS-11: Frontmatter governance across the whole tree

A catch-all rule with an exclude that enforces a baseline contract on every remaining document.

Builds on: REAL-WORLD-SCHEMAS-10: Corpus config: route two types, first match wins

The declarative YAML artifact, verbatim — no code required.

rules:
- include: ["docs/adr/**/*.md"]
contract: adr
- include: ["**/*.md"]
exclude: ["**/README.md", "**/node_modules/**"]
contract: ./contracts/has-frontmatter.contract.yaml
  • config rule exclude globs; first-match ordering (specific before catch-all)
  • a baseline frontmatter contract applied across the tree