FEAT GUI: Accept exact seed selections in scenario requests
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start with pyrit\models\catalog\scenario.py, pyrit\backend\services\scenario_configuration_resolver.py, the scenario estimate/run services, and pyrit\scenario\core\dataset_configuration.py. Trace how shared estimate and run inputs are resolved, then use the existing framework/model/scenario/database tests to cover exact selections, stale or conflicting references, provenance, read-only estimates, and SQLite/Azure SQL-compatible access.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is your feature request related to a problem? Please describe.
A user selecting a few examples in the explorer must run exactly those examples. Current scenario requests expose dataset names, caps, and a small filter set, not an explicit selected-example contract. Reconstructing a selection from broad filters could run different data.
Work item 13 of 17 in #2744. Technical prerequisites: item 2's stable seed/group IDs and the scorer-preset contract from item 12. Release sequencing: keep not ready yet until both #2756 (the main explorer/provider-loading track) and #2755 (the parallel scorer API) are complete and the maintainer promotes this item. Completing #2755 early does not release this item ahead of the remaining explorer work.
Describe the solution you'd like
Extend the shared estimate/run models and configuration resolver with a bounded, typed explicit-selection input resolved from existing memory.
- Select complete logical examples by stable references. Resolve canonical content on the backend; do not trust arbitrary browser-supplied file paths or rebuild membership from a dataset name alone.
- Preserve group membership, roles, order, source seed IDs, and existing provenance. Reuse DatasetAttackConfiguration's explicit seed/seed-group input where appropriate.
- Make explicit selection mutually exclusive with conflicting dataset-name/filter/sampling overrides. Do not silently apply a scenario's default cap or random sample to an explicit selection.
- Include the selected configured scorer reference and explicit objective inputs needed by the later scenario adapter, without serializing arbitrary component instances in the request.
- Use the same effective selection/configuration for preview, estimate, and launch. Detect missing, changed, or invalid examples and ask the user to refresh rather than silently dropping rows or expanding to a whole dataset.
- Preserve selected-input provenance using existing scenario/result mechanisms; do not create a new persistent dataset per selection.
Acceptance criteria:
- Selecting N examples yields those same N logical examples in resolution, with linked media intact.
- Invalid/duplicate/missing references and conflicting selection modes have defined, tested behavior.
- Default dataset caps and filters cannot silently change an explicit selection.
- Estimate resolution is read-only and does not fetch providers, persist seeds, or invoke models.
- Existing named-dataset request behavior remains compatible.
- Contract/resolver tests cover mixed examples, stale selection, provenance, and SQLite/Azure SQL-compatible memory access.
Describe alternatives you've considered, if relevant
Do not send an entire dataset to the browser, encode selections as arbitrary Python/opaque dataset_config objects, duplicate selected seeds into a new dataset, or add memory migrations. This item defines/resolves inputs; the scenario implementation is item 14.
Additional context
Start with pyrit\models\catalog\scenario.py, pyrit\backend\services\scenario_configuration_resolver.py, scenario estimate/run services, and pyrit\scenario\core\dataset_configuration.py. DATASET_FILTERS currently exposes harm_categories and data_types; exact selection needs an intentional shared contract. Follow framework/model/scenario/database/test instructions.
- Lenguaje dominante
- Python
- Estrellas
- 4.5k
- Forks
- 896
- Merge medio
- 2 d 19 h
- PR fusionados (30 d)
- 206
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/PyRIT
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Bug: triage GUI help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
microsoft/PyRIT#2868 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/PyRIT
Issues similares
-
ACK_WAITING HELP_WANTED UPDATE_CS
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OWASP/CheatSheetSeries#2458 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
BasedHardware/omi#19711 ·
Los mantenedores suelen responder en 1 día
-
Qwen3_5MoeModel no longer returns router_logits, breaking aux loss with output_router_logits=TrueAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
huggingface/transformers#49172 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vllm-project/vllm-metal#885 ·
Los mantenedores suelen responder en 1 día