export const REVIEW_STATES = [
    "preparing",
    "awaiting_lens_dispatch",
    "validating_lenses",
    "awaiting_adjudication",
    "awaiting_synthesize_dispatch",
    "awaiting_deliberation",
    "completing",
    "completed",
    "halted_partial",
    "failed",
];
export const REVIEW_TERMINAL_STATES = new Set([
    "completed",
    "halted_partial",
    "failed",
]);
export const REVIEW_TRANSITIONS = {
    "(init)": ["preparing"],
    preparing: ["awaiting_lens_dispatch", "failed"],
    awaiting_lens_dispatch: ["validating_lenses"],
    validating_lenses: [
        "awaiting_adjudication",
        "awaiting_deliberation",
        "halted_partial",
        "failed",
    ],
    awaiting_adjudication: ["awaiting_deliberation", "failed"],
    awaiting_deliberation: ["awaiting_synthesize_dispatch", "failed"],
    awaiting_synthesize_dispatch: ["completing"],
    completing: ["completed", "failed"],
    completed: [],
    halted_partial: [],
    failed: [],
};
export function canReviewTransition(from, to) {
    const allowed = REVIEW_TRANSITIONS[from];
    return allowed != null && allowed.includes(to);
}
