Skip to content
Cockpit0.29.0
A snapshot: read at commit 707a04c7ce8 on 2026-10-18T00:06:01Z by majordomus 0.29.0. Nothing on this page is read again. See it live

health.live

Liveness

What it is

Is this process alive: the cheapest true statement this executable can make about itself, with the version that answered. No filesystem traversal, no index build, no network — this is what a hosting platform polls, and it must cost nothing to say.

Descriptor

Canonical id
health.live
Module
health
Kind
query
Stability
behaviorallyverified
Provenance
declared
Source
apps/majordomus-cli/src/capability/builtin/health.rs
Cache
disabled
Benchmark
required
Tags
healthdeployment

Run

query
A query. It reads and changes nothing.

This capability takes no input.

GET /api/v1/live

Projections

InterfaceAsWhere
MCP toolnot exposed-
MCP resourcenot exposed-
HTTPGET /api/v1/liveSwagger
Command linenot exposed-

Schemas

Input · Empty
{
  "type": "object",
  "additionalProperties": false,
  "description": "No input.",
  "title": "Empty"
}
Output · Liveness
{
  "type": "object",
  "properties": {
    "alive": {
      "type": "boolean",
      "description": "Always `true`. A process that could not answer would not answer at all, which is\nthe signal."
    },
    "version": {
      "type": "string",
      "description": "This executable's version, so a rolling deployment can tell which build answered."
    },
    "commit": {
      "type": "string",
      "description": "The commit this executable was built from, in full, or `unknown` when the build could\nnot name one. A version is what a build calls itself and two revisions share it; this\nis what a deployment is checked against. Never omitted: an absent field would read as\na server too old to say, and `unknown` is a different, truthful answer."
    },
    "dirty": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether that commit's tree carried uncommitted changes when this executable was built;\n`null` when the build did not know."
    }
  },
  "required": [
    "alive",
    "version",
    "commit"
  ],
  "description": "The answer to \"is this process alive\": the cheapest true thing this executable can\nsay about itself. Deliberately not a summary of anything — a probe that grew an\nopinion would stop reporting the one fact the platform polls it for.",
  "title": "Liveness"
}

Examples

These are the capability's own benchmark cases: the same inputs the benchmark runs and the OpenAPI document shows.

default
{}