Skip to content

fix(api): /healthz service=instanode-api + correct /livez vs /readyz comment (BUG-API-146/148/202/309)#184

Merged
mastermanas805 merged 1 commit into
masterfrom
fix/api-brand-drift-and-router-comment-2026-05-30
May 30, 2026
Merged

fix(api): /healthz service=instanode-api + correct /livez vs /readyz comment (BUG-API-146/148/202/309)#184
mastermanas805 merged 1 commit into
masterfrom
fix/api-brand-drift-and-router-comment-2026-05-30

Conversation

@mastermanas805
Copy link
Copy Markdown
Member

Summary

  • BUG-API-146/148/309: rename /healthz.service from instant.dev (legacy brand) to instanode-api so canaries + log correlation align with the runtime brand
  • BUG-API-202: fix self-contradicting comment in internal/router/router.go — /livez block claimed /healthz is the readiness signal, but the deep readiness matrix actually lives at /readyz

Rule-17 coverage block

  • Symptom: /healthz.service = "instant.dev" (legacy brand)
  • Enumeration: rg -F '"instant.dev"' --type go
  • Sites found: 4 — router.go emit, healthz_test.go fixture, healthz_test.go assert, e2e/e2e_test.go assert
  • Sites touched: 4 (remaining matches are inline comments + DeployDomain default in config_test.go — config field, intentional, out of scope)
  • Coverage test: TestHealthzShape pins service="instanode-api" plus an explicit require.NotEqual(t, "instant.dev", got["service"]) regression assert
  • Live verified: pending merge + auto-deploy + curl https://api.instanode.dev/healthz | jq .service

Test plan

  • go build ./...
  • go vet ./...
  • go test ./internal/router/... -short -count=1
  • go test ./e2e/... -short -count=1
  • Post-merge: curl https://api.instanode.dev/healthz | jq .service returns "instanode-api" and .commit_id matches merge commit short SHA (rule 14)

…comment

BUG-API-146/148/309: /healthz.service emitted the legacy brand string
"instant.dev" — predates the rename to instanode.dev. Now emits
"instanode-api" so canaries that key on `service` to disambiguate
api / worker / provisioner /healthz stamps align with the runtime brand
and log-line correlation fields.

BUG-API-202: the /livez comment block claimed "the readiness signal lives
at /healthz" — actually wrong. /healthz is the shallow probe (commit_id +
migration stamp); /readyz is the deep readiness matrix wired to the k8s
readinessProbe (see handlers/readyz.go). Comment updated so future readers
don't get a wrong mental model.

Coverage block:
  Symptom:        /healthz.service = "instant.dev" (legacy brand)
  Enumeration:    rg -F '"instant.dev"' --type go
  Sites found:    4 (router.go emit + healthz_test.go fixture + healthz_test.go assert + e2e_test.go assert)
  Sites touched:  4 (all 4 — the remaining matches are inline comments
                  and unrelated DeployDomain default in config_test.go)
  Coverage test:  TestHealthzShape pins service="instanode-api" + asserts
                  legacy "instant.dev" must not regress (require.NotEqual).
  Live verified:  pending merge + auto-deploy + curl /healthz | jq .service

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mastermanas805 mastermanas805 merged commit 6d308c0 into master May 30, 2026
14 checks passed
@mastermanas805 mastermanas805 deleted the fix/api-brand-drift-and-router-comment-2026-05-30 branch May 30, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant