supervisor-autoscale
Implement supervised MCP/sub-agent worker pools and autoscaling behavior.
Files1
View on GitHubSKILL.md.claude/skills/supervisor-autoscale/SKILL.md
GitHubSupervisor and Autoscale Skill
Procedure:
- Introduce
ManagedEndpointPool,EndpointTemplate,EndpointInstance, andEndpointLease. - Implement Windows Job Object based process supervision.
- Add readiness probes and health states.
- Add lease assignment for stable logical endpoints.
- Add scale-out thresholds: active leases, queue wait, inflight requests, saturation.
- Add drain behavior. Existing stateful sessions remain sticky; new sessions route to healthier/newer instances.
- Do not hot-migrate active MCP sessions unless a backend-specific migration contract exists.
- Add failure/restart behavior.
- Add tests for lease assignment, drain, restart, and scale-out decisions.
Output must include state diagrams or tables for instance lifecycle and lease lifecycle.