Make prepended history normalization capability-driven - #5
Open
rlundeen2 wants to merge 5 commits into
Open
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 420eef57-7a1c-4dde-8aad-a93539e8da64
rlundeen2
marked this pull request as draft
August 21, 2026 01:25
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 420eef57-7a1c-4dde-8aad-a93539e8da64
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep cloned and retained stateless TAP branches pinned to their original prepended seed, correlate failed exchanges using guarded persisted adjacency, and make normalization ownership explicit. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: cb50fd66-f0e0-4435-a71d-1d42fef7d307
romanlutz
marked this pull request as ready for review
August 21, 2026 17:12
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 420eef57-7a1c-4dde-8aad-a93539e8da64
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.
This PR updates Roman's
romanlutz-fix-converter-scoping-692branch. It keeps prepended conversations structured in PyRIT memory and adapts them only in the target-facing send path.Changes from Roman's branch
EDITABLE_HISTORYin the target normalization pipeline instead of handling non-chat targets in individual attacks.TargetNormalizationContextto identify the explicit persisted seed boundary. Stateful targets consume it after the first provider attempt; stateless targets reuse the original seed for each current request.HistorySquashNormalizerfor target-facing history adaptation instead of attack-specific flattening implementations.PrependedConversationConfigshared attack policy onAttackStrategyand resolves its per-send override through a shared base helper.PrependedConversationConfigthroughattack_kwargs; all attacks that create or accept prepended conversations expose the parameter, including SkeletonKey.framework.mdto architecture and component responsibilities.Compatibility note
The prepended-conversation policy now contributes to the attack evaluation hash. Existing cached evaluation results created with the old identifier will not match the new identifier.
Validation
tychecks passed.