File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ const FeatureFlagFileBlame = "file_blame"
2727// unless explicitly opted in.
2828const FeatureFlagIssueDependencies = "issue_dependencies"
2929
30+ // FeatureFlagArtifacts is the feature flag name for issue artifact tools.
31+ // It is user-toggleable but intentionally excluded from insiders mode until
32+ // the dotcom scribe_artifacts_api cohort is broad enough.
33+ const FeatureFlagArtifacts = "artifacts"
34+
3035// AllowedFeatureFlags is the allowlist of feature flags that can be enabled
3136// by users via --features CLI flag or X-MCP-Features HTTP header.
3237// Only flags in this list are accepted; unknown flags are silently ignored.
@@ -40,6 +45,7 @@ var AllowedFeatureFlags = []string{
4045 FeatureFlagPullRequestsGranular ,
4146 FeatureFlagFileBlame ,
4247 FeatureFlagIssueDependencies ,
48+ FeatureFlagArtifacts ,
4349}
4450
4551// InsidersFeatureFlags is the list of feature flags that insiders mode enables.
Original file line number Diff line number Diff line change @@ -183,6 +183,17 @@ func TestResolveFeatureFlags(t *testing.T) {
183183 enabledFeatures : []string {FeatureFlagIFCLabels },
184184 expectedFlags : []string {FeatureFlagIFCLabels },
185185 },
186+ {
187+ name : "artifacts can be directly enabled" ,
188+ enabledFeatures : []string {FeatureFlagArtifacts },
189+ expectedFlags : []string {FeatureFlagArtifacts },
190+ },
191+ {
192+ name : "insiders mode does not auto-enable artifacts" ,
193+ enabledFeatures : nil ,
194+ insidersMode : true ,
195+ unexpectedFlags : []string {FeatureFlagArtifacts },
196+ },
186197 {
187198 name : "unknown flags are filtered out" ,
188199 enabledFeatures : []string {"unknown_flag" , "another_unknown" },
You can’t perform that action at this time.
0 commit comments