Skip to content

DECLARATIVE-YAML-14: Require a phrase in a section

A section node carries requires: so its prose must contain a literal phrase (compiles to a node-local rule).

Builds on: DECLARATIVE-YAML-13: YAML contract and its TypeScript equivalent, identical findings

The declarative YAML artifact, verbatim — no code required.

mcVersion: 1
kind: contract
body:
sections:
- section: Output contract
requires:
- pattern: "DONE pr=" # this section's text must contain it
note: "primary success signal"
  • requires: on a section node -> a node-local rule
  • text/requires finding at the section heading