/** The 4 QA evaluation dimensions per D-13 */
export const QA_DIMENSIONS = [
    'completeness',
    'correctness',
    'code_quality',
    'test_coverage',
];
/** Threshold constants for QA verdict derivation */
export const QA_DIMENSION_THRESHOLDS = {
    approved: 7, // All dimensions >= 7 = approved
    approved_with_notes: 5, // All dimensions >= 5 = approved-with-notes
    // Any dimension < 5 = rejected
};
/** Derive verdict from dimension scores */
export function deriveVerdict(scores) {
    if (scores.length === 0)
        return 'rejected';
    const min = Math.min(...scores.map((s) => s.score));
    if (min >= QA_DIMENSION_THRESHOLDS.approved)
        return 'approved';
    if (min >= QA_DIMENSION_THRESHOLDS.approved_with_notes)
        return 'approved-with-notes';
    return 'rejected';
}
//# sourceMappingURL=qa-scoring.js.map