The Holding Pool Pattern
Problem: Gateway enforced 30s timeout, created race conditions
Solution: Direct AiMsg MCP connection
MESSAGING: mcp__aimsg__* → AiMsg server → Redis BLPOP (600s)
WORK: gateway.run() → auto.* tools (pre-approved)
Agent Lifecycle:
- Register → pool_register
- Wait → 10-min blocking (zero tokens)
- Execute → auto tools via gateway
- Report → send completion message
- Loop → wait again
Ops Manager:
- Voice to user
- Claim agents
- Assign tasks
- Verify work
- Release to pool