/** * Deliver Evidence(V2 runtime loop)— 汇总 ExecutionRunResult + VerificationResult + RepairPlan? → DeliverEvidence。 * * 规则(加强):deliverable 须同时满足: * - execution completed * - no scope violation(execution 无 scope 违规) * - verification passed * 任一不满足 → deliverable=false。 * * 不信任(承 PRODUCT_DEFINITION 第8节 原则一):AI 自报 / RepairPlan resolved(自报可伪造)/ 跳过 Verification。 * 设计依据:docs/v2-rebuild/V2_INTEGRATION_DESIGN.md 第3节.4/第6节 */ import type { ExecutionRunResult } from "./execution_runner.js"; import type { RepairPlan } from "../repair/repair_types.js"; import type { GateStatus } from "../types.js"; export interface DeliverEvidence { deliverable: boolean; verification_passed: boolean; execution_completed: boolean; no_scope_violation: boolean; repair_resolved: boolean | null; first_attempt_pass: boolean; /** deliverable=false 时的拒绝原因 */ reason?: string; requirement_status?: GateStatus; trace_status?: GateStatus; review_status?: GateStatus; evidence_status?: GateStatus; } /** 生成交付证据。deliverable 须 execution completed + no scope violation + verification passed。 */ export declare function buildDeliverEvidence(executionRun: ExecutionRunResult, verification: { passed: boolean; }, repair?: RepairPlan): DeliverEvidence;