Rulvar API reference / @rulvar/core / requiredSectionsValidator
Function: requiredSectionsValidator()
ts
function requiredSectionsValidator(options): FinishValidator;Defined in: packages/core/src/orchestrator/finish-validators.ts:484
Requires every named section to appear LITERALLY in the result text (a heading like 'FINDINGS' or any marker the goal demands). Default name 'required-sections'; pass name to run several instances. match: 'line' demands each marker as its own line and fencedCode: 'excluded' ignores markers inside fenced code blocks (cycle 74); both default to the historical byte identical behavior.
Parameters
| Parameter | Type |
|---|---|
options | { fencedCode?: FencedCodeMode; match?: SectionMatchMode; name?: string; sections: readonly string[]; } |
options.fencedCode? | FencedCodeMode |
options.match? | SectionMatchMode |
options.name? | string |
options.sections | readonly string[] |