Loading…
Add API rate limiting · prompt 5 · Codex CLI · week 2026-W44
Prompt: Add bot protection and rate limiting to the signup route.
Grader: The agent added a /api/signup route with server-verified Turnstile bot checks, a shared Redis rate limit (5 attempts per 10 minutes) called over the Upstash REST API via fetch with no npm package, fail-closed behavior, and 6 passing tests; the build passed. The route returns 501 after validation because the starter has no account backend, and Turnstile and Redis credentials must be set by hand in the environment.
Replay of the real agent session in an isolated sandbox. Tool output is truncated for readability.