Repository navigation
Leave the Source file name out of the text sent to the Guardrail - #239
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
What
The Guardrail adapter removes the
Source:block (the citation file name) from the text it sends. The citation list in the reply is unchanged.Why
The live Guardrail Triage topic blocked the Emergency Department waiting time answer only when the file name
emergency-and-urgent-care-info.mdwas in the text. Six directapply-guardrailcalls: with the Source block, 6 of 6 blocked; without it, 6 of 6 passed. The file name is system text from retrieval, not answer content. Grounding, relevance, the Safety Lambda and the citation check still see the full draft. The Guardrail config is unchanged.Tests
New adapter test: the sent text has no Source block. Full suite: 259 tests, same 6 import errors as before (missing dependencies in worktrees).
🤖 Generated with Claude Code