docs(agent): 巡检 Skill 要求需要批准的检查实际调用一次,补 e16 断言(FIX-9)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-09-30 19:29:54 +08:00
1 parent 65a2ed7d49
commit 3ec2a10993
2 files changed
+6

No files matched your search

@@ -90,6 +90,11 @@ describe.skipIf(!hasPg)("E16 智能体提示评测(fake 模型)", () => {
.filter((x) => x.type === "tool_call_start")
.map((x) => (x.payload as { capabilityId?: string }).capabilityId);
expect(calls).toEqual(c.calls);
// 巡检那条:需要批准的检测实际调用一次(界面才有审批卡 /「批准并重试」),汇报里写「没做:…,需要你批准」
if (id === "health") {
expect(calls.filter((x) => x === "site.health_check")).toHaveLength(1);
expect(done.get(id)!.text).toMatch(/没做:.*需要你批准/);
}
// 只读调用都成功;需要批准的被拒绝
const r = done.get(id)!;