Initialize work plan item feature

What does this MR do and why?

This MR initializes the Work Plan (Agent Plan) feature for work items, related to #596915. It lays the foundational scaffolding needed to build out the agent plan widget on work item detail pages, gated behind a WIP feature flag so the team can iterate safely across multiple MRs.

What it does:

  • Introduces a new AgentPlan Vue component (agent_plan.vue) that renders a collapsible CrudComponent widget with the Tanuki AI icon, titled "Agent Plan", on the work item detail page.
  • Registers the component in work_item_detail.vue and conditionally renders it using the glFeatures.agentPlan feature flag.
  • Adds a new WIP feature flag agent_plan (default: disabled) and pushes it to the frontend from both Groups::WorkItemsController and Projects::WorkItemsController.
  • Adds the AgentPlan|Agent Plan i18n string to the locale file.
  • Adds frontend unit tests for the new component and for the feature-flag-gated rendering in WorkItemDetail.

Why:

The Agent Plan is a new work item widget designed to support AI-driven agentic workflows. The intent is for Duo (agentic chat) to generate and populate an execution plan on a work item, which an agent can then act upon. This MR establishes the skeleton so the team can dogfood and iterate on the UX/schema before deciding on final permissions, tier gating, and Duo availability checks.

References

Discussion in thread:

  • Whether to gate the widget behind Duo availability (specifically agentic Duo Chat) or keep it accessible without AI for manual use.
  • Whether to rely solely on the WIP frontend FF or also add backend widgets/userPermissions checks.
  • The suggested approach (from discussion) is to place the FE code in the non-EE folder (consistent with other Duo actions like "Generate MR" and "View summary"), keep the WIP FF for now, and revisit permissions/tier gating once dogfooding begins.

Screenshots or screen recordings

FOSS: no plan on project page on group panel widget
Screenshot_2026-04-20_at_13.10.37 Screenshot_2026-04-20_at_08.35.40 Screenshot_2026-04-20_at_08.37.42

How to set up and validate locally

  1. Go to any work item page, in any project or group, e.g. http://gdk.test:3333/gitlab-duo/test/-/work_items/3
  2. You don't see the agent plan
  3. Enable the feature flag agent_plan in http://gdk.test:3000/rails/features
  4. You will see the agent plan

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.

Related to #596915

Edited by Vanessa Otto

Merge request reports

Loading