Skip to content

[MAINT BREAKING]: Renaming scenarios#1301

Merged
rlundeen2 merged 6 commits intomicrosoft:mainfrom
rlundeen2:users/rlundeen/2026_01_02_scenario_rename
Jan 2, 2026
Merged

[MAINT BREAKING]: Renaming scenarios#1301
rlundeen2 merged 6 commits intomicrosoft:mainfrom
rlundeen2:users/rlundeen/2026_01_02_scenario_rename

Conversation

@rlundeen2
Copy link
Copy Markdown
Contributor

@rlundeen2 rlundeen2 commented Jan 2, 2026

Drop the 'scenario'. It's cleaner. - Facebook the movie reference

Before:

from pyrit.scenario import EncodingScenario

pyrit_scan garak.encoding_scenario --initializers openai_objective_target --strategies base64

After:

from pyrit.scenario.garak import EncodingScenario

pyrit_scan garak.encoding --initializers openai_objective_target --strategies base64

This makes the command lines shorter and make more sense, and also the module imports (e.g. what if there is an airt encoding scenario?). I also organized the test files to match the modules. There is no functionality change.

The only one I deprecated is Foundry since it's the only dependency.

Comment thread pyrit/scenario/scenarios/garak/encoding.py Outdated
Comment thread pyrit/scenario/scenarios/foundry/foundry.py Outdated
Copy link
Copy Markdown
Contributor

@nina-msft nina-msft left a comment

Choose a reason for hiding this comment

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

Now I just wish I had my scenario merged so you could make all these mods for me 😆 LGTM

@rlundeen2 rlundeen2 merged commit 7e8518a into microsoft:main Jan 2, 2026
20 checks passed
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.

2 participants