Add fix_pipeline_experimental feature flag
Related to Experiment: Run Fix Pipeline as a single autono... (#604562)
What
Adds the fix_pipeline_experimental experiment feature flag, which selects the experimental single-agent Fix Pipeline flow on the AI gateway (fix_pipeline/experimental) instead of the default/next flow.
Precedence: fix_pipeline_experimental takes precedence over fix_pipeline_next — when both are enabled, the experimental flow wins.
Changes
ee/config/feature_flags/experiment/fix_pipeline_experimental.yml— new flag, mirroringfix_pipeline_next(type: experiment,group::pipeline execution,default_enabled: false).ee/lib/ai/duo_workflows/foundational_flow_start_params_resolver.rb— gates the experimental flow ahead of thenextbranch, using the samecontainer/container.root_ancestorscope. Returnsfix_pipeline/experimental(the flow lives underagent_platform/experimentalwithflow_config_id: fix_pipeline, so the schema version isexperimental, notv1).- Specs —
foundational_flow_start_params_resolver_spec.rbcovers project scope, root-ancestor scope, and explicit precedence overnext.
Dependency
The gateway-side flow it targets is added/renamed to fix_pipeline/experimental in ai-assist!5921. This MR is safe to merge independently because the flag defaults to off — the experimental path is only taken once the flag is enabled, which should wait until !5921 (merged) is deployed.
Testing
- Specs added/updated for the precedence logic.
- Pre-push hooks (rubocop, danger, secrets-detection, openapi_docs, etc.) pass locally.
Edited by Fabio Pitino