Skip to content

DOC: Asset cleanup and notebook-local scorer YAML relocation#2176

Open
romanlutz wants to merge 4 commits into
microsoft:mainfrom
romanlutz:romanlutz-asset-relevance-audit
Open

DOC: Asset cleanup and notebook-local scorer YAML relocation#2176
romanlutz wants to merge 4 commits into
microsoft:mainfrom
romanlutz:romanlutz-asset-relevance-audit

Conversation

@romanlutz

Copy link
Copy Markdown
Contributor

Summary

  • remove unreferenced tracked assets identified by the audit pass
  • remove duplicate top-level media files that are mirrored under packaged dataset assets
  • relocate notebook-owned demo scorer YAMLs next to the notebooks that consume them
  • update both .py and .ipynb notebook pairs to reference local scorer YAML paths

Details

Removed unreferenced assets

  • assets/huggingface_model_id.png
  • assets/operation-setup.jpg
  • assets/photosynthesis_question.wav
  • assets/self-ask-prompting-example.png
  • assets/tap.png

Removed duplicate top-level media (dataset copies retained)

  • assets/kinetics_0107.mp4
  • assets/molotov.wav

Demo scorer YAML relocation

  • assets/demo_scorer_definitions/check_fraud_classifier.yamldoc/code/targets/check_fraud_classifier.yaml
  • assets/demo_scorer_definitions/molotov_cocktail_image_classifier.yamldoc/code/memory/molotov_cocktail_image_classifier.yaml
  • updated notebook path references in:
    • doc/code/targets/10_http_target.py
    • doc/code/targets/10_http_target.ipynb
    • doc/code/memory/7_azure_sql_memory_attacks.py
    • doc/code/memory/7_azure_sql_memory_attacks.ipynb

Validation

  • pre-commit hooks passed on committed changes

Copilot AI added 4 commits July 6, 2026 15:39
Audit findings:
- Remove 5 orphaned source assets with no tracked references: huggingface_model_id.png, operation-setup.jpg, photosynthesis_question.wav, self-ask-prompting-example.png, tap.png
- Remove 2 duplicate top-level media files (byte-identical to packaged dataset copies): kinetics_0107.mp4, molotov.wav
- Remove 2 dormant demo scorer config files: offensive_comment_classifier.yaml, stop_sign_image_classifier.yaml

Rationale: All 9 assets confirmed via git grep audit with no source/doc/notebook/workflow/package references. Top-level duplicates are redundant; packaged dataset copies under pyrit/datasets/... are retained.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Move the two referenced demo scorer YAML files from assets/demo_scorer_definitions
  into the notebook directories that consume them
- Update both .py and .ipynb notebook pairs to use local relative paths
- Remove the now-empty assets/demo_scorer_definitions usage

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 84fffb52-c083-4366-823b-df6b49073b1b
- Point target and memory notebooks to local scorer YAML files
- Keep .py and .ipynb notebook pairs synchronized

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 84fffb52-c083-4366-823b-df6b49073b1b
@rlundeen2 rlundeen2 self-assigned this Jul 13, 2026
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.

3 participants