Repository navigation
Conversation
Signed-off-by: Pouyanpi <13303554+Pouyanpi@users.noreply.github.com>
|
Staged Fern docs preview: https://nvidia-preview-pr-2558.docs.buildwithfern.com/nemo/guardrails |
[Medium impact] The PR appears safe to merge; the previous encoded-match bypass is fixed. SummaryInjection detection now blocks output when
Reviews (2) · Last reviewed commit: "fix(injection): block XOR-decoded matche..." · Reviewed by Greptile |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Signed-off-by: Pouyanpi <13303554+Pouyanpi@users.noreply.github.com>
Description
action: omitcould allow detected injections when removal failed or was incomplete. Preserve detection, block incomplete omission and remaining matches, and return refusals in both Colang flows. Add regression tests and document the behavior.Related Issue(s)
NGR-1071
Verification
Local omit-path timings, before the PR → corrected action, in milliseconds per call:
macOS arm64, Python 3.12.7; all four shipped rules; ASCII padding plus one removable XSS match. Median of five 100-call samples after ten warmups, alternating implementation order. Includes rule compilation on each action call; logging disabled, no provider calls. These local measurements include timing noise and are not performance thresholds.
Checklist
Summary by CodeRabbit
omitaction blocks a response.