/** * Code-first verification of extracted insights. * * For each insight, the LLM generates a verification query pattern (what to look * for in the code), then we check that pattern deterministically against * file_index.parsed_data. This produces a code_consistency_score (0–1) without * re-parsing any files. * * Outcomes: * score >= 0.8 → auto-promote (trust = 0.95, verification_basis = 'code_confirmed') * 0.4–0.8 → human gate (conv_insight card, codeprism_promote_insight MCP tool) * < 0.4 → aspirational (trust = 0.2, aspirational = true, no promotion) */ import type { LLMProvider } from "../llm/provider.js"; import type { ExtractedInsight } from "./extractor.js"; export interface VerificationResult { insight: ExtractedInsight; code_consistency_score: number; verification_basis: "code_confirmed" | "ambiguous" | "aspirational"; auto_promote: boolean; } /** * Verifies an extracted insight against the file_index.parsed_data in the DB. */ export declare function verifyInsight(insight: ExtractedInsight, llm: LLMProvider, repoName?: string): Promise; //# sourceMappingURL=verifier.d.ts.map