import { BestAgentError } from "@best-agent/foundation";
export function parseVerifyPhaseVerdict(phaseResult) {
    if (!phaseResult?.candidateVerdict) {
        throw new BestAgentError("PHASE_RESULT_INVALID", "Verify phases must return a structured phase_result candidate verdict.");
    }
    return {
        message: phaseResult.candidateVerdict.summary,
        status: phaseResult.candidateVerdict.status === "satisfied" ? "pass" : "fail",
    };
}
//# sourceMappingURL=verify-phase.js.map