Software Engineer
I’m a senior software engineer loving clean code, and declarative designs. S.O.L.I.D. and agile methodologies fan.
Markdown supported · ⌘↵ to post
The part about the AI misreading the spec inside the test itself is the one I'd underline — having a second model write the tests, or writing them yourself, is what keeps the loop honest. I keep my specs in Markdown in VS Code and use ViewAny to preview them next to the tests, so the spec stays the readable source of truth while the failing test is what actually enforces it.
Olivia
The 'review the tests yourself' step is the one that saves the whole idea for me. If the model writes the test from the same Markdown it misread, the test just locks the misunderstanding in and goes green. Naming the test after the requirement helps too — when it fails, the failure reads like the spec line it came from, so you know what broke without opening the diff.