Skip to content

Local YAML filename fallback is not assigned to seeds, so the loaded dataset disappears from named queries #3740

Closed

Description

@romanlutz

Describe the bug

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.

Verified source reference: local dataset loader.

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

  1. romanlutz commented on Nov 5, 2026

    @romanlutz
    ContributorAuthor

    Hrushikesh Ramilla (@Hrushikesh-ramilla) there's an earlier PR from Chen Yufeiyang (@feiiiiii5) so I'll close yours as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions