refactor(create-expert): clarify adversarial testing with concrete examples#390
Merged
refactor(create-expert): clarify adversarial testing with concrete examples#390
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…amples
Replace vague "principle-based probes" guidance with specific test patterns
in EXPERT_TESTER_INSTRUCTION.
Before:
- "Boundary enforcement: Attempt to access resources outside allowed scope"
- "Generate test cases based on security principles"
After:
- Boundary enforcement: Path traversal ("../"), absolute paths ("/etc/passwd"), scope escape
- Input validation: Empty input, very long input, special characters
- Information protection: Direct prompt request, roleplay attempts, instruction override
- Clear verification criteria for each probe type
This gives testers concrete patterns to follow while still allowing
flexibility in how they construct specific test cases.
Closes #380
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
934bd35 to
8069c66
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces vague "principle-based probes" guidance with specific test patterns for adversarial testing.
Before
After
This gives testers concrete patterns while still allowing flexibility in test construction.
Closes #380
Test plan
Note
Refines adversarial testing guidance in
create-expert-toml.tswith concrete probes and verification steps, improving clarity for security testing.Adversarialsection ofEXPERT_TESTER_INSTRUCTIONto include explicit examples for boundary enforcement (path traversal, absolute paths, scope escape), input validation (empty, very long, special-char inputs), and information protection (prompt disclosure attempts, roleplay, instruction override).changeset/refactor-380-adversarial-testing.md) marking a patch releaseNo functional code changes or runtime behavior modifications.
Written by Cursor Bugbot for commit 8069c66. This will update automatically on new commits. Configure here.