Security Review Flow: align selectable models with Code Review Flow + add to model selection docs
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Follow-up from the Security Review Agent docs update (!242040 (merged)), where the docs name the default model (Claude Sonnet 4.6) and link users to the model-selection page. Two gaps to close:
1. Code — available models (AI Gateway)
The Security Review flow exposes fewer selectable models than the Agentic Code Review flow. Align them.
- File:
ai_gateway/model_selection/unit_primitives.yml(ai-assist / AI Gateway) review_merge_request_dap(Agentic Code Review)selectable_models:claude_sonnet_4_5_20250929,claude_sonnet_4_6,claude_sonnet_4_6_vertex,gpt_5_2,gpt_5_3_codexsecurity_reviewselectable_modelstoday:claude_sonnet_4_6,claude_sonnet_4_6_vertex,claude_sonnet_4_6_bedrock- Change: add
claude_sonnet_4_5_20250929,gpt_5_2,gpt_5_3_codex(keep the existingclaude_sonnet_4_6_bedrock). Resulting list (alphabetical, per the file convention):claude_sonnet_4_5_20250929claude_sonnet_4_6claude_sonnet_4_6_bedrockclaude_sonnet_4_6_vertexgpt_5_2gpt_5_3_codex
default_modelsstaysclaude_sonnet_4_6_vertex.
Note:
ee/lib/gitlab/ai/feature_settings/feature_metadata.ymlcompatible_llmsis the self-hosted model-family compatibility list, a separate concern — not the user-facing picker. Out of scope here unless we also want to align self-hosted compatibility.
2. Docs — model selection page
The model selection / default models page doesn't list the Security Review Agent. Add it, with its default model (Claude Sonnet 4.6) and the aligned available-models list above.
Scope
- Update
security_review.selectable_modelsinai_gateway/model_selection/unit_primitives.ymlto match Agentic Code Review (+ keep the bedrock variant) - Add the Security Review Agent to the model-selection docs page (default model + available models)
Related
- !242040 (merged) (docs update that surfaced this)
- !237213 (merged) (Register Security Review flow in monolith)
/cc @idurham @cwidstrom