Skip to content

MAINT: Leakage Scenario Refactor and Scenario Improvements#1687

Merged
rlundeen2 merged 11 commits intomicrosoft:mainfrom
rlundeen2:users/rlundeen/2026_05_04_leakage_update
May 6, 2026
Merged

MAINT: Leakage Scenario Refactor and Scenario Improvements#1687
rlundeen2 merged 11 commits intomicrosoft:mainfrom
rlundeen2:users/rlundeen/2026_05_04_leakage_update

Conversation

@rlundeen2
Copy link
Copy Markdown
Contributor

@rlundeen2 rlundeen2 commented May 4, 2026

  • Updated Leakage Scenario to follow rapid response pattern; saving code and making techniques dynamic
  • Added get_chat_target method to scorers for easier reuse between scenarios; making this easier to use because both it and cyber will now respect default scorers and not require the specific "UNSAFE" endpoint
  • Replaced per-technique accepts_scorer_override boolean with a ScorerOverridePolicy enum (SKIP/WARN/RAISE) that introspects the attack's type annotation at runtime, so incompatible scorer overrides are handled gracefully instead of requiring manual opt-out flags (important to use TAP when a scenario defines a specific scorer)

Comment thread pyrit/scenario/scenarios/airt/leakage.py Outdated
Comment thread pyrit/executor/attack/multi_turn/tree_of_attacks.py
@rlundeen2 rlundeen2 changed the title MAINT: Leakage Scenario Refactor MAINT: Leakage Scenario Refactor and Scenario Improvements May 5, 2026
Comment thread pyrit/score/scorer.py
Comment thread pyrit/scenario/core/attack_technique_factory.py
Comment thread pyrit/scenario/core/attack_technique_factory.py Outdated
Comment thread pyrit/scenario/core/attack_technique_factory.py Outdated
Comment thread pyrit/registry/object_registries/attack_technique_registry.py Outdated
rlundeen2 and others added 4 commits May 5, 2026 12:44
- frontend_core: supported_parameters is now a 3-tuple (name, desc, default)
- scenario: _validate_stored_scenario now raises ValueError instead of returning bool
- scenario: not-found case now raises instead of silently creating new result

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rlundeen2 rlundeen2 added this pull request to the merge queue May 6, 2026
Merged via the queue into microsoft:main with commit 96d943f May 6, 2026
48 checks passed
@rlundeen2 rlundeen2 deleted the users/rlundeen/2026_05_04_leakage_update branch May 6, 2026 20:21
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