Skip to content

INFERENCE-INIT-07: Loosen the floor with --relax

–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

A terminal session: the command as you’d run it, followed by the output it prints; trailing comments note the exit status.

Terminal window
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 growing
  • InferOptions.relax
  • inferBody (order none + allowUnknown)
  • inferFrontmatter (non-strict)
  • value ladder dropping rung-6 enums