INFERENCE-INIT-04: Emit a corpus meta-config with --meta
What it demonstrates
Section titled “What it demonstrates”–meta cuts the tree into one contract per top-level directory plus a glob-routed markdown-contract.yaml corpus config.
Builds on: INFERENCE-INIT-01: Scaffold a contract from a folder of notes
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.
markdown-contract init ./docs --meta# cuts the tree at depth 1 and writes a glob-routed corpus config (first match wins):# markdown-contract.yaml (contracts registry + rules)# contracts/docs.contract.yaml (*.md — files directly in ./docs)# contracts/guides.contract.yaml (guides/**/*.md)# contracts/reference.contract.yaml (reference/**/*.md)Surfaces exercised
Section titled “Surfaces exercised”inferConfig meta mode (inferMeta)depth-1 directory cutemitMetaFiles split outputcontracts registry + rules (first match wins)