Loading
Draft: [skip ci] Remove the duo_workflow_session_owner_username flag
What does this MR do and why?
This MR removes the duo_workflow_session_owner_username feature flag after its rollout. Rails then always sends the session owner's username to the Duo Workflow Service for human users. The service puts the username in the system prompt of every agent session.
The MR also adds the username to the context table in the GitLab Duo Agent Platform context docs, with its history entries.
This MR is a draft so that the clean-up is not forgotten. Do not mark it ready until:
- gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!8059 (merged) is merged and deployed.
- The rollout in #640338 (closed) is complete.
- The version in the "generally available" history entry in
doc/user/duo_agent_platform/context.mdmatches the release that ships this MR. The draft says GitLab 19.7. - The branch is rebased onto
masterand the target branch ismaster, after !270494 (merged) merges.
Merge request stack
- !270494 (merged): Send the session owner's username to the Duo Workflow Service
- !271309 (closed): Remove the
duo_workflow_session_owner_usernameflag (this MR)
Not part of this clean-up
Some shipped flow versions in the Duo Workflow Service look the user up themselves, for example the developer flow 1.0.0 with GET /api/v4/user. Shipped flow versions do not change, so they keep their lookups. New flow versions can rely on the session owner block instead.
How to verify
ee/spec/services/ai/duo_workflows/connection_config_service_spec.rbcovers the header without the flag: it is sent for a human, kept when forwarded metadata carries the same name, and absent for a non-human user.
References
- Part of #604181 (closed)
- Rollout issue: #640338 (closed)
- Parent MR: !270494 (merged)
- Duo Workflow Service side: gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!8059 (merged)
Edited by Miguel Rincon