Repository navigation
fix(tier3): keep the Bedrock label on strict judge errors that move on - #359
Merged
Merged
Conversation
Under LLM_JUDGE_RETRY_POLICY=strict, a Bedrock error that hands the judge to the next model (throttling, a missing or inaccessible model, an unreachable endpoint) was labeled "Public provider call failed", while a Bedrock error that ended the judge kept "Bedrock request failed". Pass the provider to _strict_judge_failure so both read "Bedrock request failed", as the legacy policy does. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
chrisknvidia
reviewed
Nov 6, 2026
chrisknvidia
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed. Passing the provider into _strict_judge_failure from both _converse and _call_strict_judge makes a Bedrock error that moves on read the same as one that ends the judge, and the parametrized model-not-found / throttled / endpoint-unreachable cases check both the label and the model order. The legacy loop's Public provider call failed for <model> path is untouched, which matches the summary. Nothing blocking from me.
rng1995
marked this pull request as ready for review
November 6, 2026 12:20
rng1995
added a commit
that referenced
this pull request
Nov 6, 2026
…Unreleased Nine PRs merged after the v0.8.0 tag (8149356). Four of them rewrote bullets inside the 0.8.0 section and one added a new bullet there, so main's 0.8.0 notes described behavior that 0.8.0 does not have. Two fixes to 0.8.0 features added no entry. - Restore the 0.8.0 section and everything below it to the tagged text, byte for byte. - Move the agent skill entry (#366) to Unreleased, Added. - Add Documentation entries for the 0.8.0 wording that #360, #361 and #363 corrected (refusal coverage error, inline short texts, capitalized HTTP prose that still warns). - Add Fixed entries for #361, #365, #359, #364 and #363 that describe only what changed after 0.8.0. The #364 entry states that path masking skips text after a non-file: URL up to the next whitespace, which is how main behaves today. - Move the #348 entry to Fixed and say what 0.8.0 did: a CI-redacted PII finding kept the digest of its unmasked value. - The refusal docs test now reads the Documentation correction, which matches the docs, and still requires the switch's entry in 0.8.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
added a commit
that referenced
this pull request
Nov 6, 2026
…Unreleased Nine PRs merged after the v0.8.0 tag (8149356). Four of them rewrote bullets inside the 0.8.0 section and one added a new bullet there, so main's 0.8.0 notes described behavior that 0.8.0 does not have. Two fixes to 0.8.0 features added no entry. - Restore the 0.8.0 section and everything below it to the tagged text, byte for byte. - Move the agent skill entry (#366) to Unreleased, Added. - Add Documentation entries for the 0.8.0 wording that #360, #361 and #363 corrected (refusal coverage error, inline short texts, capitalized HTTP prose that still warns). - Add Fixed entries for #361, #365, #359, #364 and #363 that describe only what changed after 0.8.0. The #364 entry states that path masking skips text after a non-file: URL up to the next whitespace, which is how main behaves today. - Move the #348 entry to Fixed and say what 0.8.0 did: a CI-redacted PII finding kept the digest of its unmasked value. - The refusal docs test now reads the Documentation correction, which matches the docs, and still requires the switch's entry in 0.8.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
added a commit
that referenced
this pull request
Nov 6, 2026
…Unreleased (#371) Nine PRs merged after the v0.8.0 tag (8149356). Four of them rewrote bullets inside the 0.8.0 section and one added a new bullet there, so main's 0.8.0 notes described behavior that 0.8.0 does not have. Two fixes to 0.8.0 features added no entry. - Restore the 0.8.0 section and everything below it to the tagged text, byte for byte. - Move the agent skill entry (#366) to Unreleased, Added. - Add Documentation entries for the 0.8.0 wording that #360, #361 and #363 corrected (refusal coverage error, inline short texts, capitalized HTTP prose that still warns). - Add Fixed entries for #361, #365, #359, #364 and #363 that describe only what changed after 0.8.0. The #364 entry states that path masking skips text after a non-file: URL up to the next whitespace, which is how main behaves today. - Move the #348 entry to Fixed and say what 0.8.0 did: a CI-redacted PII finding kept the digest of its unmasked value. - The refusal docs test now reads the Documentation correction, which matches the docs, and still requires the switch's entry in 0.8.0. Signed-off-by: Narendran Raghavan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
8 of 9 tasks
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.
Summary
Follow-up to #343, which merged before its last review round. #343 adds
LLM_JUDGE_RETRY_POLICY=strict. Under that policy, a Bedrock error that hands the judge to the next model is re-raised from_call_bedrockand labeled by_strict_judge_failureasPublic provider call failed: .... A Bedrock error that ends the judge is still returned by_call_bedrockasBedrock request failed: .... The legacy policy also usesBedrock request failed.Example on
main: a strict Bedrock judge whose primary and fallback models both returnResourceNotFoundExceptionreports:LLM judge model fallback exhausted: vendor/primary: Public provider call failed: Model not found | vendor/backup: Public provider call failed: Model not foundA throttled primary followed by a fallback that rejects
maxTokensreports both labels in one error. The outcomes are correct, but the wording points Bedrock operators to the wrong provider._strict_judge_failurenow takes the provider._call_strict_judgepasses it in, so a Bedrock error that moves on (throttling,AccessDeniedException,ResourceNotFoundException, an invalid model identifier, an unreachable endpoint) readsBedrock request failed: ..., the same as one that ends the judge.Public provider call failed: .... HTTP errors, refusals and used-up request limits keep their own text.Why
When a strict judge fails, the error lists each model that was tried. Every Bedrock entry in that list should carry the Bedrock label. Then an operator reading a report can tell at once that the failures came from Bedrock, and the text matches the legacy policy's errors for the same request.
Kept from public
_redact_configured_credentialsand the order of the per-model errors are unchanged.Tests
test_strict_bedrock_errors_that_move_on_keep_the_bedrock_labelintests/tier3/test_judge_policies.py, with 3 cases: model not found, throttled, and endpoint unreachable. Each checks the full exhausted error and the requests sent to each model. All 3 fail onmainand pass with this change.test_strict_bedrock_stop_keeps_the_errors_of_earlier_modelsnow checks the full error, so both entries carry the Bedrock label. It also fails onmain.tests/tier3/test_judge_policies.py: 88 passed.tests/tier3,tests/test_retry.pyandtests/test_verifier_error_redaction.pyon currentmainplus this change: 9643 passed, 3 skipped.ruff checkandruff format --checkare clean on the changed files, andscripts/check_oss_boundary.pypasses.🤖 Generated with Claude Code