export interface MetricsInput { deploymentFrequency: 'multiple_per_day' | 'daily' | 'weekly' | 'monthly' | 'less_than_monthly' leadTimeDays: number changeFailureRate: number // percent (0–100) mttrHours: number pipelineDurationMinutes: number prReviewTimeHours: number engineerCount: number serviceCount: number } export interface TeamContext { architecture: 'monolith' | 'microservices' | 'hybrid' releaseStrategy: 'continuous' | 'scheduled' | 'mixed' hasComplianceConstraints: boolean } export interface InterpretationReport { deliveryProfile: string benchmarkAlignment: Array<{ metric: string yourValue: string typicalRange: string band: 'elite' | 'high' | 'medium' | 'low' // keep in sync with BandSchema in schema.ts }> likelyBottlenecks: string[] improvements: Array<{ priority: number action: string rationale: string }> leadershipSummary: { deliverySpeed: 'strong' | 'moderate' | 'weak' reliability: 'strong' | 'moderate' | 'weak' focusArea: string } } export interface BenchmarkTier { elite: string high: string medium: string low: string } export interface BenchmarkPattern { id: string signature: string interpretation: string improvements: string[] } export interface BenchmarkData { deploymentFrequency: BenchmarkTier leadTime: BenchmarkTier changeFailureRate: BenchmarkTier mttr: BenchmarkTier patterns: BenchmarkPattern[] keyInsights: string[] }