/** * FanOutNudge — mid-run recovery after fan_out / create_subagent. * * 1) Failed / empty children → re-run or merge only SUCCESS (pairs with end-of-turn merge gate). * 2) "Success" children on fix/implement without suite green in summaries → parent must run tests * (pairs with end-of-turn delegated-mutation gate). * * Soft: max 1 fire per agent run. */ import type { Message } from '../session/session-jsonl.js'; export declare const FAN_OUT_NUDGE_MAX_ATTEMPTS = 1; export interface FanOutNudgeRequest { messages: Message[]; attempts: number; /** Latest real user text — used for fix/implement suite-evidence branch. */ userText?: string; toolCallsByName?: Record; } export type FanOutNudgeResult = { fire: false; } | { fire: true; correction: string; }; /** * Latest fan_out / create_subagent tool_result that indicates child failure. */ export declare function findLatestFailedFanOut(messages: Message[]): { name: string; text: string; } | null; /** * Latest non-error fan_out / create_subagent result (for suite-evidence branch). */ export declare function findLatestOkSubagentAggregation(messages: Message[]): { name: string; text: string; } | null; export declare function evaluateFanOutNudge(request: FanOutNudgeRequest): FanOutNudgeResult; //# sourceMappingURL=fan-out-nudge.d.ts.map