{"record":{"id":"63a842bde69349e1","repo":"Hmbown/CodeWhale","slug":"fleet-task-pins-model-with-source-s","errorCode":null,"errorMessage":"Fleet task `{}` pins model `{}` with {} (source={source}), but that route does not resolve to a real model on any configured provider, so the worker cannot launch. The runtime never infers a provider from a model's spelling — set an explicit provider for this model in the profile, or switch the role to `inherit`.","messagePattern":"Fleet task `(.+?)` pins model `(.+?)` with (.+?) \\(source=(.+?)\\), but that route does not resolve to a real model on any configured provider, so the worker cannot launch\\. The runtime never infers a provider from a model's spelling — set an explicit provider for this model in the profile, or switch the role to `inherit`\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/fleet/worker_runtime.rs","lineNumber":316,"sourceCode":"        if pinned_model && explicit_provider.is_none() {\n            let config = config.expect(\"provider authority checked above\");\n            let (provider, base_url) = (config.api_provider(), config.active_route_base_url());\n            if let Err(reason) =\n                crate::route_runtime::validate_unpinned_model_provider(provider, &model, &base_url)\n            {\n                bail!(\"Fleet task `{}`: {reason} (source={source})\", task.id);\n            }\n        }\n\n        let route = resolve_fleet_route_with_config(task, agent_profiles, session_model, config);\n        let provider = explicit_provider\n            .map(|provider| format!(\"provider=`{provider}`\"))\n            .unwrap_or_else(|| {\n                \"no explicit provider (resolves against the session/default provider)\".to_string()\n            });\n        if route.is_none() {\n            if pinned_model {\n                bail!(\n                    \"Fleet task `{}` pins model `{}` with {} (source={source}), but that route does not \\\n                     resolve to a real model on any configured provider, so the worker cannot launch. \\\n                     The runtime never infers a provider from a model's spelling — set an explicit \\\n                     provider for this model in the profile, or switch the role to `inherit`.\",\n                    task.id,\n                    model,\n                    provider\n                );\n            }\n            bail!(\n                \"Fleet task `{}` cannot resolve its inherited model `{model}` with {provider} \\\n                 (source={source}); attach the live route config for custom providers before \\\n                 creating the run\",\n                task.id,\n            );\n        }\n        validate_fleet_reasoning_effort(task, agent_profiles, session_model, config)?;\n    }","sourceCodeStart":298,"sourceCodeEnd":334,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/fleet/worker_runtime.rs#L298-L334","documentation":"When a Fleet task's resolved model route is None and the model was explicitly pinned (task.model or agent_profile.model), validate_fleet_task_routes rejects the task: the pinned model does not resolve to a real model on any configured provider, so the worker could never launch. Because the runtime never infers a provider from a model's spelling, a providerless pin for a model living on another provider is fatal at run creation.","triggerScenarios":"Calling validate_fleet_task_routes where resolve_fleet_route_with_config returns None, the effective source is `task.model` or `agent_profile.model` (pinned_model), and the profile has no explicit provider (or the explicit provider string is reported in the message as provider=`...`).","commonSituations":"Typo'd or retired model IDs in task specs; copying a Fleet Builder config (e.g. `gpt-5.6-luna` with no provider) onto a machine where that model lives on a different provider; tests exercising configless runs with providerless DeepSeek-style pins.","solutions":["Set an explicit provider for the model in the agent profile so the route resolves against the right vendor.","Switch the task role to `inherit` so the model comes from the session/default scope.","Correct the model ID to one that actually exists on a configured provider.","Attach the live route config listing the provider that serves this model."],"exampleFix":"// before: task pins model with no provider\n[[tasks]]\nmodel = \"deepseek-reasoner\"\n\n// after\n[[tasks]]\nmodel = \"deepseek-reasoner\"\nprofile = \"deepseek-worker\" // profile sets provider = \"deepseek\"","handlingStrategy":"validation","validationCode":"if pinned && resolve_route(model, provider).is_none() {\n    return Err(format!(\"model `{model}` does not resolve on any configured provider\"));\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Validate model IDs against the provider catalog before saving task specs.","Prefer `inherit` unless a task truly needs a specific model.","Attach the live route config whenever tasks pin models."],"tags":["fleet","model-route","provider-resolution"],"backgroundTag":"resource-not-found","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}