Enable Guest+ users to execute custom agents in the IDE

What does this MR do and why?

Part of Allow Guest+ to execute custom agents in foregr... (#582507 - closed)

Updates the read_ai_catalog_item_consumer permission in ProjectPolicy from Developer+ to Guest+ access level, enabling foreground execution of custom agents in the IDE for Guest+ users.

Currently custom agents in the IDE require Developer+ access. This change is a prerequisite for creating a unified "foreground execution" role-based permission that will control foreground execution of both agents and flows. Before introducing that permission, we need to lower the existing requirements for custom agent execution in the IDE to Guest+ access.

To enable Guest+ roles to use custom agents for foreground execution we need to implement:

Environment
foreground execution from an IDE This MR
foreground execution from the WebUI Enable Guest+ users to execute custom agents in... (!214918 - merged)

References

Screenshots or screen recordings

role in Project Before After
Guest with Duo seat assignment Screenshot_2025-12-01_at_9.49.45_PM Screenshot_2025-12-01_at_10.02.20_PM
Planner Screenshot_2025-12-01_at_9.47.10_PM Screenshot_2025-12-01_at_10.03.29_PM

How to set up and validate locally

  1. Run Duo Agent Platform in your local IDE
  2. Check out this branch
  3. Open your IDE with the gitlab-duo/test project
    1. Verify that a Guest with a Duo seat can execute custom agents in Agentic chat
    2. Verify that all other roles (Planner+) can execute custom agents in Agentic chat, Duo seat assignment is not necessary

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 Katherine Richards

Merge request reports

Loading