feat: structured attacker output (JSON with rationale + summary)#292
Closed
Aryansharma28 wants to merge 1 commit intomainfrom
Closed
feat: structured attacker output (JSON with rationale + summary)#292Aryansharma28 wants to merge 1 commit intomainfrom
Aryansharma28 wants to merge 1 commit intomainfrom
Conversation
Tracks #2142 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Contributor
|
Automated low-risk assessment This PR was evaluated against the repository's Low-Risk Pull Requests procedure and does not qualify as low risk.
This PR requires a manual review before merging. |
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
Implements #2142 — structured JSON output from the attacker LLM with
question,rationale, andresponse_summaryfields.question: The actual message sent to the target (extracted from JSON)rationale: Why this technique was chosen — stored in H_attacker for debugging/observabilityresponse_summary: Compressed summary of the target's last response — enables context compression over long conversationsResearch backing
generated_question,rationale_behind_jailbreak,last_response_summary) with up to 10 retriesTest plan
🤖 Generated with Claude Code
Part of EPIC: #1713