import type { CorrectionPayload, WorkflowRunRecord } from '../types/index.js'; /** * Whether a correction should be auto-retried (high/medium) vs. routed to a human * (low). Consumed by the gate policy engine (#528) and the CI-green loop (#524). */ export declare function shouldAutoRetry(payload: CorrectionPayload): boolean; /** * Renders a correction payload as a high-signal Markdown block for injection into * the re-entered phase's prompt context, so the next attempt sees the specific * blocker, location, and suggested fix — not a free-text "qa-fail" note (GH-526). */ export declare function renderCorrectionForPrompt(payload: CorrectionPayload): string; /** * Returns the most recent correction recorded on any blocked phase of a run, or * undefined when none exists. Used to surface the latest failure to the phase * being re-entered. */ export declare function latestCorrection(run: WorkflowRunRecord): CorrectionPayload | undefined;