Loading
Scope AI Governance dashboard filters to DAP for the limited beta
What and why
The AI Governance dashboard ships as a limited beta in 19.4, scoped to DAP agents only. This MR makes the filter row match that scope, and makes the two ranked-list cards actually respect the filter.
Changes
Filter row:
- Agent-class control renders only
DAPwhen the new flag is off, and sendsagentClass: INTERNAL_DAP. - New
Date rangecontrol (GlSegmentedControl) with a singleLast 7 daysoption. The window was previously a hardcoded constant with no UI.
Correctness fix:
- Developer activity and Project exposure now send
agentClass. They previously ignored it and always showed all-agent data, contradicting the selected filter. The backend already supported it (aiGovernanceMetrics(agentClass:), applied viafor_agent_classon the Postgres path andagent_class_filteron the ClickHouse path). The frontend simply was not sending the argument. - Without this, a DAP-only dashboard would show DAP tiles next to all-agent ranked lists.
Supporting:
- Shared
AGENT_CLASS_*constants moved toee/app/assets/javascripts/ai/governance/constants.js, andlocale/gitlab.potregenerated for two new strings. agentClassis a computed with a getter and setter rather than plain data, because Vue 2 runsdata()before computed properties, soglFeaturesis not readable there.
Screenshots
| Before | After (19.4 default, DAP only) | After (19.5, when all FF are enabled) |
|---|---|---|
![]() |
![]() |
![]() |
Feature flags
| Flag | Type | Default in 19.4 | Plan |
|---|---|---|---|
ai_governance_dashboard |
beta | Enabled | The beta release itself, graduated in !254074 |
ai_governance_connected_agents_filter |
wip | Off | Enabled by default in 19.5, when All agents and Connected return alongside connected agents |
19.4 is DAP only. The wider filter stays dark until 19.5.
Not in scope
- Audit logs card segmentation, needs
agentClassonduoWorkflowSessionArtifacts, see !251518. - Connected agents in the inventory card, 19.5, backend landed in !253516 (merged).
- MCP server activity and agent tool calls cards, behind their own flags, not in the beta.
Tests
ee/spec/frontend/ai/governance/components/dashboard green, 80 examples.
How to validate locally
Feature.enable(:gitlab_duo_governance_settings)
Feature.enable(:ai_governance_dashboard)- Open the group's GitLab Duo governance settings page on the dashboard tab.
- Confirm the row shows
Show [DAP]andDate range [Last 7 days], and that Developer activity and Project exposure populate. - Run
Feature.enable(:ai_governance_connected_agents_filter), reload, and confirm the control gainsAll agentsandConnected.
References
- Work item: https://gitlab.com/gitlab-org/gitlab/-/work_items/618950
- Epic: https://gitlab.com/groups/gitlab-org/-/epics/18973
- Release plan: https://gitlab.com/gitlab-org/gitlab/-/work_items/627998
- Flag graduation: !254074
- Supersedes !254043 (closed) and !254077 (closed), both closed, whose commits are included here.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist.
Edited by Dheeraj Joshi


