From 21e8db496b52eea44fc9013231644d2504d4a689 Mon Sep 17 00:00:00 2001 From: vmcall Date: Sun, 19 Jul 2026 14:29:21 +0200 Subject: [PATCH] test(coding-agent): activated eval in skill workflow fixture Keep the skill keyword workflowz contract on the active eval-and-task path. --- .../test/agent-session-skill-keywords.test.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/coding-agent/test/agent-session-skill-keywords.test.ts b/packages/coding-agent/test/agent-session-skill-keywords.test.ts index f9e12a59d..d7ca5db34 100644 --- a/packages/coding-agent/test/agent-session-skill-keywords.test.ts +++ b/packages/coding-agent/test/agent-session-skill-keywords.test.ts @@ -22,7 +22,7 @@ type ObservedSkillTurn = { texts: string[]; }; -// 4644 gates the workflowz notice on an active `task` tool; keep one active so +// Workflowz requires active `task` and `eval` tools; keep both active so // keyword steering exercises the notice path. const mockTaskTool: AgentTool = { name: "task", @@ -32,6 +32,14 @@ const mockTaskTool: AgentTool = { execute: async () => ({ content: [{ type: "text" as const, text: "ok" }] }), }; +const mockEvalTool: AgentTool = { + name: "eval", + label: "Eval", + description: "Mock eval tool", + parameters: type({}), + execute: async () => ({ content: [{ type: "text" as const, text: "ok" }] }), +}; + describe("AgentSession skill prompt keyword steering", () => { let tempDir: TempDir; let authStorage: AuthStorage | undefined; @@ -53,7 +61,7 @@ describe("AgentSession skill prompt keyword steering", () => { initialState: { model, systemPrompt: ["Test"], - tools: [mockTaskTool], + tools: [mockTaskTool, mockEvalTool], messages: [], }, convertToLlm,