Skip to content

ValidatedCandidate

ValidatedCandidate = Omit<MaelstromResponse, "userMessage"> & object

Defined in: packages/engine/src/lib/planner/candidate.ts:117

Candidate after the Engine healed and validated it against the original request: the response that would ship, plus the diagnostics describing what healing changed. The diagnostics never cross the Engine boundary. Its type is the response’s own 'maelstrom_response': the candidate’s type: 'plan' is not carried over.

readonly diagnostics: EngineDiagnostics

What healing changed, and whether a retry is recommended.

readonly userMessage: string

The reply to the user. Always present and non-blank on the strict path: validation rejects a missing or blank reply unless the request set skipReply: true.