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-approvalspec (“Skip terminal-status agents”).
Functions§
- detect_
stalled_ agents - Returns the agent IDs whose status is non-terminal but whose
last_seenis older thanthreshold.