import type { Draft, Finding } from '@manehorizons/cadence-types'; import type { CodeReviewInput } from '../contracts/index.js'; import type { GateImpl } from './types.js'; /** * Phase 235 (T3) — project `draft`'s acceptance criteria, boundaries[] and * task->AC refs onto the additive optional `CodeReviewInput` fields, so the * reviewer can see what the phase committed to instead of grading against * general good practice alone. Pure and side-effect free; `runCodeReviewGate` * is the only caller. Imports the input type through the phase 234 contract * surface (`../contracts/index.js`), never a kernel internal. */ export declare function buildCodeReviewInput(draft: Draft, touched: string[], diff: string): CodeReviewInput; /** HIGH-only finding flattener. The convergence boolean + sidecar findingsCount * are HIGH-only (Phase 37.1 spec) — a conscious divergence from the 35.1 * source which counts total findings. Moved from settle.ts verbatim. */ export declare function collectHighFindings(findings: Record): Array<{ file: string; line?: number; message: string; }>; /** * Code-review verifier gate (Phase 24.3) + bounded convergence (Phase 37.1). * Extracted from settle.ts verbatim (Phase 39.4). Fires on membership * ('code-review'). Runs the reviewer over the touched-file diff; "no HIGH * finding" is the convergence pass. Advances the CODE-REVIEW.json sidecar via * the shared `runConvergentReview` primitive (phase 225) and branches bypass / * reloop / escalate. Reaches git, the reviewer, the notifier, and the sidecar * only through ctx ports. */ export declare const runCodeReviewGate: GateImpl; //# sourceMappingURL=code-review.d.ts.map