/** * Temporal Assessor Module * Detects "rug pull" vulnerabilities - tools that behave safely for first N invocations * then change behavior after a threshold is reached. * * This addresses a critical gap: standard assessments call tools with many different * payloads but never call the same tool repeatedly with identical payloads. * * Refactored in Issue #106 to extract MutationDetector and VarianceClassifier * into focused helper modules for maintainability. */ import { AssessmentConfiguration, TemporalAssessment } from "../../../lib/assessmentTypes.js"; import { AssessmentContext } from "../AssessmentOrchestrator.js"; import { BaseAssessor } from "./BaseAssessor.js"; export declare class TemporalAssessor extends BaseAssessor { private invocationsPerTool; private mutationDetector; private varianceClassifier; private readonly PER_INVOCATION_TIMEOUT; private readonly BASELINE_PHASE_END; constructor(config: AssessmentConfiguration); assess(context: AssessmentContext): Promise; private assessTool; private analyzeResponses; /** * Calculate which detection phase a deviation occurred in * Issue #119, Challenge #2: Detection phase tracking * * @param firstDeviationAt - Invocation number where first deviation occurred * @returns Phase identifier or null if no deviation * * Phases: * - "baseline" (invocations 1-5): Deviation during safe behavior establishment * - "monitoring" (invocations 6-15): Deviation during threshold monitoring * - null: No deviation detected */ private calculateDetectionPhase; /** * Generate a safe/neutral payload for a tool based on its input schema. * Only populates required parameters with minimal test values. */ private generateSafePayload; private determineTemporalStatus; private generateExplanation; private generateRecommendations; } //# sourceMappingURL=TemporalAssessor.d.ts.map