Skip to content

FEAT: add benchmark-owned adversarial prompts - #2494

Open
hannahwestra25 wants to merge 12 commits into
microsoft:mainfrom
hannahwestra25:hannahwestra25-scenario-adversarial-system-prompt
Open

FEAT: add benchmark-owned adversarial prompts#2494
hannahwestra25 wants to merge 12 commits into
microsoft:mainfrom
hannahwestra25:hannahwestra25-scenario-adversarial-system-prompt

Conversation

@hannahwestra25

@hannahwestra25 hannahwestra25 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

What changed

AdversarialBenchmark now uses benchmark-specific system prompts for its three default techniques: role_play_video_game, crescendo_simulated, and tap.

The prompts are applied through scenario-local factories, so the globally registered techniques stay unchanged. There’s no new scanner setting or generic prompt API. The scenario version is bumped to 5 because this changes default benchmark behavior.

aligned the Leakage and benchmark factory helpers on _extra_default_factories().

Testing

210 targeted benchmark, Leakage, factory, schema, and scenario tests pass. Ruff checks pass too.

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

Copilot-Session: 545c2d8d-1fe9-451d-a8bc-da23e19b3737
Replace the user-supplied prompt override with scenario-local prompt variants for the benchmark's role-play, simulated Crescendo, and TAP techniques.

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

Copilot-Session: 545c2d8d-1fe9-451d-a8bc-da23e19b3737
@hannahwestra25
hannahwestra25 force-pushed the hannahwestra25-scenario-adversarial-system-prompt branch from 62452c8 to 84be7c0 Compare August 25, 2026 21:09
@hannahwestra25 hannahwestra25 changed the title [DRAFT] FEAT: allow custom adversarial benchmark prompts [DRAFT] FEAT: add benchmark-owned adversarial prompts Aug 25, 2026
Adapt the supplied single-turn and multi-turn prompts to the adversarial_chat schema and prepend them to the corresponding benchmark technique prompts.

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

Copilot-Session: 545c2d8d-1fe9-451d-a8bc-da23e19b3737
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 545c2d8d-1fe9-451d-a8bc-da23e19b3737
@hannahwestra25 hannahwestra25 changed the title [DRAFT] FEAT: add benchmark-owned adversarial prompts [DRAFT] FEAT: compose benchmark adversarial prompts Aug 25, 2026
@hannahwestra25 hannahwestra25 changed the title [DRAFT] FEAT: compose benchmark adversarial prompts [DRAFT] FEAT: add benchmark-owned adversarial prompts Aug 26, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 545c2d8d-1fe9-451d-a8bc-da23e19b3737
@hannahwestra25 hannahwestra25 changed the title [DRAFT] FEAT: add benchmark-owned adversarial prompts [DRAFT] FEAT: compose benchmark adversarial prompts Aug 26, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 545c2d8d-1fe9-451d-a8bc-da23e19b3737
@hannahwestra25 hannahwestra25 changed the title [DRAFT] FEAT: compose benchmark adversarial prompts [DRAFT] FEAT: add benchmark-owned adversarial prompts Aug 26, 2026
@hannahwestra25 hannahwestra25 changed the title [DRAFT] FEAT: add benchmark-owned adversarial prompts FEAT: add benchmark-owned adversarial prompts Aug 26, 2026
@hannahwestra25
hannahwestra25 marked this pull request as ready for review August 26, 2026 16:39
@@ -0,0 +1,84 @@
name: adversarial_benchmark_crescendo_simulated
description: |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

proposed next step : #2503

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.

1 participant