fix: 用容器生命周期核实恢复并单列三份总体验收
审阅发现spawn后快照早于恢复实际执行,不能证明没有重启;改用杀前至目标结果落账的Docker历史事件,保留缓存完整性限制。逐份stats不再冒称任务书总体通过;独立验收要求三份不同研究、成功杀进程及不重叠区间。两项缺陷附回归,7项定向测试与check通过,独立复审无新问题;真实B尚待启动。
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { jsonFile } from "../lib/forward.ts";
|
||||
import {
|
||||
forwardAcceptance,
|
||||
type StudySummary,
|
||||
} from "../lib/forward-evidence.ts";
|
||||
|
||||
// 显式总体程序验收:先对三份研究运行 stats,再用该统计目录检查任务书16的完整批次。
|
||||
// node eval/forward/acceptance.ts <统计输出目录>
|
||||
const [statsDir, ...extra] = process.argv.slice(2);
|
||||
if (!statsDir || extra.length)
|
||||
throw new Error("用法:node eval/forward/acceptance.ts <统计输出目录>");
|
||||
const summaries = JSON.parse(
|
||||
readFileSync(join(statsDir, "stats.json"), "utf8"),
|
||||
) as StudySummary[];
|
||||
const result = forwardAcceptance(summaries);
|
||||
jsonFile(join(statsDir, "acceptance.json"), result);
|
||||
console.log(
|
||||
`任务书16总体程序验收${result.pass ? "通过" : "未通过"};详见 ${join(statsDir, "acceptance.json")};质量判断仍待独立阅读。`,
|
||||
);
|
||||
if (!result.pass) process.exitCode = 1;
|
||||
Reference in New Issue
Block a user