const METRICS = [ { key: 'final_action_score', label: 'Final Action Accuracy', weight: '50%', desc: 'Did the agent take the correct terminal action (allow/flag/remove/escalate)?', }, { key: 'classification_score', label: 'Classification Accuracy', weight: '20%', desc: 'Did the agent correctly identify the violation type?', }, { key: 'investigation_score', label: 'Investigation Quality', weight: '15%', desc: 'Did the agent gather all recommended context before deciding?', }, { key: 'efficiency_score', label: 'Efficiency', weight: '15%', desc: 'Did the agent reach a decision without unnecessary extra steps?', }, ] function barColor(v) { if (v >= 0.8) return '#4ade80' if (v >= 0.5) return '#f0a500' return '#f87171' } function Tooltip({ text }) { return ( ? {text} ) } function ScoreBar({ value, animKey }) { const color = barColor(value) return (