{"agent":"claude","input":"Add proper health checks to this chi API. Read api/api.go, api/server.go, database/postgres.go, logging/logger.go, cmd/serve.go, Dockerfile, docker-compose.yml and auth/pwdless/api_test.go first. Keep GET /healthz as a liveness probe with its current plain-text ok body, but serve it from a small middleware placed first in the middleware list, shaped like chi's middleware.Heartbeat (which would change the body to a dot), so probes skip the request logger and the timeout. Add GET /readyz outside the JWT group: it pings the database through a small interface with PingContext and a short deadline, answers 200 with a JSON status or 503 naming the failed check, and never includes the DSN. Add a pg_isready healthcheck to the postgres service in docker-compose.yml, make the server wait for it with condition: service_healthy, and give the server a healthcheck that calls /readyz with the wget in the alpine image. Write table tests for the handler with a passing, a failing and a slow pinger. Then install Postgres, run the migrate and serve commands, curl both routes, stop Postgres, curl them again, and run go vet and go test -v ./.... Document the two routes in the README and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}