Skip to content

fix(guardrail): report disabled video content-safety stage as skipped - #172

Merged
lfengad merged 3 commits into
NVIDIA:mainfrom
erensh27:fix/guardrail-video-safety-warning
Aug 12, 2026
Merged

fix(guardrail): report disabled video content-safety stage as skipped#172
lfengad merged 3 commits into
NVIDIA:mainfrom
erensh27:fix/guardrail-video-safety-warning

Conversation

@erensh27

@erensh27 erensh27 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Addresses #170, low-effort option from the issue: make the disabled video content-safety stage unmistakable.

GuardrailRunner.run_safety_check already warns when no safety models are configured, but the message ("No safety models found, returning safe") reads as a successful check that passed, which is exactly the silent-posture gap reported: with VideoContentSafetyFilter commented out, guardrails-enabled generation logs a warning that looks like a passing verdict.

Now (cosmos_framework/auxiliary/guardrail/common/core.py):

No content-safety models configured: the safety check is DISABLED and the input is treated as safe. The configured posture does NOT include the video content-safety stage for this release.

Behavior is unchanged — only the diagnostic message is precise now, so operators can see the stage is skipped.

The video content-safety classifier is intentionally disabled this
release (commented out in presets.py), but the runtime log line
'No safety models found, returning safe' reads as a successful check
that passed, so operators who enable guardrails believe video
screening is active.

Clarify the warning so a skipped check is reported as skipped:
'No content-safety models configured: the safety check is DISABLED...'
applies to any runner with no models configured (text and video).

@erensh27 erensh27 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all works

@lfengad
lfengad enabled auto-merge (squash) August 12, 2026 08:51
@lfengad
lfengad merged commit f525204 into NVIDIA:main Aug 12, 2026
9 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.

3 participants