When I began writing The Codex, back before Season 3 started, it was just a simple idea of scientifically examining what we knew about the history of Equestria and filling in the gaps. Then I realised that I wanted to actually write it down and post it online, and decided to come up with a framing story. Simple enough.
I just don't know what went wrong...