Skip to content

bugfix: TreeSearchProbe should handle Nones #1509

Merged
leondz merged 4 commits intoNVIDIA:mainfrom
leondz:bugfix/treesearch_nones
Dec 4, 2025
Merged

bugfix: TreeSearchProbe should handle Nones #1509
leondz merged 4 commits intoNVIDIA:mainfrom
leondz:bugfix/treesearch_nones

Conversation

@leondz
Copy link
Collaborator

@leondz leondz commented Dec 2, 2025

Resolves #1508

  • comparison in compilation of node_results only performed over non-Nones

  • summary stats calculated after Nones removed

  • adds a test.Nones generator for testing this kind of functionality

Verification

without the update in garak/probes/base.py

with the update in garak/probes/base.py

  • garak -t test.Nones -p topic.WordnetControversial succeed with a SKIP

@leondz leondz added bug Something isn't working probes Content & activity of LLM probes generators Interfaces with LLMs labels Dec 2, 2025
Copy link
Collaborator

@erickgalinkin erickgalinkin left a comment

Choose a reason for hiding this comment

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

Solid, straightforward fix.

)


class Nones(Generator):
Copy link
Collaborator

Choose a reason for hiding this comment

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

This feels like something that every probe and detector should have been tested against. Solid add.

Copy link
Collaborator

@jmartin-tech jmartin-tech left a comment

Choose a reason for hiding this comment

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

Minor ask

@leondz leondz requested a review from jmartin-tech December 3, 2025 09:48
@jmartin-tech jmartin-tech changed the title bugfix: TreeSearchProbe should handle Nones from detectors (and by extension generators) bugfix: TreeSearchProbe should handle Nones Dec 3, 2025
@leondz leondz merged commit 7cc7f63 into NVIDIA:main Dec 4, 2025
15 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working generators Interfaces with LLMs probes Content & activity of LLM probes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: unhandled None during dynamic expansion in TreeProbe

3 participants