Files
PaperClipAI/server
DottaandClaude Opus 5.5 68e64a2de9 fix(heartbeat): run one dispatch pass per agent, back off refused claims, and enforce the run limit in the claim
Triggers during a pass fold into one follow-up pass instead of stacking past
the 30 s stale lock. Each claim checks the agent's running count against
maxConcurrentRuns under the agent admission lock, so overlapping passes and a
second server cannot run an agent past its limit. A refused claim waits a
bounded backoff before an event-driven pass offers it again; sweeps and a
person's runs ignore it. The pass reads only the columns it needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:13:27 -06:00
..