Thermodynamics of non-Markovian reservoirs and heat engines | Synapse