Evaluatortypeno test imports ittype Evaluator = { readonly id: string; evaluate(policy: Json, data: Json): Promise<Result<Json, string>> };An evaluator: its id names it in a check's input.
The external runner (0005-grc-runners FR-009): the input is { evaluator, policy, data? } and the question is delegated to an evaluator found by id in a registry of evaluators. GRC ships none: a policy language's engine is an optional adapter that a third party registers, so that the core depends on no such engine.
Evaluatortypeno test imports ittype Evaluator = { readonly id: string; evaluate(policy: Json, data: Json): Promise<Result<Json, string>> };An evaluator: its id names it in a check's input.
Evaluatorstypeno test imports ittype Evaluators = Registry<Evaluator>;A registry of evaluators.
createEvaluatorsfunctionfunction createEvaluators(): EvaluatorsA registry of evaluators, empty.
externalRunnerfunctionfunction externalRunner(evaluators: Evaluators): RunnerThe external runner over a registry of evaluators.