/** * Agentic QE v3 - Chaos & Resilience Coordinator * Orchestrates chaos engineering and resilience testing workflows */ import { Result } from '../../shared/types'; import { EventBus, MemoryBackend, AgentCoordinator } from '../../kernel/interfaces'; import { ChaosExperiment, ChaosSuiteReport, LoadTestSuiteReport, ResilienceAssessment, ResilienceDashboard, ServiceArchitecture, IChaosResilienceCoordinator } from './interfaces'; /** * Interface for the chaos resilience coordinator */ export interface IChaosResilienceCoordinatorExtended extends IChaosResilienceCoordinator { initialize(): Promise; dispose(): Promise; getActiveWorkflows(): WorkflowStatus[]; } /** * Workflow status tracking */ export interface WorkflowStatus { id: string; type: 'chaos-suite' | 'load-suite' | 'assessment' | 'experiment-generation'; status: 'pending' | 'running' | 'completed' | 'failed'; startedAt: Date; completedAt?: Date; agentIds: string[]; progress: number; error?: string; } /** * Coordinator configuration */ export interface CoordinatorConfig { maxConcurrentWorkflows: number; defaultTimeout: number; enableAutomatedExperiments: boolean; publishEvents: boolean; } /** * Chaos Resilience Coordinator * Orchestrates chaos engineering workflows and coordinates with agents */ export declare class ChaosResilienceCoordinator implements IChaosResilienceCoordinatorExtended { private readonly eventBus; private readonly memory; private readonly agentCoordinator; private readonly config; private readonly chaosEngineer; private readonly loadTester; private readonly performanceProfiler; private readonly workflows; private initialized; constructor(eventBus: EventBus, memory: MemoryBackend, agentCoordinator: AgentCoordinator, config?: Partial); /** * Initialize the coordinator */ initialize(): Promise; /** * Dispose and cleanup */ dispose(): Promise; /** * Get active workflow statuses */ getActiveWorkflows(): WorkflowStatus[]; /** * Run a suite of chaos experiments */ runChaosSuite(experimentIds: string[]): Promise>; /** * Run a suite of load tests */ runLoadTestSuite(testIds: string[]): Promise>; /** * Perform a full resilience assessment */ assessResilience(services: string[]): Promise>; /** * Generate chaos experiments from architecture */ generateExperiments(architecture: ServiceArchitecture): Promise>; /** * Get resilience dashboard data */ getResilienceDashboard(): Promise>; private spawnChaosAgent; private spawnLoadTestAgent; private spawnAssessmentAgent; private publishExperimentCompleted; private publishLoadTestCompleted; private startWorkflow; private completeWorkflow; private failWorkflow; private addAgentToWorkflow; private updateWorkflowProgress; private generateRecommendationsFromExperiment; private detectBottlenecks; private generateServiceExperiments; private generateCriticalPathExperiment; private createExperiment; private getDefaultFaultParameters; private storeReport; private subscribeToEvents; private handleDeploymentApproved; private handleQualityGateEvaluated; private loadWorkflowState; private saveWorkflowState; } //# sourceMappingURL=coordinator.d.ts.map