You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Agent heartbeat push for fast failure detection (RELIABILITY-004) #307
Agent health is currently detected by polling every 30 seconds from the backend. This means an agent crash takes up to 30s to detect, and during that window other agents continue sending requests to a dead container. Combined with no circuit breaker (see RELIABILITY-001), this causes long cascading timeouts.
Solution
Flip from pull to push: agents send a lightweight heartbeat to the platform every 5 seconds. A missed heartbeat triggers immediate status change and (with RELIABILITY-001) opens the circuit breaker preemptively.
Scope
Backend:
New internal endpoint: POST /api/internal/heartbeat (no auth, internal network only)
Store heartbeat timestamp in Redis with 15s TTL: heartbeat:{agent_name}
Under the pull model (#1081) the heartbeat is no longer a dispatch gate: a dead agent simply stops pulling, so no compute is wasted and the backend never floods a sick agent. The missed-heartbeat signal is repurposed into an operator alert (queue depth climbing + no successful results = unhealthy), not a mechanism that fails work pre-emptively. Pull does not depend on this, so de-prioritized p1→p2.
Activity
feat: Redis Streams event bus for WebSocket delivery (RELIABILITY-003) (
feat(agent-runtime): richer /health signal — active_tasks, last_task_…
vybe commentedon Jun 5, 2026
Under the pull model (#1081) the heartbeat is no longer a dispatch gate: a dead agent simply stops pulling, so no compute is wasted and the backend never floods a sick agent. The missed-heartbeat signal is repurposed into an operator alert (queue depth climbing + no successful results = unhealthy), not a mechanism that fails work pre-emptively. Pull does not depend on this, so de-prioritized p1→p2.
docs(target-arch): revise coordination model to pull/work-stealing (#…
docs: archive ORCHESTRATION_RELIABILITY_2026-04 (superseded by pull c…
docs: complete ORCHESTRATION_RELIABILITY archive — banner + reference…
feat(#307): agent push-heartbeat liveness layer (RELIABILITY-004) (#987)
fix(monitoring): wire fleet-health loop to lifespan, persist enabled …
docs(user-docs): sync to post-v0.6.0 platform state
feat(pull-migration): pull coordination core — claim/CAS, lease-reape…
feat(pull-migration): pull coordination core — claim/CAS, lease-reape…
feat(pull-migration): pull/work-stealing coordination Phases 0–3 (dar…
Release: v0.8.5 (#1781)
chore(dev-skills): bump .claude — /cso v1.1 Trinity-shape refresh