REAL-WORLD-SCHEMAS-11: Frontmatter governance across the whole tree
What it demonstrates
Section titled “What it demonstrates”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
How it’s done
Section titled “How it’s done”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.yamlSurfaces exercised
Section titled “Surfaces exercised”config rule exclude globs; first-match ordering (specific before catch-all)a baseline frontmatter contract applied across the tree