Hmbown/CodeWhale · error
Fleet worker persisted launch generation does not match…
Error message
Fleet worker {worker_id} persisted launch generation {generation} does not match ledger attempt {current_generation} or its prepared retry {next_generation} What it means
Launch-generation integrity check during restart: the persisted launch manifest's generation matches neither the ledger's current attempt nor the prepared next attempt, so the persisted spec is stale or corrupt and the restart fails closed rather than launching from an unknown generation.
Solutions
- Re-derive the launch spec from the current ledger attempt (prepare_registered_restart_generation) so the persisted generation matches.
- Retry the restart after the concurrently-advancing generation settles.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/tui/src/fleet/manager.rs:1216 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/66434df3603c13ef.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/fleet/manager.rs:1216
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;
validate_registered_launch_spec(&normalized, &expected_current)?;
}
generation => {
bail!(
"Fleet worker {worker_id} persisted launch generation {generation} does not match ledger attempt {current_generation} or its prepared retry {next_generation}"
);
}
}
Ok(())
}
pub fn stop_all(&self) -> Result<usize> {
let state = self.ledger.rebuild_state()?;
let now = timestamp();
let mut affected_runs = BTreeSet::new();
let mut stopped = 0usize;
for task in state.tasks.values() {
if !matches!(
task.status,
FleetTaskLedgerStatus::Enqueued | FleetTaskLedgerStatus::Leased
) {
continue;View on GitHub (pinned to 73e0f67d83)