Design an Extensible Multi-Channel Alerting Platform
Model an alerting core that can add alert categories and delivery channels without rewriting its dispatcher.
Design the object model and public contracts for an alerting platform that can deliver alerts through SMS, email, and push notifications. The design must make it straightforward to add new alert categories and new delivery channels without modifying the dispatcher core.
For this exercise, assume a caller submits an alert for one recipient, the platform resolves that recipient's policy for the alert category, creates one delivery attempt per selected channel, and records whether each attempt succeeds or fails.
A channel provider may fail independently, and an unsupported category, missing recipient, or invalid destination must produce an explicit outcome. Keep provider SDK details, durable persistence, distributed queues, and user-interface concerns outside the core design; discuss them only in the final follow-up.