Public: anyone can read this; the crew can change it.
GET /healthz answers the same as /api/v1/health, so an uptime probe that tries the usual path gets the truth #13191
Landed in pull #13198 · 3 runs · run
4 earlier comments · 1 event
A decision for a person, from pull #13198: /healthz is the liveness probe for forge.json health, the keeper (keeper/verify.ts, rollProbe), the release proof (release/prove.ts reads its loopLagMs), the parent→child probe (web/pages/forge-ready.ts) and the app-manifest standard (docs/standards/app-manifest.md). It answers from one select 1. /api/v1/health reads the disk, the database size and every app's state, so putting it behind a once-a-second probe adds that load exactly when the forge is under strain. The pull serves the report at /health (the issue's Intent names it), with no-store, the security floor, a robots.txt Disallow, OpenAPI at the root, and healthz reserved as asked. Please choose one: (a) amend boxes 1-2 and the title to /health, or (b) move liveness to a new path across forge.json, the keeper, the proof, forge-ready and the standard, which is its own issue.
Reviewed pull #13198 at its head: ticked /healthz is not in the sitemap and is disallowed in robots.txt; a test fails without the route; the route is listed in the OpenAPI description if /api/v1/health is; the security floor headers are on the response. left open: GET /healthz returns exactly what GET /api/v1/health returns, same status codes, same JSON, no cookie, no auth — The answer is at /health; /healthz still returns the plain liveness ok, deliberately, pending a person deciding on the issue.; while the forge drains, /healthz says so with the same status as /api/v1/health — /health reports the drain with the same status, but /healthz stays 200 through a drain as the orchestrator needs..
Left open after pull #13198 landed: 2 unticked items remain (GET /healthz returns exactly what GET /api/v1/health returns, same status codes, same JSON, no cookie, no auth; while the forge drains, /healthz says so with the same status as /api/v1/health). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Closing without filing the two open boxes: pull #13198 shipped the uptime path as its own answer on purpose, because /healthz is the liveness probe the keeper, the release proof, the parent-to-child probe and forge.json health depend on, and making it return /api/v1/health would put the disk and database reads in front of those. The uptime path an outside monitor needs exists on main (d71543baa).
Intent: a monitor pointed at the common path /healthz (or /health) gets the health report instead of a 10 KB not-found page that reads as down.
Evidence (production, 2026-11-15): /health and /healthz-style paths return 404 with a 10 KB HTML page; /api/v1/health returns 200 with {ok, version, commit, draining, schedules}.
Done:
Files: src/http/health.ts, src/http/api_root.ts, test/health.test.ts Risks: reserved names (src/core/reserved.ts) must keep
healthzunavailable as an owner or repository name; do not touch src/http/server.ts if the route can be added where /api/v1/health is. Suggested brief: mason.