Skip to main content

Variable: ROLE_FAMILY_TO_SCORING_PROFILE

const ROLE_FAMILY_TO_SCORING_PROFILE: Record<RoleFamily, ScoringProfile>

Defined in: src/lib/recruiting/pipeline.ts:101

Explicit role_family → scoring_profile map (review finding DOM-3). Without this, every role defaulted to generalist and structurally mis-ranked specialists (a chart reviewer scored on a chart-audit weight of 5 instead of 25, inverting the tier chips). The application layer MUST set scoring_profile from this map at create time rather than relying on the column default.