I keep a folder called dead-agents . Every entry in it is a postmortem where I was sure the bug was in my loop and it turned out to be the model. The most recent one cost me a weekend.
Source: [Dev.to](https://dev.to/o96a/the-quant-didnt-break-the-weights-it-broke-the-code-15oa)