Skip to content

quickstart.mdx calls /health the liveness probe; the deploy pages name /api/v1/health and /api/v1/ready #88

Description

@os-zhuang

Found while working #70. That card named the same defect on resources/faq.mdx and it was folded in there. This occurrence is on a page outside #70's declared file surface, so it is filed rather than swept.

content/docs/quickstart.mdx:62:

| http://localhost:3000/health | Liveness probe |

The shipped deploy pages name a different pair:

  • content/docs/deploy/docker.mdx:121 — "/api/v1/health for liveness and /api/v1/ready for readiness"
  • content/docs/deploy/kubernetes.mdx:38 — "/api/v1/ready is readiness. /api/v1/health is liveness."

The nuance that matters when fixing it

/health is not a dead route — do not "fix" this by assuming it 404s. On objectstack@origin/main it is registered in packages/runtime/src/http-dispatcher.ts:512 (prefix: '/health', match: 'exact'), and packages/runtime/src/route-ledger.ts:224 lists it as GET /health, disposition: 'server-only', with the note "liveness probe for orchestrators, not app traffic". packages/cli/src/commands/serve.ts:3400 names all three together: '/api/v1/health', '/api/v1/ready', '/health'.

So the quickstart is not naming a route that does not exist. The defect is narrower and worth stating precisely on whichever page is corrected: /health is liveness-only, and readiness is the endpoint that carries the interesting failure — /api/v1/ready answers 503 when a data driver stops answering (both deploy pages say so, and configure/data-sources.mdx:120 repeats it). A reader who wires only /health gets a probe that stays green through a database outage.

Scope suggestion

Small, but worth doing as one sweep rather than one page at a time, since the same three-way spelling recurs:

grep -rn '/health' content/docs --include='*.mdx'| grep -v 'api/v1/health'

That currently returns quickstart.mdx:62 and resources/changelog.mdx:285. ⛔ Leave the changelog line alone — it is a historical record of what a past release did, and rewriting it would make the record false.

Related: #70.


Generated by Claude Code

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions