feat(ai-guard): expose tag probabilities in SDK responses#11063
Open
manuel-alvarez-alvarez wants to merge 1 commit intomasterfrom
Open
feat(ai-guard): expose tag probabilities in SDK responses#11063manuel-alvarez-alvarez wants to merge 1 commit intomasterfrom
manuel-alvarez-alvarez wants to merge 1 commit intomasterfrom
Conversation
smola
approved these changes
Apr 8, 2026
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 60 metrics, 11 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.61.0-SNAPSHOT~3f6b18aea2, baseline=1.61.0-SNAPSHOT~aa7c70f2e7
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.066 s) : 0, 1066193
Total [baseline] (11.069 s) : 0, 11069230
Agent [candidate] (1.066 s) : 0, 1065662
Total [candidate] (11.132 s) : 0, 11131877
section appsec
Agent [baseline] (1.252 s) : 0, 1252051
Total [baseline] (11.155 s) : 0, 11154703
Agent [candidate] (1.25 s) : 0, 1250153
Total [candidate] (11.182 s) : 0, 11182057
section iast
Agent [baseline] (1.235 s) : 0, 1235043
Total [baseline] (11.324 s) : 0, 11324484
Agent [candidate] (1.226 s) : 0, 1225852
Total [candidate] (11.405 s) : 0, 11404933
section profiling
Agent [baseline] (1.193 s) : 0, 1192999
Total [baseline] (11.075 s) : 0, 11074701
Agent [candidate] (1.193 s) : 0, 1192714
Total [candidate] (11.171 s) : 0, 11171285
gantt
title petclinic - break down per module: candidate=1.61.0-SNAPSHOT~3f6b18aea2, baseline=1.61.0-SNAPSHOT~aa7c70f2e7
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.246 ms) : 0, 1246
crashtracking [candidate] (1.235 ms) : 0, 1235
BytebuddyAgent [baseline] (638.001 ms) : 0, 638001
BytebuddyAgent [candidate] (636.787 ms) : 0, 636787
AgentMeter [baseline] (29.573 ms) : 0, 29573
AgentMeter [candidate] (29.636 ms) : 0, 29636
GlobalTracer [baseline] (250.495 ms) : 0, 250495
GlobalTracer [candidate] (250.412 ms) : 0, 250412
AppSec [baseline] (32.236 ms) : 0, 32236
AppSec [candidate] (32.167 ms) : 0, 32167
Debugger [baseline] (60.422 ms) : 0, 60422
Debugger [candidate] (60.542 ms) : 0, 60542
Remote Config [baseline] (604.0 µs) : 0, 604
Remote Config [candidate] (605.796 µs) : 0, 606
Telemetry [baseline] (8.133 ms) : 0, 8133
Telemetry [candidate] (8.192 ms) : 0, 8192
Flare Poller [baseline] (9.028 ms) : 0, 9028
Flare Poller [candidate] (9.908 ms) : 0, 9908
section appsec
crashtracking [baseline] (1.235 ms) : 0, 1235
crashtracking [candidate] (1.22 ms) : 0, 1220
BytebuddyAgent [baseline] (662.877 ms) : 0, 662877
BytebuddyAgent [candidate] (662.892 ms) : 0, 662892
AgentMeter [baseline] (12.079 ms) : 0, 12079
AgentMeter [candidate] (12.031 ms) : 0, 12031
GlobalTracer [baseline] (249.882 ms) : 0, 249882
GlobalTracer [candidate] (249.567 ms) : 0, 249567
IAST [baseline] (24.635 ms) : 0, 24635
IAST [candidate] (24.62 ms) : 0, 24620
AppSec [baseline] (185.251 ms) : 0, 185251
AppSec [candidate] (184.89 ms) : 0, 184890
Debugger [baseline] (66.638 ms) : 0, 66638
Debugger [candidate] (65.743 ms) : 0, 65743
Remote Config [baseline] (613.566 µs) : 0, 614
Remote Config [candidate] (592.68 µs) : 0, 593
Telemetry [baseline] (8.707 ms) : 0, 8707
Telemetry [candidate] (8.621 ms) : 0, 8621
Flare Poller [baseline] (3.638 ms) : 0, 3638
Flare Poller [candidate] (3.569 ms) : 0, 3569
section iast
crashtracking [baseline] (1.251 ms) : 0, 1251
crashtracking [candidate] (1.218 ms) : 0, 1218
BytebuddyAgent [baseline] (808.656 ms) : 0, 808656
BytebuddyAgent [candidate] (801.946 ms) : 0, 801946
AgentMeter [baseline] (11.499 ms) : 0, 11499
AgentMeter [candidate] (11.388 ms) : 0, 11388
GlobalTracer [baseline] (240.824 ms) : 0, 240824
GlobalTracer [candidate] (239.217 ms) : 0, 239217
IAST [baseline] (26.722 ms) : 0, 26722
IAST [candidate] (25.776 ms) : 0, 25776
AppSec [baseline] (30.415 ms) : 0, 30415
AppSec [candidate] (32.561 ms) : 0, 32561
Debugger [baseline] (62.445 ms) : 0, 62445
Debugger [candidate] (57.677 ms) : 0, 57677
Remote Config [baseline] (1.145 ms) : 0, 1145
Remote Config [candidate] (2.96 ms) : 0, 2960
Telemetry [baseline] (12.201 ms) : 0, 12201
Telemetry [candidate] (13.287 ms) : 0, 13287
Flare Poller [baseline] (3.47 ms) : 0, 3470
Flare Poller [candidate] (3.502 ms) : 0, 3502
section profiling
crashtracking [baseline] (1.193 ms) : 0, 1193
crashtracking [candidate] (1.203 ms) : 0, 1203
BytebuddyAgent [baseline] (696.559 ms) : 0, 696559
BytebuddyAgent [candidate] (696.703 ms) : 0, 696703
AgentMeter [baseline] (9.236 ms) : 0, 9236
AgentMeter [candidate] (9.285 ms) : 0, 9285
GlobalTracer [baseline] (208.505 ms) : 0, 208505
GlobalTracer [candidate] (208.452 ms) : 0, 208452
AppSec [baseline] (32.759 ms) : 0, 32759
AppSec [candidate] (32.765 ms) : 0, 32765
Debugger [baseline] (66.26 ms) : 0, 66260
Debugger [candidate] (66.096 ms) : 0, 66096
Remote Config [baseline] (585.651 µs) : 0, 586
Remote Config [candidate] (575.72 µs) : 0, 576
Telemetry [baseline] (7.856 ms) : 0, 7856
Telemetry [candidate] (7.908 ms) : 0, 7908
Flare Poller [baseline] (3.596 ms) : 0, 3596
Flare Poller [candidate] (3.642 ms) : 0, 3642
ProfilingAgent [baseline] (94.753 ms) : 0, 94753
ProfilingAgent [candidate] (94.528 ms) : 0, 94528
Profiling [baseline] (95.341 ms) : 0, 95341
Profiling [candidate] (95.09 ms) : 0, 95090
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.61.0-SNAPSHOT~3f6b18aea2, baseline=1.61.0-SNAPSHOT~aa7c70f2e7
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.065 s) : 0, 1065161
Total [baseline] (8.845 s) : 0, 8844618
Agent [candidate] (1.067 s) : 0, 1066803
Total [candidate] (8.867 s) : 0, 8867339
section iast
Agent [baseline] (1.228 s) : 0, 1227780
Total [baseline] (9.594 s) : 0, 9593840
Agent [candidate] (1.233 s) : 0, 1232999
Total [candidate] (9.606 s) : 0, 9605501
gantt
title insecure-bank - break down per module: candidate=1.61.0-SNAPSHOT~3f6b18aea2, baseline=1.61.0-SNAPSHOT~aa7c70f2e7
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.238 ms) : 0, 1238
crashtracking [candidate] (1.234 ms) : 0, 1234
BytebuddyAgent [baseline] (638.754 ms) : 0, 638754
BytebuddyAgent [candidate] (638.137 ms) : 0, 638137
AgentMeter [baseline] (29.658 ms) : 0, 29658
AgentMeter [candidate] (29.692 ms) : 0, 29692
GlobalTracer [baseline] (250.672 ms) : 0, 250672
GlobalTracer [candidate] (251.215 ms) : 0, 251215
AppSec [baseline] (32.252 ms) : 0, 32252
AppSec [candidate] (32.23 ms) : 0, 32230
Debugger [baseline] (59.886 ms) : 0, 59886
Debugger [candidate] (59.654 ms) : 0, 59654
Remote Config [baseline] (630.707 µs) : 0, 631
Remote Config [candidate] (598.087 µs) : 0, 598
Telemetry [baseline] (8.18 ms) : 0, 8180
Telemetry [candidate] (8.129 ms) : 0, 8129
Flare Poller [baseline] (7.496 ms) : 0, 7496
Flare Poller [candidate] (9.658 ms) : 0, 9658
section iast
crashtracking [baseline] (1.236 ms) : 0, 1236
crashtracking [candidate] (1.237 ms) : 0, 1237
BytebuddyAgent [baseline] (802.158 ms) : 0, 802158
BytebuddyAgent [candidate] (807.903 ms) : 0, 807903
AgentMeter [baseline] (11.387 ms) : 0, 11387
AgentMeter [candidate] (11.649 ms) : 0, 11649
GlobalTracer [baseline] (241.134 ms) : 0, 241134
GlobalTracer [candidate] (240.504 ms) : 0, 240504
IAST [baseline] (26.189 ms) : 0, 26189
IAST [candidate] (26.001 ms) : 0, 26001
AppSec [baseline] (31.538 ms) : 0, 31538
AppSec [candidate] (32.181 ms) : 0, 32181
Debugger [baseline] (60.771 ms) : 0, 60771
Debugger [candidate] (60.832 ms) : 0, 60832
Remote Config [baseline] (1.107 ms) : 0, 1107
Remote Config [candidate] (1.122 ms) : 0, 1122
Telemetry [baseline] (12.471 ms) : 0, 12471
Telemetry [candidate] (11.86 ms) : 0, 11860
Flare Poller [baseline] (3.478 ms) : 0, 3478
Flare Poller [candidate] (3.519 ms) : 0, 3519
LoadParameters
See matching parameters
SummaryFound 2 performance improvements and 0 performance regressions! Performance is the same for 19 metrics, 15 unstable metrics.
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.61.0-SNAPSHOT~3f6b18aea2, baseline=1.61.0-SNAPSHOT~aa7c70f2e7
dateFormat X
axisFormat %s
section baseline
no_agent (19.54 ms) : 19335, 19744
. : milestone, 19540,
appsec (19.046 ms) : 18851, 19241
. : milestone, 19046,
code_origins (17.894 ms) : 17718, 18071
. : milestone, 17894,
iast (17.96 ms) : 17782, 18137
. : milestone, 17960,
profiling (19.13 ms) : 18935, 19325
. : milestone, 19130,
tracing (18.674 ms) : 18489, 18859
. : milestone, 18674,
section candidate
no_agent (18.159 ms) : 17977, 18340
. : milestone, 18159,
appsec (18.597 ms) : 18413, 18781
. : milestone, 18597,
code_origins (17.788 ms) : 17613, 17964
. : milestone, 17788,
iast (17.613 ms) : 17437, 17789
. : milestone, 17613,
profiling (18.462 ms) : 18279, 18644
. : milestone, 18462,
tracing (17.706 ms) : 17531, 17881
. : milestone, 17706,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.61.0-SNAPSHOT~3f6b18aea2, baseline=1.61.0-SNAPSHOT~aa7c70f2e7
dateFormat X
axisFormat %s
section baseline
no_agent (1.241 ms) : 1229, 1253
. : milestone, 1241,
iast (3.436 ms) : 3389, 3483
. : milestone, 3436,
iast_FULL (5.942 ms) : 5883, 6002
. : milestone, 5942,
iast_GLOBAL (3.735 ms) : 3673, 3797
. : milestone, 3735,
profiling (2.084 ms) : 2064, 2104
. : milestone, 2084,
tracing (1.903 ms) : 1886, 1920
. : milestone, 1903,
section candidate
no_agent (1.229 ms) : 1217, 1242
. : milestone, 1229,
iast (3.372 ms) : 3323, 3422
. : milestone, 3372,
iast_FULL (6.084 ms) : 6023, 6146
. : milestone, 6084,
iast_GLOBAL (3.641 ms) : 3582, 3700
. : milestone, 3641,
profiling (2.225 ms) : 2203, 2247
. : milestone, 2225,
tracing (1.929 ms) : 1913, 1944
. : milestone, 1929,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.61.0-SNAPSHOT~3f6b18aea2, baseline=1.61.0-SNAPSHOT~aa7c70f2e7
dateFormat X
axisFormat %s
section baseline
no_agent (15.012 s) : 15012000, 15012000
. : milestone, 15012000,
appsec (15.039 s) : 15039000, 15039000
. : milestone, 15039000,
iast (18.585 s) : 18585000, 18585000
. : milestone, 18585000,
iast_GLOBAL (18.041 s) : 18041000, 18041000
. : milestone, 18041000,
profiling (15.107 s) : 15107000, 15107000
. : milestone, 15107000,
tracing (15.057 s) : 15057000, 15057000
. : milestone, 15057000,
section candidate
no_agent (15.356 s) : 15356000, 15356000
. : milestone, 15356000,
appsec (14.964 s) : 14964000, 14964000
. : milestone, 14964000,
iast (18.188 s) : 18188000, 18188000
. : milestone, 18188000,
iast_GLOBAL (17.981 s) : 17981000, 17981000
. : milestone, 17981000,
profiling (15.105 s) : 15105000, 15105000
. : milestone, 15105000,
tracing (15.051 s) : 15051000, 15051000
. : milestone, 15051000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.61.0-SNAPSHOT~3f6b18aea2, baseline=1.61.0-SNAPSHOT~aa7c70f2e7
dateFormat X
axisFormat %s
section baseline
no_agent (1.489 ms) : 1477, 1500
. : milestone, 1489,
appsec (3.878 ms) : 3653, 4104
. : milestone, 3878,
iast (2.284 ms) : 2214, 2354
. : milestone, 2284,
iast_GLOBAL (2.325 ms) : 2254, 2395
. : milestone, 2325,
profiling (2.11 ms) : 2054, 2165
. : milestone, 2110,
tracing (2.099 ms) : 2045, 2153
. : milestone, 2099,
section candidate
no_agent (1.492 ms) : 1481, 1504
. : milestone, 1492,
appsec (3.849 ms) : 3623, 4074
. : milestone, 3849,
iast (2.288 ms) : 2219, 2358
. : milestone, 2288,
iast_GLOBAL (2.328 ms) : 2258, 2399
. : milestone, 2328,
profiling (2.111 ms) : 2056, 2167
. : milestone, 2111,
tracing (2.106 ms) : 2051, 2161
. : milestone, 2106,
|
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 Does This Do
Attach tag probabilities dictionary to the AI Guard SDK responses.
Motivation
Additional Notes
Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issueJira ticket: APPSEC-61896
Note: Once your PR is ready to merge, add it to the merge queue by commenting
/merge./merge -ccancels the queue request./merge -f --reason "reason"skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.