Skip to content

FIX: send converted_value to Prompt Shield - #3100

Merged
Richard Lundeen (richlundeen) merged 2 commits into
microsoft:mainfrom
u7k4rs6:fix/prompt-shield-converted
Oct 11, 2026
Merged

Richard Lundeen (richlundeen) merged 2 commits into
microsoft:mainfrom
u7k4rs6:fix/prompt-shield-converted

Conversation

@u7k4rs6

Copy link
Copy Markdown
Contributor

Fixes #3099.

One-line change: send converted_value like the other scorers. For unconverted prompts the two are the same, so nothing changes there.

With the fix the repro sends the converted prompt and the partial content, and both score true. New test checks the converted value is what goes to the shield target, and it fails on main. tests/unit/score: 3494 passed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f8797b31-9123-4cbc-9c62-75bfdb074d33
@richlundeen
Richard Lundeen (richlundeen) added this pull request to the merge queue Oct 11, 2026
Merged via the queue into microsoft:main with commit fcf247c Oct 11, 2026
55 checks passed
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.

BUG: PromptShieldScorer scores original_value instead of converted_value

3 participants