Summary
Expose Kubernetes-style health endpoints /healthz (liveness) and /readyz (readiness) on the Go API server. /readyz should verify Postgres and Redis (when configured) are reachable.
Design reference
- docs/00-architecture-overview.md §4 (System Topology)
- docs/00-architecture-overview.md §6 (Phasing — P0)
Acceptance criteria
Dependencies
#3
Complexity
XS
Summary
Expose Kubernetes-style health endpoints
/healthz(liveness) and/readyz(readiness) on the Go API server./readyzshould verify Postgres and Redis (when configured) are reachable.Design reference
Acceptance criteria
GET /healthzreturns 200 with{"status":"ok"}regardless of dependenciesGET /readyzreturns 200 only whenpgxpool.Ping()succeeds; 503 otherwise/readyzbody lists checked dependencies with per-dep status/readyzreturns 503; restore, returns 200Dependencies
#3
Complexity
XS