/** * H5 state-driven routing decision module per v0.6 Step 4.3 (Q4.0.3 + * Q4.0.9 + Q4.3.2 locks). Pure function consuming * stateDetectionChecks output (DoctorCheck[]); produces Route enum. * * Routing taxonomy (4 routes per Q4.0.9 lock at v0.6 Step 4.0 * design adjudications): * - automated: existing-repo-with-ADRs path (no interactive prompts) * - automated-with-warning: substantive-content-warning advisory * surfaced inline within automated path * - missing-adrs: existing-repo-missing-ADRs (interactive guidance; * non-blocking exit per Q4.0.9 + Q4.3.5 locks → exit code 0) * - new-project: empty/sparse repo (interactive guidance; * non-blocking exit per Q4.0.9 + Q4.3.5 → exit code 0) * * Decision testable in isolation with mocked DoctorCheck inputs. * Decision-table priority order per Q4.3.2 lock: * 1. new-project (no code AND no ADRs) * 2. missing-adrs (code present but no ADRs) * 3. automated-with-warning (substantive content warnings) * 4. automated (clean state) */ import type { DoctorCheck } from "../doctor/types.js"; export type Route = { readonly kind: "automated"; } | { readonly kind: "automated-with-warning"; readonly warnings: readonly string[]; } | { readonly kind: "missing-adrs"; } | { readonly kind: "new-project"; }; /** * Pure function producing Route from doctor check output. Consumes * `state-detection.*` check IDs only; ignores other categories * (config / atlas / sha / lsp / extraction). */ export declare function decideRoute(checks: readonly DoctorCheck[]): Route; //# sourceMappingURL=routing.d.ts.map