# PlanValidator
Source: https://docs.maelstrom-ai.co/dev/reference/engine/type-aliases/planvalidator/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> **PlanValidator** = (`input`) => readonly [`PlanValidationIssue`](https://docs.maelstrom-ai.co/dev/reference/engine/interfaces/planvalidationissue/)\[\]

Defined in: [packages/engine/src/lib/planner/plan-validator.ts:36](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/planner/plan-validator.ts#L36)

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

### input

[`PlanValidationInput`](https://docs.maelstrom-ai.co/dev/reference/engine/interfaces/planvalidationinput/)

## Returns

readonly [`PlanValidationIssue`](https://docs.maelstrom-ai.co/dev/reference/engine/interfaces/planvalidationissue/)\[\]
