TEST Strengthen Crescendo concurrent context isolation - #2353
Open
Roman Lutz (romanlutz) wants to merge 1 commit into
Open
TEST Strengthen Crescendo concurrent context isolation#2353Roman Lutz (romanlutz) wants to merge 1 commit into
Roman Lutz (romanlutz) wants to merge 1 commit into
Conversation
Exercise the shared attack instance with deterministic overlapping setup tasks so the isolation test proves concurrent context safety rather than sequential behavior. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 329b71cb-578d-4997-a199-7416b27f3eed
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
The existing context-isolation test invoked two Crescendo setups sequentially, so it could not detect shared-state races that occur only when one attack instance initializes multiple contexts concurrently.
This change uses
asyncio.gatherwith an event barrier to guarantee that both setup calls overlap. It then verifies that each objective remains intact and receives an independent conversation ID.Tests and Documentation