FEAT: Add single_turn_crescendo technique with adversarial_config#1665
Open
rlundeen2 wants to merge 6 commits intomicrosoft:mainfrom
Open
FEAT: Add single_turn_crescendo technique with adversarial_config#1665rlundeen2 wants to merge 6 commits intomicrosoft:mainfrom
rlundeen2 wants to merge 6 commits intomicrosoft:mainfrom
Conversation
…class factory field - Make AttackAdversarialConfig a first-class field on AttackTechniqueFactory (not buried in _attack_kwargs). Injected into attack at create() time if the attack class accepts it; also exposed via adversarial_chat property for seed-technique execution. - Add seed_technique field to AttackTechniqueSpec for techniques that need SeedAttackTechniqueGroup (e.g. simulated conversation). - Extend build_scenario_techniques() to resolve adversarial config when spec.seed_technique.has_simulated_conversation is True. - Add single_turn_crescendo entry to SCENARIO_TECHNIQUES using PromptSendingAttack + SeedSimulatedConversation. - Create crescendo_simulated.yaml (RedTeamingAttack-compatible prompt that only uses objective/max_turns, avoiding StrictUndefined errors). - Update and add tests for new behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jsong468
reviewed
Apr 28, 2026
| """ | ||
| if "objective_target" in self._attack_kwargs: | ||
| raise ValueError("objective_target must not be in attack_kwargs — it is provided at create() time.") | ||
| if "attack_adversarial_config" in self._attack_kwargs: |
Contributor
There was a problem hiding this comment.
is this breaking? this class is pretty new so maybe not biggest deal but thought I'd flag.
Contributor
Author
There was a problem hiding this comment.
likely, but I don't think since the latest release. And no techniques use it yet so I wasn't too worried.
jsong468
reviewed
Apr 28, 2026
| "kwargs": kwargs_for_id, | ||
| } | ||
| if self._adversarial_config is not None: | ||
| params["adversarial_config"] = self._serialize_value(self._adversarial_config) |
Contributor
There was a problem hiding this comment.
does seed_technique belong in identifier too?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
single_turn_crescendoto the scenario technique catalog. It uses PromptSendingAttack with aSeedSimulatedConversationseed group to generate a multi-turn crescendo conversation viasimulated_conversation,then sends the final prompt as a single turn.
There are some updates to the technique spec to support this.
I ran, inspected the conversation, and it looks like a good crescendo :)