{"record":{"id":"01e23e7135c0a620","repo":"warpdotdev/warp","slug":"invalid-value-artifact","errorCode":null,"errorMessage":"invalid value 'artifact'","messagePattern":"invalid value 'artifact'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/ai/agent_sdk/mod.rs","lineNumber":208,"sourceCode":"                return Err(anyhow::anyhow!(\"invalid value 'secret'\"));\n            }\n            secret::run(ctx, global_options, secret_cmd)\n        }\n        CliCommand::Federate(federate_cmd) => {\n            if !FeatureFlag::OzIdentityFederation.is_enabled() {\n                return Err(anyhow::anyhow!(\"invalid value 'federate'\"));\n            }\n            federate::run(ctx, global_options, federate_cmd)\n        }\n        CliCommand::HarnessSupport(args) => {\n            if !FeatureFlag::AgentHarness.is_enabled() {\n                return Err(anyhow::anyhow!(\"invalid value 'harness-support'\"));\n            }\n            harness_support::run(ctx, global_options, args)\n        }\n        CliCommand::Artifact(artifact_cmd) => {\n            if !FeatureFlag::ArtifactCommand.is_enabled() {\n                return Err(anyhow::anyhow!(\"invalid value 'artifact'\"));\n            }\n            artifact::run(ctx, global_options, artifact_cmd)\n        }\n        CliCommand::ApiKey(api_key_cmd) => {\n            if !FeatureFlag::APIKeyManagement.is_enabled() {\n                return Err(anyhow::anyhow!(\"invalid value 'api-key'\"));\n            }\n            api_key::run(ctx, global_options, api_key_cmd)\n        }\n        CliCommand::Runner(runner_cmd) => {\n            if !FeatureFlag::CloudAgentRunners.is_enabled() {\n                return Err(anyhow::anyhow!(\"invalid value 'runner'\"));\n            }\n            runner::run(ctx, global_options, runner_cmd)\n        }\n    }\n}\n","sourceCodeStart":190,"sourceCodeEnd":226,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/app/src/ai/agent_sdk/mod.rs#L190-L226","documentation":"Thrown by the dispatcher arm for CliCommand::Artifact (mod.rs:208) when `artifact` parsed but FeatureFlag::ArtifactCommand is disabled. The clap-shaped 'invalid value' error makes the artifact subcommand (upload/download of run artifacts) appear nonexistent when the flag is off. Flag defaults to false and is not in the always-on lists.","triggerScenarios":"Invoking `<cli> artifact <subcmd>` (e.g. uploading outputs of an agent run) where FeatureFlag::ArtifactCommand.is_enabled() == false.","commonSituations":"CI jobs that publish agent-run artifacts using a release-channel binary; org tenants not enrolled in artifact storage; pipelines ported from dogfood environments.","solutions":["Run artifact commands from a build/account where ArtifactCommand is enabled","Update to a version where artifacts shipped to your channel","As a fallback for CI, publish outputs through your own storage instead of the artifact subcommand","As a Warp developer, override the flag or add FeatureFlag::ArtifactCommand to DOGFOOD_FLAGS and rebuild"],"exampleFix":"# before\n$ oz artifact upload ./out\nError: invalid value 'artifact'\n\n# after\nif FeatureFlag::ArtifactCommand.is_enabled() {\n    artifact::run(ctx, global_options, cmd)?;\n}","handlingStrategy":"validation","validationCode":"if matches!(cmd, CliCommand::Artifact(_))\n    && !FeatureFlag::ArtifactCommand.is_enabled()\n{\n    return Ok(()); // publish artifacts elsewhere\n}","typeGuard":"pub fn artifact_cmd_available() -> bool {\n    FeatureFlag::ArtifactCommand.is_enabled()\n}","tryCatchPattern":"match agent_sdk::run(ctx, opts, cmd) {\n    Err(e) if e.to_string() == \"invalid value 'artifact'\" => {\n        // fall back to your own artifact storage\n    }\n    result => result?,\n}","preventionTips":["CI should not hard-depend on gated artifact publishing; keep an S3/gcs fallback path","Probe ArtifactCommand once and store the result in the job's env matrix","Watch changelogs when artifact features move between channels"],"tags":["cli","feature-flags","artifacts","rust","warp"],"backgroundTag":null,"analyzedSha":"e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc","analyzedAt":"2026-08-16T08:27:25.381Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}