receipt · tdd
TDD the random-prompt endpoint
A receipt, not a live run. The endpoint behind /api/random-prompt, built test-first: returns a valid prompt, randomness verified across 50 calls. The red → green → refactor commits and the live JSON are the proof the method shipped something real.
the prompt
/tdd
Implement the random-prompt endpoint described in the PRD at
src/content/prds/random-prompt.md. Start with the failing test for
the random selection logic. Don't touch the UI yet — backend slice only. artifacts · 3
also on the site