/**
 * Score grade boundaries and classification.
 *
 * The single source of truth for the 80 / 70 / 50 threshold boundaries.
 * Both the eval pipeline (scoring) and studio dashboard (display) must
 * agree on these boundaries — a change here updates both.
 */
/** Score grade boundaries — the single source of truth. */
export const GRADE_BOUNDARIES = {
    good: 80,
    warning: 70,
    critical: 50,
};
/** Classify a numeric score into a grade. */
export function scoreGrade(score) {
    if (score >= GRADE_BOUNDARIES.good)
        return "good";
    if (score >= GRADE_BOUNDARIES.warning)
        return "warning";
    if (score >= GRADE_BOUNDARIES.critical)
        return "needs-work";
    return "critical";
}
