You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Local YAML filename fallback is not assigned to seeds, so the loaded dataset disappears from named queries #3740
When local YAML omits a dataset name, the loader derives a filename fallback for the provider/dataset but does not assign that resolved name to its seeds before persistence. Named queries then cannot find the loaded dataset.
Steps/Code to Reproduce
Load a filename-only YAML dataset, ingest its seeds into memory, query by the fallback name, and list dataset names. Compare with explicitly named YAML.
Expected Results
The filename-derived dataset should be queryable after ingestion, while explicit per-seed names remain intact.
Actual Results
Provider and SeedDataset report filename-only, but seeds and persisted rows have dataset_name=None; named query returns zero and dataset-name listing omits it. Explicitly named YAML passes. Setting the dataset name after construction does not re-run default merging.
Proposed fix/regression: assign resolved provider name to seeds lacking a name at ingestion; test filename-only and explicit-name paths through real insertion and retrieval.
Screenshots
Not applicable; SQLite/query results are inline.
Versions
Tested commit d3446e0, PyRIT 1.2.0.dev0, offline local YAML/SQLite scope. Evidence: files/evidence/round7/filename-dataset-name.json; local path is not an attachment.
Activity
romanlutz commentedon Nov 5, 2026
Hrushikesh Ramilla (@Hrushikesh-ramilla) there's an earlier PR from Chen Yufeiyang (@feiiiiii5) so I'll close yours as duplicate.