service:
  name: stability-agent
  # Deployed per-host: runs on vps, piha and solaria (and chelsty-infra once the
  # site is revived). Was owner_node: chelsty — not a real node name; fixed during
  # the 2026-07 truth cleanup (recon B7/F20.5), closing the docs/backlog.md
  # "stability-agent / node_exporter owner_node single" item for stability-agent.
  owner_node: per-host
  exposure: private
  dependencies: []
  healthcheck:
    type: custom
    interval: 60s
    timeout: 10s
    retries: 3
  restart_policy: unless-stopped
  persistence:
    paths:
      - /opt/homelab/state
      - /opt/homelab/events
  runtime:
    directories:
      - /opt/homelab/state
      - /opt/homelab/events
    env_vars:
      - STABILITY_CHECK_INTERVAL
      - DISK_THRESHOLD_PCT
      - MQTT_HOST
      - MQTT_PORT
