DECLARATIVE-YAML-15: Forbid a phrase document-wide
What it demonstrates
Section titled “What it demonstrates”forbids: on the body root asserts a phrase appears nowhere in the document (compiles to a docRule).
Builds on: DECLARATIVE-YAML-14: Require a phrase in a section
How it’s done
Section titled “How it’s done”The declarative YAML artifact, verbatim — no code required.
mcVersion: 1kind: contractbody: forbids: - pattern: "}scripts/" # must appear nowhere in the document normalize: false # exact bytes, no whitespace folding note: "route through the op substrate" sections: - section: NotesSurfaces exercised
Section titled “Surfaces exercised”forbids: on the body root -> a whole-document docRuletext/forbids finding at the offending line