1
0

docs: 优化审查提示词,禁止 subagent 读取文件,明确 apply 阶段不动主规范

config.yaml: subagent 限定为计算密集/多步骤任务,文件读取用 Read 工具
prompt-proposal-review.md: 收集阶段加入读取约束和分步策略,复核补全待澄清清单
prompt-apply-review.md: 禁止同步主规范,新增 Spec 覆盖完整性扫描与补充流程
This commit is contained in:
2026-05-20 17:08:12 +08:00
parent 60a54b483f
commit f3df3a203b
10 changed files with 161 additions and 71 deletions

View File

@@ -143,8 +143,14 @@ describe("mapCheckResult", () => {
});
test("损坏 observation JSON 返回 null observation", () => {
const result = mapCheckResult(makeRow({ observation: "{invalid json" }), "http");
expect(result.detail).toBeNull();
expect(result.observation).toBeNull();
const originalWarn = console.warn;
console.warn = () => undefined;
try {
const result = mapCheckResult(makeRow({ observation: "{invalid json" }), "http");
expect(result.detail).toBeNull();
expect(result.observation).toBeNull();
} finally {
console.warn = originalWarn;
}
});
});