Repository navigation
fix(server): name the taskIds key in t3_background_wait guidance #31914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
juliusmarminge
wants to merge
9
commits into
main
Choose a base branch
from
fix/issue-31889
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7
−3
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4e21ffe
test(server): reproduce #31889, Claude background-wait instructions o…
juliusmarminge 4076d32
fix(server): name taskIds in t3_background_wait instructions
juliusmarminge 793403a
fix(server): name the taskIds shape in t3_background_wait guidance wi…
juliusmarminge 97c261f
test(evals): agent waits on a background command with taskIds
juliusmarminge c7dd3b8
test(evals): mark the background-wait case as a guard
juliusmarminge 503faff
test(evals): fail the background-wait guard on any call without taskIds
juliusmarminge c172a77
Merge remote-tracking branch 'origin/main' into fix/issue-31889
juliusmarminge 96d1c94
Merge remote-tracking branch 'origin/main' into fix/issue-31889
juliusmarminge 985e13d
Merge remote-tracking branch 'origin/main' into fix/issue-31889
juliusmarminge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "claudeSystemAppendBytes": 5597, | ||
| "codexAdditionalContextBytes": 7327, | ||
| "mcpToolListJsonBytes": 48094 | ||
| "mcpToolListJsonBytes": 48092 | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grade the rejected deferred-tool attempt.
The runner excludes calls to unloaded deferred tools from grading. An agent can call
t3_background_waitwithtaskId, receive an error, then load the tool and pass this case with a valid retry. Record and grade the attempted call. The reported old-text runs also passed after ToolSearch loaded the schema. (raw.githubusercontent.com)As per coding guidelines: “Add the case before the fix. It must fail on the old text and pass on the new text.”
Source: Coding guidelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not changing this here.
ranCallsinevals/mcp-tool-use/run.tsskips calls to unloaded deferred tools on purpose, because Claude Code rejects those calls itself and they never reach T3. Grading them would change results for every case in the suite, which is a separate change to the runner. This case is markedguard, notbad, for that reason: on the replay, main's text passes too, and the PR body says so. ThecallsMustNotrule still fails any call to the loaded tool that leaves outtaskIds. The fix itself is covered by the adapter test, which checks the injected prompt against the schema key.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juliusmarminge Understood. Changing
ranCallswould affect grading across the suite.The reported guard runs passed with both the old and new text, so they do not demonstrate the behavior change. The adapter test checks the prompt text, not model behavior. The repository’s eval guidance requires a case that fails before the fix and passes after it; that verification remains open.
Would you like a follow-up issue to investigate a reproduction without changing suite-wide grading?
Learnings used
You are interacting with an AI system.