import type { WorkOrder } from "./prompts.js"; /** * Repairs red GATE COMMANDS — the deterministic catalog commands * (typecheck, localization verify, migrations, code generation) that * used to stop-and-flag on their first failure. Most gate reds are * STATE problems a session fixes in a turn or two: generated artifacts * older than the sources, orphans of an interrupted earlier run, a * missing registration. The repair is budgeted and LOUD (its diff rides * into the next checkpoint commit; the ledger records it), and the one * inviolable rule lives in the prompt: fix the state the gate checks, * never the gate itself. */ export interface GateRepair { fixGateFailure(order: WorkOrder, command: string, description: string, output: string): Promise; }