Many programs can store a ‘history’ of all the editing changes you’ve made since you opened an image. Using this you can check what you’ve done and even backtrack to an earlier image state if you realise you’ve made a mistake. Some programs can store the history as part of the saved image file, while non-destructive editors like Lightroom will store it indefinitely as part of the image’s adjustment metadata.