Infrastructure · Primitives

Heartbeat

Liveness detection via periodic signals

Definition

Mechanism

Periodic Liveness Signal: An entity emits Signal (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 detector, allowing the collective to identify and prune dead nodes.

Preconditions

  1. Active component
  2. Monitor

Postconditions

  1. Liveness confirmed

Invariants

  1. Missing `timeout_multiplier` consecutive intervals triggers failure DETECTION, which is a suspicion and not a fact about the emitter.
  2. Emission interval stays within `interval`.

Risks

Failure modes

  1. False failure detection

    the node is alive and its heartbeat was delayed, so absence of signal was read as absence of the emitter.

  2. Heartbeat outlives usefulness

    the emitter is alive and the work it was doing is not, so liveness is reported while progress has stopped.

Relationships

Builds on

Accepts

Signal

Raw information emission

Composes with

Quorum

Minimum participation threshold

References

Monitor

Continuous observation of state over time

Used by

Composes with

Society

Delegate

Work handoff: delegate → accept/refuse → heartbeat → result-or-failure

References

Society

QuorumPulse

Fluid, organic synchronization without rigid clock ticks.

Reference

Parameters

interval Duration, [100ms, 60s]
Time between heartbeats
timeout_multiplier Integer, [2, 5]
Missed beats before failure

Identity

Ref
Heartbeat#c5df
Sema ID
sema:Heartbeat#mh:SHA-256:c5dfefe91d5460716f19e001290b47c3853173b17f0b6914793f6f51a41903ef
Ring
0
Tier
1
Updated
2026-11-11
Supersedes
  • sema:Heartbeat#mh:SHA-256:7f881d347e8ead278efa6ee9abb5ce8c50f1ea70d38f485cb2c4e911457702b2
  • sema:Heartbeat#mh:SHA-256:d0e6ffd899704efd75b87f0365bbe48fec4a1179b81e08923779ed84be7c83c2
  • sema:Heartbeat#mh:SHA-256:c36fe65a4b171559a33cb36f37ec448dce8ad7092c665426bfabee3dbeb6d1c1