test: 能力目录多一个 organize.assign_identity;子会话缺省划拨跟随调宽后的工具调用上限

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-06 16:58:13 +08:00
1 parent fa76d7563c
commit dfa6a327e3
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -217,8 +217,8 @@ describe.skipIf(!hasPg)("E11 Pi 子代理(agent.spawn / agent.await)", () => {
// 子超预算:budget_exceeded,不影响父会话
expect(oppie.status).toBe("budget_exceeded");
expect((oppie.budget as Any).maxToolCalls).toBe(1);
// 缺省划拨:父剩余预算的一半(设置 maxToolCalls 40,派生时父已用 1 次)
expect((dune.budget as Any).maxToolCalls).toBeLessThanOrEqual(20);
// 缺省划拨:父剩余预算的一半(设置 maxToolCalls 缺省 120,派生时父已用 1 次)
expect((dune.budget as Any).maxToolCalls).toBeLessThanOrEqual(60);
// maxConcurrent=1:串行(谁先占到名额不定,但两个运行区间不重叠)
const [first, second] = [dune, oppie].sort((a, b) => a.started_at!.getTime() - b.started_at!.getTime()) as [