Planning multistep error detection and recovery strategies | Synapse