House rules as text constraints
author-03 · YAML
requires / forbids assert that phrases appear (or never appear) — per section or across the whole document — without writing a rule function.
Builds on: Frontmatter and required sections
The artifact
Section titled “The artifact”The declarative YAML artifact, verbatim — no code required.
mcVersion: 2kind: contractbody: # on the body root: one document-scoped rule forbids: - pattern: "TBD" level: warn sections: - section: Impact requires: - regex: "\\d+ (users|requests|minutes)" note: "quantify the impact" - section: Action items forbids: - pattern: "someone should" ignoreCase: trueWhat it exercises
Section titled “What it exercises”requires / forbids on section nodesdocument-scoped forbids on the body rootregex and literal match specs, levels and notes
Continue
Section titled “Continue”- Previous: Typed tables and checklists
- Next: Headings that repeat: changelogs
- Group: Author contracts in YAML · All examples
- Reference: Declarative YAML reference