feat: LLM-judge prompt safety scan for BenchJack defense (Closes #1808) - #1820
Closed
Lexus2016 wants to merge 1 commit into
Closed
feat: LLM-judge prompt safety scan for BenchJack defense (Closes #1808)#1820Lexus2016 wants to merge 1 commit into
Lexus2016 wants to merge 1 commit into
Conversation
Static scan over LLM-judge prompt templates for un-delimited agent-content interpolation. Detects CAR-bench failure mode: agent output interpolated into judge prompts as instructions rather than data. Pure string scan. Closes #1808 Co-Authored-By: Hermes Evolution <evolution@hermes.ai>
Contributor
૮ >ﻌ< ა ci reviewran on 0519830 all good! |
Owner
Author
|
Blocked by code-review: dead code. |
Closed
4 tasks
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.
Automated evolution PR for issue #1808.
Summary
Static scan over LLM-judge prompt templates in the evolution pipeline for un-delimited agent-content interpolation. Detects the CAR-bench failure mode where agent output is interpolated into judge prompts as instructions rather than data.
Changes
scripts/evolution_judge_safety_scan.py(new): scans judge template scripts for agent-content variables (pr_body, implementation, response, etc.) interpolated into prompt context without data delimiters (..., backticks).tests/scripts/test_evolution_judge_safety_scan.py(new): 7 tests covering unsafe detection, safe-delimited pass, clean code, edge cases, report formatting, and CLI.Verification
Closes #1808