DECLARATIVE-YAML-07: Declare required body sections
What it demonstrates
Section titled “What it demonstrates”Moving to the body plane: a sections grammar listing the H2 headings a document must contain, with ordering and unknown-section policy.
Builds on: DECLARATIVE-YAML-06: Declare array and nested object fields
How it’s done
Section titled “How it’s done”The declarative YAML artifact, verbatim — no code required.
body: order: strict # none | recognized-relative | strict allowUnknown: false sections: - section: Summary - section: Context - section: Decision - section: ReferencesSurfaces exercised
Section titled “Surfaces exercised”compileBody -> sections(opts, specs)order/allowUnknown LevelOptssection()