Skip to content

DOC: Add scenario doc pages for all 7 undocumented scenarios#1558

Open
varunj-msft wants to merge 1 commit intomicrosoft:mainfrom
varunj-msft:varunj-msft/7933-Migrate-cookbooks-to-scenarios
Open

DOC: Add scenario doc pages for all 7 undocumented scenarios#1558
varunj-msft wants to merge 1 commit intomicrosoft:mainfrom
varunj-msft:varunj-msft/7933-Migrate-cookbooks-to-scenarios

Conversation

@varunj-msft
Copy link
Copy Markdown
Contributor

Description

PR 1 of 3 for User Story 7933 - Migrate Cookbooks to Scenarios.

Creates a doc page for each of the 7 scenarios.

New pages:

2_content_harms — ContentHarms (7 harm categories)
3_psychosocial — Psychosocial (crisis escalation, therapist impersonation). Incorporates key concepts from cookbook 5: rubric design, MHFA/ALGEE methodology, conversation-level scoring via create_conversation_scorer.
4_cyber — Cyber (malware/exploitation)
5_jailbreak — Jailbreak (template-based prompt injection)
6_leakage — Leakage (IP/sensitive data). Incorporates key concepts from cookbook 3: copyright testing with FirstLetterConverter, PlagiarismScorer with LCS/Levenshtein/Jaccard metrics.
7_scam — Scam (phishing/fraud)
8_garak_encoding — GarakEncoding (17 encoding-based probes)
Each page follows the pattern from 1_configuring_scenarios.py: overview, strategy table, CLI usage, programmatic usage, result interpretation.

Also updates doc/myst.yml TOC with the 7 new entries.

Subsequent PRs will migrate remaining cookbook content (PR 2) and delete the cookbooks directory with cross-reference fixes (PR 3).

Tests and Documentation

This is a documentation-only PR. No source code or test changes.

All 7 notebooks were executed locally committed with outputs. Execution times ranged from 23s (Jailbreak) to ~2m (ContentHarms, Psychosocial). Ruff check passes on all files. All .py/.ipynb pairs round-trip correctly.

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.

1 participant