INFERENCE-INIT-07: Loosen the floor with --relax
What it demonstrates
Section titled “What it demonstrates”–relax generates a permissive contract — order: none, allowUnknown: true, non-strict frontmatter, no enums — for evolving corpora.
Builds on: INFERENCE-INIT-02: Read the inferred contract
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 ./notes --relax# loosens generation toward the permissive floor:# body.order: none, body.allowUnknown: true# frontmatter non-strict (the `strict: true` line is dropped)# rung-6 enums relax to {type: string} (const/format/type rungs are kept)# non-universal sections stay optional as usual; good while the tree is still growingSurfaces exercised
Section titled “Surfaces exercised”InferOptions.relaxinferBody (order none + allowUnknown)inferFrontmatter (non-strict)value ladder dropping rung-6 enums