Skip to content

FIX: Report ERROR when every TAP branch crashed before a score - #4159

Open
Utkarsh Bahuguna (u7k4rs6) wants to merge 1 commit into
microsoft:mainfrom
u7k4rs6:fix/tap-all-nodes-errored
Open

Utkarsh Bahuguna (u7k4rs6) wants to merge 1 commit into
microsoft:mainfrom
u7k4rs6:fix/tap-all-nodes-errored

Conversation

@u7k4rs6

Copy link
Copy Markdown
Contributor

When every TAP or PAIR branch hit an exception, the node errors were only stored on the pruned nodes, so the attack returned FAILURE with a 0.00 best score and looked exactly like a target that refused everything. Now TAP keeps the node errors on its context, and when nothing was ever scored and at least one branch errored, it returns ERROR with the error count and the last error as the reason and sets error_message on the result. PAIR gets the same through TAP.

Runs where any branch was scored, including a scored depth followed by a depth where everything crashed, still return FAILURE, and so do runs where every branch was off-topic. The two tests that asserted FAILURE for the all-crashed case now expect ERROR, and there are new scenario cases for the off-topic and crash-after-score paths. The changed tests fail on main and pass here.

Fixes #4154

Copilot AI balanced review requested due to automatic review settings November 10, 2026 15:50

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.

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 and PAIR report FAILURE when every branch crashed before getting a score

2 participants