|
|
@@ -239,3 +239,16 @@ test("server outcome distinguishes reused computation from interpretation revisi
|
|
|
for (const line of lines) expect(card.lines).toContain(line)
|
|
|
expect(card.lines.join("\n")).not.toContain("研究状态:needs_revision")
|
|
|
})
|
|
|
+
|
|
|
+test("server progress sections replace the legacy flat summary without re-scoring", () => {
|
|
|
+ const card = paasCard({status: "completed", research: {science: {outcome: {
|
|
|
+ schema_version: 1, lines: ["legacy summary"], sections: [
|
|
|
+ {id: "judgment", title: "当前研究判断", lines: ["条件内反证:示例假设"], omitted: 0},
|
|
|
+ {id: "next", title: "下一步选项", lines: ["核对测量条件\n再决定"], omitted: 2},
|
|
|
+ ],
|
|
|
+ }}}})
|
|
|
+ expect(card.lines).toContain("当前研究判断")
|
|
|
+ expect(card.lines).toContain("条件内反证:示例假设")
|
|
|
+ expect(card.lines).toContain("核对测量条件 再决定")
|
|
|
+ expect(card.lines).not.toContain("legacy summary")
|
|
|
+})
|