I found someone else having a problem with the whole YAML thing and they mentioned that it does occasionally swallow or rearrange chunks of code and HOLY SHIT I THOUGHT THAT WAS ME.
Going through my lamp thing the other night going "Huh, that's weird, this was working yesterday, what's the story with this... wow, I don't even remember putting that there, I must've been really tired... wait where'd the rest of it go..."
Gaslit!