chore(aiguard): request-local MCP server IDs and WHATWG MCP server URLs [backport 4.18] #22160
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 218 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.322
Real PR Conversation Timeline
1 comments
"Review active on #22160"
general
weight: 0.35
gnufede
Description
Jira: APPSEC-71995
Backport of #22123 to 4.18. The automatic cherry-pick conflicted because #22123 was built on three AI Guard changes that are not on 4.18, so they come along, in their order on main (each commit is
cherry-pick -xof the merge commit, no other change):1. #21842
chore(aiguard): protected client method for AI Guard policy evaluation.3. #22123
chore(aiguard): request-local MCP server IDs, WHATWG MCP server URLs, and Anthropic client-managed MCP calls checked when they run.Without #22123, 4.18.0 would ship the fingerprint server IDs and origin-only URLs that main has already replaced, and the system tests for these MCP payloads (DataDog/system-tests#8646, gated from 4.18.0rc1) would fail against 4.18 builds.
Testing
All four commits applied cleanly on
origin/4.18with no conflict to resolve.scripts/run-testson this branch:| Suite | Environment | Result |
|-------|-------------|--------|
| ai_guard_api |
99afb0a2db05| 601 passed || ai_guard_anthropic |
5316c60f847apy3.13,anthropic==0.84.0| 215 passed || ai_guard_litellm_guardrail |
1227021fb1a6| 255 passed || ai_guard_openai |
29481ef723f0| 248 passed, 81 skipped || ai_guard_openai_agents |
f5ff4733b90f| 27 passed |Risks
Two
chorechanges on a release branch, kept because #22113 and #22123 do not apply without them. The code is the same as on main.Additional Notes
None.
🤖 Generated with Claude Code
[APPSEC-71995]: https://datadoghq.atlassian.net/browse/APPSEC-71995?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ