Skip to main content
Validation rules grade a scenario run once the agent is done. Edit them in the Validation section of the scenario form, or as the validation array of the scenario through the API. The engine always checks that the job completed first, even when the array is empty.

Validators

Every rule needs a human-readable label. required defaults to true; an optional rule still contributes to the compliance score but does not fail the run.

What pattern_match can inspect

How a run is scored

  • Passed / Failed: the run passes when every required rule passes, including the built-in Job completed.
  • Compliance: the share of all rules that passed, required and optional, from 0 to 100.
  • Remediation: whether the job resolved as success. It is reported on its own and does not change the verdict.
See How a run is graded for how to read the three together.