Hmbown/CodeWhale · error
Fleet task ` `: (source= )
Error message
Fleet task `{}`: {reason} (source={source}) What it means
validate_fleet_task_routes fails a Fleet task whose model is explicitly pinned (task.model or agent_profile.model) but whose provider is only implied by the session config. It calls route_runtime::validate_unpinned_model_provider against the active session provider/base_url, and if the pinned model cannot be served by that provider the reason is surfaced as this error. The runtime deliberately never infers a provider from the model name, so a pin that doesn't match the default provider is rejected at run creation instead of failing silently in the worker.
Solutions
- Set an explicit provider on the agent profile for this task (explicit_fleet_provider_id) so the pin is resolved against that provider, not the session default.
- Change the pinned model to one served by the active session provider (or switch the session provider to one carrying the pinned model).
- Switch the task's role/model to `inherit` so it resolves within the already-authorized session scope.
- Ensure the live route config is attached (config passed to validate_fleet_task_routes) so the validator can check the real base_url.
Example fix
// before [worker] model = "deepseek-chat" // after (profile gains an explicit provider) [worker] model = "deepseek-chat" provider = "deepseek"
Defensive patterns
Strategy: validation
Validate before calling
if pinned && profile.provider.is_none() && !session_provider_serves(&model) {
return Err(format!("pin `{model}` needs an explicit profile provider"));
} Prevention
- Always set an explicit provider on profiles that pin a model.
- Never rely on model-name spelling to imply a provider.
- Keep the session provider and pinned models aligned after provider switches.
When it happens
Trigger: Calling validate_fleet_task_routes where the effective model source is `task.model` or `agent_profile.model`, the agent profile sets no explicit provider, config is present (provider authority exists), and validate_unpinned_model_provider(config.api_provider(), model, config.active_route_base_url()) returns Err — e.g. pinning `deepseek-chat` while the session provider is Anthropic.
Common situations: A fleet task pins a model like `gpt-5.6-luna` or a DeepSeek model while the session/default provider is a different vendor; the model's spelling suggests a provider but the config routes to another one. Happens after switching providers mid-session or copying a task spec between machines with different default providers.
Understand the failure class
Background: 'Could not be found', 'does not exist', 'not found in database': the resource-not-found family when an ID, slug, key, or URI lookup comes back empty — this error's family across 20 libraries.
Related errors
- Fleet task ` ` cannot resolve its inherited model ` ` with…
- Fleet task ` ` pins model ` ` with (source= ), but that…
- agent profile path is not a directory
- agent profile provider cannot be empty
- agent profile provider must be a simple provider id
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/ceae8b99c143385f.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/fleet/worker_runtime.rs:304
);
}
if config.is_none()
&& let Some(provider_id) = explicit_provider.as_deref()
&& ApiProvider::parse(provider_id)
.is_none_or(|provider| provider == ApiProvider::Custom)
{
bail!(
"Fleet task `{}` names custom provider=`{provider_id}`, but a provider name alone does not prove its endpoint or model; attach the live route config before creating the run",
task.id,
);
}
if pinned_model && explicit_provider.is_none() {
let config = config.expect("provider authority checked above");
let (provider, base_url) = (config.api_provider(), config.active_route_base_url());
if let Err(reason) =
crate::route_runtime::validate_unpinned_model_provider(provider, &model, &base_url)
{
bail!("Fleet task `{}`: {reason} (source={source})", task.id);
}
}
let route = resolve_fleet_route_with_config(task, agent_profiles, session_model, config);
let provider = explicit_provider
.map(|provider| format!("provider=`{provider}`"))
.unwrap_or_else(|| {
"no explicit provider (resolves against the session/default provider)".to_string()
});
if route.is_none() {
if pinned_model {
bail!(
"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`.",
task.id,
model,View on GitHub (pinned to 73e0f67d83)