{"record":{"id":"1ffc4f91937c0ad8","repo":"warpdotdev/warp","slug":"invalid-value-federate","errorCode":null,"errorMessage":"invalid value 'federate'","messagePattern":"invalid value 'federate'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/ai/agent_sdk/mod.rs","lineNumber":196,"sourceCode":"        #[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'\"));\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'\"));","sourceCodeStart":178,"sourceCodeEnd":214,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/app/src/ai/agent_sdk/mod.rs#L178-L214","documentation":"Thrown by the dispatcher arm for CliCommand::Federate (mod.rs:196) when `federate` parsed but FeatureFlag::OzIdentityFederation is disabled. The clap-style 'invalid value' error makes the identity-federation subcommand invisible when the flag is off. Flag defaults to false; not in the always-on lists, so it depends on launch environment/server enrollment.","triggerScenarios":"Invoking `<cli> federate <subcmd>` (identity/SSO federation operations) where FeatureFlag::OzIdentityFederation.is_enabled() == false.","commonSituations":"Enterprise/SSO setup automation run against a build without the federation rollout; org tenant not yet enrolled; CLI version newer or older than the server's federation support.","solutions":["Use a build/account where OzIdentityFederation is enabled; federation is typically rolled out org-by-org","Verify your CLI version and org enrollment, then update the CLI if federation shipped after your build","As a Warp developer, override the flag or add it to DOGFOOD_FLAGS and rebuild","If federation is not intended, remove the `federate` step from the workflow"],"exampleFix":"# before\n$ oz federate status\nError: invalid value 'federate'\n\n# after (probe once, fail with context)\nanyhow::ensure!(\n    FeatureFlag::OzIdentityFederation.is_enabled(),\n    \"identity federation is not enabled for this account/build\"\n);","handlingStrategy":"validation","validationCode":"if matches!(cmd, CliCommand::Federate(_))\n    && !FeatureFlag::OzIdentityFederation.is_enabled()\n{\n    return Ok(());\n}","typeGuard":"pub fn federate_cmd_available() -> bool {\n    FeatureFlag::OzIdentityFederation.is_enabled()\n}","tryCatchPattern":"match agent_sdk::run(ctx, opts, cmd) {\n    Err(e) if e.to_string() == \"invalid value 'federate'\" => {\n        // federation not enabled for this org/build; surface to admin\n    }\n    result => result?,\n}","preventionTips":["Confirm org enrollment before scripting SSO federation steps","Version-pin enterprise setup docs to CLI builds with the flag on","Fail setup scripts with explicit context instead of retrying the gated command"],"tags":["cli","feature-flags","sso","federation","rust"],"backgroundTag":null,"analyzedSha":"e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc","analyzedAt":"2026-08-16T08:27:25.381Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}