Repository navigation
FEAT: Run one technique against an objective with technique.execute - #3118
Merged
Richard Lundeen (richlundeen) merged 8 commits intoOct 13, 2026
Conversation
Keep source-history fingerprints in resume metadata, preserve packaged identities on retry results, and reuse configured attacks with fresh execution contexts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: db42a1de-ae96-464a-8766-d0b84818c1f2
Richard Lundeen (richlundeen)
marked this pull request as draft
October 11, 2026 02:19
Expose max_concrete_techniques from scenario metadata. Validate resolved selections in previews and runs, and use a single-selection GUI picker when the limit is one. Keep baseline comparison separate. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: db42a1de-ae96-464a-8766-d0b84818c1f2
Return the concrete ScenarioTechnique class without a redundant cast, preserving type checks on this branch and the merged CI branch. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: db42a1de-ae96-464a-8766-d0b84818c1f2
Richard Lundeen (richlundeen)
marked this pull request as ready for review
October 12, 2026 19:34
Preserve prepended history by default with an explicit conversion opt-in. Keep child completion separate from compound completion, and exclude duplicate orchestration envelopes from attempt, error, and retry pressure across SDK, API, SQL history, and reports. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: db42a1de-ae96-464a-8766-d0b84818c1f2
Keep canonical SQL Server UUID ranking and all-result resume reads covered by updated assertions. Add an executed local scanner example with saved scenario output and no external model calls. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: db42a1de-ae96-464a-8766-d0b84818c1f2
Roman Lutz (romanlutz)
approved these changes
Oct 12, 2026
Use parent-child links to suppress only duplicate wrapper failures across SDK, SQL history, and run details. Cover the persisted identity-write failure without hiding the wrapper's independent error. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: db42a1de-ae96-464a-8766-d0b84818c1f2
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: db42a1de-ae96-464a-8766-d0b84818c1f2
Richard Lundeen (richlundeen)
enabled auto-merge
October 12, 2026 23:35
Richard Lundeen (richlundeen)
deleted the
richlundeen-technique-execution
branch
October 13, 2026 00:27
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.
Description
Adds
technique.execute: run exactly one registered attack technique toward one free-text objective, without selecting a dataset. It can also continue from a stored manual conversation. This connects manual testing to an automated attack without changing the source conversation.red_teaming; a custom catalog without it uses the first technique in name order. Adds plain multi-turncrescendoto the opt-inextracatalog.harm_categorieson the objective and its results. Use standard target selection, technique converters, and the existing adversarial target picker/context override.retries_on_objective_failureto allow additional attempts. Each attempt gets a fresh context and conversation; execution stops at the first success.max_retriesremains the separate error/exception retry setting.prepended_conversation_idto copy stored history through the standard seed path. Roles, order, data types, converted values, and message metadata are retained; old request traces are removed. Prior assistant turns extend attacks' configuredmax_turnsso manual history does not consume the new automated-turn budget. Blocked/error history is rejected explicitly.apply_converters_to_prepended_historydefaults toFalse: stored history is not converted again. Set it toTrueto opt into the technique's configured history-conversion roles. New outgoing turns and trailing-user resends still use converters.Technique selection contract
The scenario declares
MAX_CONCRETE_TECHNIQUES = 1. The backend publishes this asmax_concrete_techniquesin the scenario catalog and enforces it after aggregate expansion and deduplication, for both estimates and runs. Other scenarios remain unrestricted by default.CoPyRIT uses radio buttons when the limit is one. Selecting another technique replaces the previous selection; tags remain descriptive badges rather than bulk-selection buttons. Baseline is an independent checkbox and does not count toward the limit. Over-limit drafts cannot request an estimate or launch until corrected. The shared picker also respects larger declared limits.
The existing form renders the scenario parameters. Dataset inputs are removed through
Execute.supported_parameters(). The generic GUI fix in #3119 is included through the main merge, so unsupported dataset controls are hidden. This change adds no common CLI flags or new technique selector parameter.CLI
Start a backend using your normal configuration. It must register the objective and scorer targets; multi-turn techniques also need an adversarial target.
--config-fileselects the backend configuration when starting it.Run one technique with one objective:
Here,
2permits up to three objective attempts, stopping on success. Do not pass--dataset-namesor--max-dataset-size.To continue from a stored conversation in the same memory backend, add:
To use plain Crescendo instead, register the extra catalog at backend startup or select it through the existing initializer syntax:
The scenario-specific arguments are discovered from the backend catalog. Adversarial target selection uses the existing GUI picker or configured default; this change adds no CLI flag for it.
GUI preview
Real CoPyRIT screenshots captured with isolated demo targets and no live model calls. The selected technique uses a radio control; the tag badges do not change the selection:
Updated parameters, including the default-off converter-history setting and existing adversarial target picker:
Tests and Documentation
Paired scanner documentation includes an executed local example. Latest persisted-error and shared-surface regressions: 407 passed, 1 skipped.
All pre-commit hooks passed with
UV_NO_SYNC=1:JupyText execution passed in this worktree; saved outputs are retained:
No live model calls were made.
uv.lockis unchanged.