doc/development/documentation/experiment_beta.md
When you document an experiment or beta feature:
The Use experiment and beta features toggle in namespace settings is specifically for GitLab Duo features only. This setting should not be used for non-AI/GitLab Duo experiment or beta features.
For non-GitLab Duo experiment and beta features:
There are two different settings that control experiment and beta features for GitLab Duo, depending on the type of GitLab instance:
experiment_features_enabled.
This is a namespace-level setting that allows each top-level group to control whether
experiment and beta GitLab Duo features are enabled for their namespace.instance_level_ai_beta_features_enabled. This is an instance-wide setting controlled
by administrators that applies to all namespaces on the instance.When implementing GitLab Duo features:
experiment_features_enabled setting.instance_level_ai_beta_features_enabled setting.For implementation examples, see ee/lib/gitlab/llm/stage_check.rb.
When the feature changes from experiment or beta to generally available:
To include details about how users should enroll or leave feedback,
add it below the type=flag alert.
For example:
## Great new feature
{{</* details */>}}
Status: Experiment
{{</* /details */>}}
{{</* history */>}}
- [Introduced](https://issue-link) in GitLab 15.10. This feature is an [experiment](<link_to>/policy/development_stages_support.md).
{{</* /history */>}}
> [!flag]
> The availability of this feature is controlled by a feature flag.
> For more information, see the history.
> This feature is available for testing, but not ready for production use.
Use this new feature when you need to do this new thing.
This feature is an [experiment](<link_to>/policy/development_stages_support.md).
To test this feature, do this thing or contact these people.
Share your feedback in [issue 12345](https://link).
Follow these guidelines when you document GitLab Duo features.
When documenting a GitLab Duo experiment:
When a GitLab Duo experiment moves to beta:
When a GitLab Duo feature becomes generally available: