/** * PlanGenerator — 组装 GovernancePlanExtension(最小骨架)。 * * 纯函数,无 IO/文件访问/Git/Evidence。生成 governance 扩展层(requirements),不生成 * ExecutionPlan 主体(文件级 step 由 execution_plan_generator 负责,Step7 实证独立轨道)。 * * fail-close(Step5 第4.3节):policyResult.conflicts 非空 → 返回 null(拒绝生成)。 */ import type { TaskContext, ChangeContext, PolicyEvaluationResult, MappingResult, GovernancePlanExtension } from "./types.js"; export interface PlanGeneratorInput { task: TaskContext; change: ChangeContext; policyResult: PolicyEvaluationResult; mapping: MappingResult; } /** * 生成 governance plan extension。 * @returns GovernancePlanExtension,或 null(当 conflicts 非空,fail-close 拒绝生成)。 */ export declare function generatePlan(input: PlanGeneratorInput): GovernancePlanExtension | null;