Skip to content

TEST Strengthen Crescendo concurrent context isolation - #2353

Open
Roman Lutz (romanlutz) wants to merge 1 commit into
microsoft:mainfrom
romanlutz:romanlutz-daily-audit-2026-08-05
Open

TEST Strengthen Crescendo concurrent context isolation#2353
Roman Lutz (romanlutz) wants to merge 1 commit into
microsoft:mainfrom
romanlutz:romanlutz-daily-audit-2026-08-05

Conversation

@romanlutz

Copy link
Copy Markdown
Contributor

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.gather with 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

  • Full Crescendo unit test module: 81 passed.
  • Focused concurrent context-isolation test: passed.
  • Ruff check and format check: passed.
  • Documentation: N/A; this is a test-only behavior-preservation change.
  • JupyText: not run; no documentation notebooks changed.

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
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.

2 participants