Adds a Kubernetes-style healthz endpoint returning status, version,
uptime_seconds and timestamp. Non-breaking — /api/health is preserved.
- New route: GET /api/healthz
- New handler: handleHealthz with HealthzResponse struct
- New unit test: pkg/server/healthz_test.go (passes locally)
- New BDD scenario: features/health/health.feature
- BDD steps: pkg/bdd/steps/health_steps.go, common_steps.go
Note: BDD tests require Postgres and will be validated by CI.
🤖 Co-Authored-By: Mistral Vibe (devstral-2 / mistral-medium-3.5)
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Ajoute un endpoint
/api/healthzstyle Kubernetes retournant un JSON enrichi avec status, version, uptime_seconds et timestamp.Non-breaking :
/api/healthexistant est préservé tel quel.Spec
Response :
Changes
pkg/server/server.go: route + handlerhandleHealthz+ structHealthzResponse+ champstartedAtsurServerpkg/server/healthz_test.go: test unitaire (assert HTTP 200 + Content-Type + JSON fields)features/health/health.feature: nouveau scénario BDD pour/api/healthzpkg/bdd/steps/health_steps.go,common_steps.go,steps.go: steps Gherkin associésTest plan
go build ./pkg/server/...passego test ./pkg/server/... -run TestHandleHealthzpasse localementgo test ./features/...(BDD) — nécessite Postgres, validé par CIMigration context
Phase 1 ARCODANGE — autonomous run de Mistral Vibe via workspace ICM :
~/Work/Vibe/workspaces/healthz-feature/Architecture ICM (Jake Van Clief) validée : ~95 % du travail effectué en autonomie par Mistral, avec stages observables sur disque.
🤖 Co-Authored-By: Mistral Vibe (devstral-2 / mistral-medium-3.5)