feat: flow 第 1 部分(骨架、研究开始、第零轮)与第零轮检验

按任务书 12 实现 src/flow:从账本现算下一步的纯函数、主循环、恢复入口、派模型任务和跑正式运行两个共用动作、冻结配置、基线、第零轮三个研究者阶段和入口分配,走到第 1 轮时停下。materials 导出 finalEntries、加 researcherId 和 StudyRecord。

审阅采纳两条:研究编号本机已用过时冻结前报错;docker run 没启动时写完结果就停下,不在本进程里无限起新编号。

eval/ 新增第零轮检验:起研究命令行、回放假模型、检验用 Jev 客户端、六问质量评估、16-real-1 回放、杀进程与两份同时跑。tsc 与 depcruise 也检查 eval/,新增 eval 只经 index.ts 用正式代码的规则。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-03 10:58:52 -04:00
parent 8491191a2b
commit 75d7cffd27
36 changed files with 2456 additions and 14 deletions
+9 -2
View File
@@ -7,10 +7,17 @@
"node": ">=22.19.0"
},
"scripts": {
"check": "tsc --noEmit -p tsconfig.json && depcruise src tests --config .dependency-cruiser.cjs",
"check": "tsc --noEmit -p tsconfig.json && depcruise src tests eval --config .dependency-cruiser.cjs",
"test": "node --test \"tests/**/*.test.ts\"",
"test:pi": "node tests/agents-pi.ts",
"test:jev": "node tests/jev-real.ts"
"test:jev": "node tests/jev-real.ts",
"eval:study": "set -a && . /home/iomgaa/Projects/RivalBits/.env && set +a && node eval/lib/cli.ts",
"eval:r0:run": "set -a && . /home/iomgaa/Projects/RivalBits/.env && set +a && node eval/round-zero/run.ts",
"eval:r0:quality": "set -a && . /home/iomgaa/Projects/RivalBits/.env && set +a && node eval/round-zero/quality.ts",
"eval:r0:extract": "node eval/round-zero/extract-16.ts",
"eval:r0:replay": "node eval/round-zero/replay.ts",
"eval:r0:kill": "node eval/round-zero/kill.ts",
"eval:r0:concurrent": "node eval/round-zero/concurrent.ts"
},
"dependencies": {
"@earendil-works/pi-ai": "0.85.1",