PlanValidator
PlanValidator = (
input) => readonlyPlanValidationIssue[]
Defined in: packages/engine/src/lib/planner/plan-validator.ts:36
Checks explicit application requirements after Engine healing. Return an empty
array to accept the response. Issues join the existing bounded retry feedback;
unresolved issues prevent the Engine from shipping the final response.
A response to a skipReply: true request runs through this hook even when
its userMessage is absent or blank. Clarification results bypass it, since
the Engine refuses them at its delivery boundary.
Runs synchronously at most once per candidate object per request. Keep it deterministic and side-effect free; never mutate its inputs. Promises and malformed returns produce a ValidationError without consuming retry budget. The application owns requirement selection; the Engine does not infer intent.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”readonly PlanValidationIssue[]