[examples] fix: use task-level swe-bench reward#91
Merged
yyDing1 merged 1 commit intoJul 24, 2026
Conversation
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
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.
What does this PR do?
Fix the Claude Code blackbox recipe after the runtime/task refactor in #83.
The recipe still loaded the removed
uni_agent.rewardregistry, so in-sandboxSWE-bench evaluation failed on current
main. This PR migrates the recipe tothe task-level
uni_agent.tasks.swe_bench.reward.compute_rewardAPI and addsthe
exec_shelladapter required by that evaluator.Checklist Before Starting
[examples] fix: migrate Claude Code reward to task API.Test
uni_agent.rewardimport and missingexec_shell, then passed all 4 reward-adapter cases after the fix. The probe is not committed because this repository treats executable recipes as integration coverage and does not run recipe pytest suites in CI.python -m pytest tests/uni_agent/agents/test_claude_code_agent.py -q— 8 passed.pre-commit run --all-files --show-diff-on-failure --color=always— all hooks passed.API and Usage Example
No new user-facing configuration is required. The existing Claude Code
run_infer.shand training recipe now evaluate SWE-bench through the post-#83task reward API.
Design & Code Changes
SandboxEnvForReward.exec_shell, preserving quoted working directories and timeouts.Checklist Before Submitting