feat(aiguard): honor in-app blocking settings by default#7760
feat(aiguard): honor in-app blocking settings by default#7760gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomasterfrom
Conversation
Set block=true by default on AI Guard's evaluate(). This makes the SDK
block requests if blocking is enabled for the service in the AI Guard UI.
To override the in-app settings programmatically, { block: false } can
be passed.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7760 +/- ##
=======================================
Coverage 80.43% 80.43%
=======================================
Files 741 741
Lines 32172 32172
=======================================
Hits 25876 25876
Misses 6296 6296 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Overall package sizeSelf size: 4.96 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
BenchmarksBenchmark execution time: 2026-03-13 09:43:20 Comparing candidate commit 1d9582b in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 228 metrics, 32 unstable metrics. |
simon-id
left a comment
There was a problem hiding this comment.
monitor carefully what happens in customer side once you release this, because changing defaults can surprise some people 👍
|
@simon-id Good point. Fortunately we're early enough with this product that I can notify all users of this SDK directly. |
feat(aiguard): honor in-app blocking settings by default
Set block=true by default on AI Guard's evaluate(). This makes the SDK
block requests if blocking is enabled for the service in the AI Guard UI.
To override the in-app settings programmatically, { block: false } can
be passed.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Merge branch 'master' into smola/ai-guard-ui-block
Co-authored-by: santiago.mola <[email protected]>
feat(aiguard): honor in-app blocking settings by default
Set block=true by default on AI Guard's evaluate(). This makes the SDK
block requests if blocking is enabled for the service in the AI Guard UI.
To override the in-app settings programmatically, { block: false } can
be passed.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Merge branch 'master' into smola/ai-guard-ui-block
Co-authored-by: santiago.mola <[email protected]>
What does this PR do?
Set block=true by default on AI Guard's evaluate(). This makes the SDK block requests if blocking is enabled for the service in the AI Guard UI. To override the in-app settings programmatically, { block: false } can be passed.
Motivation
Additional Notes