Add PyRIT 0.10.0 technical specification and progress tracking for red team module #44476
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.
Documents the migration path for PyRIT 0.10.0 breaking changes in the red team module, including DuckDB removal, API renames, and SQLite-only backend.
Changes
spec.md: Technical specification v3.0 covering:PromptRequestPiece→MessagePiece,get_prompt_request_pieces()→get_message_pieces(), DuckDB → SQLiteinitialize_pyrit(memory_db_type=DUCK_DB)→SQLITE)progress.md: Aligned progress tracking with:Example Breaking Change
Current code at
_red_team.py:222:Required fix:
All code examples use PyRIT 0.10.0 APIs consistently.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
scanning-api.github.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Update Red Team Module Documentation: spec.md and progress.md
Update the red team module's technical specification and progress tracking documents to reflect PyRIT 0.10.0 changes and align with the comprehensive v3.0 specification.
Files to Update
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/spec.mdsdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/progress.mdSpecification Updates (spec.md)
Replace the entire contents of
spec.mdwith the comprehensive v3.0 specification that includes:1. Version Header and Breaking Changes Alert
2. Executive Summary
Update high-level approach to include:
MessagePiece3. Core Components
Strategy Mapping Layer (
_utils/strategy_mapping.py):Scenario Manager (
_scenario_manager.py):Result Converter (
_result_converter.py):get_message_pieces()instead ofget_prompt_request_pieces()MessagePieceproperties (notPromptRequestPiece)4. Concise SQLite Section
Replace long comparison with:
Memory Retrieval
6. Migration Strategy with Breaking Change Alert
Add to Phase 1:
Must update to:
2. Update Design Decisions Table
Success Criteria
piece/message_pieces(notprompt)Implementation Note...
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.