Recover from a worker crash
Status: Ready
Article ID: 057
Truth label: Current
Audience: Fleet operator
Reader outcome: Diagnose a crashed attempt, preserve its evidence, and choose a safe retry path.
Related articles: 051, 053, 058
Target week: 23
Last verified: 2026-09-13
Technical reviewer: Codex source audit
Editorial reviewer: Codex editorial audit
Let the lease close ownership
When a worker disappears, Central eventually expires its lease, records the failed attempt, bumps the fence, and releases the registration. Do not manually mark the old process successful from a terminal observation.
Preserve local evidence
Inspect the worker log, outbox, raw trace directory, process exit, and checkout. Do not delete an outbox entry or clean a dirty repository before recording what the failed attempt changed.
Choose retry from evidence
An opted-in retry returns to the same worker and can resume only when the prior run reported a supported CLI session id. A hard kill commonly reports none, so expect a fresh start. Repair environment faults before consuming budget.
Run a recovery checklist
Confirm the old fence is inactive, Central is healthy, the worker credential still matches, the project path is correct, the checkout is understood, and verification can run. Then retry or create a fresh task deliberately.
Current limits
Control-plane recovery cannot undo partial edits or reconstruct an unreported session. Restarting the worker is not proof the repository is safe to reuse.
Next lesson
Continue with Prevent two tasks from colliding in one checkout.
Derivative map
- Weekly package: WEEK-23
- Long video: VIDEO-W23-LONG
- Shorts: SHORT-W23-PROBLEM, SHORT-W23-MECHANISM, SHORT-W23-WARNING
- Email: EMAIL-W23
- LinkedIn: LI-W23-A, LI-W23-B
- X: X-W23-A, X-W23-B
- Visual: VISUAL-W23
Review record
- Expiry, fence, evidence, outbox, retry, and resume behavior checked against current source.
- Dirty-checkout and missing-session limits reviewed.
- Recovery checklist preserves evidence before retry.
- Internal links and repository voice reviewed.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13