Hmbown/CodeWhale · error
Fleet worker has no persisted launch manifest
Error message
Fleet worker {worker_id} has no persisted launch manifest What it means
Restart advances a worker's launch manifest generation durably, so the worker record must carry a persisted launch_manifest. When record.spec.launch_manifest is None the manager cannot verify the registered generation against the ledger attempt and refuses. This usually means the worker was registered without a durable launch manifest — e.g. registered by a code path or version that did not persist manifests.
Solutions
- Re-register the worker through the current launch path so a manifest is persisted
- Cancel and re-lease the task so a fresh worker registers with a manifest
- Reconcile or clear stale coordination records lacking manifests before restart
- Check for code paths calling register_worker_with_coordination without building a launch manifest
Example fix
// before
let record = coordination.get_worker_record(worker_id).unwrap();
let report = manager.restart_worker(worker_id)?;
// after
if !manager.worker_has_launch_manifest(worker_id) {
manager.cancel_task(&run_id, &task_id)?;
manager.start_run(&run_id)?; // fresh worker gets a persisted manifest
} else {
let report = manager.restart_worker(worker_id)?;
} Defensive patterns
Strategy: validation
Validate before calling
fn has_launch_manifest(manager: &FleetManager, worker_id: &str) -> bool {
manager.worker_registered(worker_id) && manager.worker_has_launch_manifest(worker_id)
} Try / catch
match manager.restart_worker(worker_id) {
Err(e) if e.to_string().contains("no persisted launch manifest") => {
manager.cancel_task(&run_id, &task_id)?; manager.start_run(&run_id)?
}
other => other.map(|_| ())?,
} Prevention
- Ensure every registration path persists a launch manifest
- Validate coordination state after upgrades or migrations
- Prefer cancel + re-lease over restart when worker provenance is uncertain
When it happens
Trigger: restart_worker/resume restart callback where get_worker_record exists but spec.launch_manifest is None: worker registered via a legacy path, manifest dropped on SubAgentManager reset, or partial registration after a crash.
Common situations: Version skew between processes writing coordination state; tests constructing worker records without manifests; manual edits to persisted coordination state.
Understand the failure class
Background: "missing required argument" and "the following required arguments were not provided": what required-argument errors mean and how to fix them — this error's family across 20 libraries.
Related errors
- fleet task ' ' coordination contracts must be one non-empty…
- fleet task ' ' metadata.coordination_contracts accepts at…
- Fleet task ' ' metadata.coordination_contracts accepts at…
- fleet task ' ' metadata.coordination_contracts must be an…
- fleet task ' ' metadata.coordination_contracts must contain…
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/0440b3658f0aaf9c.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/fleet/manager.rs:1194
None,
)?,
&self.exec_config,
),
task.entry.attempts,
);
let record = coordination
.get_worker_record(worker_id)
.ok_or_else(|| anyhow!("Fleet worker {worker_id} has no registered launch spec"))?;
let current_generation = task.entry.attempts.max(1);
let next_generation = current_generation
.checked_add(1)
.ok_or_else(|| anyhow!("Fleet worker {worker_id} exhausted launch generations"))?;
let registered_generation = record
.spec
.launch_manifest
.as_ref()
.map(|manifest| manifest.generation)
.ok_or_else(|| anyhow!("Fleet worker {worker_id} has no persisted launch manifest"))?;
match registered_generation {
generation if generation == current_generation => {
validate_registered_launch_spec(&record.spec, &expected_current)?;
coordination
.advance_registered_worker_generation(bind_fleet_launch_attempt(
record.spec,
next_generation,
))
.map_err(anyhow::Error::msg)?;
}
generation if generation == next_generation => {
let mut normalized = record.spec;
normalized
.launch_manifest
.as_mut()
.expect("prepared launch manifest checked above")
.generation = current_generation;View on GitHub (pinned to 73e0f67d83)