{"record":{"id":"50a94c72da7cd7b9","repo":"Hmbown/CodeWhale","slug":"fleet-worker-worker-id-has-no-coordination-regis","errorCode":null,"errorMessage":"Fleet worker {worker_id} has no coordination-registered launch spec","messagePattern":"Fleet worker (.+?) has no coordination-registered launch spec","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/fleet/manager.rs","lineNumber":1444,"sourceCode":"                            &task_spec,\n                            &worker_spec,\n                            self.run_model(),\n                            &cwd,\n                            &self.workspace,\n                            roster.members(),\n                            None,\n                        )?,\n                        &self.exec_config,\n                    ),\n                    task.entry.attempts,\n                );\n                let launch_spec = match coordination_record {\n                    Some(Some(record)) => {\n                        validate_registered_launch_spec(&record.spec, &expected_launch_spec)?;\n                        record.spec\n                    }\n                    Some(None) => {\n                        bail!(\"Fleet worker {worker_id} has no coordination-registered launch spec\")\n                    }\n                    None => expected_launch_spec,\n                };\n                let command = build_worker_exec_command_with_launch_spec(\n                    codewhale_binary,\n                    &task_spec,\n                    &launch_spec,\n                    &self.exec_config,\n                    model,\n                    roster.members(),\n                )?;\n                Ok((cwd, command))\n            })();\n            let attempt = FleetExecutorAttempt {\n                run_id: task.entry.run_id.clone(),\n                task_id: task.entry.task_id.clone(),\n                attempt: task.entry.attempts,\n            };","sourceCodeStart":1426,"sourceCodeEnd":1462,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/0c42157ee52f9d55af2b506d71b46249910f77d3/crates/tui/src/fleet/manager.rs#L1426-L1462","documentation":"When a worker's task has a persisted coordination record, the executor requires that record to carry a launch spec (Some(Some(record))). A record of Some(None) means coordination knows about the worker but has no registered launch spec, so the expected launch cannot be validated against durable state, and the launch is refused.","triggerScenarios":"A retry/relaunch of a worker whose coordination record exists but its launch spec was cleared or never written: crash between record creation and spec persistence, or a record written by an older version.","commonSituations":"Relaunching workers after an unclean shutdown; upgrading Codewhale across a change in coordination record schema; state restored partially from backup.","solutions":["Cancel/complete the affected task so the coordination record is retired, then let the scheduler issue a fresh lease with a full launch spec","If persistent, remove the stale coordination record for that worker and re-run","Ensure manager and worker processes come from the same Codewhale version"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"match launch_or_restart(&manager, &worker_id) {\n    Ok(x) => Ok(x),\n    Err(err) if err.to_string().contains(\"no coordination-registered launch spec\") => {\n        // retire the record via cancel, then let a fresh lease produce a full spec\n        Err(err)\n    }\n    Err(err) => Err(err),\n}","preventionTips":["Keep one Codewhale version across a run's lifetime, especially on SSH remotes","Cancel orphaned workers before resuming after crashes so records are recreated cleanly"],"tags":["fleet","coordination-state","missing-launch-spec","rust","codewhale"],"backgroundTag":"persisted-state-divergence","analyzedSha":"0c42157ee52f9d55af2b506d71b46249910f77d3","analyzedAt":"2026-08-20T21:50:45.477Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}