When the broker restarts and loses state, workers get "not registered" errors and die. Instead of dying, workers should auto-recover.
Flow:
- Worker gets 403 "not registered"
- Loads email from saved config
- Calls POST /recover with name + email
- Calls POST /reset-secret with the token
- Updates local config with new secret
- Retries registration
If no email on file, log clear instructions for manual re-registration.
Reference
See old_mvp/km/worker/src/fabric.rs (attempt_recovery_and_reregister).
When the broker restarts and loses state, workers get "not registered" errors and die. Instead of dying, workers should auto-recover.
Flow:
If no email on file, log clear instructions for manual re-registration.
Reference
See
old_mvp/km/worker/src/fabric.rs(attempt_recovery_and_reregister).