Skip to content

Module XXII — health, SLA & uptime

Module XXII answers three questions about the estate’s AI components — what is healthy, what is degraded or down, and what depends on what. It is bounded to the reliability of agents and MCP servers, not host or infrastructure health in general. This page is the reference for what the module measures, what it materializes, and where its honest edges are.

XXII is a consumer of the core, not a prober: opening sockets into customer infrastructure is a connector concern, and the sealed observation set has no health kind. So health is derived from signals the module can prove:

  • Liveness (passive). A session or agent touching an MCP server — or an agent acting — is evidence the subject is alive. It refreshes the subject’s last-seen marker and folds a dependency edge.
  • Active probe results. An external health-checker or the agent itself posts a result to a per-check report endpoint — the honest ingest path for “health checks / OTEL metrics”.
  • Staleness. A known subject that stops being seen within its expected cadence is itself a signal. A background sweep transitions it to degraded, then down, and opens an incident. The sweep only degrades or marks down; recovery comes exclusively from real liveness, so a freshly created check never emits a spurious recovery.

The module owns four entities. A health check is an operator-declared monitored subject (an agent or an MCP server) with an expected cadence and an SLA target; it carries the subject’s current snapshot state — healthy, degraded, down or unknown. A health event is an append-only transition ledger from which uptime and SLA are reconstructed — never stored as a running counter. A health incident is the open→resolved lifecycle of a degraded or down period, with one open incident enforced per subject. A health dependency is an auto-discovered origin → target edge — the dependency map, accumulated idempotently.

Health is materialized only for declared checks. A subject observed alive with no declared check is surfaced honestly on the dependency map as observedseen alive, health not measured — a distinct state from healthy (a declared check signalled) and from unknown (named, no liveness evidence). The product never fabricates a measured-healthy state it did not compute. XXII also mirrors a subject’s current state into the core HealthStatus entity when the subject is a core id, so other planes can read an agent’s or MCP’s health.

XXII consumes edge.observed from the bus for passive liveness and the dependency map, plus the active probe reports that arrive on its API. It produces, it does not deliver: down, degraded, recovered and SLA-breach signals are emitted as minimal-data FindingReports on the finding.reported channel — the product-wide alert stream that module XV (notifications) routes to Slack, PagerDuty or a SIEM. XXII never delivers, and never subscribes to its own findings.