From dfa6a327e39ce0089764b0beddd9c1701c9b53b4 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 Oct 2026 16:58:13 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=83=BD=E5=8A=9B=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=A4=9A=E4=B8=80=E4=B8=AA=20organize.assign=5Fidentity;?= =?UTF-8?q?=E5=AD=90=E4=BC=9A=E8=AF=9D=E7=BC=BA=E7=9C=81=E5=88=92=E6=8B=A8?= =?UTF-8?q?=E8=B7=9F=E9=9A=8F=E8=B0=83=E5=AE=BD=E5=90=8E=E7=9A=84=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E8=B0=83=E7=94=A8=E4=B8=8A=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei --- apps/server/test/e2e/subagents.test.ts | 4 ++-- apps/server/test/sources-identity/site-capabilities.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/server/test/e2e/subagents.test.ts b/apps/server/test/e2e/subagents.test.ts index 38719d84..41737c4c 100644 --- a/apps/server/test/e2e/subagents.test.ts +++ b/apps/server/test/e2e/subagents.test.ts @@ -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 [ diff --git a/apps/server/test/sources-identity/site-capabilities.test.ts b/apps/server/test/sources-identity/site-capabilities.test.ts index 81a0ae7f..585a5225 100644 --- a/apps/server/test/sources-identity/site-capabilities.test.ts +++ b/apps/server/test/sources-identity/site-capabilities.test.ts @@ -15,8 +15,8 @@ const TiB = 1024 ** 4; const SITE_IDS = ["site.list", "site.health_check", "site.refresh_login", "site.user_data"] as const; describe("站点能力规格", () => { - it("进入能力目录(41 个已有能力 + 整理元数据补全 + 起草巡检 + 集数映射 3 个);类别 / 风险 / 重放按约定", () => { - expect(CAPABILITY_IDS).toHaveLength(46); + it("进入能力目录(41 个已有能力 + 整理元数据补全 + 起草巡检 + 集数映射 3 个 + 指定整理作品);类别 / 风险 / 重放按约定", () => { + expect(CAPABILITY_IDS).toHaveLength(47); expect(capabilitySpec("episode_mapping.inspect")).toMatchObject({ kind: "read", replay: "safe" }); expect(capabilitySpec("episode_mapping.simulate")).toMatchObject({ kind: "preview", replay: "safe" }); expect(capabilitySpec("episode_mapping.apply_rule")).toMatchObject({