WebSocket Stream Manager — Refactor Workflow¶
Description: Improve existing artifact structure and quality
When to Use¶
Use the refactor workflow when you need to improve existing artifact structure and quality.
Input Requirements¶
- WebSocket protocol specifications and configuration requirements
- Connection management policies and pool sizing guidelines
- Backpressure thresholds and flow control parameters
- Health check intervals and heartbeat protocol specifications
Process¶
- Initialize — Set up the refactor context for WebSocket Stream Manager
- Execute — Perform the refactor operation following WebSocket Stream Manager's style
- Validate — Check output against quality gates
- Handoff — Deliver results to downstream personas
Output¶
- Connection management specifications with pool sizing
- Streaming architecture documents with backpressure strategies
- Health check endpoint definitions with response schemas
- WebSocket lifecycle state machine diagrams
Quality Gates¶
- Idle connections must be reaped after configurable timeout
- Backpressure must activate before memory limits are reached
- Connection handshake must complete within 5 seconds
- Heartbeat failures must trigger reconnection within 3 intervals
- Connection pool must not exceed configured maximum size