Provider B now handles new messages. Operation 42 was already sent to provider A and its result is unknown. A late worker also returns after another worker has taken over.
Two changes need different reasoning:
| Change | Risk |
|---|---|
| New-work routing changes from A to B. | Recovery may accidentally ask B about an operation only A knows. |
| A new worker takes over the same operation. | An older worker may overwrite newer settlement unless current ownership is checked. |
Engineering Depth
Compare two pieces of data:
// Sketch: a current configuration answers where new work should go.
struct RoutingConfig { provider: ProviderId }
// A recorded operation retains where its own intent was dispatched.
struct Operation { id: OperationId, provider: ProviderId }
The names ProviderId and OperationId stand for the owning product's validated identifiers. Storing the field is necessary only if it is also checked and used correctly. Recovery should follow the operation's binding, not silently replace it with the latest routing configuration.
A fence can stop a stale worker from settling after its claim is superseded. For example, stored settlement may require the current claim generation to match. Consuming the older worker's local Rust value alone cannot establish that current distributed fact.
| Claim | What Must Support It |
|---|---|
| “This worker may settle now.” | Current stored claim/version under the owning concurrency rule |
| “Provider A applied operation 42.” | Evidence from A or an authorized, evidence-preserving migration |
| “The new adapter preserves the promise.” | The existing consumer contract and relevant observed behavior |
Your Reflection
Can the team delete provider A's adapter as soon as all new traffic uses B?
Saved in this browser. Export a copy before changing devices.
Worked Discussion
Only after accounting for work still bound to A, including unresolved outcomes, verification and relevant history. Keeping an adapter for old recovery may be required even when it accepts no new work. Decide that boundary explicitly instead of letting “current provider” erase it.