{"record":{"id":"4974463c09be6bba","repo":"warpdotdev/warp","slug":"invalid-value-schedule","errorCode":null,"errorMessage":"invalid value 'schedule'","messagePattern":"invalid value 'schedule'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/ai/agent_sdk/mod.rs","lineNumber":184,"sourceCode":"            if !FeatureFlag::ProviderCommand.is_enabled() {\n                return Err(anyhow::anyhow!(\"invalid value 'provider'\"));\n            }\n            provider::run(ctx, global_options, provider_cmd)\n        }\n        #[cfg(not(target_family = \"wasm\"))]\n        CliCommand::Integration(integration_cmd) => {\n            if !FeatureFlag::IntegrationCommand.is_enabled() {\n                return Err(anyhow::anyhow!(\"invalid value 'integration'\"));\n            }\n            integration::run(ctx, global_options, integration_cmd)\n        }\n        #[cfg(target_family = \"wasm\")]\n        CliCommand::Integration(_) => {\n            return Err(anyhow::anyhow!(\"invalid value 'integration'\"));\n        }\n        CliCommand::Schedule(schedule_cmd) => {\n            if !FeatureFlag::ScheduledAmbientAgents.is_enabled() {\n                return Err(anyhow::anyhow!(\"invalid value 'schedule'\"));\n            }\n            schedule::run(ctx, global_options, schedule_cmd)\n        }\n        CliCommand::Secret(secret_cmd) => {\n            if !FeatureFlag::WarpManagedSecrets.is_enabled() {\n                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'\"));","sourceCodeStart":166,"sourceCodeEnd":202,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/app/src/ai/agent_sdk/mod.rs#L166-L202","documentation":"Thrown by the dispatcher (mod.rs:184-ish arm for CliCommand::Schedule) when the `schedule` subcommand parsed but FeatureFlag::ScheduledAmbientAgents is disabled. It mimics clap's 'invalid value' error so the scheduled-agents subcommand appears absent when the feature is gated off. The flag defaults to false and is not in the always-on build lists, so availability depends on launch channel/server-side enrollment.","triggerScenarios":"Invoking `<cli> schedule <subcmd>` (create/list of scheduled ambient agents) on a build where FeatureFlag::ScheduledAmbientAgents.is_enabled() == false. Parse succeeds; the runtime flag check returns the error.","commonSituations":"Automating scheduled agent runs from a release build where the feature has not shipped; account not enrolled in the scheduled-agents experiment; cron/CI scripts ported from an environment where the flag was on.","solutions":["Use a build/account where ScheduledAmbientAgents is enabled (dogfood/preview or server-side enrollment)","Update to a version where scheduled ambient agents are generally available, or drop the `schedule` calls","As a Warp developer, override the flag or add FeatureFlag::ScheduledAmbientAgents to DOGFOOD_FLAGS and rebuild"],"exampleFix":"# before\n$ oz schedule create --prompt \"nightly report\" --cron \"0 3 * * *\"\nError: invalid value 'schedule'\n\n# after (Rust caller checks first)\nensure!(FeatureFlag::ScheduledAmbientAgents.is_enabled(), \"schedule unavailable\");","handlingStrategy":"validation","validationCode":"if matches!(cmd, CliCommand::Schedule(_))\n    && !FeatureFlag::ScheduledAmbientAgents.is_enabled()\n{\n    return Ok(()); // feature gated off; skip gracefully\n}","typeGuard":"pub fn schedule_cmd_available() -> bool {\n    FeatureFlag::ScheduledAmbientAgents.is_enabled()\n}","tryCatchPattern":"match agent_sdk::run(ctx, opts, cmd) {\n    Err(e) if e.to_string() == \"invalid value 'schedule'\" => {\n        // scheduled agents unavailable; fall back to immediate runs\n    }\n    result => result?,\n}","preventionTips":["Verify ScheduledAmbientAgents before adding `schedule` steps to automation","Prefer one feature-probe at job start over per-command error handling","Keep cron definitions in a place where the schedule step can be toggled off cleanly"],"tags":["cli","feature-flags","scheduling","rust","warp"],"backgroundTag":null,"analyzedSha":"e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc","analyzedAt":"2026-08-16T08:27:25.381Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}