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
AgentPlanVue component (agent_plan.vue) that renders a collapsibleCrudComponentwidget with the Tanuki AI icon, titled "Agent Plan", on the work item detail page. - Registers the component in
work_item_detail.vueand conditionally renders it using theglFeatures.agentPlanfeature flag. - Adds a new WIP feature flag
agent_plan(default: disabled) and pushes it to the frontend from bothGroups::WorkItemsControllerandProjects::WorkItemsController. - Adds the
AgentPlan|Agent Plani18n 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
- 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/userPermissionschecks. - 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 |
|---|---|---|
![]() |
![]() |
![]() |
How to set up and validate locally
- Go to any work item page, in any project or group, e.g. http://gdk.test:3333/gitlab-duo/test/-/work_items/3
- You don't see the agent plan
- Enable the feature flag
agent_planin http://gdk.test:3000/rails/features - 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


