DECLARATIVE-YAML-18: Bound occurrences with min / max
What it demonstrates
Section titled “What it demonstrates”min and max constrain how many times a phrase may occur; max: 0 is the in-section forbids dual.
Builds on: DECLARATIVE-YAML-15: Forbid a phrase document-wide
How it’s done
Section titled “How it’s done”The declarative YAML artifact, verbatim — no code required.
body: sections: - section: Output contract requires: - pattern: "DONE pr=" min: 1 # present at least once (the default) - pattern: "WARNING" max: 0 # must NOT appear in this section (forbids dual)Surfaces exercised
Section titled “Surfaces exercised”min/max occurrence countforbids == requires{max:0}text/count finding