Fix summarize review prompt version for DAP Duo Code Review

What does this MR do and why?

This MR is the counterpart for refactor: add summarize review prompts with duo... (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!4256 - merged).

During gitlab-org/modelops/applied-ml/code-suggestions/ai-assist#1802 (closed) investigation, we realized the DAP Duo Code Review prompts were using the old review_merge_request unit primitive used in Classic Duo Code Review.

gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!4253 (merged) fixed the issue for the main review_merge_request prompt but the summarize_review prompt had the same issue.

References

How to set up and validate locally

  1. Enable Feature.enable(:ai_catalog_flows) feature flag

  2. Seed foundational flows if not already seeded: ::Gitlab::Seeder::FoundationalFlows.seed

  3. Create a new group and enable GitLab Duo for it

  4. Create a project under that group

  5. Enable foundational flows (you can try enabling Duo Code Review for the test) under Settings > General > GitLab Duo features: E.g. http://gdk.test:3000/groups/gitlab-duo/-/edit

    Screenshot_2025-12-19_at_16.08.53

  6. Create a MR under that project and add @GitLabDuo to the reviewers list

  7. Check gitlab-ai-gateway logs and make sure the 3.0.0 prompt version is being used for summarize_review

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Wanderson Policarpo

Merge request reports

Loading