export type ContextIntegrityVerdict = "clean" | "context_poisoning_warning" | "context_poisoning_block"; export interface ContextIntegrityPrecheck { runId: string; attemptIndex: number; verdict: ContextIntegrityVerdict; reason?: string; detectedSignals: string[]; analyzedChannels: { system: boolean; user: boolean; tools: boolean; history: boolean; }; timestamp: string; } /** * T05: Context Poisoning Pre-gate. * Scans untrusted input channels for authority inversion or instruction re-injection. * Runs BEFORE admission control and core reasoning. */ export declare function runContextIntegrityPrecheck(runId: string, attemptIndex: number, artifactsDir: string, inputs: { userPrompt?: string; toolOutput?: string; retrievedContext?: string; history?: string; }): Promise;