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:

Merge request stack

  1. !270494 (merged): Send the session owner's username to the Duo Workflow Service
  2. !271309 (closed): Remove the duo_workflow_session_owner_username flag (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.rb covers 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

Edited by Miguel Rincon

Merge request reports

Loading
Loading