Part of the API freeze (#110). Decided: in before rc.1. It adds an option and two reserved paths.
A 200 /health is three lines anyone can write. What earns it a place in core is the state only core can see:
Draining. On SIGTERM, close() stops new connections, but keep-alive connections keep bringing requests. A load balancer or a Kubernetes readiness probe has to see 503 before the server goes away, or every deploy drops requests. A hand-written health route says 200 to the end.
Booting. On Deno, Bun and the edge, boot can still be running. Core knows when it's finished.
Degraded.app.degraded() already lists optional providers that failed.
Shape:createApp({ health: true }), off by default, like /__graph__.
GET /__live__ → 200 whenever the process answers.
GET /__ready__ → 503 {status:"booting"}, 200 {status:"ok"|"degraded", degraded:[...]}, or 503 {status:"draining"} from the moment close() starts.
Both skip the pipeline (no steps, no auth), stay out of logRequests, and are refused at boot if a route already uses the path.
Out: user-defined checks (a database ping). A normal route does that today, and health: { checks } can be added later without breaking anything.
Tests: each state on all four runtimes, and close() flipping /__ready__ to 503 while an in-flight request still completes.
Part of the API freeze (#110). Decided: in before rc.1. It adds an option and two reserved paths.
A `200 /health` is three lines anyone can write. What earns it a place in core is the state only core can see:
- **Draining.** On SIGTERM, `close()` stops new connections, but keep-alive connections keep bringing requests. A load balancer or a Kubernetes readiness probe has to see **503 before** the server goes away, or every deploy drops requests. A hand-written health route says 200 to the end.
- **Booting.** On Deno, Bun and the edge, boot can still be running. Core knows when it's finished.
- **Degraded.** `app.degraded()` already lists optional providers that failed.
**Shape:** `createApp({ health: true })`, off by default, like `/__graph__`.
- `GET /__live__` → `200` whenever the process answers.
- `GET /__ready__` → `503 {status:"booting"}`, `200 {status:"ok"|"degraded", degraded:[...]}`, or `503 {status:"draining"}` from the moment `close()` starts.
- Both skip the pipeline (no steps, no auth), stay out of `logRequests`, and are refused at boot if a route already uses the path.
**Out:** user-defined checks (a database ping). A normal route does that today, and `health: { checks }` can be added later without breaking anything.
**Tests:** each state on all four runtimes, and `close()` flipping `/__ready__` to 503 while an in-flight request still completes.
Fixed in 26.11.0-rc.1 (f0530b1). From the changelog:
Health probes: createApp({ health: true }) (#115). Off by default. GET/HEAD /__live__ answers 200 {"status":"ok"} whenever the process answers. /__ready__ answers 503 {"status":"booting"} until boot() resolves, then 200 {"status":"ok"} or 200 {"status":"degraded","degraded":[…]} (from app.degraded()), and 503 {"status":"draining"} from the moment close() starts: Node app.close(), and the close() that serveDeno()/serveBun() return. Probes are answered by the adapter, ahead of maxConcurrentRequests and the route table, so they are never shed and run no step, provider, plugin or onError, and emit no lifecycle event (logRequests and metrics plugins do not see them). Security headers still apply, plus cache-control: no-store; other methods get 405 with Allow: GET, HEAD. While health is on, a route at either path fails the boot, local or spliced from a teapot. A probe through app.fetch before the boot starts the boot without waiting for it. health: { drainDelayMs } (default 0) keeps the listener open that long after close() starts, with /__ready__ already answering 503, before connections drain. Without it Node closes idle keep-alive connections at once, so a probe usually sees a refused connection rather than a 503. The window is spent out of the shutdown budget; createApp throws when drainDelayMs plus teardownTimeoutMs exceeds shutdownTimeoutMs, and on any health value other than true, false or { drainDelayMs?: number }. On the edge there is no close(), so /__ready__ never reports draining there.
Fixed in **26.11.0-rc.1** (`f0530b1`). From the changelog:
- **Health probes: `createApp({ health: true })`** (#115). Off by default. `GET`/`HEAD /__live__` answers `200 {"status":"ok"}` whenever the process answers. `/__ready__` answers `503 {"status":"booting"}` until `boot()` resolves, then `200 {"status":"ok"}` or `200 {"status":"degraded","degraded":[…]}` (from `app.degraded()`), and `503 {"status":"draining"}` from the moment `close()` starts: Node `app.close()`, and the `close()` that `serveDeno()`/`serveBun()` return. Probes are answered by the adapter, ahead of `maxConcurrentRequests` and the route table, so they are never shed and run no step, provider, plugin or `onError`, and emit no lifecycle event (`logRequests` and metrics plugins do not see them). Security headers still apply, plus `cache-control: no-store`; other methods get `405` with `Allow: GET, HEAD`. While `health` is on, a route at either path fails the boot, local or spliced from a teapot. A probe through `app.fetch` before the boot starts the boot without waiting for it. `health: { drainDelayMs }` (default 0) keeps the listener open that long after `close()` starts, with `/__ready__` already answering `503`, before connections drain. Without it Node closes idle keep-alive connections at once, so a probe usually sees a refused connection rather than a `503`. The window is spent out of the shutdown budget; `createApp` throws when `drainDelayMs` plus `teardownTimeoutMs` exceeds `shutdownTimeoutMs`, and on any `health` value other than `true`, `false` or `{ drainDelayMs?: number }`. On the edge there is no `close()`, so `/__ready__` never reports `draining` there.
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.
Part of the API freeze (#110). Decided: in before rc.1. It adds an option and two reserved paths.
A
200 /healthis three lines anyone can write. What earns it a place in core is the state only core can see:close()stops new connections, but keep-alive connections keep bringing requests. A load balancer or a Kubernetes readiness probe has to see 503 before the server goes away, or every deploy drops requests. A hand-written health route says 200 to the end.app.degraded()already lists optional providers that failed.Shape:
createApp({ health: true }), off by default, like/__graph__.GET /__live__→200whenever the process answers.GET /__ready__→503 {status:"booting"},200 {status:"ok"|"degraded", degraded:[...]}, or503 {status:"draining"}from the momentclose()starts.logRequests, and are refused at boot if a route already uses the path.Out: user-defined checks (a database ping). A normal route does that today, and
health: { checks }can be added later without breaking anything.Tests: each state on all four runtimes, and
close()flipping/__ready__to 503 while an in-flight request still completes.Merged into develop in #145 (CARD-17, FPRD-001c, 2026-10-23). Left open until the 1c acceptance gate (CARD-22), per the 1a/1b convention.
Fixed in 26.11.0-rc.1 (
f0530b1). From the changelog:createApp({ health: true })(#115). Off by default.GET/HEAD /__live__answers200 {"status":"ok"}whenever the process answers./__ready__answers503 {"status":"booting"}untilboot()resolves, then200 {"status":"ok"}or200 {"status":"degraded","degraded":[…]}(fromapp.degraded()), and503 {"status":"draining"}from the momentclose()starts: Nodeapp.close(), and theclose()thatserveDeno()/serveBun()return. Probes are answered by the adapter, ahead ofmaxConcurrentRequestsand the route table, so they are never shed and run no step, provider, plugin oronError, and emit no lifecycle event (logRequestsand metrics plugins do not see them). Security headers still apply, pluscache-control: no-store; other methods get405withAllow: GET, HEAD. Whilehealthis on, a route at either path fails the boot, local or spliced from a teapot. A probe throughapp.fetchbefore the boot starts the boot without waiting for it.health: { drainDelayMs }(default 0) keeps the listener open that long afterclose()starts, with/__ready__already answering503, before connections drain. Without it Node closes idle keep-alive connections at once, so a probe usually sees a refused connection rather than a503. The window is spent out of the shutdown budget;createAppthrows whendrainDelayMsplusteardownTimeoutMsexceedsshutdownTimeoutMs, and on anyhealthvalue other thantrue,falseor{ drainDelayMs?: number }. On the edge there is noclose(), so/__ready__never reportsdrainingthere.