import type { EvoPaths } from "../paths.ts"; import type { ModelRunner } from "../reflect/model-runner.ts"; import type { EvoCheckProfile, EvoControlConfig, EvolutionRun, EvolutionRunStatus, Proposal } from "../types.ts"; import { type EvolutionEvaluationVerdict } from "./evaluator.ts"; import { type EvolutionReleaseResult } from "./release.ts"; export declare function validateComponentCandidate(paths: EvoPaths, proposal: Proposal, options?: { sandbox?: boolean; requestTimeoutMs?: number; }): Promise; export declare function retryEvolutionFromValidation(options: { paths: EvoPaths; sourceRunId: string; cwd: string; sandbox?: boolean; }): Promise<{ runId: string; proposal: Proposal; status: EvolutionRunStatus; }>; export interface ResumeEvolutionEvidenceResult { run: EvolutionRun; release: EvolutionReleaseResult; verdict: EvolutionEvaluationVerdict; executedProfilesNow: EvoCheckProfile[]; } export type EvolutionRetryFrom = "research" | "building" | "validating"; /** * The default resume point for a retry: a built component continues at validation, * a frozen plan continues at the builder, anything else starts research over. */ export declare function resolveRetryFrom(paths: EvoPaths, sourceRunId: string): Promise; /** * Queue a new run that resumes a terminal run at the builder: the frozen plan, * experiment, and evidence corpus are copied into the new run directory and the * cycle skips research. Spawning the worker is the caller's job. */ export declare function prepareBuildingResume(options: { paths: EvoPaths; sourceRunId: string; }): Promise; /** * Complete an awaiting-evidence run by executing whichever required check profiles * can still run (currently paired-replay), then re-evaluating and re-applying the * deterministic release policy. The waiting state is defined by missing receipts, * so this is the state machine's own forward edge — not a special-case repair. */ export declare function resumeEvolutionEvidence(options: { paths: EvoPaths; runner: ModelRunner; runId: string; cwd?: string; agentDir?: string; config?: EvoControlConfig; signal?: AbortSignal; }): Promise; //# sourceMappingURL=retry.d.ts.map