Repository navigation
Conversation
…_thread_launch Allow standing project or board-dispatch rules and T3 tool refusals naming t3_thread_launch to satisfy the user-ask requirement for launching top-level threads, while keeping the guard that 'Subagent', 'delegate', and 'parallel' never mean a new thread. Adds a unit test for both default and Antigravity instruction sets and a commit-safe mcp-tool-use eval case (tt-standing-request-another-project) reproducing cross-project dispatch after delegate_task's refusal. Loosens: raises apps/server/src/provider/agentContextBudget.json by +91 bytes for claudeSystemAppendBytes (6241 -> 6332) and codexAdditionalContextBytes (7635 -> 7726) to carry the standing-rule/T3-tool-refusal clause.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosNo All 64 scenario measurements
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
packages/provider-core/src/server/orchestrationInstructions.tstold agents thatt3_thread_launchandcreate_threadsmake new top-level threads "only when the user asks for a new thread". Becausedelegate_taskrefuses a localtarget.projectIdin another project and directs the agent tot3_thread_launch(PR #21), agents following a standing project or board-dispatch rule hit a contradiction and left cross-project tasks undispatched.Fix
orchestrationSections(covering both default Claude/Codex/ACP and Antigravity instruction sets) so standing project or board-dispatch rules and a T3 tool refusal namingt3_thread_launchcount as the user's ask, while preserving"Subagent", "delegate", and "parallel" never mean one.packages/provider-core/src/server/orchestrationInstructions.test.tscovering both default and Antigravity instruction outputs.evals/mcp-tool-use/cases/threads-vs-tasks.ndjsoncase (tt-standing-request-another-project) reproducing cross-project dispatch afterdelegate_task's refusal.apps/server/src/provider/agentContextBudget.jsonfor the measured byte counts.Loosens
Raises
apps/server/src/provider/agentContextBudget.jsonby +91 bytes forclaudeSystemAppendBytes(6241 -> 6332) andcodexAdditionalContextBytes(7635 -> 7726) to include the standing-rule / T3-tool-refusal wording (mcpToolListJsonBytesunchanged at62161). Requires theagent-context-increaselabel.Verification
vp run check:changed(format, lint, knip, graphql, typecheck across 27 packages,orchestrationInstructions.test.ts7/7,AgentContextBudget.test.ts2/2)vp test run apps/server/src/provider/CodexDeveloperInstructions.test.ts evals/mcp-tool-use/run.test.ts(533/533)evals/mcp-tool-use/run.ts --contextand--dry-run --case tt-standing-request-another-project,tt-child-no-unprompted-thread,tt-native-subagent-no-thread-for-rewrite(Claude + Codex request construction)agy-run) check on the new case and controls:tt-standing-request-another-projectmoved0/3 -> 3/3on both default and Antigravity instruction sets;tt-child-no-unprompted-threadandtt-native-subagent-no-thread-for-rewriteboth passed3/3on the new text. (Claude/Codex paidmcp-tool-useAPI runs are not run because no Anthropic/Codex API subscription is active.)