Skip to content

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
microsoft:mainfrom
u7k4rs6:fix/tap-all-off-topic-undetermined
Open

Utkarsh Bahuguna (u7k4rs6) wants to merge 3 commits into
microsoft:mainfrom
u7k4rs6:fix/tap-all-off-topic-undetermined

Conversation

@u7k4rs6

@u7k4rs6 Utkarsh Bahuguna (u7k4rs6) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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_failure scenario stays as it was, and a new test checks the FAILURE outcome and the off-topic reason.

Fixes #4618

Copilot AI balanced review requested due to automatic review settings November 25, 2026 06:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@richlundeen Richard Lundeen (richlundeen) changed the title FIX: Report UNDETERMINED when every TAP branch went off-topic FIX: Say every TAP branch went off-topic instead of reporting best score 0.00 Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: TAP reports FAILURE when every branch went off-topic

3 participants