Summary
Add correlated-failure controls so the lease-expiry re-delivery primitive is safe at fleet scale: jittered re-poll / reconnect, per-agent and fleet-wide re-delivery rate caps, and a shared-cause pause that halts re-delivery for all agents on a common fault (Claude API outage, expired platform key, a bad skill pushed fleet-wide).
Context
From the 2026-06-05 review's completeness pass. A backend restart (which already happens routinely) means ~200 agents simultaneously re-poll, reconnect, and re-deliver against one database; a shared cause turns the per-agent-benign re-delivery into a self-amplifying retry storm. The candidate designs reasoned per-agent; the 200-agent failures are correlated.
Acceptance Criteria
Technical Notes
- Relevant once pull lands: the pull endpoints, the lease-reaper in
src/backend/services/cleanup_service.py, and the src/backend/services/capacity_manager.py maintenance loop.
🤖 Generated with Claude Code
Summary
Add correlated-failure controls so the lease-expiry re-delivery primitive is safe at fleet scale: jittered re-poll / reconnect, per-agent and fleet-wide re-delivery rate caps, and a shared-cause pause that halts re-delivery for all agents on a common fault (Claude API outage, expired platform key, a bad skill pushed fleet-wide).
Context
From the 2026-06-05 review's completeness pass. A backend restart (which already happens routinely) means ~200 agents simultaneously re-poll, reconnect, and re-deliver against one database; a shared cause turns the per-agent-benign re-delivery into a self-amplifying retry storm. The candidate designs reasoned per-agent; the 200-agent failures are correlated.
Acceptance Criteria
Technical Notes
src/backend/services/cleanup_service.py, and thesrc/backend/services/capacity_manager.pymaintenance loop.🤖 Generated with Claude Code