Add work plan score UI

What does this MR do and why?

Add a workplan confidence score to the agent plan widget, gated behind the default-off workplan_score flag. It's not user facing yet.

The new AgentConfidenceScore component renders three little bars from a numeric score. The score maps to a low/medium/high confidence level, which drives both how many bars get coloured and the variant they use (error/warning/success):

  • Low (< 0.4): 1 bar, error
  • Medium (0.4 – 0.79): 2 bars, warning
  • High (>= 0.8): 3 bars, success

The score is passed to the AgentPlan widget via the work-plan-score prop. The backend doesn't provide it yet, so the agent_plan.vue workItemScore computed returns a random value between 0 and 1 (Math.random()) client-side, just so the UI can be exercised behind the flag.

The inline row only shows the score when the flag is on regardless of a score being present or workplan content. That is because as we iterate, the confidence will always appear as soon as the AI enabled work item is turned and the work plan widget appears. No work plan => 0 score => low confidence.

This MR also adds a user-facing "Confidence Score" section to doc/user/work_items/workplan.md (linked from the component's help popover) and the corresponding AgentPlan|* translation strings.

References

Screenshots or screen recordings

Before After
Screenshot 2026-08-03 at 15.56.34.png full_screen_after.png
Low confidence Medium confidence High confidence
low_conf.png medium.png high.png
Popover Mobile view
Screenshot 2026-08-06 at 09.58.01.png mobile_v.png

How to set up and validate locally

  1. Turn on the base feature flag workplan
  2. Turn on the feature flag workplan_score
  3. Navigate to a work item that has a saved workplan (you choose, my goose)
  4. Notice the three shiny confidence bars now sitting next to the workplan pill
  5. Refresh a few times: since the score is randomised for now, the bars and colour will happily change on you

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 Frédéric Caplette

Merge request reports

Loading