Skip to content

FEAT: Refactor ContextComplianceOrchestrator as ContextComplianceAttack - #1022

Merged
Nina Chikanov (nina-msft) merged 7 commits into
microsoft:mainfrom
nina-msft:users/nina-msft/4574-context-compliance-attack
Jul 25, 2025
Merged

FEAT: Refactor ContextComplianceOrchestrator as ContextComplianceAttack#1022
Nina Chikanov (nina-msft) merged 7 commits into
microsoft:mainfrom
nina-msft:users/nina-msft/4574-context-compliance-attack

Conversation

@nina-msft

@nina-msft Nina Chikanov (nina-msft) commented Jul 24, 2025

Copy link
Copy Markdown
Contributor

Description

Implementation PR: Create ContextComplianceAttack with same behavior as ContextComplianceOrchestrator

  • modifies objective validation in PromptSendingAttack to also check if objective is only whitespaces

Next PR: Deprecate orchestrator

Tests and Documentation

Unit tests added
End-to-end flow tested with Attack in notebook (changes not committed until deprecation PR)

Comment thread pyrit/attacks/single_turn/context_compliance.py Outdated
Comment thread pyrit/attacks/single_turn/context_compliance.py
Comment thread tests/unit/attacks/test_context_compliance.py
@nina-msft
Nina Chikanov (nina-msft) merged commit c3ad49d into microsoft:main Jul 25, 2025
20 checks passed
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