From 4e21ffe6463ab342e7ee4fdda2b1e03efec547bc Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 6 Nov 2026 08:54:22 +0000 Subject: [PATCH 1/6] test(server): reproduce #31889, Claude background-wait instructions omit the taskIds key Co-Authored-By: Claude Opus 5.5 --- .../src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts index d7d03c779b4bb..1e8d5b7be1543 100644 --- a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts +++ b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts @@ -669,6 +669,9 @@ describe("ClaudeAdapterV2 native protocol logging", () => { assert.equal(systemPrompt.preset, "claude_code"); assert.include(systemPrompt.append ?? "", "Use `delegate_task`"); assert.include(systemPrompt.append ?? "", "call `t3_background_wait`"); + const backgroundWaitKey: keyof typeof OrchestratorToolkit.tools.t3_background_wait.parametersSchema.fields = + "taskIds"; + assert.include(systemPrompt.append ?? "", `\`${backgroundWaitKey}\``); assert.notInclude(systemPrompt.append ?? "", "## T3 Code devices"); const logged = ClaudeAdapterV2.loggedClaudeQueryOptions(options); assert.equal(logged.hasMcpServers, true); From 4076d321a9c008d7d2ab1437c38472f8cda0cc07 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 6 Nov 2026 08:59:59 +0000 Subject: [PATCH 2/6] fix(server): name taskIds in t3_background_wait instructions Claude agents called t3_background_wait with {"taskId": ...} and failed schema validation, because the injected system-prompt text and the tool description said "task ID" while the schema requires `taskIds`. The tool is deferred behind ToolSearch, so agents often call it from the prompt text alone. Both texts now name the `taskIds` key, and the agent context budget is updated to the measured sizes. Co-Authored-By: Claude Opus 5.5 --- apps/server/src/mcp/toolkits/orchestrator/tools.ts | 2 +- apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts | 2 +- apps/server/src/provider/agentContextBudget.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/server/src/mcp/toolkits/orchestrator/tools.ts b/apps/server/src/mcp/toolkits/orchestrator/tools.ts index f0affbf6dec8c..f1a85d94607f8 100644 --- a/apps/server/src/mcp/toolkits/orchestrator/tools.ts +++ b/apps/server/src/mcp/toolkits/orchestrator/tools.ts @@ -139,7 +139,7 @@ const WorkflowStopTool = Tool.make("t3_workflow_stop", { const BackgroundWaitTool = Tool.make("t3_background_wait", { description: - "Keep this thread in Working while background work runs. Pass its task ID after starting it. Not for work left running (dev server, watcher). `waiting=false` clears. Does not stop the task. Claude only.", + "Keep this thread in Working while background work runs. Pass its task ID in `taskIds` after starting it. Not for work left running (dev server, watcher). `waiting=false` clears. Does not stop the task. Claude only.", parameters: Schema.Struct({ taskIds: Schema.Array(TrimmedNonEmptyString).check( Schema.isMinLength(1), diff --git a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts index 10edb77c5011a..e348f83a81986 100644 --- a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts +++ b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts @@ -1736,7 +1736,7 @@ const CLAUDE_BACKGROUND_WAIT_INSTRUCTIONS = ` ### Background work you wait on -To wait for a background command or Monitor you started (tests, a build), call \`t3_background_wait\` with its task ID before you end your turn. Do not mark work you leave running, or PRs. T3 MCP tools are deferred: load one with ToolSearch before you call it. +To wait for a background command or Monitor you started (tests, a build), call \`t3_background_wait\` with its task ID in \`taskIds\` before you end your turn. Do not mark work you leave running, or PRs. T3 MCP tools are deferred: load one with ToolSearch before you call it. `; // Native subagents start from their task, not this session's system prompt. diff --git a/apps/server/src/provider/agentContextBudget.json b/apps/server/src/provider/agentContextBudget.json index 0d9f26d44c40a..f94bb1941f927 100644 --- a/apps/server/src/provider/agentContextBudget.json +++ b/apps/server/src/provider/agentContextBudget.json @@ -1,5 +1,5 @@ { - "claudeSystemAppendBytes": 5366, + "claudeSystemAppendBytes": 5379, "codexAdditionalContextBytes": 7096, - "mcpToolListJsonBytes": 48119 + "mcpToolListJsonBytes": 48132 } From 793403a67c667733604ea08bcda53f0eaaff8319 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 6 Nov 2026 09:07:02 +0000 Subject: [PATCH 3/6] fix(server): name the taskIds shape in t3_background_wait guidance within budget The Claude instructions now show `taskIds: [id]`, so an agent calling the deferred tool from the prompt alone sends an array under the right key. The tool description says `taskIds` next to its schema. Both texts stay at or under main's agent context budget. Co-Authored-By: Claude Opus 5.5 --- apps/server/src/mcp/toolkits/orchestrator/tools.ts | 2 +- .../src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts | 2 +- apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts | 2 +- apps/server/src/provider/agentContextBudget.json | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/server/src/mcp/toolkits/orchestrator/tools.ts b/apps/server/src/mcp/toolkits/orchestrator/tools.ts index f1a85d94607f8..8eec4a7ccda53 100644 --- a/apps/server/src/mcp/toolkits/orchestrator/tools.ts +++ b/apps/server/src/mcp/toolkits/orchestrator/tools.ts @@ -139,7 +139,7 @@ const WorkflowStopTool = Tool.make("t3_workflow_stop", { const BackgroundWaitTool = Tool.make("t3_background_wait", { description: - "Keep this thread in Working while background work runs. Pass its task ID in `taskIds` after starting it. Not for work left running (dev server, watcher). `waiting=false` clears. Does not stop the task. Claude only.", + "Keep this thread in Working while background work runs. Pass `taskIds` after starting it. Not for work left running (dev server, watcher). `waiting=false` clears. Does not stop the task. Claude only.", parameters: Schema.Struct({ taskIds: Schema.Array(TrimmedNonEmptyString).check( Schema.isMinLength(1), diff --git a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts index 1e8d5b7be1543..2fb42e91dc5c1 100644 --- a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts +++ b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts @@ -671,7 +671,7 @@ describe("ClaudeAdapterV2 native protocol logging", () => { assert.include(systemPrompt.append ?? "", "call `t3_background_wait`"); const backgroundWaitKey: keyof typeof OrchestratorToolkit.tools.t3_background_wait.parametersSchema.fields = "taskIds"; - assert.include(systemPrompt.append ?? "", `\`${backgroundWaitKey}\``); + assert.include(systemPrompt.append ?? "", `\`${backgroundWaitKey}: [id]\``); assert.notInclude(systemPrompt.append ?? "", "## T3 Code devices"); const logged = ClaudeAdapterV2.loggedClaudeQueryOptions(options); assert.equal(logged.hasMcpServers, true); diff --git a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts index e348f83a81986..c97bb5eebcde7 100644 --- a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts +++ b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts @@ -1736,7 +1736,7 @@ const CLAUDE_BACKGROUND_WAIT_INSTRUCTIONS = ` ### Background work you wait on -To wait for a background command or Monitor you started (tests, a build), call \`t3_background_wait\` with its task ID in \`taskIds\` before you end your turn. Do not mark work you leave running, or PRs. T3 MCP tools are deferred: load one with ToolSearch before you call it. +To wait for a background command or Monitor you started (tests, a build), call \`t3_background_wait\` with \`taskIds: [id]\` before ending a turn. Do not mark work you leave running, or PRs. T3 MCP tools are deferred: load one with ToolSearch before you call it. `; // Native subagents start from their task, not this session's system prompt. diff --git a/apps/server/src/provider/agentContextBudget.json b/apps/server/src/provider/agentContextBudget.json index f94bb1941f927..6e92f9b322d48 100644 --- a/apps/server/src/provider/agentContextBudget.json +++ b/apps/server/src/provider/agentContextBudget.json @@ -1,5 +1,5 @@ { - "claudeSystemAppendBytes": 5379, + "claudeSystemAppendBytes": 5366, "codexAdditionalContextBytes": 7096, - "mcpToolListJsonBytes": 48132 + "mcpToolListJsonBytes": 48117 } From 97c261fcf2c7d367b2669a0259ee192614309541 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 6 Nov 2026 09:09:06 +0000 Subject: [PATCH 4/6] test(evals): agent waits on a background command with taskIds Reproduces #31889: Claude's text said "with its task ID", so agents called t3_background_wait with taskId and the call failed. Co-Authored-By: Claude Opus 5.5 --- evals/mcp-tool-use/cases/orchestration.ndjson | 1 + 1 file changed, 1 insertion(+) diff --git a/evals/mcp-tool-use/cases/orchestration.ndjson b/evals/mcp-tool-use/cases/orchestration.ndjson index 41eb03e0939fc..3cf1d45091599 100644 --- a/evals/mcp-tool-use/cases/orchestration.ndjson +++ b/evals/mcp-tool-use/cases/orchestration.ndjson @@ -35,3 +35,4 @@ {"id": "worker-counts-per-model", "area": "orchestration", "kind": "bad", "pattern": "named-model rule read as a cap", "experience": "Asked for 20 Sol workers and 20 Luna workers, the agent started one worker per model (#25359).", "rule": "Before delegate_task ... One child per named model. (intended: every named model gets a child; read as a cap of one child per model)", "privacy": "commit-safe", "setup": {"role": "top", "mocks": {"orchestrator_capabilities": {"parentThreadId": "33333333-3333-4333-8333-333333333333", "inheritedProviderInstanceId": "claudeAgent", "inheritedModel": "claude-sonnet-5-5", "inheritedOptions": [{"id": "effort", "value": "high"}], "runtimeMode": "full-access", "interactionMode": "default", "features": {"appOwnedSubagents": true, "asyncPolling": true, "cancellation": true, "batchThreadCreation": true, "threadManagement": true, "incrementalThreadRead": true, "scheduledTasks": true}, "providers": [{"providerInstanceId": "claudeAgent", "driverKind": "claudeAgent", "displayName": "Claude", "models": [{"id": "claude-opus-5-5", "label": "Claude Opus 5.5", "options": [{"id": "effort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}, {"id": "fastMode", "type": "boolean", "default": false}]}, {"id": "claude-sonnet-5-5", "label": "Claude Sonnet 5.5", "options": [{"id": "effort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}]}, {"id": "claude-haiku-5-5", "label": "Claude Haiku 5.5", "options": [{"id": "effort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}]}]}, {"providerInstanceId": "codex", "driverKind": "codex", "displayName": "Codex", "models": [{"id": "gpt-6.1-sol", "label": "GPT-6.1 Sol", "options": [{"id": "reasoningEffort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}, {"id": "serviceTier", "values": ["default", "priority"], "default": "default"}]}]}, {"providerInstanceId": "muse", "driverKind": "muse", "displayName": "Muse Code", "runtimeModes": ["approval-required", "full-access"], "models": [{"id": "muse-wonder-full", "label": "Muse Wonder Full", "options": [{"id": "reasoningEffort", "values": ["minimal", "low", "medium", "high", "xhigh", "max"], "default": "high"}]}]}, {"providerInstanceId": "grok", "driverKind": "grok", "displayName": "Grok", "models": [{"id": "grok-4.7", "label": "Grok 4.7", "options": []}]}]}, "delegate_task": "default"}, "world": {"files": {"tests/flaky/retry.test.ts": "it('retry is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/upload.test.ts": "it('upload is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/session.test.ts": "it('session is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/search.test.ts": "it('search is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/billing.test.ts": "it('billing is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/webhook.test.ts": "it('webhook is flaky', async () => { /* fails 1 in 5 runs */ });\n"}}}, "prompt": "Six tests in tests/flaky/ fail now and then. Start 3 Muse Wonder Full workers and 3 Grok workers, one test file each, to find and fix the flake.", "expect": {"calls": [{"tool": "delegate_task", "args": {"target.model": "muse-wonder-full"}}, {"tool": "delegate_task", "args": {"target.model": "grok-4.7"}}], "minCalls": {"delegate_task": 6}}, "notes": "Scaled down from the real 20 Sol + 20 Luna ask. Muse and Grok need delegate_task from every parent, so a native Sol helper cannot pass or fail it."} {"id": "linked-thread-chip-reads-there", "area": "orchestration", "kind": "guard", "pattern": "thread chip from a linked machine read on this one", "experience": "A thread chip from a linked machine names its environmentId; an agent that reads it without passing that id reads this machine, where the thread does not exist.", "rule": "The thread chip names its environmentId; t3_thread_read takes it.", "privacy": "commit-safe", "setup": {"role": "top", "linkedEnvironments": true, "mocks": {"t3_environment_links": {"environmentId": "environment-laptop", "links": [{"environmentId": "environment-vps", "label": "Hetzner VPS", "status": "reachable", "access": "auto-accept-edits", "expiresAt": "2026-12-01T00:00:00.000Z", "lastError": null}], "notListed": "Not listed: not linked yet. Call t3_environment_link with a hint from the user's words."}, "t3_thread_read": {"thread": {"threadId": "thread-deploy-api", "title": "Deploy the API", "status": "idle"}, "items": [{"position": 1, "createdBy": "user", "text": "Deploy the API to the VPS and check the health endpoint."}, {"position": 2, "createdBy": "assistant", "text": "Deployed. /health returns 200, but /health/db times out after 5s: the API can't reach Postgres on 10.0.0.5:5432."}], "nextPosition": 3, "hasMore": false}}}, "prompt": "Pick up where [Deploy the API](t3-context://v1/thread/thread_deploy-api) left off. What is still failing?", "promptContext": {"records": [{"version": 1, "kind": "thread", "contextId": "thread_deploy-api", "label": "Deploy the API", "environmentId": "environment-vps", "threadId": "thread-deploy-api", "title": "Deploy the API"}]}, "expect": {"calls": [{"tool": "t3_thread_read", "args": {"threadId": "thread-deploy-api", "environmentId": "environment-vps"}}], "notCalls": ["t3_environment_link"]}, "source": {"request": "akj on #17130: attach a linked machine's thread without dragging"}} {"id": "thread-send-fresh-context", "area": "orchestration", "kind": "guard", "pattern": "t3_thread_send that should start a fresh provider session", "experience": "The user wanted a confused long-running thread to start over in the same thread without its old context; a plain send would keep feeding it the history.", "rule": "`freshContext: true` on t3_thread_send starts a new provider session in the same thread, like /clear.", "privacy": "commit-safe", "setup": {"role": "top", "priorTurns": [{"role": "user", "text": "The thread working on the CSV importer keeps reverting to the old column mapping from early in its history."}, {"role": "assistant", "text": "That thread has a long history with three different mappings in it, so the model keeps picking up the stale one."}], "mocks": {"t3_thread_send": {"threadId": "11111111-1111-4111-8111-111111111111", "link": "", "messageId": "msg-1", "runId": "run-1", "status": "starting", "delivery": "started"}}}, "prompt": "Send it the final mapping below and have it start over with a clean context in that same thread, so the old history stops leaking in: thread 11111111-1111-4111-8111-111111111111.\n\nFinal mapping: id -> customer_id, amt -> amount_cents, ts -> created_at.", "expect": {"calls": [{"tool": "t3_thread_send", "args": {"threadId": "11111111-1111-4111-8111-111111111111", "freshContext": true}}], "notCalls": ["delegate_task", "t3_thread_launch", "create_threads"]}, "source": {"request": "juliusmarminge (maintainer) request, 2026-11-03: fresh provider sessions in one T3 thread"}, "notes": "Pairs with thread-send-to-named-top-level-thread, where an ordinary send must not set freshContext."} +{"id": "background-wait-names-task-ids", "area": "orchestration", "kind": "bad", "pattern": "t3_background_wait called with taskId instead of taskIds", "experience": "Asked to wait for a background command it had started, the agent called t3_background_wait with {\"taskId\": \"\"}, as T3's text said 'with its task ID', and the call failed with Missing key at [\"taskIds\"].", "rule": "To wait for a background command or Monitor you started (tests, a build), call t3_background_wait with taskIds: [id] before ending a turn.", "privacy": "commit-safe", "setup": {"role": "top", "harness": "claude", "priorTurns": [{"role": "user", "text": "Start the Playwright e2e suite in the background. While it runs, tell me why e2e/checkout.spec.ts is flaky."}, {"role": "assistant", "text": "The e2e suite is running in the background (task b4k7m2q9). checkout.spec.ts is flaky because it clicks Pay before the Stripe iframe has loaded: `page.click('#pay')` runs right after `page.goto('/checkout')` with no wait for the card field. Waiting for `frameLocator('#card-frame').locator('input[name=cardnumber]')` to be visible before clicking fixes the race.", "toolCalls": [{"tool": "Bash", "input": {"command": "vp run test:e2e", "description": "Run the Playwright e2e suite", "run_in_background": true}, "result": "Command running in background with ID: b4k7m2q9. Output is being written to: /tmp/claude/tasks/b4k7m2q9.output"}, {"tool": "Read", "input": {"file_path": "/home/user/.t3/worktrees/t3code/t3-f8cdd940/e2e/checkout.spec.ts"}, "result": "1\timport { test, expect } from \"@playwright/test\";\n2\t\n3\ttest(\"pays with a card\", async ({ page }) => {\n4\t await page.goto(\"/checkout\");\n5\t await page.click(\"#pay\");\n6\t await expect(page.getByText(\"Payment received\")).toBeVisible();\n7\t});\n"}]}], "mocks": {"t3_background_wait": "default"}, "world": {"branch": "main", "e2e": "Background task b4k7m2q9 runs `vp run test:e2e` (186 Playwright tests, 4 workers) and needs about 9 more minutes. Its output file /tmp/claude/tasks/b4k7m2q9.output so far shows only progress lines such as '[61/186] e2e/cart.spec.ts:12:3 › adds an item' with no summary. A foreground wait for it outlasts the Bash tool's timeout."}, "shellMocks": [{"match": "b4k7m2q9\\.output", "output": "Running 186 tests using 4 workers\n\n[58/186] e2e/cart.spec.ts:4:3 › shows an empty cart\n[59/186] e2e/cart.spec.ts:12:3 › adds an item\n[60/186] e2e/cart.spec.ts:21:3 › removes an item\n[61/186] e2e/cart.spec.ts:30:3 › keeps the cart after reload"}]}, "prompt": "Thanks. Wait for the e2e run to finish, then tell me which specs failed.", "expect": {"calls": [{"tool": "t3_background_wait", "args": {"taskIds": ["b4k7m2q9"], "taskId": null}}]}, "source": {"issue": "pingdotgg/t3code#31889"}, "notes": "t3_background_wait is deferred, so agents often call it from T3's Claude text alone. That text said 'with its task ID'; the schema key is taskIds, an array. Claude only: t3_background_wait is a Claude tool.", "maxSteps": 10} From c7dd3b8f23baf102d5ca63f103ce227745d749e2 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 6 Nov 2026 09:14:55 +0000 Subject: [PATCH 5/6] test(evals): mark the background-wait case as a guard The replay loads the deferred tool's schema through ToolSearch, so main's text passes it too; it guards the call shape rather than reproducing #31889. Co-Authored-By: Claude Opus 5.5 --- evals/mcp-tool-use/cases/orchestration.ndjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evals/mcp-tool-use/cases/orchestration.ndjson b/evals/mcp-tool-use/cases/orchestration.ndjson index 3cf1d45091599..5083d0f24472f 100644 --- a/evals/mcp-tool-use/cases/orchestration.ndjson +++ b/evals/mcp-tool-use/cases/orchestration.ndjson @@ -35,4 +35,4 @@ {"id": "worker-counts-per-model", "area": "orchestration", "kind": "bad", "pattern": "named-model rule read as a cap", "experience": "Asked for 20 Sol workers and 20 Luna workers, the agent started one worker per model (#25359).", "rule": "Before delegate_task ... One child per named model. (intended: every named model gets a child; read as a cap of one child per model)", "privacy": "commit-safe", "setup": {"role": "top", "mocks": {"orchestrator_capabilities": {"parentThreadId": "33333333-3333-4333-8333-333333333333", "inheritedProviderInstanceId": "claudeAgent", "inheritedModel": "claude-sonnet-5-5", "inheritedOptions": [{"id": "effort", "value": "high"}], "runtimeMode": "full-access", "interactionMode": "default", "features": {"appOwnedSubagents": true, "asyncPolling": true, "cancellation": true, "batchThreadCreation": true, "threadManagement": true, "incrementalThreadRead": true, "scheduledTasks": true}, "providers": [{"providerInstanceId": "claudeAgent", "driverKind": "claudeAgent", "displayName": "Claude", "models": [{"id": "claude-opus-5-5", "label": "Claude Opus 5.5", "options": [{"id": "effort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}, {"id": "fastMode", "type": "boolean", "default": false}]}, {"id": "claude-sonnet-5-5", "label": "Claude Sonnet 5.5", "options": [{"id": "effort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}]}, {"id": "claude-haiku-5-5", "label": "Claude Haiku 5.5", "options": [{"id": "effort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}]}]}, {"providerInstanceId": "codex", "driverKind": "codex", "displayName": "Codex", "models": [{"id": "gpt-6.1-sol", "label": "GPT-6.1 Sol", "options": [{"id": "reasoningEffort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}, {"id": "serviceTier", "values": ["default", "priority"], "default": "default"}]}]}, {"providerInstanceId": "muse", "driverKind": "muse", "displayName": "Muse Code", "runtimeModes": ["approval-required", "full-access"], "models": [{"id": "muse-wonder-full", "label": "Muse Wonder Full", "options": [{"id": "reasoningEffort", "values": ["minimal", "low", "medium", "high", "xhigh", "max"], "default": "high"}]}]}, {"providerInstanceId": "grok", "driverKind": "grok", "displayName": "Grok", "models": [{"id": "grok-4.7", "label": "Grok 4.7", "options": []}]}]}, "delegate_task": "default"}, "world": {"files": {"tests/flaky/retry.test.ts": "it('retry is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/upload.test.ts": "it('upload is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/session.test.ts": "it('session is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/search.test.ts": "it('search is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/billing.test.ts": "it('billing is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/webhook.test.ts": "it('webhook is flaky', async () => { /* fails 1 in 5 runs */ });\n"}}}, "prompt": "Six tests in tests/flaky/ fail now and then. Start 3 Muse Wonder Full workers and 3 Grok workers, one test file each, to find and fix the flake.", "expect": {"calls": [{"tool": "delegate_task", "args": {"target.model": "muse-wonder-full"}}, {"tool": "delegate_task", "args": {"target.model": "grok-4.7"}}], "minCalls": {"delegate_task": 6}}, "notes": "Scaled down from the real 20 Sol + 20 Luna ask. Muse and Grok need delegate_task from every parent, so a native Sol helper cannot pass or fail it."} {"id": "linked-thread-chip-reads-there", "area": "orchestration", "kind": "guard", "pattern": "thread chip from a linked machine read on this one", "experience": "A thread chip from a linked machine names its environmentId; an agent that reads it without passing that id reads this machine, where the thread does not exist.", "rule": "The thread chip names its environmentId; t3_thread_read takes it.", "privacy": "commit-safe", "setup": {"role": "top", "linkedEnvironments": true, "mocks": {"t3_environment_links": {"environmentId": "environment-laptop", "links": [{"environmentId": "environment-vps", "label": "Hetzner VPS", "status": "reachable", "access": "auto-accept-edits", "expiresAt": "2026-12-01T00:00:00.000Z", "lastError": null}], "notListed": "Not listed: not linked yet. Call t3_environment_link with a hint from the user's words."}, "t3_thread_read": {"thread": {"threadId": "thread-deploy-api", "title": "Deploy the API", "status": "idle"}, "items": [{"position": 1, "createdBy": "user", "text": "Deploy the API to the VPS and check the health endpoint."}, {"position": 2, "createdBy": "assistant", "text": "Deployed. /health returns 200, but /health/db times out after 5s: the API can't reach Postgres on 10.0.0.5:5432."}], "nextPosition": 3, "hasMore": false}}}, "prompt": "Pick up where [Deploy the API](t3-context://v1/thread/thread_deploy-api) left off. What is still failing?", "promptContext": {"records": [{"version": 1, "kind": "thread", "contextId": "thread_deploy-api", "label": "Deploy the API", "environmentId": "environment-vps", "threadId": "thread-deploy-api", "title": "Deploy the API"}]}, "expect": {"calls": [{"tool": "t3_thread_read", "args": {"threadId": "thread-deploy-api", "environmentId": "environment-vps"}}], "notCalls": ["t3_environment_link"]}, "source": {"request": "akj on #17130: attach a linked machine's thread without dragging"}} {"id": "thread-send-fresh-context", "area": "orchestration", "kind": "guard", "pattern": "t3_thread_send that should start a fresh provider session", "experience": "The user wanted a confused long-running thread to start over in the same thread without its old context; a plain send would keep feeding it the history.", "rule": "`freshContext: true` on t3_thread_send starts a new provider session in the same thread, like /clear.", "privacy": "commit-safe", "setup": {"role": "top", "priorTurns": [{"role": "user", "text": "The thread working on the CSV importer keeps reverting to the old column mapping from early in its history."}, {"role": "assistant", "text": "That thread has a long history with three different mappings in it, so the model keeps picking up the stale one."}], "mocks": {"t3_thread_send": {"threadId": "11111111-1111-4111-8111-111111111111", "link": "", "messageId": "msg-1", "runId": "run-1", "status": "starting", "delivery": "started"}}}, "prompt": "Send it the final mapping below and have it start over with a clean context in that same thread, so the old history stops leaking in: thread 11111111-1111-4111-8111-111111111111.\n\nFinal mapping: id -> customer_id, amt -> amount_cents, ts -> created_at.", "expect": {"calls": [{"tool": "t3_thread_send", "args": {"threadId": "11111111-1111-4111-8111-111111111111", "freshContext": true}}], "notCalls": ["delegate_task", "t3_thread_launch", "create_threads"]}, "source": {"request": "juliusmarminge (maintainer) request, 2026-11-03: fresh provider sessions in one T3 thread"}, "notes": "Pairs with thread-send-to-named-top-level-thread, where an ordinary send must not set freshContext."} -{"id": "background-wait-names-task-ids", "area": "orchestration", "kind": "bad", "pattern": "t3_background_wait called with taskId instead of taskIds", "experience": "Asked to wait for a background command it had started, the agent called t3_background_wait with {\"taskId\": \"\"}, as T3's text said 'with its task ID', and the call failed with Missing key at [\"taskIds\"].", "rule": "To wait for a background command or Monitor you started (tests, a build), call t3_background_wait with taskIds: [id] before ending a turn.", "privacy": "commit-safe", "setup": {"role": "top", "harness": "claude", "priorTurns": [{"role": "user", "text": "Start the Playwright e2e suite in the background. While it runs, tell me why e2e/checkout.spec.ts is flaky."}, {"role": "assistant", "text": "The e2e suite is running in the background (task b4k7m2q9). checkout.spec.ts is flaky because it clicks Pay before the Stripe iframe has loaded: `page.click('#pay')` runs right after `page.goto('/checkout')` with no wait for the card field. Waiting for `frameLocator('#card-frame').locator('input[name=cardnumber]')` to be visible before clicking fixes the race.", "toolCalls": [{"tool": "Bash", "input": {"command": "vp run test:e2e", "description": "Run the Playwright e2e suite", "run_in_background": true}, "result": "Command running in background with ID: b4k7m2q9. Output is being written to: /tmp/claude/tasks/b4k7m2q9.output"}, {"tool": "Read", "input": {"file_path": "/home/user/.t3/worktrees/t3code/t3-f8cdd940/e2e/checkout.spec.ts"}, "result": "1\timport { test, expect } from \"@playwright/test\";\n2\t\n3\ttest(\"pays with a card\", async ({ page }) => {\n4\t await page.goto(\"/checkout\");\n5\t await page.click(\"#pay\");\n6\t await expect(page.getByText(\"Payment received\")).toBeVisible();\n7\t});\n"}]}], "mocks": {"t3_background_wait": "default"}, "world": {"branch": "main", "e2e": "Background task b4k7m2q9 runs `vp run test:e2e` (186 Playwright tests, 4 workers) and needs about 9 more minutes. Its output file /tmp/claude/tasks/b4k7m2q9.output so far shows only progress lines such as '[61/186] e2e/cart.spec.ts:12:3 › adds an item' with no summary. A foreground wait for it outlasts the Bash tool's timeout."}, "shellMocks": [{"match": "b4k7m2q9\\.output", "output": "Running 186 tests using 4 workers\n\n[58/186] e2e/cart.spec.ts:4:3 › shows an empty cart\n[59/186] e2e/cart.spec.ts:12:3 › adds an item\n[60/186] e2e/cart.spec.ts:21:3 › removes an item\n[61/186] e2e/cart.spec.ts:30:3 › keeps the cart after reload"}]}, "prompt": "Thanks. Wait for the e2e run to finish, then tell me which specs failed.", "expect": {"calls": [{"tool": "t3_background_wait", "args": {"taskIds": ["b4k7m2q9"], "taskId": null}}]}, "source": {"issue": "pingdotgg/t3code#31889"}, "notes": "t3_background_wait is deferred, so agents often call it from T3's Claude text alone. That text said 'with its task ID'; the schema key is taskIds, an array. Claude only: t3_background_wait is a Claude tool.", "maxSteps": 10} +{"id": "background-wait-names-task-ids", "area": "orchestration", "kind": "guard", "pattern": "t3_background_wait called with taskId instead of taskIds", "experience": "Asked to wait for a background command it had started, the agent called t3_background_wait with {\"taskId\": \"\"}, as T3's text said 'with its task ID', and the call failed with Missing key at [\"taskIds\"].", "rule": "To wait for a background command or Monitor you started (tests, a build), call t3_background_wait with taskIds: [id] before ending a turn.", "privacy": "commit-safe", "setup": {"role": "top", "harness": "claude", "priorTurns": [{"role": "user", "text": "Start the Playwright e2e suite in the background. While it runs, tell me why e2e/checkout.spec.ts is flaky."}, {"role": "assistant", "text": "The e2e suite is running in the background (task b4k7m2q9). checkout.spec.ts is flaky because it clicks Pay before the Stripe iframe has loaded: `page.click('#pay')` runs right after `page.goto('/checkout')` with no wait for the card field. Waiting for `frameLocator('#card-frame').locator('input[name=cardnumber]')` to be visible before clicking fixes the race.", "toolCalls": [{"tool": "Bash", "input": {"command": "vp run test:e2e", "description": "Run the Playwright e2e suite", "run_in_background": true}, "result": "Command running in background with ID: b4k7m2q9. Output is being written to: /tmp/claude/tasks/b4k7m2q9.output"}, {"tool": "Read", "input": {"file_path": "/home/user/.t3/worktrees/t3code/t3-f8cdd940/e2e/checkout.spec.ts"}, "result": "1\timport { test, expect } from \"@playwright/test\";\n2\t\n3\ttest(\"pays with a card\", async ({ page }) => {\n4\t await page.goto(\"/checkout\");\n5\t await page.click(\"#pay\");\n6\t await expect(page.getByText(\"Payment received\")).toBeVisible();\n7\t});\n"}]}], "mocks": {"t3_background_wait": "default"}, "world": {"branch": "main", "e2e": "Background task b4k7m2q9 runs `vp run test:e2e` (186 Playwright tests, 4 workers) and needs about 9 more minutes. Its output file /tmp/claude/tasks/b4k7m2q9.output so far shows only progress lines such as '[61/186] e2e/cart.spec.ts:12:3 › adds an item' with no summary. A foreground wait for it outlasts the Bash tool's timeout."}, "shellMocks": [{"match": "b4k7m2q9\\.output", "output": "Running 186 tests using 4 workers\n\n[58/186] e2e/cart.spec.ts:4:3 › shows an empty cart\n[59/186] e2e/cart.spec.ts:12:3 › adds an item\n[60/186] e2e/cart.spec.ts:21:3 › removes an item\n[61/186] e2e/cart.spec.ts:30:3 › keeps the cart after reload"}]}, "prompt": "Thanks. Wait for the e2e run to finish, then tell me which specs failed.", "expect": {"calls": [{"tool": "t3_background_wait", "args": {"taskIds": ["b4k7m2q9"], "taskId": null}}]}, "source": {"issue": "pingdotgg/t3code#31889"}, "notes": "t3_background_wait is deferred, so agents often call it from T3's Claude text alone. That text said 'with its task ID'; the schema key is taskIds, an array. Claude only: t3_background_wait is a Claude tool.", "maxSteps": 10} From 503faff03d77343932760922049fabbdc747961f Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 6 Nov 2026 09:20:12 +0000 Subject: [PATCH 6/6] test(evals): fail the background-wait guard on any call without taskIds Co-Authored-By: Claude Opus 5.5 --- evals/mcp-tool-use/cases/orchestration.ndjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evals/mcp-tool-use/cases/orchestration.ndjson b/evals/mcp-tool-use/cases/orchestration.ndjson index 5083d0f24472f..e162b92efdd63 100644 --- a/evals/mcp-tool-use/cases/orchestration.ndjson +++ b/evals/mcp-tool-use/cases/orchestration.ndjson @@ -35,4 +35,4 @@ {"id": "worker-counts-per-model", "area": "orchestration", "kind": "bad", "pattern": "named-model rule read as a cap", "experience": "Asked for 20 Sol workers and 20 Luna workers, the agent started one worker per model (#25359).", "rule": "Before delegate_task ... One child per named model. (intended: every named model gets a child; read as a cap of one child per model)", "privacy": "commit-safe", "setup": {"role": "top", "mocks": {"orchestrator_capabilities": {"parentThreadId": "33333333-3333-4333-8333-333333333333", "inheritedProviderInstanceId": "claudeAgent", "inheritedModel": "claude-sonnet-5-5", "inheritedOptions": [{"id": "effort", "value": "high"}], "runtimeMode": "full-access", "interactionMode": "default", "features": {"appOwnedSubagents": true, "asyncPolling": true, "cancellation": true, "batchThreadCreation": true, "threadManagement": true, "incrementalThreadRead": true, "scheduledTasks": true}, "providers": [{"providerInstanceId": "claudeAgent", "driverKind": "claudeAgent", "displayName": "Claude", "models": [{"id": "claude-opus-5-5", "label": "Claude Opus 5.5", "options": [{"id": "effort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}, {"id": "fastMode", "type": "boolean", "default": false}]}, {"id": "claude-sonnet-5-5", "label": "Claude Sonnet 5.5", "options": [{"id": "effort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}]}, {"id": "claude-haiku-5-5", "label": "Claude Haiku 5.5", "options": [{"id": "effort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}]}]}, {"providerInstanceId": "codex", "driverKind": "codex", "displayName": "Codex", "models": [{"id": "gpt-6.1-sol", "label": "GPT-6.1 Sol", "options": [{"id": "reasoningEffort", "values": ["low", "medium", "high", "xhigh", "max"], "default": "high"}, {"id": "serviceTier", "values": ["default", "priority"], "default": "default"}]}]}, {"providerInstanceId": "muse", "driverKind": "muse", "displayName": "Muse Code", "runtimeModes": ["approval-required", "full-access"], "models": [{"id": "muse-wonder-full", "label": "Muse Wonder Full", "options": [{"id": "reasoningEffort", "values": ["minimal", "low", "medium", "high", "xhigh", "max"], "default": "high"}]}]}, {"providerInstanceId": "grok", "driverKind": "grok", "displayName": "Grok", "models": [{"id": "grok-4.7", "label": "Grok 4.7", "options": []}]}]}, "delegate_task": "default"}, "world": {"files": {"tests/flaky/retry.test.ts": "it('retry is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/upload.test.ts": "it('upload is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/session.test.ts": "it('session is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/search.test.ts": "it('search is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/billing.test.ts": "it('billing is flaky', async () => { /* fails 1 in 5 runs */ });\n", "tests/flaky/webhook.test.ts": "it('webhook is flaky', async () => { /* fails 1 in 5 runs */ });\n"}}}, "prompt": "Six tests in tests/flaky/ fail now and then. Start 3 Muse Wonder Full workers and 3 Grok workers, one test file each, to find and fix the flake.", "expect": {"calls": [{"tool": "delegate_task", "args": {"target.model": "muse-wonder-full"}}, {"tool": "delegate_task", "args": {"target.model": "grok-4.7"}}], "minCalls": {"delegate_task": 6}}, "notes": "Scaled down from the real 20 Sol + 20 Luna ask. Muse and Grok need delegate_task from every parent, so a native Sol helper cannot pass or fail it."} {"id": "linked-thread-chip-reads-there", "area": "orchestration", "kind": "guard", "pattern": "thread chip from a linked machine read on this one", "experience": "A thread chip from a linked machine names its environmentId; an agent that reads it without passing that id reads this machine, where the thread does not exist.", "rule": "The thread chip names its environmentId; t3_thread_read takes it.", "privacy": "commit-safe", "setup": {"role": "top", "linkedEnvironments": true, "mocks": {"t3_environment_links": {"environmentId": "environment-laptop", "links": [{"environmentId": "environment-vps", "label": "Hetzner VPS", "status": "reachable", "access": "auto-accept-edits", "expiresAt": "2026-12-01T00:00:00.000Z", "lastError": null}], "notListed": "Not listed: not linked yet. Call t3_environment_link with a hint from the user's words."}, "t3_thread_read": {"thread": {"threadId": "thread-deploy-api", "title": "Deploy the API", "status": "idle"}, "items": [{"position": 1, "createdBy": "user", "text": "Deploy the API to the VPS and check the health endpoint."}, {"position": 2, "createdBy": "assistant", "text": "Deployed. /health returns 200, but /health/db times out after 5s: the API can't reach Postgres on 10.0.0.5:5432."}], "nextPosition": 3, "hasMore": false}}}, "prompt": "Pick up where [Deploy the API](t3-context://v1/thread/thread_deploy-api) left off. What is still failing?", "promptContext": {"records": [{"version": 1, "kind": "thread", "contextId": "thread_deploy-api", "label": "Deploy the API", "environmentId": "environment-vps", "threadId": "thread-deploy-api", "title": "Deploy the API"}]}, "expect": {"calls": [{"tool": "t3_thread_read", "args": {"threadId": "thread-deploy-api", "environmentId": "environment-vps"}}], "notCalls": ["t3_environment_link"]}, "source": {"request": "akj on #17130: attach a linked machine's thread without dragging"}} {"id": "thread-send-fresh-context", "area": "orchestration", "kind": "guard", "pattern": "t3_thread_send that should start a fresh provider session", "experience": "The user wanted a confused long-running thread to start over in the same thread without its old context; a plain send would keep feeding it the history.", "rule": "`freshContext: true` on t3_thread_send starts a new provider session in the same thread, like /clear.", "privacy": "commit-safe", "setup": {"role": "top", "priorTurns": [{"role": "user", "text": "The thread working on the CSV importer keeps reverting to the old column mapping from early in its history."}, {"role": "assistant", "text": "That thread has a long history with three different mappings in it, so the model keeps picking up the stale one."}], "mocks": {"t3_thread_send": {"threadId": "11111111-1111-4111-8111-111111111111", "link": "", "messageId": "msg-1", "runId": "run-1", "status": "starting", "delivery": "started"}}}, "prompt": "Send it the final mapping below and have it start over with a clean context in that same thread, so the old history stops leaking in: thread 11111111-1111-4111-8111-111111111111.\n\nFinal mapping: id -> customer_id, amt -> amount_cents, ts -> created_at.", "expect": {"calls": [{"tool": "t3_thread_send", "args": {"threadId": "11111111-1111-4111-8111-111111111111", "freshContext": true}}], "notCalls": ["delegate_task", "t3_thread_launch", "create_threads"]}, "source": {"request": "juliusmarminge (maintainer) request, 2026-11-03: fresh provider sessions in one T3 thread"}, "notes": "Pairs with thread-send-to-named-top-level-thread, where an ordinary send must not set freshContext."} -{"id": "background-wait-names-task-ids", "area": "orchestration", "kind": "guard", "pattern": "t3_background_wait called with taskId instead of taskIds", "experience": "Asked to wait for a background command it had started, the agent called t3_background_wait with {\"taskId\": \"\"}, as T3's text said 'with its task ID', and the call failed with Missing key at [\"taskIds\"].", "rule": "To wait for a background command or Monitor you started (tests, a build), call t3_background_wait with taskIds: [id] before ending a turn.", "privacy": "commit-safe", "setup": {"role": "top", "harness": "claude", "priorTurns": [{"role": "user", "text": "Start the Playwright e2e suite in the background. While it runs, tell me why e2e/checkout.spec.ts is flaky."}, {"role": "assistant", "text": "The e2e suite is running in the background (task b4k7m2q9). checkout.spec.ts is flaky because it clicks Pay before the Stripe iframe has loaded: `page.click('#pay')` runs right after `page.goto('/checkout')` with no wait for the card field. Waiting for `frameLocator('#card-frame').locator('input[name=cardnumber]')` to be visible before clicking fixes the race.", "toolCalls": [{"tool": "Bash", "input": {"command": "vp run test:e2e", "description": "Run the Playwright e2e suite", "run_in_background": true}, "result": "Command running in background with ID: b4k7m2q9. Output is being written to: /tmp/claude/tasks/b4k7m2q9.output"}, {"tool": "Read", "input": {"file_path": "/home/user/.t3/worktrees/t3code/t3-f8cdd940/e2e/checkout.spec.ts"}, "result": "1\timport { test, expect } from \"@playwright/test\";\n2\t\n3\ttest(\"pays with a card\", async ({ page }) => {\n4\t await page.goto(\"/checkout\");\n5\t await page.click(\"#pay\");\n6\t await expect(page.getByText(\"Payment received\")).toBeVisible();\n7\t});\n"}]}], "mocks": {"t3_background_wait": "default"}, "world": {"branch": "main", "e2e": "Background task b4k7m2q9 runs `vp run test:e2e` (186 Playwright tests, 4 workers) and needs about 9 more minutes. Its output file /tmp/claude/tasks/b4k7m2q9.output so far shows only progress lines such as '[61/186] e2e/cart.spec.ts:12:3 › adds an item' with no summary. A foreground wait for it outlasts the Bash tool's timeout."}, "shellMocks": [{"match": "b4k7m2q9\\.output", "output": "Running 186 tests using 4 workers\n\n[58/186] e2e/cart.spec.ts:4:3 › shows an empty cart\n[59/186] e2e/cart.spec.ts:12:3 › adds an item\n[60/186] e2e/cart.spec.ts:21:3 › removes an item\n[61/186] e2e/cart.spec.ts:30:3 › keeps the cart after reload"}]}, "prompt": "Thanks. Wait for the e2e run to finish, then tell me which specs failed.", "expect": {"calls": [{"tool": "t3_background_wait", "args": {"taskIds": ["b4k7m2q9"], "taskId": null}}]}, "source": {"issue": "pingdotgg/t3code#31889"}, "notes": "t3_background_wait is deferred, so agents often call it from T3's Claude text alone. That text said 'with its task ID'; the schema key is taskIds, an array. Claude only: t3_background_wait is a Claude tool.", "maxSteps": 10} +{"id": "background-wait-names-task-ids", "area": "orchestration", "kind": "guard", "pattern": "t3_background_wait called with taskId instead of taskIds", "experience": "Asked to wait for a background command it had started, the agent called t3_background_wait with {\"taskId\": \"\"}, as T3's text said 'with its task ID', and the call failed with Missing key at [\"taskIds\"].", "rule": "To wait for a background command or Monitor you started (tests, a build), call t3_background_wait with taskIds: [id] before ending a turn.", "privacy": "commit-safe", "setup": {"role": "top", "harness": "claude", "priorTurns": [{"role": "user", "text": "Start the Playwright e2e suite in the background. While it runs, tell me why e2e/checkout.spec.ts is flaky."}, {"role": "assistant", "text": "The e2e suite is running in the background (task b4k7m2q9). checkout.spec.ts is flaky because it clicks Pay before the Stripe iframe has loaded: `page.click('#pay')` runs right after `page.goto('/checkout')` with no wait for the card field. Waiting for `frameLocator('#card-frame').locator('input[name=cardnumber]')` to be visible before clicking fixes the race.", "toolCalls": [{"tool": "Bash", "input": {"command": "vp run test:e2e", "description": "Run the Playwright e2e suite", "run_in_background": true}, "result": "Command running in background with ID: b4k7m2q9. Output is being written to: /tmp/claude/tasks/b4k7m2q9.output"}, {"tool": "Read", "input": {"file_path": "/home/user/.t3/worktrees/t3code/t3-f8cdd940/e2e/checkout.spec.ts"}, "result": "1\timport { test, expect } from \"@playwright/test\";\n2\t\n3\ttest(\"pays with a card\", async ({ page }) => {\n4\t await page.goto(\"/checkout\");\n5\t await page.click(\"#pay\");\n6\t await expect(page.getByText(\"Payment received\")).toBeVisible();\n7\t});\n"}]}], "mocks": {"t3_background_wait": "default"}, "world": {"branch": "main", "e2e": "Background task b4k7m2q9 runs `vp run test:e2e` (186 Playwright tests, 4 workers) and needs about 9 more minutes. Its output file /tmp/claude/tasks/b4k7m2q9.output so far shows only progress lines such as '[61/186] e2e/cart.spec.ts:12:3 › adds an item' with no summary. A foreground wait for it outlasts the Bash tool's timeout."}, "shellMocks": [{"match": "b4k7m2q9\\.output", "output": "Running 186 tests using 4 workers\n\n[58/186] e2e/cart.spec.ts:4:3 › shows an empty cart\n[59/186] e2e/cart.spec.ts:12:3 › adds an item\n[60/186] e2e/cart.spec.ts:21:3 › removes an item\n[61/186] e2e/cart.spec.ts:30:3 › keeps the cart after reload"}]}, "prompt": "Thanks. Wait for the e2e run to finish, then tell me which specs failed.", "expect": {"calls": [{"tool": "t3_background_wait", "args": {"taskIds": ["b4k7m2q9"], "taskId": null}}], "callsMustNot": [{"tool": "t3_background_wait", "args": {"taskIds": null}}]}, "source": {"issue": "pingdotgg/t3code#31889"}, "notes": "t3_background_wait is deferred, so agents often call it from T3's Claude text alone. That text said 'with its task ID'; the schema key is taskIds, an array. Claude only: t3_background_wait is a Claude tool.", "maxSteps": 10}