Skip to content

evidence-report-mcp / aggregate

Function: aggregate() ​

ts
function aggregate(checks: CheckResult[], required: string[]): Verdict;

Defined in: server.ts:48

Combines check results into one verdict, failing closed, in this order:

  1. Any check that failed makes the verdict fail, even a heuristic one or one that is not required.
  2. A required check that is missing, errored or was skipped makes it unknown: unknown is not zero.
  3. If only heuristic checks are required and passed, it is unknown: judgement can't certify.
  4. Otherwise it is pass.

Parameters ​

checks ​

CheckResult[]

The results of the checks that ran.

required ​

string[]

The ids of the checks that must pass for a pass.

Returns ​

Verdict

The verdict.