Keep an uncertain workflow open
When a remote reply is missing, Takt retains the operation and its original request. Decide which evidence your app will accept to settle the outcome.
Keep the outcome open
A remote step can time out after the request has already been sent. At that point the destination may still be working or may have committed the change. Represent this outcome as unknown in the workflow and in the response you give the caller. If you offer a retry, it should refer to the same operation. Give the destination a stable identity it can use to recognize that request.
Follow the evidence across attempts
The Takt engine test prepares the request once, then checks that a second attempt uses the same request bytes and operation key. A separate test returns an ordinary rejection on a retry after the first attempt became uncertain. The workflow stays blocked on an unknown outcome because the first attempt could still have taken effect.
Another test delivers the first attempt’s success after a retry has started. That reply can settle the same operation while it is still open. The later reply leaves the settled result intact. A test for explicit authoritative resolution checks that late replies cannot change a result settled that way.
Decide who can resolve it
For a payment workflow, design a lookup for the charge under the same operation key and specify which service owns that record. Give the workflow a rule for when a receipt settles success and what evidence is strong enough to settle the other way. The Rust tests exercise Takt’s state transitions. The application still has to provide an authoritative source of business outcomes.