{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Heartbeat",
 "ref": "Heartbeat#c5df",
 "hash": "sema:Heartbeat#mh:SHA-256:c5dfefe91d5460716f19e001290b47c3853173b17f0b6914793f6f51a41903ef",
 "stub": "c5df",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Liveness detection via periodic signals",
 "mechanism": "Periodic Liveness Signal#6eaf: An entity emits Signal#6eaf (Heartbeat) every interval I. Missing K consecutive heartbeats triggers failure detection. Heartbeat may include health metrics. Receiver tracks last-seen timestamp. It feeds into the Quorum#2a33 detector, allowing the collective to identify and prune dead nodes.",
 "invariants": [
  "Missing `timeout_multiplier` consecutive intervals triggers failure DETECTION, which is a suspicion and not a fact about the emitter.",
  "Emission interval stays within `interval`."
 ],
 "parameters": [
  {
   "name": "interval",
   "type": "Duration",
   "range": "[100ms, 60s]",
   "description": "Time between heartbeats"
  },
  {
   "name": "timeout_multiplier",
   "type": "Integer",
   "range": "[2, 5]",
   "description": "Missed beats before failure"
  }
 ],
 "signature": [],
 "preconditions": [
  "Active component",
  "Monitor#d316"
 ],
 "postconditions": [
  "Liveness confirmed"
 ],
 "failure_modes": [
  "False failure detection: the node is alive and its heartbeat was delayed, so absence of signal was read as absence of the emitter.",
  "Heartbeat outlives usefulness: the emitter is alive and the work it was doing is not, so liveness is reported while progress has stopped."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Heartbeat",
 "builds_on": [
  {
   "alias": "monitor",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Monitor",
   "ref": "Monitor#d316",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Monitor"
  },
  {
   "alias": "quorum",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Quorum",
   "ref": "Quorum#2a33",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Quorum"
  },
  {
   "alias": "signal",
   "relation": "accepts",
   "library": "bootstrap",
   "slug": "Signal",
   "ref": "Signal#6eaf",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Signal"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "Delegate",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Delegate"
  },
  {
   "slug": "ExplainBeacon",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ExplainBeacon"
  },
  {
   "slug": "QuorumPulse",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/QuorumPulse"
  },
  {
   "slug": "Responsibility",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Responsibility"
  },
  {
   "slug": "TaskLifecycle",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/TaskLifecycle"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Heartbeat",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Heartbeat.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
