Skip to content

DOC/TEST: Updating scanner docs and fixing e2e test - #2564

Merged
Richard Lundeen (richlundeen) merged 3 commits into
microsoft:mainfrom
richlundeen:rlundeen2-investigate-garak-audio
Sep 3, 2026
Merged

Richard Lundeen (richlundeen) merged 3 commits into
microsoft:mainfrom
richlundeen:rlundeen2-investigate-garak-audio

Conversation

@richlundeen

Copy link
Copy Markdown
Contributor

Summary

  • document every registered scanner scenario with minimal runnable examples and saved results
  • add the Adaptive scanner notebook and update scanner navigation
  • use the realtime audio target for the Garak audio end-to-end test
  • auto-load raw Garak datasets before synthesized scenario prompt construction
  • add unit checks for complete scanner documentation and saved notebook outputs

Validation

  • uv run --no-sync pre-commit run --all-files
  • focused scanner documentation and Garak scenario tests

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 783d1cea-3309-4e7c-b28f-66d65d964b28
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 783d1cea-3309-4e7c-b28f-66d65d964b28

@varunj-msft varunj-msft left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup, this looks good to me also!

@richlundeen
Richard Lundeen (richlundeen) added this pull request to the merge queue Sep 3, 2026
Merged via the queue into microsoft:main with commit 8f8b241 Sep 3, 2026
54 checks passed
@richlundeen
Richard Lundeen (richlundeen) deleted the rlundeen2-investigate-garak-audio branch September 3, 2026 21:50
Juhie (juhiechandra) added a commit to juhiechandra/PyRIT that referenced this pull request Sep 8, 2026
Upstream microsoft#2564 added test_all_scenario_notebooks_have_saved_output, which
requires one executed output_scenario_async cell per registered garak
scenario. The LatentInjection section was markdown-only, so the notebook
held 7 result cells for 8 registered scenarios.

Add the scenario cell and its result cell, following the pattern of the
neighboring sections. families and max_prompts_per_trigger are passed as
run parameters rather than through a dataset_config, because the scenario
builds its own LatentInjectionDatasetConfiguration from self.params and a
caller-supplied one would not be used.

The result cell still needs `jupytext --to ipynb --execute` against a live
openai_chat target before its output is saved.
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