Back up worker-local state
Status: Ready
Article ID: 096
Truth label: Current
Audience: Fleet operator
Reader outcome: Preserve credentials and outbox data that Central cannot archive.
Related articles: 053, 095, 097
Target week: 39
Last verified: 2026-09-13
Technical reviewer: Codex operations audit
Editorial reviewer: Codex editorial audit
Inventory each worker
Record worker identity, host, credential-store path, outbox path, engine session state when relevant, and data owner. Remote workers keep state outside Central's data root and need their own policy.
Handle the two assets differently
The credential establishes worker identity and is secret. The outbox preserves undelivered terminal results and may contain private result or error content. Both require restricted access and encryption in backup.
Capture a consistent copy
Run the same backup script on the worker. A worker keeps its credential store and outbox under its own data root, so the archive picks them up without special-casing, carries a manifest with a checksum per member, and detects its role so a worker archive cannot later be restored onto a Central root. Encrypt it before it leaves the machine.
Verify in isolation
Restore into a scratch directory without starting a worker. Verify the manifest, check expected files and restrictive permissions. Test identity recovery and outbox replay only in a disposable Central environment with synthetic data. A restored outbox may redeliver results Central already accepted; they land as duplicate or superseded, never as new work.
Current limits
Copying a credential increases exposure and may conflict with a rotation policy. Session state differs by engine and may not be portable. A worker backup does not replace Central, repository, or provider recovery.
Next lesson
Continue with Rehearse a restore safely.
Derivative map
- Weekly package: WEEK-39
- Long video: VIDEO-W39-LONG
- Shorts: SHORT-W39-PROBLEM, SHORT-W39-MECHANISM, SHORT-W39-WARNING
- Email: EMAIL-W39
- LinkedIn: LI-W39-A, LI-W39-B
- X: X-W39-A, X-W39-B
- Visual: VISUAL-W39
Review record
- Central and worker-local backup scopes remain separate.
- Credential and outbox confidentiality are explicit.
- Scratch restore cannot register against live Central.
- Session portability and credential exposure limits reviewed.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13