Cancellation means no new work should begin beyond a defined boundary. It does not guarantee that already-running remote work stopped. A worker may receive cancellation after a charge request has committed but before the response arrives. The workflow must reconcile that charge and, if appropriate, request compensation.
Use explicit states such as cancel_requested, compensating, cancelled, and compensation_failed. A task should enter cancelled only when required effects are either absent, safely completed according to policy, or compensated as defined. If a release operation fails, compensation_failed records an outstanding obligation even when shipment was successfully prevented.
In a reservation-charge-shipment example, cancellation after charging prevents the ship step, triggers one refund, and attempts a reservation release. If release remains unavailable after its bounded retries, record the reservation identifier, attempted compensation, failure reason, and responsible escalation route. Do not keep retrying indefinitely or hide the failure inside a generic cancelled label. Cancellation and recovery interact: a restart must reload both the cancellation request and unresolved effect records so it cannot resume shipment simply because a queue message still exists.