I've had this run in both directions. Going through the repos a day later: "Holy hell, this solution is [utter shit || truly inspired || elegant AF || written by someone who should probably be fired]. Who wrote this? Me?! I don't remember any of this."
The compartmentalization/fugue state is real.