Repository navigation
fix(verifiers): a judge task our poll gave up on is cancelled, so it stops calling its model - #881
Closed
earakely-scale wants to merge 1 commit into
Closed
earakely-scale wants to merge 1 commit into
earakely-scale wants to merge 1 commit into
Conversation
…stops calling its model On a poll timeout the judge kept working until its own time limit, 60 s later with judge_timeout_retries, beside the retry on the same judge, and its calls were billed. A cancel already stopped it; a timeout now does too, before its trajectory so far is fetched. A judge that stopped answering isn't sent one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Closing: the premise was wrong. |
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 changes
When our poll of an agent judge times out, the judge's A2A task is now cancelled, the same way a cancel already stops it. Before, the judge kept working and calling its model until its own time limit. With
judge_timeout_retries, that limit is the poll's plus 60 s (_JUDGE_TIMEOUT_MARGIN_SECONDS), so the timed-out turn ran beside its retry on the same judge, and its calls were billed. #880's chaos run showed those late calls landing after the run.AgentUnreachableError) isn't sent a cancel.cancel_a2a_taskonly logs a judge it can't reach), and is shielded like the existing one.Tests
test_rubrics_verifier_judge_timeout_retry.py:The first three fail on main.
E2E against the real proxy
LIVE_RESULTS
🤖 Generated with Claude Code