/** Sweep attempts allowed before the bridge stops re-waking the task itself. */ export declare const AUTO_RUN_SWEEP_CAP = 3; /** Backoff before sweep attempt N+1 (20m, 40m, 80m - then the cap applies). */ export declare const AUTO_RUN_BACKOFF_MS: number[]; /** * Whether the sweep may attempt this task now. `exhausted` is true once the * cap is reached: the caller should skip the task entirely (and say so once). */ export declare function sweepGate(agentId: string, taskId: string): { attempts: number; nextAt: number; exhausted: boolean; }; /** Records a sweep attempt and returns the backoff applied to the next one. */ export declare function recordSweepAttempt(agentId: string, taskId: string): { attempts: number; nextAt: number; exhausted: boolean; }; /** Forgets the retry history for a task (resumed, stopped, or off the list). */ export declare function clearSweepAttempts(agentId: string, taskId: string): void; /** Drops ledger entries for tasks that are no longer stranded. */ export declare function gcSweepAttempts(liveKeys: Set): void;