/** * Code-review stage adapter for the strict Autopilot loop. * * The stage produces a descriptor/instruction for the existing `$code-review` * skill and reports whether the latest review is clean. A non-clean review is * represented as `completed` with `clean: false` so Autopilot can return to * blueprint instead of treating review findings as infrastructure failure. */ import type { PipelineStage } from '../types.js'; export interface CodeReviewStageOptions { /** Optional review recommendation injected by tests or runtime adapters. */ recommendation?: 'APPROVE' | 'COMMENT' | 'REQUEST CHANGES'; /** Optional architecture status injected by tests or runtime adapters. */ architecturalStatus?: 'CLEAR' | 'WATCH' | 'BLOCK'; /** Optional human-readable review summary. */ summary?: string; } export interface CodeReviewDescriptor { task: string; cwd: string; sessionId?: string; forgeArtifacts: Record; instruction: string; } export interface CodeReviewVerdict { recommendation: 'APPROVE' | 'COMMENT' | 'REQUEST CHANGES'; architectural_status: 'CLEAR' | 'WATCH' | 'BLOCK'; clean: boolean; summary: string; } export declare function createCodeReviewStage(options?: CodeReviewStageOptions): PipelineStage; export declare function buildCodeReviewInstruction(task: string): string; //# sourceMappingURL=code-review.d.ts.map