This repo validates its own planning docs
automate-04 · Mixed
The dogfood proof: this repository’s config maps its planning corpus to six contracts, and CI validates the corpus on every push.
Builds on: A CI gate in GitHub Actions
The artifact
Section titled “The artifact”Commands, code, and output together; comments mark which is which.
# markdown-contract.yaml (excerpt) — the config at this repository's rootmcVersion: 2kind: configcontracts: decision: ./contracts/decision.contract.yaml task: ./contracts/task.contract.yaml milestone: ./contracts/milestone.contract.yamlrules: - include: ['**/D-*.md'] contract: decision - include: ['**/T-*.md'] contract: task - include: ['**/M-*.md'] contract: milestone
# the gate, run from the repo root:$ markdown-contract validate docs/planningScanned 189 files; 165 matched across 6 contracts, 24 unmatched capability: 10 driver: 5 decision: 15 milestone: 11 product: 2 task: 122
No findings.# exit status: 0 — the planning corpus conforms to its contractsWhat it exercises
Section titled “What it exercises”real-world corpus configfilename-prefix glob routingself-hosted dogfooding
Continue
Section titled “Continue”- Previous: Custom rules for cross-cutting policy
- Next: this is the last example of the group
- Group: Automate and embed · All examples
- Reference: Library API reference