/** * Readiness Aggregation Utilities * * Pure functions for aggregating readiness scores across tickets, * epics, and specifications. Used by autopilot pre-flight checks * and agent-teams phase gates. */ import type { ReadinessThresholds } from './types.js'; export interface ReadinessAggregation { min: number; max: number; avg: number; count: number; countByLevel: { minimal: number; partial: number; complete: number; exemplary: number; }; belowThreshold: Array<{ id: string; title: string; score: number; }>; } export interface TicketReadinessData { id: string; title: string; readinessScore: number | null; readinessLevel: string | null; } export interface EpicReadinessData { id: string; title: string; readinessScore: number | null; readinessLevel: string | null; tickets: TicketReadinessData[]; } /** * Aggregate readiness scores for tickets within an epic. * Null scores are excluded from calculations. */ export declare function aggregateEpicReadiness(tickets: TicketReadinessData[], thresholds?: ReadinessThresholds): ReadinessAggregation; /** * Aggregate readiness across all epics in a specification. * Returns an overall aggregation and per-epic breakdown. */ export declare function aggregateSpecReadiness(epics: EpicReadinessData[], thresholds?: ReadinessThresholds): { overall: ReadinessAggregation; perEpic: Map; }; /** * Generate actionable warnings based on readiness scores and thresholds. */ export declare function getReadinessWarnings(aggregation: ReadinessAggregation, thresholds: ReadinessThresholds): string[]; //# sourceMappingURL=aggregation.d.ts.map