/** * Ralph verification stage adapter for pipeline orchestrator. * * Wraps the ralph persistence loop into a PipelineStage for the * verification phase. Uses configurable iteration count. */ import type { PipelineStage } from '../types.js'; import { buildFollowupStaffingPlan } from '../../team/followup-planner.js'; export interface RalphVerifyStageOptions { /** Stage name. Explicit legacy Ralph paths use 'ralph'; legacy pipeline adapters use 'ralph-verify'. */ stageName?: string; /** * Ordered artifact keys used as Ralph execution input. * Legacy ralph-verify keeps reading prior ralph/team-exec output; explicit legacy * Ralph execution reads ralplan first so implementation starts from approved planning. */ executionArtifactKeys?: readonly string[]; /** * Maximum number of ralph verification iterations. * Defaults to 10. */ maxIterations?: number; } /** * Create a ralph-verify pipeline stage. * * This stage wraps the ralph persistence loop for the verification phase * of legacy pipelines. Explicit legacy Ralph execution uses `createRalphStage()` for the * implementation/verification phase before code-review. * * The iteration count is configurable, addressing issue #396 requirement * for configurable ralph iteration count. */ export declare function createRalphVerifyStage(options?: RalphVerifyStageOptions): PipelineStage; /** * Descriptor for a ralph verification run, consumed by the ralph runtime. */ export interface RalphVerifyDescriptor { task: string; maxIterations: number; cwd: string; sessionId?: string; availableAgentTypes: string[]; staffingPlan: ReturnType; executionArtifacts: Record; } /** * Build the ralph CLI instruction from a descriptor. */ export declare function buildRalphInstruction(descriptor: RalphVerifyDescriptor): string; /** Create the explicit legacy Ralph execution phase adapter. */ export declare function createRalphStage(options?: RalphVerifyStageOptions): PipelineStage; //# sourceMappingURL=ralph-verify.d.ts.map