Expand description
Evaluator execution (CONTEXT.md §10, §12).
Tool evaluators run a command and check its exit code — tool-grounded grading, preferred where possible. AI evaluators return a review whose verdict the engine parses. Human evaluators are handled by the engine’s parking logic.
Structs§
- AiEvaluator
- An AI evaluator: a worker reviews the work and ends with a machine-readable
verdict. Absent or
FAILfails closed; an explicitREPLANtriggers a replan. - Eval
Verdict - The result of grading a node.
- Human
Evaluator - A human evaluator: there is no automatic verdict, so it parks for the user.
- Tool
Evaluator - A tool evaluator: run the node’s acceptance command, pass iff it exits as required. The combined output is the critique on failure.
Constants§
- AI_
VERDICT_ INSTRUCTION - The instruction suffix appended to AI-evaluator prompts so their verdict is machine-readable.
Functions§
- parse_
ai_ verdict - Parse an AI evaluator’s review into a verdict. The engine instructs AI
evaluators to end with
VERDICT: PASSorVERDICT: FAIL; absent orFAILis treated as a failure (fail-closed), and the full review is the critique. - run_
tool - Run a tool evaluator’s acceptance command in
workspace, passing iff the process exits withmust_exit. The combined output becomes the critique on failure (CONTEXT.md§10 acceptance).