import type { VerificationLayer, VerificationResult } from "../verification_v2/verification_v2_types.js"; import type { ProjectExecutionContract } from "./project_execution_contract.js"; export interface VerificationRunInput { task_id: string; plan_id?: string; layer: VerificationLayer; command: string; /** 可选:有则 mock 模式(测试用),无则真实执行 command */ mock_result?: { passed: boolean; exit_code?: number; stdout?: string; stderr?: string; }; /** 真实执行 cwd(默认 process.cwd) */ project_root?: string; timeout_ms?: number; } /** 生成 VerificationResult。mock_result 存在→mock;缺失→真实执行 + classifyFailure(防伪造)。 */ export declare function executeVerification(input: VerificationRunInput): Promise; /** * Contract 驱动的 verification():从 ProjectExecutionContract resolve 命令(禁止猜), * 每条命令复用 executeVerification real 模式(canExecute 安全边界 + execaCommand + classifyFailure 防伪造), * 聚合 failures。contract 无该层命令 → hollow_command failure(拒,不猜不跳)。 * * 不允许 exit_code=0 直接成功(复用 classifyFailure:exit=0 无痕迹→empty_test_suite)。 */ export declare function executeVerificationByContract(contract: ProjectExecutionContract, taskId: string, layer: "build" | "test", planId: string | undefined, projectRoot: string): Promise;