export interface KbxPerformanceBudget {
  name: string
  targetMs: number
  percentile?: 50 | 95 | 99
  note: string
}

// Reference acceptance targets. Teams may tighten them after field telemetry,
// but should not silently loosen them per screen.
export const kbxReferencePerformanceBudgets: KbxPerformanceBudget[] = [
  { name: 'keyboard-feedback', targetMs: 100, note: '키 입력/Focus/로컬 선택 피드백' },
  { name: 'lookup-search', targetMs: 500, percentile: 95, note: '사내망 기준 Lookup 후보 응답' },
  { name: 'filtered-list-search', targetMs: 2000, percentile: 95, note: '일반 업무 조회 첫 결과' },
  { name: 'wms-authoritative-scan', targetMs: 500, percentile: 95, note: '현장망 기준 서버 확정 Scan 응답' },
  { name: 'foreground-operation', targetMs: 3000, note: '이보다 길면 Operation Center/Job 전환 검토' },
]
