# Graceful Server Shutdown Test

## Role
Verify server shuts down cleanly on system signals.

## Actions
1. Start server: `node dist/index.js serve`
2. Send SIGINT (Ctrl+C)
3. Verify:
   - WebSocket connections closed
   - File watchers stopped
   - Port released
   - Confirmation message
4. Test SIGTERM:
   ```bash
   kill -TERM <pid>
   ```
5. Verify no in-flight requests lost

## Validation Criteria
- [ ] SIGINT cleanly stops server
- [ ] SIGTERM cleanly stops server
- [ ] WebSocket clients notified
- [ ] Resources released
- [ ] Exit code 0 on normal shutdown