Hmbown/CodeWhale · error

Fleet task ` ` pins model ` ` with (source= ), but that…

Error message

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`.

What it means

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.

Solutions

  1. Set an explicit provider for the model in the agent profile so the route resolves against the right vendor.
  2. Switch the task role to `inherit` so the model comes from the session/default scope.
  3. Correct the model ID to one that actually exists on a configured provider.
  4. Attach the live route config listing the provider that serves this model.

Example fix

// before: task pins model with no provider
[[tasks]]
model = "deepseek-reasoner"

// after
[[tasks]]
model = "deepseek-reasoner"
profile = "deepseek-worker" // profile sets provider = "deepseek"
Defensive patterns

Strategy: validation

Validate before calling

if pinned && resolve_route(model, provider).is_none() {
    return Err(format!("model `{model}` does not resolve on any configured provider"));
}

Prevention

When it happens

Trigger: 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=`...`).

Common situations: 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.

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


AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22). Data as JSON: /api/errors/63a842bde69349e1. Report an issue: GitHub.

Appendix: source

Thrown at crates/tui/src/fleet/worker_runtime.rs:316

        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,
                    provider
                );
            }
            bail!(
                "Fleet task `{}` cannot resolve its inherited model `{model}` with {provider} \
                 (source={source}); attach the live route config for custom providers before \
                 creating the run",
                task.id,
            );
        }
        validate_fleet_reasoning_effort(task, agent_profiles, session_model, config)?;
    }

View on GitHub (pinned to 73e0f67d83)