Skip to main content

Module stall

Module stall 

Source
Expand description

Stall detection for the supervisor poll loop.

Implements the stall-detection integration of the auto-approve-patterns change: scan crate::broker::BrokerState for agents whose status is working (or one of the still-active labels) and whose last_seen exceeds the configured threshold, returning their agent IDs for the auto-approver to act on.

Constants§

TERMINAL_STATUSES
Status labels considered “terminal” — these agents are NOT stalled even if quiet, so the auto-approver MUST skip them per the automatic-approval spec (“Skip terminal-status agents”).

Functions§

detect_stalled_agents
Returns the agent IDs whose status is non-terminal but whose last_seen is older than threshold.