/** * Agentic QE v3 - Root Cause Analyzer Service * Analyzes defects to identify root causes and contributing factors */ import { Result } from '../../../shared/types'; import { MemoryBackend } from '../../../kernel/interfaces'; import { RootCauseRequest, RootCauseAnalysis, TimelineEvent } from '../interfaces'; /** * Interface for the root cause analyzer service */ export interface IRootCauseAnalyzerService { analyzeRootCause(request: RootCauseRequest): Promise>; findRelatedDefects(defectId: string): Promise>; generateTimeline(defectId: string): Promise>; suggestRemediation(rootCause: string): Promise; } /** * Configuration for the root cause analyzer */ export interface RootCauseAnalyzerConfig { maxTimelineEvents: number; maxRelatedFiles: number; minConfidenceThreshold: number; analyzerNamespace: string; enableDeepAnalysis: boolean; } /** * Root Cause Analyzer Service Implementation * Uses symptom analysis and heuristics to identify root causes */ export declare class RootCauseAnalyzerService implements IRootCauseAnalyzerService { private readonly memory; private readonly config; constructor(memory: MemoryBackend, config?: Partial); /** * Analyze root cause of a defect */ analyzeRootCause(request: RootCauseRequest): Promise>; /** * Find defects related to a given defect */ findRelatedDefects(defectId: string): Promise>; /** * Generate timeline of events related to a defect */ generateTimeline(defectId: string): Promise>; /** * Suggest remediation steps for a root cause */ suggestRemediation(rootCause: string): Promise; private identifyRootCauseCategory; private selectLikelyCause; private calculateConfidence; private identifyContributingFactors; private getHistoricalFactors; private findRelatedFiles; private generateRecommendations; private storeAnalysis; } //# sourceMappingURL=root-cause-analyzer.d.ts.map