/** * RedVerifyNudge — mid-run recovery after a red verification result. * * VerifyNudge intentionally skips once any verify tool was *called*, so a failed * `run_tests` / `verify_fix` / `code_diagnostics` (or verification-shaped exec) * would silence mid-run pressure and leave the model free to keep editing blind * until the end-of-turn completion gate. This nudge fires once when the latest * verification-class tool_result is red / is_error, forcing fix-then-rerun. * * Soft: max 1 fire per agent run; never blocks completion. */ import type { Message } from '../session/session-jsonl.js'; /** Max fires per red wave; after a green verify, the counter may reset. */ export declare const RED_VERIFY_NUDGE_MAX_ATTEMPTS = 2; export interface RedVerifyNudgeRequest { messages: Message[]; attempts: number; } export type RedVerifyNudgeResult = { fire: false; /** When latest verify is green, host should reset attempts. */ resetAttempts?: boolean; } | { fire: true; correction: string; toolName: string; resetAttempts?: boolean; }; /** * Mid-run nudge when the latest *runtime* verification result is red. * Green runtime result → `resetAttempts` so a later red wave can fire again. * Diagnostics-only green does not clear a red suite wave. */ export declare function evaluateRedVerifyNudge(request: RedVerifyNudgeRequest): RedVerifyNudgeResult; //# sourceMappingURL=red-verify-nudge.d.ts.map