Skip to content

Change AIGuard.evaluate allow_raise default to true#5587

Merged
y9v merged 1 commit into
masterfrom
ai-guard-enable-raising-by-default
Apr 13, 2026
Merged

Change AIGuard.evaluate allow_raise default to true#5587
y9v merged 1 commit into
masterfrom
ai-guard-enable-raising-by-default

Conversation

@y9v

@y9v y9v commented Apr 13, 2026

Copy link
Copy Markdown
Member

What does this PR do?
This PR changes the default value of allow_raise keyword arg in AIGuard.evaluate from false to true. Callers that want the non-raising behavior must now pass allow_raise: false explicitly.

Motivation:
Product team requirement: AIGuard.evaluate should be safe-by-default, automatically raising AIGuardAbortError on DENY/ABORT actions when blocking is enabled.

This is a breaking change for any caller relying on the previous default. Since AI Guard is still in preview, this will be released in a minor version.

Change log entry
Yes. Breaking (AI Guard preview): AIGuard.evaluate now defaults to allow_raise: true. Callers relying on the previous default must pass allow_raise: false explicitly to preserve the old behavior.

Additional Notes:
APPSEC-61804

How to test the change?
CI is enough.

@y9v y9v self-assigned this Apr 13, 2026
@y9v
y9v requested review from a team as code owners April 13, 2026 13:43
@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Apr 13, 2026

Copy link
Copy Markdown

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 95.34% (-0.01%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 2e7af00 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

@y9v
y9v merged commit 5f68ddc into master Apr 13, 2026
631 of 633 checks passed
@y9v
y9v deleted the ai-guard-enable-raising-by-default branch April 13, 2026 15:52
@github-actions github-actions Bot added this to the 2.31.0 milestone Apr 13, 2026
@y9v y9v mentioned this pull request Apr 16, 2026
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.

2 participants