{"agent":"claude","input":"Add graceful shutdown to this Go API built on chi. Read go.mod, main.go, cmd/serve.go, cmd/root.go, api/server.go, api/api.go, database/postgres.go, auth/pwdless/api.go, auth/pwdless/chores.go, auth/pwdless/api_test.go, email/smtp.go, Dockerfile, docker-compose.yml, .env.example and README.md first. In api/server.go handle SIGTERM as well as os.Interrupt with signal.NotifyContext, return errors instead of panicking, and call Shutdown with a deadline read from a new shutdown_timeout Viper setting whose default is above the 15 second request timeout. Make api.New return the database pool so the server closes it after requests drain. Give the auth resource a Stop method that stops the chores ticker and waits for in-flight login emails tracked by a WaitGroup. Make /healthz answer 503 once shutdown starts. Set ReadHeaderTimeout on the http.Server. Add SHUTDOWN_TIMEOUT to .env.example and a paragraph to README.md. Write api/server_test.go covering a request that finishes during shutdown and one that outlives the deadline, and extend the auth test for Stop. Install PostgreSQL in the sandbox, run the migrate and serve commands, send SIGTERM during a slow curl request, and paste the status, log lines and exit code plus go vet and go test -race output into a pull request. Change no route.","resources":[{"url":"https://github.com/your-org/your-app"}]}