{"record":{"id":"47d88be1a39073b2","repo":"warpdotdev/warp","slug":"invalid-value-runner","errorCode":null,"errorMessage":"invalid value 'runner'","messagePattern":"invalid value 'runner'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/ai/agent_sdk/mod.rs","lineNumber":220,"sourceCode":"                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\nfn format_skill_resolution_error(err: ResolveSkillError) -> String {\n    match err {\n        ResolveSkillError::NotFound { skill } => {\n            format!(\"Skill '{skill}' not found\")\n        }\n        ResolveSkillError::RepoNotFound { repo } => {\n            format!(\"Repository '{repo}' not found\")\n        }\n        ResolveSkillError::Ambiguous { skill, candidates } => {\n            let mut msg = format!(\n                \"Skill '{skill}' is ambiguous; specify as repo:skill_name\\n\\nCandidates:\\n\"\n            );","sourceCodeStart":202,"sourceCodeEnd":238,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/app/src/ai/agent_sdk/mod.rs#L202-L238","documentation":"Thrown by the dispatcher arm for CliCommand::Runner (mod.rs:220) when `runner` parsed but FeatureFlag::CloudAgentRunners is disabled. The clap-shaped 'invalid value' error hides the cloud-runner management subcommand when the flag is off. Flag defaults to false; not in the always-on lists.","triggerScenarios":"Invoking `<cli> runner <subcmd>` (manage cloud agent runners) where FeatureFlag::CloudAgentRunners.is_enabled() == false. Distinct from error 179's --runner argument gate, which uses FeatureFlag::CloudRunners on `agent run-cloud`.","commonSituations":"Provisioning self-managed cloud runners from a release-channel binary; orgs not enrolled in the cloud-runners beta; scripts assuming parity between dogfood and release CLI surfaces.","solutions":["Use a build/account where CloudAgentRunners is enabled","Update to a version where cloud runners shipped to your channel","As a Warp developer, override the flag or add FeatureFlag::CloudAgentRunners to DOGFOOD_FLAGS and rebuild","Remove the `runner` step if cloud runners are not actually needed"],"exampleFix":"# before\n$ oz runner list\nError: invalid value 'runner'\n\n# after\nif FeatureFlag::CloudAgentRunners.is_enabled() {\n    runner::run(ctx, global_options, cmd)?;\n}","handlingStrategy":"validation","validationCode":"if matches!(cmd, CliCommand::Runner(_))\n    && !FeatureFlag::CloudAgentRunners.is_enabled()\n{\n    return Ok(());\n}","typeGuard":"pub fn runner_cmd_available() -> bool {\n    FeatureFlag::CloudAgentRunners.is_enabled()\n}","tryCatchPattern":"match agent_sdk::run(ctx, opts, cmd) {\n    Err(e) if e.to_string() == \"invalid value 'runner'\" => {\n        // runner management gated; note it and use default placement\n    }\n    result => result?,\n}","preventionTips":["Distinguish this subcommand gate (CloudAgentRunners) from run-cloud's --runner gate (CloudRunners) when probing","Provision runners out-of-band if the subcommand is gated","Track which flag gates which surface in your runbook, not in memory"],"tags":["cli","feature-flags","cloud-runners","rust","warp"],"backgroundTag":null,"analyzedSha":"e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc","analyzedAt":"2026-08-16T08:27:25.381Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}