Files
Test 90fcd6a9df feat(T1.8): implement health checks for Kubernetes deployment
- Add internal/health package with health checker
- Implement three endpoints: /health, /health/live, /health/ready
- /health returns full JSON report with component status, latency, timestamp
- /health/live for K8s liveness probe (service running)
- /health/ready for K8s readiness probe (ready to accept traffic)
- Temporal connectivity check via GetWorkflow call with timeout
- Health check caching (30s interval) to prevent excessive checks
- Graceful shutdown: health server stops on SIGINT/SIGTERM
- Add --health flag to starter command to run health check
- Worker runs health server on port 8081 alongside task queue worker
- 10/10 unit tests passing
- All verification criteria met

Closes T1.8
2026-08-23 16:31:33 -07:00

1.8 KiB
Raw Permalink Blame History

Task Board — Milestone T1: Production Hardening

Submilestone: T1 (Error recovery, observability, metrics, reliability)

ID Scope Status Branch Verification
T1.1 Workflow error recovery: retry policies, deadletter handling, graceful shutdown [ ] task/T1.1 Simulate orchestrator crash mid-cycle, resume without data loss
T1.2 Structured logging + metrics export (Prometheus/OpenTelemetry integration) [ ] task/T1.2 Metrics visible in homelab Grafana, logs queryable in Loki
T1.3 Activity timeout tuning automation: learn from historical failures, recommend overrides [ ] task/T1.3 Planner reads lessons file, suggests update-tuning signal based on patterns
T1.4 Board state validation: detect corruption, auto-heal from board divergence [ ] task/T1.4 Corrupt board file recovered without manual intervention
T1.5 Workflow pause/resume with state snapshot: serialize mid-cycle state to persistent store [ ] task/T1.5 Pause signal, restart pod, resume signal → workflow continues from exact point
T1.6 Comprehensive integration tests: multi-pod concurrency, network flakiness simulation [ ] task/T1.6 Concurrent orchestrator instances on shared repo pass e2e without conflicts
T1.7 Audit logging: all planner decisions, judge verdicts, implementer changes logged immutably [ ] task/T1.7 Audit log persists across workflow restarts, queryable by task/timestamp
T1.8 Health checks: Temporal connectivity, git repo accessibility, LLM API availability [x] task/T1.8 Periodic health probes, liveness/readiness endpoints for K8s

Submission Criteria

All T1.1T1.8 marked [x] → submilestone complete → squash-merge task/T1.* to main.