/** * Remediation Plan — generates a mandatory section-by-section * remediation checklist from full_audit results. * * Problem: AI assistants run full_audit, see 6 sections, but only fix * the "code" section (pattern-match findings) and skip secrets, * dependencies, config, taint, and auth-coverage. * * Solution: This tool takes audit results and produces an ordered, * section-by-section plan with specific tool calls and actions for * EVERY section that has findings. The AI MUST complete each section * before moving to the next. */ import type { AuditResult } from "./full-audit.js"; export interface RemediationStep { section: string; priority: number; status: "requires_action" | "clean"; findingCount: number; critical: number; high: number; medium: number; actions: RemediationAction[]; } export interface RemediationAction { order: number; tool: string; params: Record; purpose: string; mandatory: boolean; } export interface RemediationPlan { auditHash: string; verdict: string; totalSections: number; sectionsRequiringAction: number; sectionsClean: number; steps: RemediationStep[]; completionCriteria: string; warning: string; } /** * Generate a section-by-section remediation plan from audit results. * This forces AI assistants to address ALL sections, not just code. */ export declare function generateRemediationPlan(auditResult: AuditResult, projectPath: string): RemediationPlan; export declare function formatRemediationPlan(plan: RemediationPlan, format: "markdown" | "json"): string;