Repository navigation
FIX: Say every TAP branch went off-topic instead of reporting best score 0.00 - #4619
Open
Utkarsh Bahuguna (u7k4rs6) wants to merge 3 commits into
Open
Utkarsh Bahuguna (u7k4rs6) wants to merge 3 commits into
Utkarsh Bahuguna (u7k4rs6) wants to merge 3 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Richard Lundeen (richlundeen)
approved these changes
Dec 1, 2026
Richard Lundeen (richlundeen)
left a comment
Contributor
There was a problem hiding this comment.
Automated review completed. No blocking concerns remain. This review records source coverage; merging is handled separately.
A branch is pruned only after the on-topic scorer returns a definite false on every retry, so a run where every branch was pruned is a measured failure of the attack, not a missing verdict. Keep FAILURE, but replace the misleading "Best score: 0.00" reason with one that says every branch went off-topic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
When every TAP branch is pruned as off-topic, nothing reaches the objective target, but the result reason said "Objective scorer did not return true. Best score: 0.00", which reads as if the target was probed and held. TAP now reports "Every branch was pruned as off-topic, so nothing reached the objective target" as the reason for this case.
The outcome stays FAILURE rather than UNDETERMINED. A branch is pruned only after the on-topic scorer returns a definite false on every retry (an undetermined on-topic verdict never prunes), so the attack ran to completion and its adversarial chat could not produce an on-topic prompt. That is a measured failure of the attack, unlike red teaming's UNDETERMINED for a blocked adversarial chat that produced nothing. Reporting it as UNDETERMINED would also drop these runs from the decided success rate, inflating TAP's ASR, and the adversarial benchmark never caches UNDETERMINED rows, so they would re-run on every benchmark run.
The
all_off_topic_is_failurescenario stays as it was, and a new test checks the FAILURE outcome and the off-topic reason.Fixes #4618